/// <summary> /// Eval a list of DelimiterNodes and return a Value /// </summary> internal static Value Do(List<DelimiterNode> nodes, IScope scope, ILineRequestor requestor) { ListEval eval = new ListEval(nodes, scope); while (eval.EvalNext(requestor)) ; return eval.GetValue(); }
/// <summary> /// Evaluate/consolidate everything, then turn the results into an array /// </summary> internal static Value DoEvaledArray(List<DelimiterNode> nodes, IScope scope) { ListEval eval = new ListEval(nodes, scope); while (eval.EvalNext(null)) ; List<Value> values = eval.GetValues(); return new ValueArray(values); }