]> git.saurik.com Git - bison.git/commit
lalr1.cc: don't discard non-existent lookahead on syntax error.
authorJoel E. Denny <jdenny@clemson.edu>
Sat, 19 Dec 2009 04:57:18 +0000 (23:57 -0500)
committerJoel E. Denny <jdenny@clemson.edu>
Sat, 19 Dec 2009 04:58:14 +0000 (23:58 -0500)
commitd59beda068aef97834ea84ce4f5cc99b487e4b68
treedc3d37a46f97bce5e2b1f2eae12c060f1575269c
parent387b4d504728391605f751e74a36fb7d0d441b19
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.
ChangeLog
data/lalr1.cc
tests/c++.at