Exemple #1
0
 public override string ToString()
 {
     return("\tProgram State\nExecution Stack\n" + ExeStack.ToString() +
            "\n\nTable of Symbols: " + SymTable.ToString() +
            "\n\nOutput: " + Output.ToString() +
            "\n\nFile Table: " + FileTable.ToString() +
            "\n\n\n\n");
 }
Exemple #2
0
 public override string ToString()
 {
     return
         ("ExeStack:\n" + ExeStack.ToString() +
          "SymLink:\n" + SymTable.ToString() +
          "FileTable:\n" + FileTable.ToString() +
          "Heap:\n" + Heap.ToString() +
          "Output:\n" + Output);
 }
Exemple #3
0
        public override string ToString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder
            .AppendLine("Execution Stack:")
            .AppendLine(_exeStack.ToString())
            .AppendLine("Symtable:")
            .AppendLine(_symTable.ToString())
            .AppendLine("Output:")
            .AppendLine(_output.ToString())
            .AppendLine("FileTable:")
            .AppendLine(_fileTable.ToString())
            .AppendLine("Program:")
            .AppendLine(_program.toString())
            .AppendLine()
            .AppendLine()
            .AppendLine()
            .AppendLine();
            return(stringBuilder.ToString());
        }