Package org.rascalmpl.interpreter

Examples of org.rascalmpl.interpreter.TraversalEvaluator


    }

    @Override
    public Result<IValue> interpret(IEvaluator<Result<IValue>> __eval) {
      Result<IValue> subject = this.getSubject().interpret(__eval);
      TraversalEvaluator te = new TraversalEvaluator(__eval);
      try {
        __eval.__pushTraversalEvaluator(te);
       
        IValue val = te.traverse(subject.getValue(),
            blocks, DIRECTION.BottomUp,
            PROGRESS.Continuing, FIXEDPOINT.No);
       
        if (!val.getType().isSubtypeOf(subject.getType())) {
          // this is not a static error but an extra run-time sanity check
View Full Code Here


        fixedpoint = FIXEDPOINT.Yes;
      } else {
        throw new ImplementationError("Unknown strategy " + s);
      }
 
      TraversalEvaluator te = new TraversalEvaluator(__eval);
      try {
        __eval.__pushTraversalEvaluator(te);
        IValue val = te
            .traverse(subject.getValue(), blocks,direction, progress, fixedpoint);
        Type t = val.getType();
        return org.rascalmpl.interpreter.result.ResultFactory.makeResult(t,
            val, __eval);
 
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.TraversalEvaluator

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.