mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 21:33:04 +00:00
java: fix reduction traces.
* data/lalr1.java (yy_reduce_print): Fix state index. Reported by Tim Landscheidt.
This commit is contained in:
@@ -848,7 +848,7 @@ m4_popdef([b4_at_dollar])])dnl
|
||||
/* The symbols being reduced. */
|
||||
for (int yyi = 0; yyi < yynrhs; yyi++)
|
||||
yy_symbol_print (" $" + (yyi + 1) + " =",
|
||||
yystos_[yystack.stateAt(yyi + 1 - yynrhs)],
|
||||
yystos_[yystack.stateAt(yynrhs - (yyi + 1))],
|
||||
]b4_rhs_value(yynrhs, yyi + 1)b4_locations_if([,
|
||||
b4_rhs_location(yynrhs, yyi + 1)])[);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user