pindent 191 tools/compile.c static void begin(void) { indent++; pindent(); fprintf(output, "{"); } pindent 192 tools/compile.c static void define(const char* const def, const char* const v) { pindent(); fprintf(output, " #define %s %s\n", def, v); } pindent 193 tools/compile.c static void undef(const char* const def) { pindent(); fprintf(output, " #undef %s\n", def); } pindent 194 tools/compile.c static void save(int n) { nl(); pindent(); fprintf(output, " int yypos%d= G->pos, yythunkpos%d= G->thunkpos;\n", n, n); } pindent 195 tools/compile.c static void label(int n) { nl(); pindent(); fprintf(output, " l%d:\n", n); } /* Note: ensure that there is an expr following */ pindent 196 tools/compile.c static void jump(int n) { pindent(); fprintf(output, " goto l%d;", n); } pindent 197 tools/compile.c static void restore(int n) { pindent(); fprintf(output, " G->pos= yypos%d; G->thunkpos= yythunkpos%d;\n", n, n); } pindent 198 tools/compile.c static void end(void) { pindent(); indent--; fprintf(output, "}\n"); } pindent 211 tools/compile.c pindent(); fprintf(output, " if (!yymatchDot(G)) goto l%d;\n", ko); pindent 215 tools/compile.c pindent(); fprintf(output, " if (!yy_%s(G)) ", node->name.rule->rule.name); pindent 216 tools/compile.c pindent(); fprintf(output, " goto l%d;\n", ko); pindent 218 tools/compile.c pindent(); fprintf(output, " yyDo(G, yySet, %d, 0, \"yySet %s\");\n", pindent 226 tools/compile.c pindent(); pindent 245 tools/compile.c pindent(); pindent 253 tools/compile.c pindent(); fprintf(output, " yyDo(G, yy%s, G->begin, G->end, \"yy%s\");\n", pindent 258 tools/compile.c pindent(); fprintf(output, " yyText(G, G->begin, G->end);\n"); pindent 261 tools/compile.c pindent(); fprintf(output, " if (!(%s)) goto l%d;\n", node->action.text, ko); pindent 273 tools/compile.c pindent(); fprintf(output, " yyText(G, G->begin, G->end);\n"); pindent 276 tools/compile.c pindent(); fprintf(output, " %s;\n", node->error.text); pindent 302 tools/compile.c pindent(); fprintf(output, " ;\n"); pindent 346 tools/compile.c pindent(); fprintf(output, " ;\n"); pindent 402 tools/compile.c pindent(); fprintf(output, " #define %s G->val[%d]\n", node->variable.name, --count);