]> git.saurik.com Git - bison.git/commit - src/LR0.c
Now that states have a complete set of members, the linked list of
authorAkim Demaille <akim@epita.fr>
Mon, 10 Dec 2001 09:09:49 +0000 (09:09 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 10 Dec 2001 09:09:49 +0000 (09:09 +0000)
commit190c4f5f0a0dac47157adea6250cb88bf0ac39ff
tree9b9c53fd702dff8d4bef29e1640d422f3265edfe
parent2a73b93df45e9cab008947d3f8290c0c7f4bf500
Now that states have a complete set of members, the linked list of
shifts is useless: just fill directly the state's shifts member.
* src/state.h (shifts): Remove the `next' member.
* src/LR0.c (first_state, last_state): Remove.
Adjust the callers.
(augment_automaton): Don't look for the shifts that must be added
a shift on EOF: it is those of the state we looked for!  But now,
since shifts are attached, it is no longer needed to looking
merely by its id: its number.
ChangeLog
src/LR0.c
src/state.h