[antlr-interest] implementing C-style #define macros in ANTLR

Bruce Bauman bruce.bauman at andesaservices.com
Wed Mar 25 06:46:10 PDT 2009


I am trying to convert 4 million lines of Pascal code from the MetaWare Pascal compiler to Free Pascal. (yes, really). Unfortunately, MetaWare Pascal supports many non-standard extensions to Pascal, including C-style macros. Our existing Pascal code base uses the macro feature extensively..
 
Any suggestions on how to implement this? Any examples in existing ANTL grammars?
 
Thanks.


More information about the antlr-interest mailing list