mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
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.
31 KiB
31 KiB