in pkg/dataplane/internal/challenge/challenge_parser.go [2426:2833]
func (p *ChallengeParser) Qd_text() (localctx IQd_textContext) {
localctx = NewQd_textContext(p, p.GetParserRuleContext(), p.GetState())
p.EnterRule(localctx, 20, ChallengeParserRULE_qd_text)
p.SetState(169)
p.GetErrorHandler().Sync(p)
if p.HasError() {
goto errorExit
}
switch p.GetTokenStream().LA(1) {
case ChallengeParserHTAB:
p.EnterOuterAlt(localctx, 1)
{
p.SetState(134)
p.Match(ChallengeParserHTAB)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserSP:
p.EnterOuterAlt(localctx, 2)
{
p.SetState(135)
p.Match(ChallengeParserSP)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserEXCLAMATION_MARK:
p.EnterOuterAlt(localctx, 3)
{
p.SetState(136)
p.Match(ChallengeParserEXCLAMATION_MARK)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserHASH:
p.EnterOuterAlt(localctx, 4)
{
p.SetState(137)
p.Match(ChallengeParserHASH)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserDOLLAR:
p.EnterOuterAlt(localctx, 5)
{
p.SetState(138)
p.Match(ChallengeParserDOLLAR)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserPERCENT:
p.EnterOuterAlt(localctx, 6)
{
p.SetState(139)
p.Match(ChallengeParserPERCENT)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserAMPERSAND:
p.EnterOuterAlt(localctx, 7)
{
p.SetState(140)
p.Match(ChallengeParserAMPERSAND)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserSQUOTE:
p.EnterOuterAlt(localctx, 8)
{
p.SetState(141)
p.Match(ChallengeParserSQUOTE)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserOPEN_PARENS:
p.EnterOuterAlt(localctx, 9)
{
p.SetState(142)
p.Match(ChallengeParserOPEN_PARENS)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserCLOSE_PARENS:
p.EnterOuterAlt(localctx, 10)
{
p.SetState(143)
p.Match(ChallengeParserCLOSE_PARENS)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserASTERISK:
p.EnterOuterAlt(localctx, 11)
{
p.SetState(144)
p.Match(ChallengeParserASTERISK)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserPLUS:
p.EnterOuterAlt(localctx, 12)
{
p.SetState(145)
p.Match(ChallengeParserPLUS)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserCOMMA:
p.EnterOuterAlt(localctx, 13)
{
p.SetState(146)
p.Match(ChallengeParserCOMMA)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserMINUS:
p.EnterOuterAlt(localctx, 14)
{
p.SetState(147)
p.Match(ChallengeParserMINUS)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserPERIOD:
p.EnterOuterAlt(localctx, 15)
{
p.SetState(148)
p.Match(ChallengeParserPERIOD)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserSLASH:
p.EnterOuterAlt(localctx, 16)
{
p.SetState(149)
p.Match(ChallengeParserSLASH)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserDIGIT:
p.EnterOuterAlt(localctx, 17)
{
p.SetState(150)
p.Match(ChallengeParserDIGIT)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserCOLON:
p.EnterOuterAlt(localctx, 18)
{
p.SetState(151)
p.Match(ChallengeParserCOLON)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserSEMICOLON:
p.EnterOuterAlt(localctx, 19)
{
p.SetState(152)
p.Match(ChallengeParserSEMICOLON)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserLESS_THAN:
p.EnterOuterAlt(localctx, 20)
{
p.SetState(153)
p.Match(ChallengeParserLESS_THAN)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserEQUALS:
p.EnterOuterAlt(localctx, 21)
{
p.SetState(154)
p.Match(ChallengeParserEQUALS)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserGREATER_THAN:
p.EnterOuterAlt(localctx, 22)
{
p.SetState(155)
p.Match(ChallengeParserGREATER_THAN)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserQUESTION:
p.EnterOuterAlt(localctx, 23)
{
p.SetState(156)
p.Match(ChallengeParserQUESTION)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserAT:
p.EnterOuterAlt(localctx, 24)
{
p.SetState(157)
p.Match(ChallengeParserAT)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserOPEN_BRACKET:
p.EnterOuterAlt(localctx, 25)
{
p.SetState(158)
p.Match(ChallengeParserOPEN_BRACKET)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserCLOSE_BRACKET:
p.EnterOuterAlt(localctx, 26)
{
p.SetState(159)
p.Match(ChallengeParserCLOSE_BRACKET)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserCARET:
p.EnterOuterAlt(localctx, 27)
{
p.SetState(160)
p.Match(ChallengeParserCARET)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserUNDERSCORE:
p.EnterOuterAlt(localctx, 28)
{
p.SetState(161)
p.Match(ChallengeParserUNDERSCORE)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserGRAVE:
p.EnterOuterAlt(localctx, 29)
{
p.SetState(162)
p.Match(ChallengeParserGRAVE)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserALPHA:
p.EnterOuterAlt(localctx, 30)
{
p.SetState(163)
p.Match(ChallengeParserALPHA)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserOPEN_BRACE:
p.EnterOuterAlt(localctx, 31)
{
p.SetState(164)
p.Match(ChallengeParserOPEN_BRACE)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserPIPE:
p.EnterOuterAlt(localctx, 32)
{
p.SetState(165)
p.Match(ChallengeParserPIPE)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserCLOSE_BRACE:
p.EnterOuterAlt(localctx, 33)
{
p.SetState(166)
p.Match(ChallengeParserCLOSE_BRACE)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserTILDE:
p.EnterOuterAlt(localctx, 34)
{
p.SetState(167)
p.Match(ChallengeParserTILDE)
if p.HasError() {
// Recognition error - abort rule
goto errorExit
}
}
case ChallengeParserEXTENDED_ASCII:
p.EnterOuterAlt(localctx, 35)
{
p.SetState(168)
p.Obs_text()
}
default:
p.SetError(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
goto errorExit
}
errorExit:
if p.HasError() {
v := p.GetError()
localctx.SetException(v)
p.GetErrorHandler().ReportError(p, v)
p.GetErrorHandler().Recover(p, v)
p.SetError(nil)
}
p.ExitRule()
return localctx
goto errorExit // Trick to prevent compiler error if the label is not used
}