[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why Bison prefer reduce to shift in dangling else?
From: |
Akim Demaille |
Subject: |
Re: Why Bison prefer reduce to shift in dangling else? |
Date: |
Tue, 25 Feb 2003 19:19:23 +0100 |
User-agent: |
Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 |
| Hello,
|
| I am swamped by the following dangling else problem. Bison prefers reduce to
| shift for the following gramma. Any suggestions to resolve this problem will
| be appreciated.
If it does, that's a serious bug. I very much doubt it reduces here,
check your files again, it certainly shifts.
| Regards,
|
| Lunjin Lu
|
|
| %token NIL IF THEN ELSE
|
| %start exp
|
| %%
|
| exp : NIL
| | IF exp THEN exp
| | IF exp THEN exp ELSE exp
|
| %%
Re: Why Bison prefer reduce to shift in dangling else?,
Akim Demaille <=
RE: Why Bison prefer reduce to shift in dangling else?, Lunjin Lu, 2003/02/25