]> git.saurik.com Git - bison.git/commit - doc/bison.texinfo
YYACCEPT, YYERROR, and YYABORT, as user actions, should not
authorAkim Demaille <akim@epita.fr>
Wed, 21 Dec 2005 15:28:30 +0000 (15:28 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 21 Dec 2005 15:28:30 +0000 (15:28 +0000)
commita85284cfbd1334c940e65b59c44ada379029e074
tree3ddbd96338fe890e131284eac465dc68d3f84fca
parente14d0ab6870bd4c9fb0f3981f60c5a0dc3c65925
YYACCEPT, YYERROR, and YYABORT, as user actions, should not
destroy the RHS symbols of a rule.
* data/yacc.c (yylen): Initialize to 0.
Keep its value to the number of items to possibly shift.
In particular, a regular successful parse that ends on YYFINAL by
a (internal) YYACCEPT must not have yylen != 0.
(yyerrorlab, yyreturn): Pop the RHS.
Reorder a bit to emphasize the `shifting' bits of code.
(YYPOPSTACK): Now accept a number of items to pop.
* data/lalr1.cc: Likewise.
* data/glr.c: Formatting changes.
Use goto instead of fall through.
* doc/bison.texinfo (Destructor Decl): Complete.
ChangeLog
NEWS
data/glr.c
data/lalr1.cc
data/yacc.c
doc/bison.texinfo