2 ms·
I worked on a macro preprocessor circa 1999 which could have developed into a M4 replacement. https://web.archive.org/web/20070209223522/http://users.footprint
by kazinator 5y ago
I worked on a macro preprocessor circa 1999 which could have developed into a M4 replacement.
https://web.archive.org/web/20070209223522/http://users.footprints.net/~kaz/mpp.html https://web.archive.org/web/20070209223522/http://users.foot...
Then I discovered Lisp so I probably lost interest in MPP because of that.
One distguishing feature of MPP is that it preserves indentation when generating code. If you have a macro which generates multiple lines of code, and that macro call is indented, then its output gets indented. So in theory you can use this for Python and Yaml and their ilk.
Interestingly, without any prior Lisp knowledge, I based this project on nested list processing. It has programmable read-tables, like Common Lisp, and also lexically scoped local macros, like macrolet. Lisp showed me a vastly better designed architecture of all the infrastructure that I greenspunned inside MPP, which made it seem pointless to continue that project, and pour more effort into ramping up on Lisp.
Probably for the same reason, I never migrated that mpp.html page and its sub-content to my newer home page locations. I have all the code in version control and all. I'm always having to refer to it via archive.org.
I posted about MPP in the comp.lang.c newsgroup in 2008, when John Thingstad started a thread with my name in the subject line, asking:
I have noticed you have become dramatically better in Lisp in a relative
short period of time. What is you "secret"?
https://groups.google.com/g/comp.lang.lisp/c/xvuivrEnQ9s/m/zoCaj2eGsXsJ https://groups.google.com/g/comp.lang.lisp/c/xvuivrEnQ9s/m/z...
There is a deleted article, which I think is my first response to the question, which I replaced using the Usenet supersede feature.