static void getvar(const char *name) { Symbol *symbol = apex_getsymbol(name); if (symbol == NULL) { apex_error("undefined variable: '%s'", name); return; } apex_addop(OP_VAR, symbol->offset); }
Uint apex_loadfile(const char *path) { yyin = fopen(path, "r"); if (yyin == NULL) { apex_error("failed to read '%s'", path); return 0; } return 1; }
void yyerror(char *message) { apex_error("%s: unexpeced '%s'", message, yytext); parse_error = 1; }