Lines Matching refs:level

56 print_core (FILE *out, int level, state *s)  in print_core()  argument
68 xml_puts (out, level, "<itemset/>"); in print_core()
72 xml_puts (out, level, "<itemset>"); in print_core()
97 xml_printf (out, level + 1, in print_core()
101 out, level + 2); in print_core()
102 xml_puts (out, level + 1, "</item>"); in print_core()
109 xml_printf (out, level + 1, in print_core()
115 xml_puts (out, level, "</itemset>"); in print_core()
125 print_transitions (state *s, FILE *out, int level) in print_transitions() argument
139 xml_puts (out, level, "<transitions/>"); in print_transitions()
144 xml_puts (out, level, "<transitions>"); in print_transitions()
154 xml_printf (out, level + 1, in print_transitions()
167 xml_printf (out, level + 1, in print_transitions()
172 xml_puts (out, level, "</transitions>"); in print_transitions()
181 print_errs (FILE *out, int level, state *s) in print_errs() argument
193 xml_puts (out, level, "<errors/>"); in print_errs()
198 xml_puts (out, level, "<errors>"); in print_errs()
203 xml_printf (out, level + 1, in print_errs()
207 xml_puts (out, level, "</errors>"); in print_errs()
218 print_reduction (FILE *out, int level, char const *lookahead_token, in print_reduction() argument
222 xml_printf (out, level, in print_reduction()
228 xml_printf (out, level, in print_reduction()
240 print_reductions (FILE *out, int level, state *s) in print_reductions() argument
250 xml_puts (out, level, "<reductions/>"); in print_reductions()
290 xml_puts (out, level, "<reductions/>"); in print_reductions()
294 xml_puts (out, level, "<reductions>"); in print_reductions()
309 print_reduction (out, level + 1, symbols[i]->tag, in print_reductions()
318 print_reduction (out, level + 1, symbols[i]->tag, in print_reductions()
321 print_reduction (out, level + 1, symbols[i]->tag, in print_reductions()
328 print_reduction (out, level + 1, in print_reductions()
331 xml_puts (out, level, "</reductions>"); in print_reductions()
341 print_actions (FILE *out, int level, state *s) in print_actions() argument
343 xml_puts (out, level, "<actions>"); in print_actions()
344 print_transitions (s, out, level + 1); in print_actions()
345 print_errs (out, level + 1, s); in print_actions()
346 print_reductions (out, level + 1, s); in print_actions()
347 xml_puts (out, level, "</actions>"); in print_actions()
356 print_state (FILE *out, int level, state *s) in print_state() argument
359 xml_printf (out, level, "<state number=\"%d\">", s->number); in print_state()
360 print_core (out, level + 1, s); in print_state()
361 print_actions (out, level + 1, s); in print_state()
364 xml_puts (out, level + 1, "<solved-conflicts>"); in print_state()
366 xml_puts (out, level + 1, "</solved-conflicts>"); in print_state()
369 xml_puts (out, level + 1, "<solved-conflicts/>"); in print_state()
370 xml_puts (out, level, "</state>"); in print_state()
379 print_grammar (FILE *out, int level) in print_grammar() argument
384 xml_puts (out, level, "<grammar>"); in print_grammar()
385 grammar_rules_print_xml (out, level); in print_grammar()
388 xml_puts (out, level + 1, "<terminals>"); in print_grammar()
395 xml_indent (out, level + 2); in print_grammar()
408 xml_puts (out, level + 1, "</terminals>"); in print_grammar()
411 xml_puts (out, level + 1, "<nonterminals>"); in print_grammar()
415 xml_printf (out, level + 2, in print_grammar()
422 xml_puts (out, level + 1, "</nonterminals>"); in print_grammar()
423 xml_puts (out, level, "</grammar>"); in print_grammar()
427 xml_indent (FILE *out, int level) in xml_indent() argument
430 for (i = 0; i < level; i++) in xml_indent()
435 xml_puts (FILE *out, int level, char const *s) in xml_puts() argument
437 xml_indent (out, level); in xml_puts()
443 xml_printf (FILE *out, int level, char const *fmt, ...) in xml_printf() argument
447 xml_indent (out, level); in xml_printf()
500 int level = 0; in print_xml() local
505 xml_printf (out, level, in print_xml()
513 xml_printf (out, level + 1, "<filename>%s</filename>", in print_xml()
517 print_grammar (out, level + 1); in print_xml()
524 xml_puts (out, level + 1, "<automaton>"); in print_xml()
526 print_state (out, level + 2, states[i]); in print_xml()
527 xml_puts (out, level + 1, "</automaton>"); in print_xml()