private bool disjunct_sempred(DisjunctContext _localctx, int predIndex) { switch (predIndex) { case 0: return Precpred(Context, 1); } return true; }
private DisjunctContext disjunct(int _p) { ParserRuleContext _parentctx = Context; int _parentState = State; DisjunctContext _localctx = new DisjunctContext(Context, _parentState); DisjunctContext _prevctx = _localctx; int _startState = 8; EnterRecursionRule(_localctx, 8, RULE_disjunct, _p); try { int _alt; EnterOuterAlt(_localctx, 1); { { State = 49; conjunct(0); } Context.Stop = TokenStream.Lt(-1); State = 56; ErrorHandler.Sync(this); _alt = Interpreter.AdaptivePredict(TokenStream,4,Context); while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.InvalidAltNumber ) { if ( _alt==1 ) { if ( ParseListeners!=null ) TriggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new DisjunctContext(_parentctx, _parentState); PushNewRecursionContext(_localctx, _startState, RULE_disjunct); State = 51; if (!(Precpred(Context, 1))) throw new FailedPredicateException(this, "Precpred(Context, 1)"); State = 52; Match(T__4); State = 53; conjunct(0); } } } State = 58; ErrorHandler.Sync(this); _alt = Interpreter.AdaptivePredict(TokenStream,4,Context); } } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { UnrollRecursionContexts(_parentctx); } return _localctx; }