pythongen
Generates Python source code from an AlephTree.
Installation
[]
= "0.1"
Usage
let code = generate;
Example
let ast = If ;
let code = generate;
// produces:
// if(true):
// 1
// else:
// 0
Supported constructs
Literals, arithmetic, boolean logic, if/else, while, let, match, arrays, tuples, functions (LetRec, App), return, import, assert.
Related
aleph-syntax-tree— AST definitionalephc— uses this generator with--features python_genaleph2py— standalone Aleph → Python binary