exit(1);
}
Parser ctx = {0};
+ codegen_init(&ctx);
for (; argc; argc--,argv++) {
ctx.input = fopen(*argv,"r");
toplevel(&ctx);
exit(1);
}
Parser ctx = {0};
+ codegen_init(&ctx);
for (; argc; argc--,argv++) {
ctx.input = fopen(*argv,"r");
toplevel(&ctx);
/* Grammar Definition
*****************************************************************************/
AST* toplevel(Parser* p) {
+ extern FILE* yyin;
+ if (yyin != p->input)
+ yyin = p->input;
if (matches(p, T_REQUIRES))
require_list(p);
if (matches(p, T_PROVIDES))