예제 #1
0
        public string TextBoxPrint()
        {
            string s = "state id: " + id + "\n" + "ExeStack: {";

            for (int i = 0; i < exeStack.GetLength(); i++)
            {
                s = s + exeStack.Get(i).ToStr() + " | ";
            }
            s = s + "} \n SymTbl: {";
            for (int i = 0; i < symTable.ElementAt(0).GetLength(); i++)
            {
                s = s + symTable.ElementAt(0).Get(i).ToStr() + " ; ";
            }
            s = s + "} \n List: {";
            for (int i = 0; i < output.Size(); i++)
            {
                s = s + output.Get(i) + " ; ";
            }
            s = s + "}\n" + "Heap: {";
            for (int i = 0; i < heap.Size(); i++)
            {
                s = s + heap.Gett(i).content + " ; ";
            }
            s = s + "}\n\n";
            return(s);
        }