Frank Heckenbach wrote:
GPC currently uses a stand-alone preprocessor (gpcpp) that is derived from the C preprocessor and shares many of its features.
I plan to integrate it into the compiler which would follow gcc's example (not so important, though), maybe make it a little faster (not very much, I guess, since preprocessing in general doesn't take very long), solve some problems (e.g., the `--needed-option' ugliness, mostly on MIPS) and allow for further improvements.
... snip ...
Since preprocessing has nothing to do with Pascal per se, I would recommend keeping any such firmly separated. I am not familiar with the operation of m4, but between that and what you already evidently have, I suspect any complex games could be performed.
You can always go further by integrating things with the symbol table, etc., but is it worth it? The resultant input language is neither fish nor fowl. My own view is that there are already too many exceptions and extensions in gpc, and once something is added it is hard to remove, because there is always a group that uses everything.