3 ms·
Isn't it how Lisp macros work?
by nine_k 9y ago
Isn't it how Lisp macros work?
- db48x 9y agoYep. Although in some lisps you can write reader macros that control tokenization to add new syntax.
- panic 9y agoYep! I have also been pointed at this PhD thesis: https://www.cs.utah.edu/~rafkind/papers/dissertation.pdf https://www.cs.utah.edu/~rafkind/papers/dissertation.pdf which defines a macro system on a uniform Algol-like syntax with intermediate "reading" and "enforestation" phases and corresponding syntax representations (the "read" representation being pretty much the same as the token tree representation here).