3 ms·
How do you define in what order macros are applied?
by amelius 8y ago
How do you define in what order macros are applied?
- KingMob 8y agoDunno about sweet.js, but in Lisps, it's usually source order. E.g., read the next token, is it at the head of the list and names a macro, if so, call the macro function, and pass in the code as the param, take the output and replace the macro form with the expanded version, resume reading...