maxrt101 / ff

Scripting language
MIT License
4 stars 0 forks source link

Macros (`macro!()`) #17

Open maxrt101 opened 2 years ago

maxrt101 commented 2 years ago

Allow user to generate AST with macros. Needs ast module to be implemented, with things like ast.Node and such (will link to C++ types). Special block expressions for generating AST ${}, e.g. ${ $a + $b }, where a and b are variables. Macro will run on a separate VM as a function.