+ /* Nothing to report. */
+ if (!width)
+ return;
+
+ fputc ('\n', out);
+ width += 2;
+
+ /* Report lookaheads and shifts. */
+ for (i = 0; i < transitions->num; i++)
+ if (!TRANSITION_IS_DISABLED (transitions, i)
+ && TRANSITION_IS_SHIFT (transitions, i) == display_transitions_p)
+ {
+ symbol_t *symbol = symbols[TRANSITION_SYMBOL (transitions, i)];
+ const char *tag = symbol->tag;
+ state_t *state1 = transitions->states[i];
+ int j;
+
+ fprintf (out, " %s", tag);
+ for (j = width - strlen (tag); j > 0; --j)
+ fputc (' ', out);
+ if (display_transitions_p)
+ fprintf (out, _("shift, and go to state %d\n"), state1->number);
+ else
+ fprintf (out, _("go to state %d\n"), state1->number);
+ }