Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }