|left or right association for unary operators??? email@example.com (Antonio López Torres) (2003-05-29)|
|Re: left or right association for unary operators??? firstname.lastname@example.org (2003-06-03)|
|From:||"Antonio López Torres" <email@example.com>|
|Date:||29 May 2003 03:28:53 -0400|
|Keywords:||parse, question, comment|
|Posted-Date:||29 May 2003 03:28:53 EDT|
I would like to know if there is any diference between declaring
NOT token as %left or %right in the next grammar and why if i
declare as %token exists 2 shift/reduce conflicts.
| expr AND expr
| expr OR expr
| NOT expr
[Without the precedence, expressions are ambiguous:
NOT A AND B is it (NOT A) AND B or NOT (A AND B) ?
Return to the
Search the comp.compilers archives again.