mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +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:
@@ -660,7 +660,7 @@ Entering state 2
|
||||
Reading a token: Next token is token NUMBER (30)
|
||||
Reducing stack by rule 2 (line 35):
|
||||
-> $$ = nterm @1 (20)
|
||||
Stack now 2 0
|
||||
Stack now 0 2
|
||||
Entering state 4
|
||||
Next token is token NUMBER (30)
|
||||
Shifting token NUMBER (30)
|
||||
|
||||
Reference in New Issue
Block a user