public AST Get(AST i) { Tree.List list = env.Get(this.listName); int index = int.Parse(i.Evaluate(env).Value.ToString()); return(list.Get(index)); }
public override dynamic Evaluate(Env.Environment env) { this.env = env; Tree.List list = env.Get(this.listName); int index = int.Parse(this.index.Evaluate(env).Value.ToString()); this.Value = list.Get(index); return(this.Value); }
public override dynamic Evaluate(Env.Environment env) { Tree.List list = env.Get(this.listName); this.Value = list.Get(this.index.Evaluate(env).Value); return(this.Value); }