public override EvalType Evaluate(EvalContext context, params ExprNode[] p) { context.DoOutputText(context.FunctionList.functions.Count + " functions defined."); foreach (var f in context.FunctionList.functions) { context.DoOutputText(f.Key + ":" + f.Value.Name + "=>" + f.Value); } return null; }
public override EvalType Evaluate(EvalContext context, params ExprNode[] p) { if (p.Length != 1) throw new Exception("Invalid number of parameters."); context.DoOutputText(p[0].Evaluate(context).ToString()); return null; }