private bool square_value_with_spaces_sempred(Square_value_with_spacesContext _localctx, int predIndex) { switch (predIndex) { case 2: return((_localctx._INT != null?int.Parse(_localctx._INT.Text):0) < 1000); } return(true); }
public Square_value_with_spacesContext square_value_with_spaces() { Square_value_with_spacesContext _localctx = new Square_value_with_spacesContext(Context, State); EnterRule(_localctx, 8, RULE_square_value_with_spaces); int _la; try { EnterOuterAlt(_localctx, 1); { State = 44; _localctx._INT = Match(INT); State = 46; ErrorHandler.Sync(this); switch (Interpreter.AdaptivePredict(TokenStream, 3, Context)) { case 1: { State = 45; _localctx._INT = Match(INT); } break; } State = 48; _la = TokenStream.LA(1); if (!(_la == FLOATING || _la == INT)) { ErrorHandler.RecoverInline(this); } else { ErrorHandler.ReportMatch(this); Consume(); } State = 49; if (!((_localctx._INT != null?int.Parse(_localctx._INT.Text):0) < 1000)) { throw new FailedPredicateException(this, "$INT.int < 1000"); } } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }