예제 #1
0
        private void regularGrammarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegularGrammar regularGrammar = new FrmRegularGrammar();

            regularGrammar.MdiParent   = this;
            regularGrammar.WindowState = FormWindowState.Maximized;
            regularGrammar.Show();
        }
예제 #2
0
        private void tsbToRegram_Click(object sender, EventArgs e)
        {
            DFA <string, char> dfa = getDFA();

            if (dfa == null)
            {
                return;
            }

            Regram <string, char> regram = SearchAlgorithmParser.Converter <string, char> .ConvertToRegram(dfa);

            FrmRegularGrammar frmRegram = new FrmRegularGrammar(regram);

            frmRegram.MdiParent = this.MdiParent;
            frmRegram.Show();
        }
예제 #3
0
        private void tsbToRegram_Click(object sender, EventArgs e)
        {
            NDFA <string, char> ndfa = getNDFA();

            if (ndfa == null)
            {
                return;
            }

            Regram <MultiState <string>, char> regram = SearchAlgorithmParser.Converter <string, char> .ConvertToRegram(ndfa, new SearchAlgorithmParser.MultiStateViewConcat <string>("", "O"));

            FrmRegularGrammar frmRegram = new FrmRegularGrammar(regram);

            frmRegram.MdiParent = this.MdiParent;
            frmRegram.Show();
        }