by ndh2 · 8y ago · 0 comments
How abstract is that initial AST? Can you use these rewriting transformations to expand the grammar?
With that said, down the line I plan to add procedural macros, and those will likely be lexical (they take a series of tokens as input, which doesn't need to parse into valid AST.) If I do go that route, such macros would have to be invoked explicitly.