Ejemplo n.º 1
0
BaseAST* aid(int id) {
  if (aidIgnore(id)) {
    printAidError("aid", id);
    return NULL;
  } else {
    return aid09(id);
  }
}
Ejemplo n.º 2
0
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;
  }
}
Ejemplo n.º 3
0
const char* shortLoc(int id) {
  BaseAST* ast = aid09(id);
  return ast ? shortLoc(ast) : aidNotFoundError("shortLoc", id);
}