3 ms·
> its syntax is lighter and more flexible than that of GNU m4. The old Unix utils were pretty good, so that made me think why anyone would go to the trouble of
by B1FF_PSUVM 8y ago
> its syntax is lighter and more flexible than that of GNU m4.
The old Unix utils were pretty good, so that made me think why anyone would go to the trouble of redoing m4.
There's more at https://files.nothingisreal.com/software/gpp/gpp.html https://files.nothingisreal.com/software/gpp/gpp.html (man page with examples), namely:
"GPP is targeted at all common preprocessing tasks where cpp is not suitable and where no very sophisticated features are needed. In order to be able to process equally efficiently text files or source code in a variety of languages, the syntax used by GPP is fully customizable. The handling of comments and strings is especially advanced."
The man page also details options such as "-C
cpp compatibility mode. [...]
-T
TeX-like mode. [...]
-H
HTML-like mode. [...]"
- nerdponx 8y agoI actually used GPP to write my thesis in Markdown. I had a "main" document containing a bunch of GPP "include" lines. Then I fed that into Pandoc all in one shot. I wouldn't have dreamed of doing the same in M4.