]> git.saurik.com Git - bison.git/commit - data/lalr1.cc
Push the state, value, and location at the same time.
authorAkim Demaille <demaille@gostai.com>
Wed, 22 Oct 2008 10:17:07 +0000 (05:17 -0500)
committerAkim Demaille <demaille@gostai.com>
Mon, 3 Nov 2008 20:51:02 +0000 (21:51 +0100)
commit7dedf26e55f2322cb4f8e0aefee51ad0f64af551
treed991b906c6d5467046d3e3b37fea356facdd7d99
parentc4585f1e2d6cee2470aba970428422c316a1c235
Push the state, value, and location at the same time.

This is needed to prepare a forthcoming patch that fuses the three
stacks into one.

* data/lalr1.cc (parser::yypush_): New.
(parser::yynewstate): Change the semantics: instead of arriving to
this label when value and location have been pushed, but yystate
is to be pushed on the state stack, now the three of them must
have been pushed before.  yystate still must be the new state.
This allows to use yypush_ everywhere instead of individual
handling of the stacks.
ChangeLog
data/lalr1.cc