[antlr-interest] Labeled subrules

Terence Parr parrt at jguru.com
Thu Oct 31 09:08:55 PST 2002


On Thursday, October 31, 2002, at 04:10  AM, Anakreon Mejdi wrote:

> 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?

Well, it's not supported now ;)  You have to do the subrule as you've 
shown at the moment.

Sorry...

Terence

>
> 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/
>
>
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco


 

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



More information about the antlr-interest mailing list