Package org.rascalmpl.interpreter

Examples of org.rascalmpl.interpreter.AssignableEvaluator


            .__getTf().valueType()
            : nodeType.getFieldType(i);
        IValue arg = node.get(i);
        Result<IValue> result = org.rascalmpl.interpreter.result.ResultFactory
            .makeResult(argType, arg, __eval.__getEval());
        AssignableEvaluator ae = new AssignableEvaluator(__eval
            .__getEnv(), null, result, __eval.__getEval());
        Result<IValue> argResult = arguments.get(i).assignment(ae);
        results[i] = argResult.getValue();
        resultTypes[i] = argType;
      }
View Full Code Here


      for (int i = 0; i < arguments.size(); i++) {
        Type argType = tupleType.getFieldType(i);
        IValue arg = tuple.get(i);
        Result<IValue> result = org.rascalmpl.interpreter.result.ResultFactory
            .makeResult(argType, arg, __eval.__getEval());
        AssignableEvaluator ae = new AssignableEvaluator(__eval
            .__getEnv(), null, result, __eval.__getEval());
        Result<IValue> argResult = arguments.get(i).assignment(ae);
        results[i] = argResult.getValue();
        resultTypes[i] = argResult.getType();
      }
View Full Code Here

      Result<IValue> right = this.getStatement().interpret(__eval);
//      if(this.getAssignable().isSlice() && !this.getOperator().isDefault()){
//        throw new UnsupportedOperation("Slicing assignment only implemented for simple assignment operator (=)", __eval.getCurrentAST());
//      }
      return this.getAssignable().assignment(
          new AssignableEvaluator(__eval.getCurrentEnvt(), this
              .getOperator(), right, __eval));

    }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.AssignableEvaluator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.