예제 #1
0
 @Override
 public void setEnv(Environment _env) {
   env = _env;
   for (int k = 0; k < value.size(); k++) {
     Object object = value.get(k);
     if (object instanceof Calculable) {
       ((Calculable) object).setEnv(_env);
     }
   }
 }
예제 #2
0
 @Override
 public void compilationCheck() throws CompilationErrorException, PanicException {
   for (int k = 0; k < value.size(); k++) {
     Object object = value.get(k);
     if (object instanceof Calculable) {
       ((Calculable) object).compilationCheck();
     } else {
       interpreter.scriptPanic(
           "Dictionary key must be an instance of Calculable! [" + object.getClass() + "]",
           line_number);
     }
   }
 }