Feature: Rust-style AST-aware macros #15
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: j/Conlang#15
Loading…
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