示例#1
0
        public override string ToString()
        {
            var sb = new StringBuilder();

            sb.Append("prog_counter=" + prog_counter + "  ");

            if (prog_counter < statements.Count)
            {
                sb.AppendLine(statements[prog_counter].ToString());
            }
            else
            {
                sb.AppendLine("End of Program");
            }

            sb.Append(symbol_table.ToString());

            return(sb.ToString());
        }