Example #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);
     }
 }
Example #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);
            }
        }