()
| 2966 | } |
| 2967 | |
| 2968 | func (p *CommandsParser) ExprCmd() (localctx IExprCmdContext) { |
| 2969 | localctx = NewExprCmdContext(p, p.GetParserRuleContext(), p.GetState()) |
| 2970 | p.EnterRule(localctx, 26, CommandsParserRULE_exprCmd) |
| 2971 | var _la int |
| 2972 | |
| 2973 | p.EnterOuterAlt(localctx, 1) |
| 2974 | p.SetState(163) |
| 2975 | p.GetErrorHandler().Sync(p) |
| 2976 | if p.HasError() { |
| 2977 | goto errorExit |
| 2978 | } |
| 2979 | _la = p.GetTokenStream().LA(1) |
| 2980 | |
| 2981 | if _la == CommandsParserT__7 { |
| 2982 | { |
| 2983 | p.SetState(152) |
| 2984 | p.Match(CommandsParserT__7) |
| 2985 | if p.HasError() { |
| 2986 | // Recognition error - abort rule |
| 2987 | goto errorExit |
| 2988 | } |
| 2989 | } |
| 2990 | p.SetState(161) |
| 2991 | p.GetErrorHandler().Sync(p) |
| 2992 | if p.HasError() { |
| 2993 | goto errorExit |
| 2994 | } |
| 2995 | _la = p.GetTokenStream().LA(1) |
| 2996 | |
| 2997 | if _la == CommandsParserFLAG { |
| 2998 | { |
| 2999 | p.SetState(153) |
| 3000 | |
| 3001 | var _m = p.Match(CommandsParserFLAG) |
| 3002 | |
| 3003 | localctx.(*ExprCmdContext)._FLAG = _m |
| 3004 | if p.HasError() { |
| 3005 | // Recognition error - abort rule |
| 3006 | goto errorExit |
| 3007 | } |
| 3008 | } |
| 3009 | localctx.(*ExprCmdContext).flags = append(localctx.(*ExprCmdContext).flags, localctx.(*ExprCmdContext)._FLAG) |
| 3010 | p.SetState(157) |
| 3011 | p.GetErrorHandler().Sync(p) |
| 3012 | if p.HasError() { |
| 3013 | goto errorExit |
| 3014 | } |
| 3015 | _la = p.GetTokenStream().LA(1) |
| 3016 | |
| 3017 | for _la == CommandsParserFLAG { |
| 3018 | { |
| 3019 | p.SetState(154) |
| 3020 | |
| 3021 | var _m = p.Match(CommandsParserFLAG) |
| 3022 | |
| 3023 | localctx.(*ExprCmdContext)._FLAG = _m |
| 3024 | if p.HasError() { |
| 3025 | // Recognition error - abort rule |
no test coverage detected