Package org.rascalmpl.interpreter.env

Examples of org.rascalmpl.interpreter.env.Environment


      java.util.List<org.rascalmpl.ast.Expression> producers = this
          .getGenerators();
      int size = producers.size();
      IBooleanResult[] gens = new IBooleanResult[size];
      Environment[] olds = new Environment[size];
      Environment old = __eval.getCurrentEnvt();
      int i = 0;

      try {
        olds[0] = __eval.getCurrentEnvt();
        __eval.pushEnv();
View Full Code Here


 
  @Override
  public void initMatch(Result<IValue> subject){
    super.initMatch(subject);
   
    Environment env = ctx.getCurrentEnvt();
   
    if (type instanceof NonTerminalType && pat.getType(env, null).isSubtypeOf(tf.stringType()) && subject.getValue().getType().isSubtypeOf(Factory.Tree)) {
      if (subject.getValue().getType().isSubtypeOf(type)) {
        subject = ResultFactory.makeResult(tf.stringType(), ctx.getValueFactory().string(TreeAdapter.yield((IConstructor) subject.getValue())), ctx);
        pat.initMatch(subject);
View Full Code Here

    @Override
    public Result<IValue> interpret(IEvaluator<Result<IValue>> __eval) {
      __eval.setCurrentAST(this);
      __eval.notifyAboutSuspension(this);     

      Environment env = __eval.getCurrentEnvt();
      Parameters parameters = getParameters();
      Type formals = parameters.typeOf(env, true, __eval);
      Type returnType = typeOf(env, true, __eval);
      RascalTypeFactory RTF = RascalTypeFactory.getInstance();
View Full Code Here

    public Result<IValue> interpret(IEvaluator<Result<IValue>> __eval) {

      __eval.setCurrentAST(this);
      __eval.notifyAboutSuspension(this);     
     
      Environment old = __eval.getCurrentEnvt();
      try {
        __eval.pushEnv();
        IBooleanResult gen = this.getBacktracker(__eval);
        gen.init();
        if (gen.hasNext() && gen.next()) {
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.env.Environment

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.