[antlr-interest] Labeled subrules

Anakreon Mejdi amejdi at ertonline.gr
Thu Oct 31 04:10:23 PST 2002


In the documentation is mentioned that the labeled subrules will be
implemented in an other way.

Does this mean that in the next release of antlr it will not be supported?

Suppose I have this rule
a
:
    A^ B C l:(D^ (E)+)
;

How can I achieve having the same AST the rule 'a' produces
without labeled sub rule but having the D^ E subtle defined in rule 'a'?

The only option I have is defining:
a
: A^ B C c
;

c
:
D^ (E)+
;

Thanks in advanced, Anakreon



 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list