public override object Interpret(SucoEnvironment env, int?[] grid) { try { return(env.GetValue(Name)); } catch (SucoTempCompileException tce) { throw new SucoCompileException(tce.Message, StartIndex, EndIndex); } }
public override SucoExpression Optimize(SucoEnvironment env, int?[] givens) { var val = env.GetValue(Name); return(val == null ? this : new SucoConstant(StartIndex, EndIndex, Type, val)); }