public override object Call(AstInterpreter interpreter, IEnumerable <object> arguments) { interpreter.Reset(); return(null); }
/// <summary> /// Reset interpreter environment (mainly used for testing) /// </summary> /// <param name="promptMode">If true then variables can be redeclared; otherwise that throws a run time exception</param> public static void Reset(bool promptMode = false) { Environment.PromptMode = promptMode; astInterpreter.Reset(); }