]> git.saurik.com Git - bison.git/commit
Generalize the display of semantic values and locations in traces.
authorAkim Demaille <akim@epita.fr>
Wed, 16 Nov 2005 14:20:48 +0000 (14:20 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 16 Nov 2005 14:20:48 +0000 (14:20 +0000)
commitd1ff7a7cc62900b658ee4bb8cb2a2c6a1b0a2bea
treecbad6df1f78d5d5b013f81750ec8f1a74ed1e8da
parent6de5398de3e480673aeb9b54f15c7514fd3ccc84
Generalize the display of semantic values and locations in traces.
* data/glr.c (yy_reduce_print): Fix indices (again).
* data/c++.m4 (b4_rhs_value, b4_rhs_location): Don't expect
literal integers.
* data/lalr1.cc (yyreduce_print): Rename as...
(yy_reduce_print): this.
Display values and locations.
* data/yacc.c (yy_reduce_print): Likewise.
(YY_REDUCE_PRINT): Adjust to pass the required arguments.
(yysymprint): Move higher to be visible from yy_reduce_print).
(yyparse): Adjust.
* tests/calc.at: Adjust the expected length of the traces.
ChangeLog
data/c++.m4
data/glr.c
data/lalr1.cc
data/yacc.c
tests/calc.at