| 488 | } |
| 489 | |
| 490 | func (p *CommandsParser) StartCommand() (localctx IStartCommandContext) { |
| 491 | localctx = NewStartCommandContext(p, p.GetParserRuleContext(), p.GetState()) |
| 492 | p.EnterRule(localctx, 0, CommandsParserRULE_startCommand) |
| 493 | p.EnterOuterAlt(localctx, 1) |
| 494 | { |
| 495 | p.SetState(74) |
| 496 | p.Command() |
| 497 | } |
| 498 | { |
| 499 | p.SetState(75) |
| 500 | p.Match(CommandsParserEOF) |
| 501 | if p.HasError() { |
| 502 | // Recognition error - abort rule |
| 503 | goto errorExit |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | errorExit: |
| 508 | if p.HasError() { |
| 509 | v := p.GetError() |
| 510 | localctx.SetException(v) |
| 511 | p.GetErrorHandler().ReportError(p, v) |
| 512 | p.GetErrorHandler().Recover(p, v) |
| 513 | p.SetError(nil) |
| 514 | } |
| 515 | p.ExitRule() |
| 516 | return localctx |
| 517 | goto errorExit // Trick to prevent compiler error if the label is not used |
| 518 | } |
| 519 | |
| 520 | // ICommandContext is an interface to support dynamic dispatch. |
| 521 | type ICommandContext interface { |