示例#1
0
 public override object Interpret(SucoEnvironment env, int?[] grid)
 {
     try
     {
         return(env.GetValue(Name));
     }
     catch (SucoTempCompileException tce)
     {
         throw new SucoCompileException(tce.Message, StartIndex, EndIndex);
     }
 }
示例#2
0
        public override SucoExpression Optimize(SucoEnvironment env, int?[] givens)
        {
            var val = env.GetValue(Name);

            return(val == null ? this : new SucoConstant(StartIndex, EndIndex, Type, val));
        }