Пример #1
0
 public override void Run(ref InterpreterState state)
 {
     try
     {
         if (isUserFunc)
         {
             userFunc.Run(ref state, ParseArgs(args, state));
         }
         else
         {
             state.ReturnValue = func.Run(ParseArgs(args, state));
         }
     }
     catch (Exception e)
     {
         throw new InterpreterException($"Error in {name}", e);
     }
 }