Exemplo n.º 1
0
 void ButtonAddStatementClick(object sender, EventArgs e)
 {
     using (StatementForm sf = new StatementForm("choose Statement"))
     {
         if (sf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             ti.addStatement(sf.getStatement(), 1);
         }
     }
 }
Exemplo n.º 2
0
        public void startUI()
        {
            Console.WriteLine("Input statement");
            ti.addStatement(readStatement(), 1);
            Console.WriteLine("1: Step by step\n2: Execute whole program");
            int c = Convert.ToInt32(Console.ReadLine());

            if (c == 1)
            {
                stepByStep();
            }
            else
            {
                ti.startInterpretingMT();
                Console.WriteLine(ti.r.ob.toString());
            }
        }