albert

Albert: Rust Transpiler that converts a Data Mode like JSON/YAML to source code like Go, C++, but also graphql

GPL-2.0 License

Downloads
9.3K
Stars
3

A computer program can write a computer program.

Table of Content

This software is under development, please contribute with idea and/or development time.

  • Introduction
  • How to use
  • Why to Use
  • Appendix
  • License

Introduction

This traspiler born from an idea to override some difficult and boring process like convert a data model into a data structure that need to be coded inside the source code.

A common case is to generate the source code model of a rest endpoint, or a typed client for an application that use json schema to to define request and response.

However, this transpiler have big ambition, and we would like to support a large group of data model, and give the possibility to hook the serializer to decode the final Abstract Syntax Tree into any source language specified by the end user.

Appendix

The source of the name Albert is stolen from the name of the first monkey went into space on June 11, 1948, before do launch with humans NASA use send this cool monkey on the space!

N.B: I love the monkey! minimal procedural macros parser that produce a convenient AST