Home | History | Annotate | Download | only in src

Lines Matching refs:level

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>");
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,
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>");
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>");
356 print_state (FILE *out, int level, state *s)
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>");
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)
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);
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)
430 for (i = 0; i < level; i++)
435 xml_puts (FILE *out, int level, char const *s)
437 xml_indent (out, level);
443 xml_printf (FILE *out, int level, char const *fmt, ...)
447 xml_indent (out, level);
500 int level = 0;
505 xml_printf (out, level,
513 xml_printf (out, level + 1, "<filename>%s</filename>",
517 print_grammar (out, level + 1);
524 xml_puts (out, level + 1, "<automaton>");
526 print_state (out, level + 2, states[i]);
527 xml_puts (out, level + 1, "</automaton>");