private static RuleExpression AddWithOr(BaseExpression lhs, BaseTerminal rhs)
 {
     return(AddWithOr(
                lhs,
                new SymbolExpression(
                    new LexerRuleModel(
                        new TerminalLexerRule(rhs, rhs.ToString())))));
 }
 private static RuleExpression AddWithAnd(BaseTerminal lhs, BaseExpression rhs)
 {
     return(AddWithAnd(
                new SymbolExpression(
                    new LexerRuleModel(
                        new TerminalLexerRule(lhs, lhs.ToString()))),
                rhs));
 }
Exemple #3
0
        static void Main(string[] args)
        {
            //!!!Add code to choose terminal type
            terminal = new SecurityTerminal();

            do
            {
                terminal.TerminalReadLoop();
            } while (true);
        }
Exemple #4
0
 private void openSubMenu(BaseTerminal childForm)
 {
     if (activeForm != null)
     {
         activeForm.Close();
     }
     activeForm                = childForm;
     childForm.TopLevel        = false;
     childForm.FormBorderStyle = FormBorderStyle.None;
     childForm.Dock            = DockStyle.Fill;
     panelTerminal.Controls.Add(childForm);
     panelTerminal.Tag = childForm;
     childForm.BringToFront();
     childForm.Show();
 }