Exemple #1
0
        public override object Call(AstInterpreter interpreter, IEnumerable <object> arguments)
        {
            interpreter.Reset();

            return(null);
        }
Exemple #2
0
        /// <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();
        }