예제 #1
0
 @Override
 public IValue interpret(Context context) throws PromptoError {
   IType srcType = source.check(context);
   IType elemType = srcType.checkIterator(context);
   return evaluateItemIterator(elemType, context);
 }
예제 #2
0
 @Override
 public IType check(Context context) throws SyntaxError {
   IType srcType = source.check(context);
   IType elemType = srcType.checkIterator(context);
   return checkItemIterator(elemType, context);
 }