private void Compile() { toolStripStatusLabel1.Text = "Compiling..."; compileToolStripButton.Enabled = false; compileToolStripMenuItem.Enabled = false; string output; if (Path.HasExtension(FilePath)) { output = Path.ChangeExtension(FilePath, "s"); } else { output = FilePath + ".s"; } NaiveTigerCompiler.Compiler compiler = new NaiveTigerCompiler.Compiler(scintilla1.Text, output); backgroundWorker1.RunWorkerAsync(compiler); }
private void Compile() { toolStripStatusLabel1.Text = "Compiling..."; compileToolStripButton.Enabled = false; compileToolStripMenuItem.Enabled = false; string output; if (Path.HasExtension(FilePath)) output = Path.ChangeExtension(FilePath, "s"); else output = FilePath + ".s"; NaiveTigerCompiler.Compiler compiler = new NaiveTigerCompiler.Compiler(scintilla1.Text, output); backgroundWorker1.RunWorkerAsync(compiler); }