[antlr-interest] Question about the antlrv3.g

Shaoting Cai caishaoting at gmail.com
Mon Aug 3 13:46:48 PDT 2009


Hello,

In the latest ANTLRv3.g (
http://fisheye2.atlassian.com/browse/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g?r=5943#l185
)
...
184        ruleScopeSpec
185             :       'scope' ACTION -> ^('scope' ACTION)
186             |       'scope' id (',' id)* ';' -> ^('scope' id+)
187             |       'scope' ACTION
188                     'scope' id (',' id)* ';'
189                     -> ^('scope' ACTION id+ )
190             ;
...

It seems to me that the alternatives are duplicated.  Or is there any
purpose that they are here?

Thanks,
Shaoting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090803/81df39d7/attachment.html 


More information about the antlr-interest mailing list