Beispiel #1
0
 public object apply(TxtLocation loc, Closure fn, object[] args)
 {
     try {
         return fn.fn(args);
     } catch (Exception e) {
         throw new InterpreterException(loc, "exception occured in method: " + fn.fn.Method.Name, e);
     }
 }
Beispiel #2
0
 public void AddFn(Symbol sym, Closure.Fn fn)
 {
     definitions.Add(sym, new Closure(fn));
 }