[antlr-interest] How to solve following conflict ?
mzukowski at yci.com
mzukowski at yci.com
Tue Sep 17 07:52:37 PDT 2002
See Ter's post from yesterday (Re: Removing nondeterminism)--make sure k>1
and greedy=true for the loop.
Monty
> -----Original Message-----
> From: Kevin "MiNdCRY" Erath [mailto:mindcry2000 at gmx.de]
> Sent: Tuesday, September 17, 2002 7:50 AM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] How to solve following conflict ?
>
>
> Let's say i have following grammer:
>
> test: ((list)? STAR )+ (list)? COMMA
> ;
>
> list: ( ID_1 | ID_2 )+
> ;
>
> then i get following conflict:
> nondeterminism
> upon[k==1:ID_1,ID_2],[k==2:COMMA,ID_1,ID_2],[k==3:EOF,COMMA,ID
> _1,ID_2],
> between alt 1 and exit branch of block
>
> can anybody on this list help me on solve this issue ?
>
> thank your very much,
> Kevin
> "¨¨°º©o.,MiNdCRY,.o©º°¨¨"
> ------------------------------------------
> www.game-designer.net
> ------------------------------------------
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list