]> git.saurik.com Git - bison.git/commit
Try to make the use of the eoftoken valid. Given that its value
authorAkim Demaille <akim@epita.fr>
Thu, 27 Dec 2001 18:13:31 +0000 (18:13 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 27 Dec 2001 18:13:31 +0000 (18:13 +0000)
commit75142d452b7f6bc3b6be3d8a08c0f602fd157ec5
tree6494181149876ac70244cf7dfa2fa212074cd9d0
parentb7c49edf135cea5dc2bd0942b42d28e6c84cf71f
Try to make the use of the eoftoken valid.  Given that its value
is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
is used instead of > 0 where appropriate, (ii), depend upon nritems
instead of the 0-sentinel.
* src/gram.h, src/gram.c (nritems): New.
Expected to be duplication of nitems, but for the time being...
* src/reader.c (packgram): Assert nritems and nitems are equal.
* src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
* src/closure.c (print_closure, print_fderives): Likewise.
* src/gram.c (ritem_print): Likewise.
* src/print.c (print_core, print_grammar): Likewise.
* src/print_graph.c: Likewise.
ChangeLog
src/LR0.c
src/closure.c
src/gram.c
src/gram.h
src/output.c
src/print.c
src/print_graph.c
src/reader.c