Home | History | Annotate | Download | only in src

Lines Matching defs:out

56 print_core (FILE *out, int level, state *s)
68 xml_puts (out, level, "<itemset/>");
72 xml_puts (out, level, "<itemset>");
97 xml_printf (out, level + 1,
101 out, level + 2);
102 xml_puts (out, level + 1, "</item>");
109 xml_printf (out, level + 1,
115 xml_puts (out, level, "</itemset>");
121 | OUT. |
125 print_transitions (state *s, FILE *out, int level)
139 xml_puts (out, level, "<transitions/>");
144 xml_puts (out, level, "<transitions>");
154 xml_printf (out, level + 1,
167 xml_printf (out, level + 1,
172 xml_puts (out, level, "</transitions>");
181 print_errs (FILE *out, int level, state *s)
193 xml_puts (out, level, "<errors/>");
198 xml_puts (out, level, "<errors>");
203 xml_printf (out, level + 1,
207 xml_puts (out, level, "</errors>");
218 print_reduction (FILE *out, int level, char const *lookahead_token,
222 xml_printf (out, level,
228 xml_printf (out, level,
236 | Report on OUT the reduction actions of S. |
240 print_reductions (FILE *out, int level, state *s)
250 xml_puts (out, level, "<reductions/>");
290 xml_puts (out, level, "<reductions/>");
294 xml_puts (out, level, "<reductions>");
309 print_reduction (out, level + 1, symbols[i]->tag,
318 print_reduction (out, level + 1, symbols[i]->tag,
321 print_reduction (out, level + 1, symbols[i]->tag,
328 print_reduction (out, level + 1,
331 xml_puts (out, level, "</reductions>");
336 | Report on OUT all the actions (shifts, gotos, reductions, and |
341 print_actions (FILE *out, int level, state *s)
343 xml_puts (out, level, "<actions>");
344 print_transitions (s, out, level + 1);
345 print_errs (out, level + 1, s);
346 print_reductions (out, level + 1, s);
347 xml_puts (out, level, "</actions>");
352 | Report all the data on S on OUT. |
356 print_state (FILE *out, int level, state *s)
358 fputc ('\n', out);
359 xml_printf (out, level, "<state number=\"%d\">", s->number);
360 print_core (out, level + 1, s);
361 print_actions (out, level + 1, s);
364 xml_puts (out, level + 1, "<solved-conflicts>");
365 fputs (s->solved_conflicts_xml, out);
366 xml_puts (out, level + 1, "</solved-conflicts>");
369 xml_puts (out, level + 1, "<solved-conflicts/>");
370 xml_puts (out, level, "</state>");
379 print_grammar (FILE *out, int level)
383 fputc ('\n', out);
384 xml_puts (out, level, "<grammar>");
385 grammar_rules_print_xml (out, level);
388 xml_puts (out, level + 1, "<terminals>");
395 xml_indent (out, level + 2);
396 fprintf (out,
403 fprintf (out, " prec=\"%d\"", precedence);
405 fprintf (out, " assoc=\"%s\"", assoc_to_string (associativity) + 1);
406 fputs ("/>\n", out);
408 xml_puts (out, level + 1, "</terminals>");
411 xml_puts (out, level + 1, "<nonterminals>");
415 xml_printf (out, level + 2,
422 xml_puts (out, level + 1, "</nonterminals>");
423 xml_puts (out, level, "</grammar>");
427 xml_indent (FILE *out, int level)
431 fputs (" ", out);
435 xml_puts (FILE *out, int level, char const *s)
437 xml_indent (out, level);
438 fputs (s, out);
439 fputc ('\n', out);
443 xml_printf (FILE *out, int level, char const *fmt, ...)
447 xml_indent (out, level);
450 vfprintf (out, fmt, arglist);
453 fputc ('\n', out);
502 FILE *out = xfopen (spec_xml_file, "w");
504 fputs ("<?xml version=\"1.0\"?>\n\n", out);
505 xml_printf (out, level,
512 fputc ('\n', out);
513 xml_printf (out, level + 1, "<filename>%s</filename>",
517 print_grammar (out, level + 1);
523 fputc ('\n', out);
524 xml_puts (out, level + 1, "<automaton>");
526 print_state (out, level + 2, states[i]);
527 xml_puts (out, level + 1, "</automaton>");
532 xml_puts (out, 0, "</bison-xml-report>");
537 xfclose (out);