mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +00:00
c++: display the stack in the same order as in C
Currently the C and C++ parse traces differ in the order in which the stack is displayed: bottom up in C, top down in C++. Let's stick to the C order. * data/skeletons/stack.hh (stack::iterator, stack::const_iterator) (begin, end): Be forward, not backward.
This commit is contained in:
@@ -1425,7 +1425,6 @@ b4_error_verbose_if([state_type yystate, const symbol_type& yyla],
|
||||
]b4_token_table_if([[#if ]b4_api_PREFIX[DEBUG]])[
|
||||
]b4_integral_parser_table_define([rline], [b4_rline])[
|
||||
|
||||
// Print the state stack on the debug stream.
|
||||
void
|
||||
]b4_parser_class[::yystack_print_ ()
|
||||
{
|
||||
@@ -1438,7 +1437,6 @@ b4_error_verbose_if([state_type yystate, const symbol_type& yyla],
|
||||
*yycdebug_ << '\n';
|
||||
}
|
||||
|
||||
// Report on the debug stream that the rule \a yyrule is going to be reduced.
|
||||
void
|
||||
]b4_parser_class[::yy_reduce_print_ (int yyrule)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user