]> git.saurik.com Git - bison.git/commit
Undo most of the 2002-11-12 yychar -> yytoken patch, as it broke
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 15 Dec 2002 09:20:24 +0000 (09:20 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 15 Dec 2002 09:20:24 +0000 (09:20 +0000)
commita20713a4af1785b71ff4408f3ed201508a6736f1
tree1066ae3d9debed274d929171ab929e53f43cdf30
parentd2caf5545ce271a038b443affda772a86b6eeea0
Undo most of the 2002-11-12 yychar -> yytoken patch, as it broke
GCC 3.2.1 (which depends on yychar == YYEMPTY when there is no
lookahead symbol, and which sets yychar in parser actions) and it
disagreed with the Bison documentation.  This should fix the bug
reported by Andrew Walrond in
<http://mail.gnu.org/pipermail/bug-bison/2002-December/001949.html>.

(YYTRANSLATE): Don't check for negative argument,
as the caller now does that.
(yyclearin, YYBACKUP, yyparse): Use yychar, not yytoken.
(YYEMPTY): Parenthesize right hand side, since others use it.
(yyparse): Don't assume that our generated code is the only code
that sets yychar.
data/yacc.c