+ /* Print shifts. */
+ print_transitions (state, out, true);
+ print_errs (out, state);
+ print_reductions (out, state);
+ /* Print gotos. */
+ print_transitions (state, out, false);
+}
+
+
+/*--------------------------------------.
+| Report all the data on STATE on OUT. |
+`--------------------------------------*/
+
+static void
+print_state (FILE *out, state_t *state)
+{
+ fputs ("\n\n", out);
+ fprintf (out, _("state %d"), state->number);
+ fputc ('\n', out);
+ print_core (out, state);
+ print_actions (out, state);
+ if ((report_flag & report_solved_conflicts)
+ && state->solved_conflicts)
+ {
+ fputc ('\n', out);
+ fputs (state->solved_conflicts, out);
+ }
+}
+\f
+/*-----------------------------------------.
+| Print information on the whole grammar. |
+`-----------------------------------------*/
+
+#define END_TEST(End) \
+do { \
+ if (column + strlen(buffer) > (End)) \
+ { \
+ fprintf (out, "%s\n ", buffer); \
+ column = 3; \
+ buffer[0] = 0; \
+ } \
+} while (0)
+
+
+static void
+print_grammar (FILE *out)
+{
+ symbol_number_t i;