]> git.saurik.com Git - bison.git/commit - ChangeLog
lalr1.cc: get rid of yyparse's yystate.
authorAkim Demaille <demaille@gostai.com>
Sun, 16 Aug 2009 05:36:39 +0000 (07:36 +0200)
committerAkim Demaille <demaille@gostai.com>
Wed, 19 Aug 2009 08:36:57 +0000 (10:36 +0200)
commit7580c37942a7f33d3c348d2bf71964fbbba89f1f
treeddef37b5a376efc23d871bd6520395650e1c67a3
parentc4dc4c4671556643de16417a12130da93440087f
lalr1.cc: get rid of yyparse's yystate.

yystate and yystack_[0].state are equal, keep only the latter.
The former was also used as a temporary variable to compute the
post-reduction state.  Move this computation into an auxiliary
function.

* data/glr.c (yyLRgotoState): Fuse variable definition and first
assignment.
* data/lalr1.cc (yy_lr_goto_state_): New.
(yyparse): Use it.
Replace remaining uses of yystate by yystate_[0].state.
Remove the former.
ChangeLog
data/glr.c
data/lalr1.cc