示例#1
0
    public Realty_idContext realty_id()
    {
        Realty_idContext _localctx = new Realty_idContext(Context, State);

        EnterRule(_localctx, 4, RULE_realty_id);
        try {
            EnterOuterAlt(_localctx, 1);
            {
                State = 36; _localctx._INT = Match(INT);
                State = 37;
                if (!((_localctx._INT != null?int.Parse(_localctx._INT.Text):0) > 6000000))
                {
                    throw new FailedPredicateException(this, "$INT.int > 6000000");
                }
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
示例#2
0
 private bool realty_id_sempred(Realty_idContext _localctx, int predIndex)
 {
     switch (predIndex)
     {
     case 0: return((_localctx._INT != null?int.Parse(_localctx._INT.Text):0) > 6000000);
     }
     return(true);
 }