Exemplo n.º 1
0
  private boolean funDefined() {
    for (Symbol f : symbols.values()) {
      if (f.isFunction() && !f.defined) return false;
    }

    boolean ret = true;
    for (SymbolTable baby : this.children) {
      ret = ret && baby.funDefined();
    }

    return ret;
  }
Exemplo n.º 2
0
 /**
  * Checks whether all declared functions are also defined (together with the declaration, or later
  * in the code).
  *
  * @return Are all functions defined
  */
 public boolean allFunctionsDefined() {
   SymbolTable root = getRoot();
   return root.funDefined();
 }