static void Main(string[] args) { try { var options = Options.Parse(args); if (options == null) { return; } var prefix = options.outputPrefix; var compiler = new Spark.Compiler.Compiler { OutputPrefix = prefix, }; foreach (var fileName in options.fileNames) { compiler.AddInput(fileName); } int result = compiler.Compile(); } catch (StackOverflowException e) { System.Console.Error.WriteLine("Exception: {0}", e); } }
static void Main(string[] args) { try { var options = Options.Parse(args); if (options == null) return; var prefix = options.outputPrefix; var compiler = new Spark.Compiler.Compiler { OutputPrefix = prefix, }; foreach( var fileName in options.fileNames ) compiler.AddInput(fileName); int result = compiler.Compile(); } catch (StackOverflowException e) { System.Console.Error.WriteLine("Exception: {0}", e); } }