]> git.saurik.com Git - bison.git/commit - src/state.h
One structure for states is enough, even though theoretically
authorAkim Demaille <akim@epita.fr>
Mon, 10 Dec 2001 08:45:22 +0000 (08:45 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 10 Dec 2001 08:45:22 +0000 (08:45 +0000)
commitf693ad146e6e4951662d60903b8512d518cb09da
tree1f4c84ef8dfd40106cc35fb19e654942e19c6f84
parent74ffbcb6bf2b471ef16c485830a3084978fa29f7
One structure for states is enough, even though theoretically
there are LR(0) states and LALR(1) states.
* src/lalr.h (state_t): Remove.
(state_table): Be state_t **, not state_t *.
* src/state.h (core, CORE_ALLOC): Rename as...
(state_t, STATE_ALLOC): this.
Add the LALR(1) members: shifts, reductions, errs.
* src/LR0.c (state_table): Rename as...
(state_hash): this, to avoid name clashes with the global
`state_table'.
* src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
* src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
ChangeLog
src/LR0.c
src/LR0.h
src/conflicts.c
src/lalr.c
src/lalr.h
src/output.c
src/print.c
src/print_graph.c
src/state.h