|
From: | Hans Aberg |
Subject: | Re: Why Bison prefer reduce to shift in dangling else? |
Date: | Sat, 22 Feb 2003 10:28:23 +0100 |
PLease reply to: address@hidden At 23:01 -0500 2003/02/21, Lunjin Lu wrote: >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. >%token NIL IF THEN ELSE You can use the %left (etc) (see Bison manual) to give different priorities to the tokens THEN & ELSE. Hans Aberg
[Prev in Thread] | Current Thread | [Next in Thread] |