help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rule cycle and reduce/reduce conflict


From: John Levine
Subject: Re: rule cycle and reduce/reduce conflict
Date: 18 Nov 2013 23:17:11 -0000

>bool_expr : '!' bool_expr
>          | num_expr '=' num_expr
>          | 'b'
>          ;
>
>num_expr : bool_expr
>         | 'n'
>         ;

Yes, this is ambiguous.

If your input is "!b=n", it can't tell which of these you mean:

! ( b = n )

(!b) = n

R's,
John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]