]> git.saurik.com Git - bison.git/commit - src/symtab.c
Fix precedence for end token.
authorJoel E. Denny <jdenny@clemson.edu>
Mon, 2 May 2011 01:53:35 +0000 (21:53 -0400)
committerJoel E. Denny <jdenny@clemson.edu>
Mon, 2 May 2011 02:20:15 +0000 (22:20 -0400)
commit9d6af153184eea964fef7f87d76a60fe29f715b5
treebd361c3df2f04956a20c2410a46a1d702cf99ab3
parent441735026b38afedb296710e78f45af7e66a5fc8
Fix precedence for end token.

Since Bison 2.3b, which restored the ability of precedence
directives to assign user token numbers, doing so for user token
number 0 has produced an assertion failure.
* NEWS (2.5): Document fix.
* src/symtab.c (symbol_user_token_number_set): In the case of the
end token, don't decrement ntokens if it was never incremented.
* tests/regression.at (Token number in precedence declaration):
Extend.
ChangeLog
NEWS
src/symtab.c
tests/regression.at