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.
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 firstCommon 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.