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

Examples of wyvern.tools.typedAST.core.binding.evaluation.VarValueBinding.assign()


  @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


    if (definition == null) {
            vb.assign(null);
      return;
    }
    Value defValue = definition.evaluate(evalEnv);
    vb.assign(defValue);
  }

  @Override
  public Map<String, TypedAST> getChildren() {
    Hashtable<String, TypedAST> children = new Hashtable<>();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.