mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
* src/LR0.c: Attach shifts to states as soon as they are
computed. * src/lalr.c (set_state_table): Instead of assigning shifts to state, just assert that the mapping was properly done.
This commit is contained in:
@@ -153,7 +153,7 @@ set_state_table (void)
|
||||
{
|
||||
shifts *sp;
|
||||
for (sp = first_shift; sp; sp = sp->next)
|
||||
state_table[sp->number]->shifts = sp;
|
||||
assert (state_table[sp->number]->shifts == sp);
|
||||
}
|
||||
|
||||
/* Pessimization, but simplification of the code: make sure all the
|
||||
|
||||
Reference in New Issue
Block a user