BaseAST* aid(int id) { if (aidIgnore(id)) { printAidError("aid", id); return NULL; } else { return aid09(id); } }
static BaseAST* aidWithError(int id, const char* callerMsg) { if (aidIgnore(id)) { printf("%s\n", aidIgnoreError(callerMsg, id)); return NULL; } else { BaseAST* result = aid09(id); if (!result) printf("%s\n", aidNotFoundError(callerMsg, id)); return result; } }
const char* shortLoc(int id) { BaseAST* ast = aid09(id); return ast ? shortLoc(ast) : aidNotFoundError("shortLoc", id); }