flex+bison and C++

2006-07-17 Thread pasquale minervini
Hi, I just made a small parser using flex and bison, to integrate it in a bigger project, and it works like a charm; here it is: http://www.neuralnoise.com/small_backup/ . I'm now having problems generating a C++ parser (I'm currently trying to do it using the bison's "-d -S lalr1.cc" and flex'

Re: shift/reduce conflict

2006-07-17 Thread Hans Aberg
[Replies: make sure to cc the Help-Bison list.] On 17 Jul 2006, at 10:32, sobich wrote: When I use it on Bison (on Windows platform), it writes I have 1 shift/reduce conflict. If somebody has some idea how can I overcome this problem, please answer me. Thank you in advance, You can try a

shift/reduce conflict

2006-07-17 Thread sobich
Hi! I have the grammar that has, among others, these rules: DECLARLIST -> DECLARLIST ; IDENTS :TYPE | IDENTS :TYPE IDENTS -> IDENTS , id | id ASSIGNMENT_STMT -> id assignop EXPRESSION; When I use it on Bison (on Windows platform), it writes I have 1