lalr1.cc: don't discard non-existent lookahead on syntax error.

* data/lalr1.cc (parser::parse): Check yyempty first.
* tests/c++.at (Syntax error discarding no lookahead): New test
group.
This commit is contained in:
Joel E. Denny
2009-12-18 23:57:18 -05:00
parent 387b4d5047
commit d59beda068
3 changed files with 85 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
2009-12-18 Joel E. Denny <jdenny@clemson.edu>
lalr1.cc: don't discard non-existent lookahead on syntax error.
* data/lalr1.cc (parser::parse): Check yyempty first.
* tests/c++.at (Syntax error discarding no lookahead): New test
group.
2009-12-17 Joel E. Denny <jdenny@clemson.edu>
Code cleanup.