]> git.saurik.com Git - bison.git/commit - src/state.c
In some (weird) cases, the final state number is incorrect.
authorAkim Demaille <akim@epita.fr>
Wed, 9 Nov 2005 15:48:05 +0000 (15:48 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 9 Nov 2005 15:48:05 +0000 (15:48 +0000)
commit36b5e963e6a0d2992831ab8635963e75ac36671e
tree72def855335cabbdf3cbd4690f215efbece25409
parent317fce927c61d96a9779b3dfe1bc23a732ee6dc0
In some (weird) cases, the final state number is incorrect.
Reported by Alexandre Duret-Lutz.
* src/LR0.c (state_list_append): Remove the computation of
final_state.
(save_reductions): Do it here.
(get_state): Alpha conversion.
(generate_states): Use a for loop.
* src/gram.h (item_number_is_rule_number)
(item_number_is_symbol_number): New.
* src/state.c: Use assert.
* src/system.h: Include assert.h.
* tests/sets.at (Accept): New.
ChangeLog
src/LR0.c
src/gram.h
src/state.c
src/system.h