예제 #1
0
        public Environment()
        {
            Words  = new WordDictionary();
            Memory = new Memory(100000);

            DataStack        = new DataStack();
            ReturnStack      = new DataStack("Return Stack");
            ControlFlowStack = new ControlFlowStack();
        }
예제 #2
0
        public void Reset()
        {
            // NOT reset: TextBuffer, Words, Memory and LastCompiledWord
            DataStack.Clear();
            ReturnStack.Clear();
            ControlFlowStack.Clear();

            ActiveExitWordName     = null;
            IsCompileMode          = false;
            CompilingWord          = null;
            IsMultilineCommentMode = false;
        }