mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 22:33:03 +00:00
* 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:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user