コード例 #1
0
        public SelectionDialogContext selectionDialog()
        {
            SelectionDialogContext _localctx = new SelectionDialogContext(_ctx, State);

            EnterRule(_localctx, 8, RULE_selectionDialog);
            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 39; Match(OpenCode);
                    State = 40; Match(SelectionDialogTagId);
                    State = 41; Match(Identifier);
                    State = 42; Match(CloseCode);
                    State = 43; tokenText();
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                _errHandler.ReportError(this, re);
                _errHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }
コード例 #2
0
        public SelectionDialogContext selectionDialog()
        {
            SelectionDialogContext _localctx = new SelectionDialogContext(_ctx, State);

            EnterRule(_localctx, 8, RULE_selectionDialog);
            int _la;

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 55; Match(OpenCode);
                    State = 56; Match(SelectionDialogTagId);
                    State = 57; Match(Identifier);
                    State = 59;
                    _errHandler.Sync(this);
                    _la = _input.La(1);
                    if (_la == SelectionDialogPatternId || _la == IntLiteral)
                    {
                        {
                            State = 58; selectionDialogPattern();
                        }
                    }

                    State = 61; Match(CloseCode);
                    State = 62; tokenText();
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                _errHandler.ReportError(this, re);
                _errHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }