]> git.saurik.com Git - bison.git/commit - src/parse-gram.c
Accept a token number in a %left, %right, or %nonassoc for POSIX
authorJoel E. Denny <jdenny@ces.clemson.edu>
Sun, 17 Feb 2008 00:18:36 +0000 (00:18 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Sun, 17 Feb 2008 00:18:36 +0000 (00:18 +0000)
commitab7f29f8f9a7ad89b6a3163f913e1ee2b7889223
tree03d9985f8c87ffa82fa3b9e8aa62edfa5c55c600
parent80d2c3adcce25b11be36add53af1bc8be79eefb0
Accept a token number in a %left, %right, or %nonassoc for POSIX
conformance.  Reported by Tim Josling at
<http://lists.gnu.org/archive/html/bug-bison/2008-01/msg00010.html>.
* NEWS (2.3a+): Mention.
* doc/bison.texinfo (Precedence Decl): Describe how literal strings
and code numbers are treated by precedence declarations.
* src/parse-gram.y (precedence_declaration): Use symbols.prec instead
of symbols.1.
(symbols.prec): New, just like symbols.1 but uses symbol.prec instead
of symbol.
(symbol.prec): New, just like symbol but allows INT.
* src/symtab.c (symbol_user_token_number_set): Remove an aver that no
longer holds.
* tests/regression.at (Token number in precedence declaration): New
test case.
ChangeLog
NEWS
doc/bison.texinfo
src/parse-gram.c
src/parse-gram.y
src/symtab.c
tests/regression.at