[antlr-interest] rewrite rule translation to tree grammar

Johannes Luber jaluber at gmx.de
Fri Dec 14 12:24:45 PST 2007


Hi,

I have the following rule:

qualified_identifier
   :   (i1=IDENTIFIER -> ^(QUALIFIED_IDENTIFIER $i1))
       (DOT i2=IDENTIFIER -> ^($qualified_identifier DOT $i2))*
   ;

But I haven't found an example in TDAR which explains the equivalent
rule for a tree grammar. Can someone help?

Johannes


More information about the antlr-interest mailing list