[antlr-interest] Question about the antlrv3.g

Shaoting Cai caishaoting at gmail.com
Mon Aug 3 13:51:37 PDT 2009


Omg~~~
Being dumb today.

Thanks Terence!

On Mon, Aug 3, 2009 at 1:50 PM, Terence Parr <parrt at cs.usfca.edu> wrote:

> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090803/abfa02b9/attachment.html 


More information about the antlr-interest mailing list