Ejemplo n.º 1
0
 private void button2_Click(object sender, RoutedEventArgs e)
 {
     Language p = new Language();
     try
     {
         p.ShortParse(program.Text);
         var debugger = new ArmokDebugger();
         debugger.World = p.Debug();
         debugger.UpdateView();
         debugger.ShowDialog();
     }
     catch (Exception ex)
     {
         Trace.WriteLine("Program terminated");
         Trace.WriteLine(ex.Message);
     }
 }
Ejemplo n.º 2
0
        private void button2_Click(object sender, RoutedEventArgs e)
        {
            Language p = new Language();

            try
            {
                p.ShortParse(program.Text);
                var debugger = new ArmokDebugger();
                debugger.World = p.Debug();
                debugger.UpdateView();
                debugger.ShowDialog();
            }
            catch (Exception ex)
            {
                Trace.WriteLine("Program terminated");
                Trace.WriteLine(ex.Message);
            }
        }