3 ms·
m4 is filled with quirks of its own. I tried using it once for generating code in a language without macros, only to get bogged down in the opaque quoting rules
by LegionMammal978 2y ago
m4 is filled with quirks of its own. I tried using it once for generating code in a language without macros, only to get bogged down in the opaque quoting rules. It's worse than the \expandafter soup you get in TeX macros.
Also, you'd have a hard time finding a pair of quote characters that don't conflict with C/C++ source code, since string literals can contain just about anything. Any general-purpose preprocessor should at least conform to the lexical rules of the target language.
- 1718627440 2y agoIs there a saner macro language out there, or is this due to the intrinsic complexity of macro languages?