public void Run(string[] args) { CommandLine commandLine = new CommandLine(); commandLine.AddOption("Verbose", false, "-verbose"); commandLine.Parse(args); if ((bool)commandLine.GetOption("-h")) { commandLine.Help("Katahdin Interpreter"); return; } Runtime runtime = new Runtime(true, false, false, false, (bool)commandLine.GetOption("-verbose")); //new ConsoleParseTrace(runtime); runtime.SetUp(commandLine.Args); if (!((bool)commandLine.GetOption("-nostd"))) runtime.ImportStandard(); foreach (string file in commandLine.Files) runtime.Import(file); }
public static void Main(string[] args) { try { CommandLine commandLine = new CommandLine(); commandLine.AddOption("Verbose", false, "-verbose"); commandLine.Parse(args); if ((bool) commandLine.GetOption("-h")) { commandLine.Help("Katahdin Interpreter"); return; } Runtime runtime = new Runtime(true, false, false, false, (bool) commandLine.GetOption("-verbose")); //new ConsoleParseTrace(runtime); runtime.SetUp(commandLine.Args); if (!((bool) commandLine.GetOption("-nostd"))) runtime.ImportStandard(); foreach (string file in commandLine.Files) runtime.Import(file); } catch (Exception e) { /*while (true) { TargetInvocationException wrapper = e as TargetInvocationException; if (wrapper == null) break; e = wrapper.InnerException; }*/ Console.Error.WriteLine(e); } }
public static void Main(string[] args) { CommandLine commandLine = new CommandLine(); commandLine.Parse(args); if ((bool) commandLine.GetOption("-h")) { commandLine.Help("Katahdin Graphical Debugger"); return; } Application.Init(); MainWindow mainWindow = new MainWindow(); mainWindow.ShowAll(); if (mainWindow.NewSession(commandLine)) Application.Run(); mainWindow.Destroy(); }