Пример #1
0
        public MiscContext misc()
        {
            MiscContext _localctx = new MiscContext(_ctx, State);

            EnterRule(_localctx, 14, RULE_misc);
            int _la;

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 93;
                    _la   = _input.La(1);
                    if (!((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << COMMENT) | (1L << SEA_WS) | (1L << PI))) != 0)))
                    {
                        _errHandler.RecoverInline(this);
                    }
                    else
                    {
                        if (_input.La(1) == TokenConstants.Eof)
                        {
                            matchedEOF = true;
                        }

                        _errHandler.ReportMatch(this);
                        Consume();
                    }
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                _errHandler.ReportError(this, re);
                _errHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }
Пример #2
0
 private void MiscButton_Click(object sender, EventArgs e)
 {
     MiscContext.Show(MiscButton, new Point(1, MiscButton.Height - 1));
 }