(self, _p=0)
| 1587 | listener.exitRelation(self) |
| 1588 | |
| 1589 | def relation(self, _p=0): |
| 1590 | _parentctx = self._ctx |
| 1591 | _parentState = self.state |
| 1592 | localctx = PSParser.RelationContext(self, self._ctx, _parentState) |
| 1593 | _prevctx = localctx |
| 1594 | _startState = 24 |
| 1595 | self.enterRecursionRule(localctx, 24, self.RULE_relation, _p) |
| 1596 | self._la = 0 # Token type |
| 1597 | try: |
| 1598 | self.enterOuterAlt(localctx, 1) |
| 1599 | self.state = 219 |
| 1600 | self.expr() |
| 1601 | self._ctx.stop = self._input.LT(-1) |
| 1602 | self.state = 226 |
| 1603 | self._errHandler.sync(self) |
| 1604 | _alt = self._interp.adaptivePredict(self._input, 12, self._ctx) |
| 1605 | while _alt != 2 and _alt != ATN.INVALID_ALT_NUMBER: |
| 1606 | if _alt == 1: |
| 1607 | if self._parseListeners is not None: |
| 1608 | self.triggerExitRuleEvent() |
| 1609 | _prevctx = localctx |
| 1610 | localctx = PSParser.RelationContext(self, _parentctx, _parentState) |
| 1611 | self.pushNewRecursionContext(localctx, _startState, self.RULE_relation) |
| 1612 | self.state = 221 |
| 1613 | if not self.precpred(self._ctx, 2): |
| 1614 | from antlr4.error.Errors import FailedPredicateException |
| 1615 | raise FailedPredicateException(self, "self.precpred(self._ctx, 2)") |
| 1616 | self.state = 222 |
| 1617 | _la = self._input.LA(1) |
| 1618 | if not((((_la - 181)) & ~0x3f) == 0 and ((1 << (_la - 181)) & 255) != 0): |
| 1619 | self._errHandler.recoverInline(self) |
| 1620 | else: |
| 1621 | self._errHandler.reportMatch(self) |
| 1622 | self.consume() |
| 1623 | self.state = 223 |
| 1624 | self.relation(3) |
| 1625 | self.state = 228 |
| 1626 | self._errHandler.sync(self) |
| 1627 | _alt = self._interp.adaptivePredict(self._input, 12, self._ctx) |
| 1628 | |
| 1629 | except RecognitionException as re: |
| 1630 | localctx.exception = re |
| 1631 | self._errHandler.reportError(self, re) |
| 1632 | self._errHandler.recover(self, re) |
| 1633 | finally: |
| 1634 | self.unrollRecursionContexts(_parentctx) |
| 1635 | return localctx |
| 1636 | |
| 1637 | class Relation_listContext(ParserRuleContext): |
| 1638 |
no test coverage detected