예제 #1
0
 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;
 }
예제 #2
0
 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;
 }