* src/print.c (print_actions): Output the handling of `$' as the

traces do: shifting the token EOF.  Before EOF was treated as a
nonterminal.
* tests/regression.at: Adjust some tests.
* src/print_graph.c (print_core): Complete the set of items via
closure.  The next-to-final and final states are still unsatisfying,
but that's to be addressed elsewhere.
No longer output the rule numbers, but do output the state number.
A single loop for the shifts + gotos is enough, but picked a
distinct color for each.
(print_graph): Initialize and finalize closure.
This commit is contained in:
Akim Demaille
2001-12-13 11:01:51 +00:00
parent 107f7dfbd0
commit 2e729273d6
4 changed files with 38 additions and 42 deletions

View File

@@ -105,7 +105,7 @@ state 2
exp -> exp . OP exp (rule 1)
$ go to state 5
$ shift, and go to state 5
OP shift, and go to state 3
@@ -134,7 +134,7 @@ state 4
state 5
$ go to state 6
$ shift, and go to state 6
@@ -209,7 +209,7 @@ state 2
exp -> exp . OP exp (rule 1)
$ go to state 5
$ shift, and go to state 5
OP shift, and go to state 3
@@ -237,7 +237,7 @@ state 4
state 5
$ go to state 6
$ shift, and go to state 6
@@ -376,7 +376,7 @@ state 5
state 6
$ go to state 7
$ shift, and go to state 7