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:
Akim Demaille
2020-01-14 06:52:46 +01:00
parent 975be86ccc
commit f06c0d2c05
3 changed files with 5 additions and 7 deletions

View File

@@ -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)