Thanks John!
One question though: why do the precedence levels of operators '!' and
'=' defined at the beginning of my grammar don't apply in this case?
Moreover, I thought that ambiguous associativity was more likely to
create shift/reduce conflicts rather than reduce/reduce conflicts,
wasn't it?

Regards,
Florent

Le 19/11/2013 00:17, John Levine a écrit :
>> 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
> 

_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to