Esempio n. 1
0
        public ChardataContext chardata()
        {
            ChardataContext _localctx = new ChardataContext(_ctx, State);

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

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 76;
                    _la   = _input.La(1);
                    if (!(_la == SEA_WS || _la == TEXT))
                    {
                        _errHandler.RecoverInline(this);
                    }
                    Consume();
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                _errHandler.ReportError(this, re);
                _errHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }
    public ChardataContext chardata()
    {
        ChardataContext _localctx = new ChardataContext(Context, State);

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

        try {
            EnterOuterAlt(_localctx, 1);
            {
                State = 71;
                _la   = TokenStream.LA(1);
                if (!(_la == SEA_WS || _la == TEXT))
                {
                    ErrorHandler.RecoverInline(this);
                }
                else
                {
                    ErrorHandler.ReportMatch(this);
                    Consume();
                }
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
Esempio n. 3
0
        public ChardataContext chardata()
        {
            ChardataContext _localctx = new ChardataContext(_ctx, State);

            EnterRule(_localctx, 12, RULE_chardata);
            int _la;

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 91;
                    _la   = _input.La(1);
                    if (!(_la == SEA_WS || _la == TEXT))
                    {
                        _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);
        }