mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
* src/state.h, src/state.c (transitions_t): Holds state_t*'s, not
state_number_t. (errs_t): symbol_t*, not symbol_number_t. (reductions_t): rule_t*, not rule_number_t. (FOR_EACH_SHIFT): New. * src/LR0.c, src/conflicts.c, src/lalr.c, src/output.c * src/print.c, src/print_graph.c: Adjust.
This commit is contained in:
@@ -137,17 +137,17 @@ print_actions (state_t *state, const char *node_name)
|
||||
for (i = 0; i < transitions->num; i++)
|
||||
if (!TRANSITION_IS_DISABLED (transitions, i))
|
||||
{
|
||||
state_number_t state1 = transitions->states[i];
|
||||
symbol_number_t symbol = states[state1]->accessing_symbol;
|
||||
state_t *state1 = transitions->states[i];
|
||||
symbol_number_t symbol = state1->accessing_symbol;
|
||||
|
||||
new_edge (&edge);
|
||||
|
||||
if (state->number > state1)
|
||||
if (state->number > state1->number)
|
||||
edge.type = back_edge;
|
||||
open_edge (&edge, fgraph);
|
||||
/* The edge source is the current node. */
|
||||
edge.sourcename = node_name;
|
||||
sprintf (buff, "%d", state1);
|
||||
sprintf (buff, "%d", state1->number);
|
||||
edge.targetname = buff;
|
||||
/* Shifts are blue, gotos are green, and error is red. */
|
||||
if (TRANSITION_IS_ERROR (transitions, i))
|
||||
|
||||
Reference in New Issue
Block a user