]> git.saurik.com Git - bison.git/commit
Augment the similarity between GLR and LALR traces.
authorAkim Demaille <akim@epita.fr>
Sat, 16 Nov 2002 12:32:27 +0000 (12:32 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 16 Nov 2002 12:32:27 +0000 (12:32 +0000)
commitb0937b2259b424f74f79ceafdc1a110af35d405a
tree28acd2bbf790c1bb96890f6689dd0567ffcfbbb3
parentc5e3e5105512fe14bc2c7d5fdcb49018712403e8
Augment the similarity between GLR and LALR traces.
* data/yacc.c (yy_stack_print, YY_STACK_PRINT, yy_reduce_print)
(YY_REDUCE_PRINT): New.
(yyparse): Use them.
* data/glr.c (yy_reduce_print): Use YYFPRINTF, no need for
YYDPRINT here.
(yyglrReduce, yyrecoverParseError, yyparse): Don't report the
state reached after the reduction/recovery, since...
(yyparse, yyprocessOneStack): Report the state we are entering in.
ChangeLog
data/glr.c
data/yacc.c