- #1
Dissident Dan
- 238
- 2
I've got an assignment for a class in which I'm supposed to make an assignment statements parser using Lex and Yacc...well, actually variants called Flex and Bison.
I am having major problems getting this to work. It will recognize one token or character and then give a "parse error".
I noticed that if I remove the return statements from my Lex rules, it is able to continue parsing without giving me the dreaded "parse error", but then I lose the functionality that I need for Yacc to be able to parse the tokens.
Does anyone have any idea of what's going on?
I am having major problems getting this to work. It will recognize one token or character and then give a "parse error".
I noticed that if I remove the return statements from my Lex rules, it is able to continue parsing without giving me the dreaded "parse error", but then I lose the functionality that I need for Yacc to be able to parse the tokens.
Does anyone have any idea of what's going on?