Re: Ply(LALR) and Yacc behaving differently

2005-04-08 Thread Åsmund Grammeltvedt
On Fri, 8 Apr 2005, Carsten Haese wrote: > On Thu, 2005-04-07 at 14:51, Åsmund Grammeltvedt wrote: > > Hi. > > > > I am trying to implement a small compiler in python and, trying to use > > something a bit more pythonic than lex/yacc, ended up with ply > > (h

Ply(LALR) and Yacc behaving differently

2005-04-07 Thread Åsmund Grammeltvedt
o state 1 OK, I believe those are the interesting parts. Appearently, ply doesn't want to shift anything other than a ';' and thereby produces an error if it encounters '+'. This only occurs in LALR mode, though. SLR handles correctly, but my larger grammar isn't SL