Let yytranslate handle the eof case.

* data/lalr1.cc (yytranslate_): Handle the EOF case.
	Adjust callers.
	No longer expect yychar to be equal to yyeof_, rather, test the
	lookahead's (translated) kind.
This commit is contained in:
Akim Demaille
2008-08-18 22:16:40 +02:00
parent 27cb5b5901
commit aba12ad162
2 changed files with 18 additions and 13 deletions

View File

@@ -1,3 +1,11 @@
2008-11-11 Akim Demaille <demaille@gostai.com>
Let yytranslate handle the eof case.
* data/lalr1.cc (yytranslate_): Handle the EOF case.
Adjust callers.
No longer expect yychar to be equal to yyeof_, rather, test the
lookahead's (translated) kind.
2008-11-11 Akim Demaille <demaille@gostai.com>
yychar cannot be empty in yyerrlab.