public final ComparisonContext comparison() throws RecognitionException { ComparisonContext _localctx = new ComparisonContext(_ctx, getState()); enterRule(_localctx, 6, RULE_comparison); try { enterOuterAlt(_localctx, 1); { setState(40); value(); setState(41); match(COMPARISON); setState(42); value(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
enterRule(_localctx, 4, RULE_factor); try { setState(38); switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); setState(30); match(1); setState(31); exp(0); setState(32); match(2); enterOuterAlt(_localctx, 2); setState(34); value(); enterOuterAlt(_localctx, 3); setState(35); comparison(); enterOuterAlt(_localctx, 4); setState(36); match(NOT); setState(37); factor();
public final ConstantContext constant() throws RecognitionException { ConstantContext _localctx = new ConstantContext(_ctx, getState()); enterRule(_localctx, 8, RULE_constant); int _la; try { enterOuterAlt(_localctx, 1); { setState(44); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << NUMBER) | (1L << STRING) | (1L << BOOLEAN))) != 0)) ) { _errHandler.recoverInline(this); } consume(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
setState(13); term(); setState(20); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,0,_ctx); setState(15); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(16); match(OR); setState(17); term(); setState(22); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,0,_ctx);