Feature: Rust-style AST-aware macros #15
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Progress
Decide on macro syntax
Define AST nodes to store that syntax in
Implement macro syntax within parser
Feature description
Many popular programming languages have code templating/generation syntax, commonly called "macros".
Implementing some kind of macro->expansion system would go a long way toward improving the usability of Conlang.
Possible syntax
Example