[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bison/data yacc.c
From: |
Paul Eggert |
Subject: |
bison/data yacc.c |
Date: |
Sun, 15 Dec 2002 04:20:24 -0500 |
CVSROOT: /cvsroot/bison
Module name: bison
Changes by: Paul Eggert <address@hidden> 02/12/15 04:20:24
Modified files:
data : yacc.c
Log message:
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.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/data/yacc.c.diff?tr1=1.43&tr2=1.44&r1=text&r2=text