[antlr-interest] Question about the antlrv3.g
Terence Parr
parrt at cs.usfca.edu
Mon Aug 3 13:50:42 PDT 2009
hi Shaoting, which alternatives? remember | means alternative not
newline.
T
On Aug 3, 2009, at 1:46 PM, Shaoting Cai wrote:
> 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
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list