Home | History | Annotate | Download | only in src

Lines Matching defs:out

112 | Print to OUT a representation of CP quoted and escaped for M4.  |
116 quoted_output (FILE *out, char const *cp)
118 fprintf (out, "[[");
123 case '$': fputs ("$][", out); break;
124 case '@': fputs ("@@", out); break;
125 case '[': fputs ("@{", out); break;
126 case ']': fputs ("@}", out); break;
127 default: fputc (*cp, out); break;
130 fprintf (out, "]]");
134 | Print to OUT a representation of STRING quoted and escaped both |
139 string_output (FILE *out, char const *string)
141 quoted_output (out, quotearg_style (c_quoting_style, string));
296 | Output the user actions to OUT. |
300 user_actions_output (FILE *out)
304 fputs ("m4_define([b4_actions], \n[", out);
308 fprintf (out, "b4_case(%d, [b4_syncline(%d, ", r + 1,
310 string_output (out, rules[r].action_location.start.file);
311 fprintf (out, ")\n[ %s]])\n\n", rules[r].action);
313 fputs ("])\n\n", out);
317 | Output the merge functions to OUT. |
321 merger_output (FILE *out)
326 fputs ("m4_define([b4_mergers], \n[[", out);
330 fprintf (out, " case %d: *yy0 = %s (*yy0, *yy1); break;\n",
333 fprintf (out, " case %d: yy0->%s = %s (*yy0, *yy1); break;\n",
336 fputs ("]])\n\n", out);
340 | Output the tokens definition to OUT. |
344 token_definitions_output (FILE *out)
349 fputs ("m4_define([b4_tokens], \n[", out);
382 fprintf (out, "%s[[[%s]], %d]",
386 fputs ("])\n\n", out);
391 | Output the symbol destructors or printers to OUT. |
395 symbol_code_props_output (FILE *out, char const *what,
401 fputs ("m4_define([b4_symbol_", out);
402 fputs (what, out);
403 fputs ("], \n[", out);
414 fprintf (out, "%s[", sep);
416 string_output (out, loc.start.file);
417 fprintf (out, ", %d, ", loc.start.line);
418 quoted_output (out, sym->tag);
419 fprintf (out, ", %d, [[%s]]", sym->number, code);
422 fputs (", ", out);
423 quoted_output (out, sym->type_name);
425 fputc (']', out);
428 fputs ("])\n\n", out);
435 /* Figure out the actions for the specified state, indexed by
441 /* Figure out what to do after reducing with each rule, depending on
470 parser, so we could avoid accidents by not writing them out in
484 muscles_output (FILE *out)
486 fputs ("m4_init()\n", out);
488 user_actions_output (out);
489 merger_output (out);
490 token_definitions_output (out);
491 symbol_code_props_output (out, "destructors", &symbol_destructor_get);
492 symbol_code_props_output (out, "printers", &symbol_printer_get);
494 muscles_m4_output (out);
593 FILE *out = fdopen (filter_fd[1], "w");
594 if (! out)
597 muscles_output (out);
598 xfclose (out);