- if (!shiftp && !redp)
- {
-#if 0
- if (final_state == state)
- fprintf (f, " $default\taccept\n");
- else
- fprintf (f, " NO ACTIONS\n");
-#endif
- return;
- }
-
- if (shiftp)
- {
- k = shiftp->nshifts;
-
- for (i = 0; i < k; i++)
- {
- if (!shiftp->shifts[i])
- continue;
- state1 = shiftp->shifts[i];
- symbol = accessing_symbol[state1];
-
- if (ISVAR (symbol))
- break;
-
- {
- new_edge (&edge);
-
- if (state > state1)
- edge.type = back_edge;
- open_edge (&edge, &graph_obstack);
- edge.sourcename = node->title;
- sprintf (buff, "%d", state1);
- edge.targetname = buff;
- edge.color = (symbol == 0) ? blue : red;
- /* FIXME: Be aware that quote uses static memory. The string
- must be output immediately (which is the case here). */
- edge.label = tags[symbol] ? quote (tags[symbol]) : NULL;
- output_edge (&edge, &graph_obstack);
- close_edge (&graph_obstack);
- }
- }
- }
- else
- {
- i = 0;
- k = 0;
- }