glr: display line numbers in traces

Suggested by Lars Maier.

* data/skeletons/glr.c: Also display rule locations when rules are
deferred, and rejected.
This commit is contained in:
Akim Demaille
2019-10-11 07:06:39 +02:00
parent 0c56c195e0
commit 2c20ae9b41
3 changed files with 9 additions and 7 deletions

View File

@@ -1711,10 +1711,10 @@ Reading a token: Now at end of input.
Stack 0 Entering state 7
Now at end of input.
Splitting off stack 1 from 0.
Reduced stack 1 by rule #2; action deferred. Now in state 2.
Reduced stack 1 by rule 2 (line 24); action deferred. Now in state 2.
Stack 1 Entering state 2
Now at end of input.
Reduced stack 0 by rule #1; action deferred. Now in state 2.
Reduced stack 0 by rule 1 (line 24); action deferred. Now in state 2.
Merging stack 0 into stack 1.
Stack 1 Entering state 2
Now at end of input.