help-bison
[Top][All Lists]
Advanced

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

RE: Why Bison prefer reduce to shift in dangling else?


From: Lunjin Lu
Subject: RE: Why Bison prefer reduce to shift in dangling else?
Date: Tue, 25 Feb 2003 17:30:19 -0500

Sorry for all the troubles. I traced the problem and now my parser works
well.

> -----Original Message-----
> From: Akim Demaille [mailto:address@hidden Behalf Of Akim
> Demaille
> Sent: Tuesday, February 25, 2003 1:19 PM
> To: Lunjin Lu
> Cc: address@hidden; address@hidden
> Subject: Re: Why Bison prefer reduce to shift in dangling else?
>
>
>
> | 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
> |
> | %%





reply via email to

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