コード例 #1
0
ファイル: Environment.cs プロジェクト: HerbM/ForthInterpreter
        public Environment()
        {
            Words  = new WordDictionary();
            Memory = new Memory(100000);

            DataStack        = new DataStack();
            ReturnStack      = new DataStack("Return Stack");
            ControlFlowStack = new ControlFlowStack();
        }
コード例 #2
0
ファイル: Environment.cs プロジェクト: HerbM/ForthInterpreter
        public void Reset()
        {
            // NOT reset: TextBuffer, Words, Memory and LastCompiledWord
            DataStack.Clear();
            ReturnStack.Clear();
            ControlFlowStack.Clear();

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