(_p int)
| 5303 | } |
| 5304 | |
| 5305 | func (p *CommandsParser) relation(_p int) (localctx IRelationContext) { |
| 5306 | var _parentctx antlr.ParserRuleContext = p.GetParserRuleContext() |
| 5307 | |
| 5308 | _parentState := p.GetState() |
| 5309 | localctx = NewRelationContext(p, p.GetParserRuleContext(), _parentState) |
| 5310 | var _prevctx IRelationContext = localctx |
| 5311 | var _ antlr.ParserRuleContext = _prevctx // TODO: To prevent unused variable warning. |
| 5312 | _startState := 48 |
| 5313 | p.EnterRecursionRule(localctx, 48, CommandsParserRULE_relation, _p) |
| 5314 | var _la int |
| 5315 | |
| 5316 | var _alt int |
| 5317 | |
| 5318 | p.EnterOuterAlt(localctx, 1) |
| 5319 | { |
| 5320 | p.SetState(242) |
| 5321 | p.calc(0) |
| 5322 | } |
| 5323 | |
| 5324 | p.GetParserRuleContext().SetStop(p.GetTokenStream().LT(-1)) |
| 5325 | p.SetState(249) |
| 5326 | p.GetErrorHandler().Sync(p) |
| 5327 | if p.HasError() { |
| 5328 | goto errorExit |
| 5329 | } |
| 5330 | _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 23, p.GetParserRuleContext()) |
| 5331 | if p.HasError() { |
| 5332 | goto errorExit |
| 5333 | } |
| 5334 | for _alt != 2 && _alt != antlr.ATNInvalidAltNumber { |
| 5335 | if _alt == 1 { |
| 5336 | if p.GetParseListeners() != nil { |
| 5337 | p.TriggerExitRuleEvent() |
| 5338 | } |
| 5339 | _prevctx = localctx |
| 5340 | localctx = NewRelationContext(p, _parentctx, _parentState) |
| 5341 | p.PushNewRecursionContext(localctx, _startState, CommandsParserRULE_relation) |
| 5342 | p.SetState(244) |
| 5343 | |
| 5344 | if !(p.Precpred(p.GetParserRuleContext(), 1)) { |
| 5345 | p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 1)", "")) |
| 5346 | goto errorExit |
| 5347 | } |
| 5348 | { |
| 5349 | p.SetState(245) |
| 5350 | |
| 5351 | var _lt = p.GetTokenStream().LT(1) |
| 5352 | |
| 5353 | localctx.(*RelationContext).op = _lt |
| 5354 | |
| 5355 | _la = p.GetTokenStream().LA(1) |
| 5356 | |
| 5357 | if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&4161536) != 0) { |
| 5358 | var _ri = p.GetErrorHandler().RecoverInline(p) |
| 5359 | |
| 5360 | localctx.(*RelationContext).op = _ri |
| 5361 | } else { |
| 5362 | p.GetErrorHandler().ReportMatch(p) |
no test coverage detected