Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,958 of 2,753    |
|    Hans Aberg to JohnSmith    |
|    Re: shift/reduce problem    |
|    03 Dec 10 00:44:57    |
      From: haberg-news@telia.com              On 2010/12/02 21:29, JohnSmith wrote:       > I'm using bison and flex. Bison reports shift/reduce conflict:       > probably because cannot decide on "," when "input" coming (is this an       > error or should reduce). How to resolve this problem? Probably I have       > to use %left, %right, %prec but I dont know how.              Use the flags        bison --verbose --report=all       to get the .output file. Look for the state, and in it, the conflicting       rules, and in those, the two tokens immediately before and after the       parsing position ".". The token precedences %left, ..., set preferences       between those pairs.               Hans              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca