* 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:
Akim Demaille
2001-12-10 09:08:09 +00:00
parent 0ab3728b12
commit 80e25d4d46
3 changed files with 17 additions and 3 deletions

View File

@@ -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