Lines Matching refs:out
91 rule_lhs_print (rule *r, symbol *previous_lhs, FILE *out) in rule_lhs_print() argument
93 fprintf (out, " %3d ", r->number); in rule_lhs_print()
96 fprintf (out, "%s:", r->lhs->tag); in rule_lhs_print()
102 fputc (' ', out); in rule_lhs_print()
103 fputc ('|', out); in rule_lhs_print()
128 rule_rhs_print (rule *r, FILE *out) in rule_rhs_print() argument
134 fprintf (out, " %s", symbols[*rp]->tag); in rule_rhs_print()
135 fputc ('\n', out); in rule_rhs_print()
139 fprintf (out, " /* %s */\n", _("empty")); in rule_rhs_print()
149 rule_print (rule *r, FILE *out) in rule_print() argument
151 fprintf (out, "%s:", r->lhs->tag); in rule_print()
152 rule_rhs_print (r, out); in rule_print()
161 ritem_print (FILE *out) in ritem_print() argument
164 fputs ("RITEM\n", out); in ritem_print()
167 fprintf (out, " %s", symbols[ritem[i]]->tag); in ritem_print()
169 fprintf (out, " (rule %d)\n", item_number_as_rule_number (ritem[i])); in ritem_print()
170 fputs ("\n\n", out); in ritem_print()
200 grammar_rules_partial_print (FILE *out, const char *title, in grammar_rules_partial_print() argument
213 fprintf (out, "%s\n\n", title); in grammar_rules_partial_print()
215 fputc ('\n', out); in grammar_rules_partial_print()
217 rule_lhs_print (&rules[r], previous_lhs, out); in grammar_rules_partial_print()
218 rule_rhs_print (&rules[r], out); in grammar_rules_partial_print()
222 fputs ("\n\n", out); in grammar_rules_partial_print()
231 grammar_rules_print (FILE *out) in grammar_rules_print() argument
233 grammar_rules_partial_print (out, _("Grammar"), rule_useful_p); in grammar_rules_print()
242 grammar_dump (FILE *out, const char *title) in grammar_dump() argument
244 fprintf (out, "%s\n\n", title); in grammar_dump()
245 fprintf (out, in grammar_dump()
250 fprintf (out, "Variables\n---------\n\n"); in grammar_dump()
253 fprintf (out, "Value Sprec Sassoc Tag\n"); in grammar_dump()
256 fprintf (out, "%5d %5d %5d %s\n", in grammar_dump()
260 fprintf (out, "\n\n"); in grammar_dump()
263 fprintf (out, "Rules\n-----\n\n"); in grammar_dump()
266 fprintf (out, "Num (Prec, Assoc, Useful, Ritem Range) Lhs -> Rhs (Ritem range) [Num]\n"); in grammar_dump()
276 fprintf (out, "%3d (%2d, %2d, %2d, %2u-%2u) %2d ->", in grammar_dump()
286 fprintf (out, " %3d", *rp); in grammar_dump()
287 fprintf (out, " [%d]\n", item_number_as_rule_number (*rp)); in grammar_dump()
290 fprintf (out, "\n\n"); in grammar_dump()
292 fprintf (out, "Rules interpreted\n-----------------\n\n"); in grammar_dump()
297 fprintf (out, "%-5d ", r); in grammar_dump()
298 rule_print (&rules[r], out); in grammar_dump()
301 fprintf (out, "\n\n"); in grammar_dump()