[antlr-interest] Name Collision

Kevin Lindsey kevin at kevlindev.com
Tue Nov 23 10:48:17 PST 2004


John, 

> I am surprised your grammar processes through Antlr without
> complaint!

>>typeSpec
>>    : className
>>    : LBRACKET Name1 RBRACKET
>>    : LBRACKET MODULE Name1 RBRACKET
>>    | type
>>    ;

Yikes! You're right...and that explains why I wasn't getting a
nondeterminism with the className to 2'nd and 3'rd alternates, which was
confusing me.

> I think this is not a Name Collision issue, but rather a bug in
> Antlr's overpermissive acceptance of rules having multiple ':'s.
>
> Hope this helps....

Yes, it does...thanks John!

-Kevin



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

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





More information about the antlr-interest mailing list