예제 #1
0
  public Object visit(Program program) {
    Object temp;
    for (ICClass icClass : program.getClasses()) {
      temp = icClass.accept(this);
      if (temp != null) {
        return temp;
      }
    }

    return null;
  }
예제 #2
0
 @Override
 public Object visit(Program program) throws SemanticError {
   for (ICClass icClass : program.getClasses()) icClass.accept(this);
   return null;
 }