Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Implement a Lisp macro system

Name: Anonymous 2015-05-31 12:09

/prog/, do you know of a tutorial or a paper on implementing a Lisp macro system from scratch? It could be Scheme macros, it could be really simple macros, anything would be helpful.

Name: Anonymous 2015-06-06 9:43

>>4
The problem is that macros can call functions and functions can call macros. After parse, I don't even have a valid AST, because it's got arbitrary macros that need to be expanded first
Common Lisp doesn't solve it in any way. Just require explicitly stating what macros should be compiled before the module compilation. Scheme just separates compilation into modules.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List