(self, _p=0)
| 2012 | listener.exitAdditive(self) |
| 2013 | |
| 2014 | def additive(self, _p=0): |
| 2015 | _parentctx = self._ctx |
| 2016 | _parentState = self.state |
| 2017 | localctx = PSParser.AdditiveContext(self, self._ctx, _parentState) |
| 2018 | _prevctx = localctx |
| 2019 | _startState = 34 |
| 2020 | self.enterRecursionRule(localctx, 34, self.RULE_additive, _p) |
| 2021 | self._la = 0 # Token type |
| 2022 | try: |
| 2023 | self.enterOuterAlt(localctx, 1) |
| 2024 | self.state = 297 |
| 2025 | self.mp(0) |
| 2026 | self._ctx.stop = self._input.LT(-1) |
| 2027 | self.state = 304 |
| 2028 | self._errHandler.sync(self) |
| 2029 | _alt = self._interp.adaptivePredict(self._input, 17, self._ctx) |
| 2030 | while _alt != 2 and _alt != ATN.INVALID_ALT_NUMBER: |
| 2031 | if _alt == 1: |
| 2032 | if self._parseListeners is not None: |
| 2033 | self.triggerExitRuleEvent() |
| 2034 | _prevctx = localctx |
| 2035 | localctx = PSParser.AdditiveContext(self, _parentctx, _parentState) |
| 2036 | self.pushNewRecursionContext(localctx, _startState, self.RULE_additive) |
| 2037 | self.state = 299 |
| 2038 | if not self.precpred(self._ctx, 2): |
| 2039 | from antlr4.error.Errors import FailedPredicateException |
| 2040 | raise FailedPredicateException(self, "self.precpred(self._ctx, 2)") |
| 2041 | self.state = 300 |
| 2042 | _la = self._input.LA(1) |
| 2043 | if not(_la == 47 or _la == 48): |
| 2044 | self._errHandler.recoverInline(self) |
| 2045 | else: |
| 2046 | self._errHandler.reportMatch(self) |
| 2047 | self.consume() |
| 2048 | self.state = 301 |
| 2049 | self.additive(3) |
| 2050 | self.state = 306 |
| 2051 | self._errHandler.sync(self) |
| 2052 | _alt = self._interp.adaptivePredict(self._input, 17, self._ctx) |
| 2053 | |
| 2054 | except RecognitionException as re: |
| 2055 | localctx.exception = re |
| 2056 | self._errHandler.reportError(self, re) |
| 2057 | self._errHandler.recover(self, re) |
| 2058 | finally: |
| 2059 | self.unrollRecursionContexts(_parentctx) |
| 2060 | return localctx |
| 2061 | |
| 2062 | class MpContext(ParserRuleContext): |
| 2063 |
no test coverage detected