public object Invoke(Environment e, object[] args) { foreach (object o in argnames) { // FIXME e.Set(o.ToString(), e.GetObject(o.ToString())); } return e.Run(Pieces.ToArray()); // TODO: remove args from env }
public override object Execute(Environment e, object[] args) { e.Set(varname, e.Run(Pieces.ToArray())); return null; }
public override object Execute(Environment e, object[] args) { // create the function e.Set(funcName, new Function(Invoke)); return null; }
public override object Execute(Environment e, object[] args) { var = var.Trim(); int _v = 0; object o = null; e.Set(var, _v); for (; _v < max; _v += incremental) { e.Set(var, _v); o = e.Run(Pieces.ToArray()); } e.Set(var, null); return o; }