[antlr-interest] current best practice for a macro preprocessor?
Leo Meyerovich
lmeyerov at eecs.berkeley.edu
Mon Feb 6 12:43:45 PST 2012
Hi all,
I'd like to add a simple (unhygienic etc.) preprocessor, e.g.,
trait MyDefs { myDef1; myDef2; }
class MyClass(MyDefs) { myDef3; }
=>
class MyClass { myDef1; myDef2; myDef3; }
Any suggestions on the current best practice, preferably with code examples? So far, I've seen:
-- http://www.ibm.com/developerworks/aix/library/au-c_plusplus_antlr/index.html
-- http://www.antlr.org/pipermail/antlr-interest/2009-September/035854.html
Thanks for any tips!
- Leo
More information about the antlr-interest
mailing list