]> git.saurik.com Git - bison.git/commit
Rely on the state stack to display reduction traces.
authorAkim Demaille <demaille@gostai.com>
Thu, 31 Jul 2008 10:50:42 +0000 (12:50 +0200)
committerAkim Demaille <demaille@gostai.com>
Sun, 9 Nov 2008 18:33:04 +0000 (19:33 +0100)
commit33c195cc37a2d4e20c5437a0334953ea87637c20
tree59188b0b6a858795736dd87e419d69ac93953015
parente1f93869dab102a7db1f6251a590af2e2a00d405
Rely on the state stack to display reduction traces.

To display rhs symbols before a reduction, we used information about the rule
reduced, which required the tables yyrhs and yyprhs.  Now use rely only on the
state stack to get the same information.

* data/lalr1.cc (b4_rhs_data, b4_rhs_state): New.
Use them.
(parser::yyrhs_, parser::yyprhs_): Remove.
(parser::yy_reduce_print_): Use the state stack.
ChangeLog
data/lalr1.cc