Package wyvern.tools.typedAST.core.binding.evaluation

Examples of wyvern.tools.typedAST.core.binding.evaluation.VarValueBinding


    return old.extend(binding);
  }

  @Override
  public Environment extendWithValue(Environment old) {
    Environment newEnv = old.extend(new VarValueBinding(binding.getName(), binding.getType(), null));
    return newEnv;
    //Environment newEnv = old.extend(new ValueBinding(binding.getName(), defValue));
  }
View Full Code Here


    //Environment newEnv = old.extend(new ValueBinding(binding.getName(), defValue));
  }

  @Override
  public void evalDecl(Environment evalEnv, Environment declEnv) {
    VarValueBinding vb = (VarValueBinding) declEnv.lookup(binding.getName());
    if (definition == null) {
            vb.assign(null);
      return;
    }
    Value defValue = definition.evaluate(evalEnv);
    vb.assign(defValue);
  }
View Full Code Here

TOP

Related Classes of wyvern.tools.typedAST.core.binding.evaluation.VarValueBinding

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.