()
| 2798 | } |
| 2799 | |
| 2800 | func (p *CommandsParser) Parse() (localctx IParseContext) { |
| 2801 | localctx = NewParseContext(p, p.GetParserRuleContext(), p.GetState()) |
| 2802 | p.EnterRule(localctx, 24, CommandsParserRULE_parse) |
| 2803 | p.EnterOuterAlt(localctx, 1) |
| 2804 | { |
| 2805 | p.SetState(149) |
| 2806 | p.Match(CommandsParserT__6) |
| 2807 | if p.HasError() { |
| 2808 | // Recognition error - abort rule |
| 2809 | goto errorExit |
| 2810 | } |
| 2811 | } |
| 2812 | { |
| 2813 | p.SetState(150) |
| 2814 | |
| 2815 | var _x = p.Expr() |
| 2816 | |
| 2817 | localctx.(*ParseContext).e = _x |
| 2818 | } |
| 2819 | |
| 2820 | errorExit: |
| 2821 | if p.HasError() { |
| 2822 | v := p.GetError() |
| 2823 | localctx.SetException(v) |
| 2824 | p.GetErrorHandler().ReportError(p, v) |
| 2825 | p.GetErrorHandler().Recover(p, v) |
| 2826 | p.SetError(nil) |
| 2827 | } |
| 2828 | p.ExitRule() |
| 2829 | return localctx |
| 2830 | goto errorExit // Trick to prevent compiler error if the label is not used |
| 2831 | } |
| 2832 | |
| 2833 | // IExprCmdContext is an interface to support dynamic dispatch. |
| 2834 | type IExprCmdContext interface { |
no test coverage detected