3 ms·
Do we consider macros compilers now? :)
by packetlost 3y ago
Do we consider macros compilers now? :)
- bjoli 3y agoI would say yes. A compiler takes code and produces different code. Maybe in another language. I wouldnt call a simple anaphoric if a compiler, but I wrote this: https://git.sr.ht/~bjoli/goof-loop https://git.sr.ht/~bjoli/goof-loop and it specifies a new loop construct for scheme. It takes code conforming to a grammar and produces standard scheme code while also generating loop code, temporary variables, identifiers and all that jazz. It even transforms the code using CPS. That is what you get for writing complex macros in syntax-rules I guess.