[antlr-interest] ANTLR 3.0 question about common actions
Monty Zukowski
monty at codetransform.com
Wed Jul 28 14:00:11 PDT 2004
On Jul 28, 2004, at 1:19 PM, Terence Parr wrote:
> There are two problems with the existing ANTLR regarding
> actions/targets. A grammar built for one language has to be manually
> updated to work for another output target. In other words, tree
> construction for C++ won't work with C# or Java as a back-end. You
> have to update it if you have any actions other than the ^ and ! AST
> operators in your grammar.
Hmm, meta-syntactic macros? Allow the grammar to have a section of
templates (or macros) applied to actions. Just retarget the macros,
could be in a separate file.
Monty
ANTLR & Java Consultant -- http://www.codetransform.com
ANSI C/GCC transformation toolkit --
http://www.codetransform.com/gcc.html
Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list