Example #1
0
    public Realty_typeContext realty_type()
    {
        Realty_typeContext _localctx = new Realty_typeContext(Context, State);

        EnterRule(_localctx, 2, RULE_realty_type);
        int _la;

        try {
            EnterOuterAlt(_localctx, 1);
            {
                {
                    State = 9; Match(REALTY_TYPE);
                    State = 11;
                    ErrorHandler.Sync(this);
                    _la = TokenStream.LA(1);
                    if (_la == COMMA)
                    {
                        {
                            State = 10; Match(COMMA);
                        }
                    }
                }
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
Example #2
0
    public Realty_typeContext realty_type()
    {
        Realty_typeContext _localctx = new Realty_typeContext(Context, State);

        EnterRule(_localctx, 18, RULE_realty_type);
        try {
            EnterOuterAlt(_localctx, 1);
            {
                State = 77; Match(REALTY_TYPE);
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }