Related articles |
---|
left or right association for unary operators??? news@ono.com (Antonio López Torres) (2003-05-29) |
Re: left or right association for unary operators??? haberg@matematik.su.se (2003-06-03) |
From: | "Antonio López Torres" <news@ono.com> |
Newsgroups: | comp.compilers |
Date: | 29 May 2003 03:28:53 -0400 |
Organization: | Compilers Central |
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
: expr
| expr AND expr
| expr OR expr
| NOT expr
| (expr)
;
Thank you.
[Without the precedence, expressions are ambiguous:
NOT A AND B is it (NOT A) AND B or NOT (A AND B) ?
-John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.