How to use matchTokenAt_19 method of Parser class

Best Gherkin-php code snippet using Parser.matchTokenAt_19

Parser.php

Source:Parser.php Github

copy

Full Screen

...193 15 => $this->matchTokenAt_15($token, $context),194 16 => $this->matchTokenAt_16($token, $context),195 17 => $this->matchTokenAt_17($token, $context),196 18 => $this->matchTokenAt_18($token, $context),197 19 => $this->matchTokenAt_19($token, $context),198 20 => $this->matchTokenAt_20($token, $context),199 21 => $this->matchTokenAt_21($token, $context),200 22 => $this->matchTokenAt_22($token, $context),201 23 => $this->matchTokenAt_23($token, $context),202 24 => $this->matchTokenAt_24($token, $context),203 25 => $this->matchTokenAt_25($token, $context),204 26 => $this->matchTokenAt_26($token, $context),205 27 => $this->matchTokenAt_27($token, $context),206 28 => $this->matchTokenAt_28($token, $context),207 29 => $this->matchTokenAt_29($token, $context),208 30 => $this->matchTokenAt_30($token, $context),209 31 => $this->matchTokenAt_31($token, $context),210 32 => $this->matchTokenAt_32($token, $context),211 33 => $this->matchTokenAt_33($token, $context),212 34 => $this->matchTokenAt_34($token, $context),213 35 => $this->matchTokenAt_35($token, $context),214 36 => $this->matchTokenAt_36($token, $context),215 37 => $this->matchTokenAt_37($token, $context),216 38 => $this->matchTokenAt_38($token, $context),217 39 => $this->matchTokenAt_39($token, $context),218 40 => $this->matchTokenAt_40($token, $context),219 41 => $this->matchTokenAt_41($token, $context),220 43 => $this->matchTokenAt_43($token, $context),221 44 => $this->matchTokenAt_44($token, $context),222 45 => $this->matchTokenAt_45($token, $context),223 46 => $this->matchTokenAt_46($token, $context),224 47 => $this->matchTokenAt_47($token, $context),225 48 => $this->matchTokenAt_48($token, $context),226 49 => $this->matchTokenAt_49($token, $context),227 50 => $this->matchTokenAt_50($token, $context),228 default => throw new \LogicException("Unknown state: $state"),229 };230 }231 // Start232 private function matchTokenAt_0(Token $token, ParserContext $context): int233 {234 if ($this->match_EOF($context, $token)) {235 $this->build($context, $token);236 return 42;237 }238 if ($this->match_Language($context, $token)) {239 $this->startRule($context, RuleType::Feature);240 $this->startRule($context, RuleType::FeatureHeader);241 $this->build($context, $token);242 return 1;243 }244 if ($this->match_TagLine($context, $token)) {245 $this->startRule($context, RuleType::Feature);246 $this->startRule($context, RuleType::FeatureHeader);247 $this->startRule($context, RuleType::Tags);248 $this->build($context, $token);249 return 2;250 }251 if ($this->match_FeatureLine($context, $token)) {252 $this->startRule($context, RuleType::Feature);253 $this->startRule($context, RuleType::FeatureHeader);254 $this->build($context, $token);255 return 3;256 }257 if ($this->match_Comment($context, $token)) {258 $this->build($context, $token);259 return 0;260 }261 if ($this->match_Empty($context, $token)) {262 $this->build($context, $token);263 return 0;264 }265 $stateComment = "State: 0 - Start";266 $expectedTokens = ["#EOF", "#Language", "#TagLine", "#FeatureLine", "#Comment", "#Empty"];267 $error = $token->isEOF()268 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)269 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);270 $this->addError($context, $error);271 return 0;272 }273 // GherkinDocument:0>Feature:0>FeatureHeader:0>#Language:0274 private function matchTokenAt_1(Token $token, ParserContext $context): int275 {276 if ($this->match_TagLine($context, $token)) {277 $this->startRule($context, RuleType::Tags);278 $this->build($context, $token);279 return 2;280 }281 if ($this->match_FeatureLine($context, $token)) {282 $this->build($context, $token);283 return 3;284 }285 if ($this->match_Comment($context, $token)) {286 $this->build($context, $token);287 return 1;288 }289 if ($this->match_Empty($context, $token)) {290 $this->build($context, $token);291 return 1;292 }293 $stateComment = "State: 1 - GherkinDocument:0>Feature:0>FeatureHeader:0>#Language:0";294 $expectedTokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"];295 $error = $token->isEOF()296 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)297 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);298 $this->addError($context, $error);299 return 1;300 }301 // GherkinDocument:0>Feature:0>FeatureHeader:1>Tags:0>#TagLine:0302 private function matchTokenAt_2(Token $token, ParserContext $context): int303 {304 if ($this->match_TagLine($context, $token)) {305 $this->build($context, $token);306 return 2;307 }308 if ($this->match_FeatureLine($context, $token)) {309 $this->endRule($context, RuleType::Tags);310 $this->build($context, $token);311 return 3;312 }313 if ($this->match_Comment($context, $token)) {314 $this->build($context, $token);315 return 2;316 }317 if ($this->match_Empty($context, $token)) {318 $this->build($context, $token);319 return 2;320 }321 $stateComment = "State: 2 - GherkinDocument:0>Feature:0>FeatureHeader:1>Tags:0>#TagLine:0";322 $expectedTokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"];323 $error = $token->isEOF()324 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)325 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);326 $this->addError($context, $error);327 return 2;328 }329 // GherkinDocument:0>Feature:0>FeatureHeader:2>#FeatureLine:0330 private function matchTokenAt_3(Token $token, ParserContext $context): int331 {332 if ($this->match_EOF($context, $token)) {333 $this->endRule($context, RuleType::FeatureHeader);334 $this->endRule($context, RuleType::Feature);335 $this->build($context, $token);336 return 42;337 }338 if ($this->match_Empty($context, $token)) {339 $this->build($context, $token);340 return 3;341 }342 if ($this->match_Comment($context, $token)) {343 $this->build($context, $token);344 return 5;345 }346 if ($this->match_BackgroundLine($context, $token)) {347 $this->endRule($context, RuleType::FeatureHeader);348 $this->startRule($context, RuleType::Background);349 $this->build($context, $token);350 return 6;351 }352 if ($this->match_TagLine($context, $token)) {353 if ($this->lookahead_0($context)) {354 $this->endRule($context, RuleType::FeatureHeader);355 $this->startRule($context, RuleType::ScenarioDefinition);356 $this->startRule($context, RuleType::Tags);357 $this->build($context, $token);358 return 11;359 }360 }361 if ($this->match_TagLine($context, $token)) {362 $this->endRule($context, RuleType::FeatureHeader);363 $this->startRule($context, RuleType::Rule);364 $this->startRule($context, RuleType::RuleHeader);365 $this->startRule($context, RuleType::Tags);366 $this->build($context, $token);367 return 22;368 }369 if ($this->match_ScenarioLine($context, $token)) {370 $this->endRule($context, RuleType::FeatureHeader);371 $this->startRule($context, RuleType::ScenarioDefinition);372 $this->startRule($context, RuleType::Scenario);373 $this->build($context, $token);374 return 12;375 }376 if ($this->match_RuleLine($context, $token)) {377 $this->endRule($context, RuleType::FeatureHeader);378 $this->startRule($context, RuleType::Rule);379 $this->startRule($context, RuleType::RuleHeader);380 $this->build($context, $token);381 return 23;382 }383 if ($this->match_Other($context, $token)) {384 $this->startRule($context, RuleType::Description);385 $this->build($context, $token);386 return 4;387 }388 $stateComment = "State: 3 - GherkinDocument:0>Feature:0>FeatureHeader:2>#FeatureLine:0";389 $expectedTokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"];390 $error = $token->isEOF()391 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)392 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);393 $this->addError($context, $error);394 return 3;395 }396 // GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0397 private function matchTokenAt_4(Token $token, ParserContext $context): int398 {399 if ($this->match_EOF($context, $token)) {400 $this->endRule($context, RuleType::Description);401 $this->endRule($context, RuleType::FeatureHeader);402 $this->endRule($context, RuleType::Feature);403 $this->build($context, $token);404 return 42;405 }406 if ($this->match_Comment($context, $token)) {407 $this->endRule($context, RuleType::Description);408 $this->build($context, $token);409 return 5;410 }411 if ($this->match_BackgroundLine($context, $token)) {412 $this->endRule($context, RuleType::Description);413 $this->endRule($context, RuleType::FeatureHeader);414 $this->startRule($context, RuleType::Background);415 $this->build($context, $token);416 return 6;417 }418 if ($this->match_TagLine($context, $token)) {419 if ($this->lookahead_0($context)) {420 $this->endRule($context, RuleType::Description);421 $this->endRule($context, RuleType::FeatureHeader);422 $this->startRule($context, RuleType::ScenarioDefinition);423 $this->startRule($context, RuleType::Tags);424 $this->build($context, $token);425 return 11;426 }427 }428 if ($this->match_TagLine($context, $token)) {429 $this->endRule($context, RuleType::Description);430 $this->endRule($context, RuleType::FeatureHeader);431 $this->startRule($context, RuleType::Rule);432 $this->startRule($context, RuleType::RuleHeader);433 $this->startRule($context, RuleType::Tags);434 $this->build($context, $token);435 return 22;436 }437 if ($this->match_ScenarioLine($context, $token)) {438 $this->endRule($context, RuleType::Description);439 $this->endRule($context, RuleType::FeatureHeader);440 $this->startRule($context, RuleType::ScenarioDefinition);441 $this->startRule($context, RuleType::Scenario);442 $this->build($context, $token);443 return 12;444 }445 if ($this->match_RuleLine($context, $token)) {446 $this->endRule($context, RuleType::Description);447 $this->endRule($context, RuleType::FeatureHeader);448 $this->startRule($context, RuleType::Rule);449 $this->startRule($context, RuleType::RuleHeader);450 $this->build($context, $token);451 return 23;452 }453 if ($this->match_Other($context, $token)) {454 $this->build($context, $token);455 return 4;456 }457 $stateComment = "State: 4 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0";458 $expectedTokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"];459 $error = $token->isEOF()460 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)461 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);462 $this->addError($context, $error);463 return 4;464 }465 // GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0466 private function matchTokenAt_5(Token $token, ParserContext $context): int467 {468 if ($this->match_EOF($context, $token)) {469 $this->endRule($context, RuleType::FeatureHeader);470 $this->endRule($context, RuleType::Feature);471 $this->build($context, $token);472 return 42;473 }474 if ($this->match_Comment($context, $token)) {475 $this->build($context, $token);476 return 5;477 }478 if ($this->match_BackgroundLine($context, $token)) {479 $this->endRule($context, RuleType::FeatureHeader);480 $this->startRule($context, RuleType::Background);481 $this->build($context, $token);482 return 6;483 }484 if ($this->match_TagLine($context, $token)) {485 if ($this->lookahead_0($context)) {486 $this->endRule($context, RuleType::FeatureHeader);487 $this->startRule($context, RuleType::ScenarioDefinition);488 $this->startRule($context, RuleType::Tags);489 $this->build($context, $token);490 return 11;491 }492 }493 if ($this->match_TagLine($context, $token)) {494 $this->endRule($context, RuleType::FeatureHeader);495 $this->startRule($context, RuleType::Rule);496 $this->startRule($context, RuleType::RuleHeader);497 $this->startRule($context, RuleType::Tags);498 $this->build($context, $token);499 return 22;500 }501 if ($this->match_ScenarioLine($context, $token)) {502 $this->endRule($context, RuleType::FeatureHeader);503 $this->startRule($context, RuleType::ScenarioDefinition);504 $this->startRule($context, RuleType::Scenario);505 $this->build($context, $token);506 return 12;507 }508 if ($this->match_RuleLine($context, $token)) {509 $this->endRule($context, RuleType::FeatureHeader);510 $this->startRule($context, RuleType::Rule);511 $this->startRule($context, RuleType::RuleHeader);512 $this->build($context, $token);513 return 23;514 }515 if ($this->match_Empty($context, $token)) {516 $this->build($context, $token);517 return 5;518 }519 $stateComment = "State: 5 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0";520 $expectedTokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"];521 $error = $token->isEOF()522 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)523 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);524 $this->addError($context, $error);525 return 5;526 }527 // GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0528 private function matchTokenAt_6(Token $token, ParserContext $context): int529 {530 if ($this->match_EOF($context, $token)) {531 $this->endRule($context, RuleType::Background);532 $this->endRule($context, RuleType::Feature);533 $this->build($context, $token);534 return 42;535 }536 if ($this->match_Empty($context, $token)) {537 $this->build($context, $token);538 return 6;539 }540 if ($this->match_Comment($context, $token)) {541 $this->build($context, $token);542 return 8;543 }544 if ($this->match_StepLine($context, $token)) {545 $this->startRule($context, RuleType::Step);546 $this->build($context, $token);547 return 9;548 }549 if ($this->match_TagLine($context, $token)) {550 if ($this->lookahead_0($context)) {551 $this->endRule($context, RuleType::Background);552 $this->startRule($context, RuleType::ScenarioDefinition);553 $this->startRule($context, RuleType::Tags);554 $this->build($context, $token);555 return 11;556 }557 }558 if ($this->match_TagLine($context, $token)) {559 $this->endRule($context, RuleType::Background);560 $this->startRule($context, RuleType::Rule);561 $this->startRule($context, RuleType::RuleHeader);562 $this->startRule($context, RuleType::Tags);563 $this->build($context, $token);564 return 22;565 }566 if ($this->match_ScenarioLine($context, $token)) {567 $this->endRule($context, RuleType::Background);568 $this->startRule($context, RuleType::ScenarioDefinition);569 $this->startRule($context, RuleType::Scenario);570 $this->build($context, $token);571 return 12;572 }573 if ($this->match_RuleLine($context, $token)) {574 $this->endRule($context, RuleType::Background);575 $this->startRule($context, RuleType::Rule);576 $this->startRule($context, RuleType::RuleHeader);577 $this->build($context, $token);578 return 23;579 }580 if ($this->match_Other($context, $token)) {581 $this->startRule($context, RuleType::Description);582 $this->build($context, $token);583 return 7;584 }585 $stateComment = "State: 6 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0";586 $expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"];587 $error = $token->isEOF()588 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)589 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);590 $this->addError($context, $error);591 return 6;592 }593 // GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0594 private function matchTokenAt_7(Token $token, ParserContext $context): int595 {596 if ($this->match_EOF($context, $token)) {597 $this->endRule($context, RuleType::Description);598 $this->endRule($context, RuleType::Background);599 $this->endRule($context, RuleType::Feature);600 $this->build($context, $token);601 return 42;602 }603 if ($this->match_Comment($context, $token)) {604 $this->endRule($context, RuleType::Description);605 $this->build($context, $token);606 return 8;607 }608 if ($this->match_StepLine($context, $token)) {609 $this->endRule($context, RuleType::Description);610 $this->startRule($context, RuleType::Step);611 $this->build($context, $token);612 return 9;613 }614 if ($this->match_TagLine($context, $token)) {615 if ($this->lookahead_0($context)) {616 $this->endRule($context, RuleType::Description);617 $this->endRule($context, RuleType::Background);618 $this->startRule($context, RuleType::ScenarioDefinition);619 $this->startRule($context, RuleType::Tags);620 $this->build($context, $token);621 return 11;622 }623 }624 if ($this->match_TagLine($context, $token)) {625 $this->endRule($context, RuleType::Description);626 $this->endRule($context, RuleType::Background);627 $this->startRule($context, RuleType::Rule);628 $this->startRule($context, RuleType::RuleHeader);629 $this->startRule($context, RuleType::Tags);630 $this->build($context, $token);631 return 22;632 }633 if ($this->match_ScenarioLine($context, $token)) {634 $this->endRule($context, RuleType::Description);635 $this->endRule($context, RuleType::Background);636 $this->startRule($context, RuleType::ScenarioDefinition);637 $this->startRule($context, RuleType::Scenario);638 $this->build($context, $token);639 return 12;640 }641 if ($this->match_RuleLine($context, $token)) {642 $this->endRule($context, RuleType::Description);643 $this->endRule($context, RuleType::Background);644 $this->startRule($context, RuleType::Rule);645 $this->startRule($context, RuleType::RuleHeader);646 $this->build($context, $token);647 return 23;648 }649 if ($this->match_Other($context, $token)) {650 $this->build($context, $token);651 return 7;652 }653 $stateComment = "State: 7 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0";654 $expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"];655 $error = $token->isEOF()656 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)657 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);658 $this->addError($context, $error);659 return 7;660 }661 // GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0662 private function matchTokenAt_8(Token $token, ParserContext $context): int663 {664 if ($this->match_EOF($context, $token)) {665 $this->endRule($context, RuleType::Background);666 $this->endRule($context, RuleType::Feature);667 $this->build($context, $token);668 return 42;669 }670 if ($this->match_Comment($context, $token)) {671 $this->build($context, $token);672 return 8;673 }674 if ($this->match_StepLine($context, $token)) {675 $this->startRule($context, RuleType::Step);676 $this->build($context, $token);677 return 9;678 }679 if ($this->match_TagLine($context, $token)) {680 if ($this->lookahead_0($context)) {681 $this->endRule($context, RuleType::Background);682 $this->startRule($context, RuleType::ScenarioDefinition);683 $this->startRule($context, RuleType::Tags);684 $this->build($context, $token);685 return 11;686 }687 }688 if ($this->match_TagLine($context, $token)) {689 $this->endRule($context, RuleType::Background);690 $this->startRule($context, RuleType::Rule);691 $this->startRule($context, RuleType::RuleHeader);692 $this->startRule($context, RuleType::Tags);693 $this->build($context, $token);694 return 22;695 }696 if ($this->match_ScenarioLine($context, $token)) {697 $this->endRule($context, RuleType::Background);698 $this->startRule($context, RuleType::ScenarioDefinition);699 $this->startRule($context, RuleType::Scenario);700 $this->build($context, $token);701 return 12;702 }703 if ($this->match_RuleLine($context, $token)) {704 $this->endRule($context, RuleType::Background);705 $this->startRule($context, RuleType::Rule);706 $this->startRule($context, RuleType::RuleHeader);707 $this->build($context, $token);708 return 23;709 }710 if ($this->match_Empty($context, $token)) {711 $this->build($context, $token);712 return 8;713 }714 $stateComment = "State: 8 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0";715 $expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"];716 $error = $token->isEOF()717 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)718 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);719 $this->addError($context, $error);720 return 8;721 }722 // GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0723 private function matchTokenAt_9(Token $token, ParserContext $context): int724 {725 if ($this->match_EOF($context, $token)) {726 $this->endRule($context, RuleType::Step);727 $this->endRule($context, RuleType::Background);728 $this->endRule($context, RuleType::Feature);729 $this->build($context, $token);730 return 42;731 }732 if ($this->match_TableRow($context, $token)) {733 $this->startRule($context, RuleType::DataTable);734 $this->build($context, $token);735 return 10;736 }737 if ($this->match_DocStringSeparator($context, $token)) {738 $this->startRule($context, RuleType::DocString);739 $this->build($context, $token);740 return 49;741 }742 if ($this->match_StepLine($context, $token)) {743 $this->endRule($context, RuleType::Step);744 $this->startRule($context, RuleType::Step);745 $this->build($context, $token);746 return 9;747 }748 if ($this->match_TagLine($context, $token)) {749 if ($this->lookahead_0($context)) {750 $this->endRule($context, RuleType::Step);751 $this->endRule($context, RuleType::Background);752 $this->startRule($context, RuleType::ScenarioDefinition);753 $this->startRule($context, RuleType::Tags);754 $this->build($context, $token);755 return 11;756 }757 }758 if ($this->match_TagLine($context, $token)) {759 $this->endRule($context, RuleType::Step);760 $this->endRule($context, RuleType::Background);761 $this->startRule($context, RuleType::Rule);762 $this->startRule($context, RuleType::RuleHeader);763 $this->startRule($context, RuleType::Tags);764 $this->build($context, $token);765 return 22;766 }767 if ($this->match_ScenarioLine($context, $token)) {768 $this->endRule($context, RuleType::Step);769 $this->endRule($context, RuleType::Background);770 $this->startRule($context, RuleType::ScenarioDefinition);771 $this->startRule($context, RuleType::Scenario);772 $this->build($context, $token);773 return 12;774 }775 if ($this->match_RuleLine($context, $token)) {776 $this->endRule($context, RuleType::Step);777 $this->endRule($context, RuleType::Background);778 $this->startRule($context, RuleType::Rule);779 $this->startRule($context, RuleType::RuleHeader);780 $this->build($context, $token);781 return 23;782 }783 if ($this->match_Comment($context, $token)) {784 $this->build($context, $token);785 return 9;786 }787 if ($this->match_Empty($context, $token)) {788 $this->build($context, $token);789 return 9;790 }791 $stateComment = "State: 9 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0";792 $expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];793 $error = $token->isEOF()794 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)795 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);796 $this->addError($context, $error);797 return 9;798 }799 // GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0800 private function matchTokenAt_10(Token $token, ParserContext $context): int801 {802 if ($this->match_EOF($context, $token)) {803 $this->endRule($context, RuleType::DataTable);804 $this->endRule($context, RuleType::Step);805 $this->endRule($context, RuleType::Background);806 $this->endRule($context, RuleType::Feature);807 $this->build($context, $token);808 return 42;809 }810 if ($this->match_TableRow($context, $token)) {811 $this->build($context, $token);812 return 10;813 }814 if ($this->match_StepLine($context, $token)) {815 $this->endRule($context, RuleType::DataTable);816 $this->endRule($context, RuleType::Step);817 $this->startRule($context, RuleType::Step);818 $this->build($context, $token);819 return 9;820 }821 if ($this->match_TagLine($context, $token)) {822 if ($this->lookahead_0($context)) {823 $this->endRule($context, RuleType::DataTable);824 $this->endRule($context, RuleType::Step);825 $this->endRule($context, RuleType::Background);826 $this->startRule($context, RuleType::ScenarioDefinition);827 $this->startRule($context, RuleType::Tags);828 $this->build($context, $token);829 return 11;830 }831 }832 if ($this->match_TagLine($context, $token)) {833 $this->endRule($context, RuleType::DataTable);834 $this->endRule($context, RuleType::Step);835 $this->endRule($context, RuleType::Background);836 $this->startRule($context, RuleType::Rule);837 $this->startRule($context, RuleType::RuleHeader);838 $this->startRule($context, RuleType::Tags);839 $this->build($context, $token);840 return 22;841 }842 if ($this->match_ScenarioLine($context, $token)) {843 $this->endRule($context, RuleType::DataTable);844 $this->endRule($context, RuleType::Step);845 $this->endRule($context, RuleType::Background);846 $this->startRule($context, RuleType::ScenarioDefinition);847 $this->startRule($context, RuleType::Scenario);848 $this->build($context, $token);849 return 12;850 }851 if ($this->match_RuleLine($context, $token)) {852 $this->endRule($context, RuleType::DataTable);853 $this->endRule($context, RuleType::Step);854 $this->endRule($context, RuleType::Background);855 $this->startRule($context, RuleType::Rule);856 $this->startRule($context, RuleType::RuleHeader);857 $this->build($context, $token);858 return 23;859 }860 if ($this->match_Comment($context, $token)) {861 $this->build($context, $token);862 return 10;863 }864 if ($this->match_Empty($context, $token)) {865 $this->build($context, $token);866 return 10;867 }868 $stateComment = "State: 10 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0";869 $expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];870 $error = $token->isEOF()871 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)872 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);873 $this->addError($context, $error);874 return 10;875 }876 // GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0877 private function matchTokenAt_11(Token $token, ParserContext $context): int878 {879 if ($this->match_TagLine($context, $token)) {880 $this->build($context, $token);881 return 11;882 }883 if ($this->match_ScenarioLine($context, $token)) {884 $this->endRule($context, RuleType::Tags);885 $this->startRule($context, RuleType::Scenario);886 $this->build($context, $token);887 return 12;888 }889 if ($this->match_Comment($context, $token)) {890 $this->build($context, $token);891 return 11;892 }893 if ($this->match_Empty($context, $token)) {894 $this->build($context, $token);895 return 11;896 }897 $stateComment = "State: 11 - GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0";898 $expectedTokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"];899 $error = $token->isEOF()900 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)901 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);902 $this->addError($context, $error);903 return 11;904 }905 // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0906 private function matchTokenAt_12(Token $token, ParserContext $context): int907 {908 if ($this->match_EOF($context, $token)) {909 $this->endRule($context, RuleType::Scenario);910 $this->endRule($context, RuleType::ScenarioDefinition);911 $this->endRule($context, RuleType::Feature);912 $this->build($context, $token);913 return 42;914 }915 if ($this->match_Empty($context, $token)) {916 $this->build($context, $token);917 return 12;918 }919 if ($this->match_Comment($context, $token)) {920 $this->build($context, $token);921 return 14;922 }923 if ($this->match_StepLine($context, $token)) {924 $this->startRule($context, RuleType::Step);925 $this->build($context, $token);926 return 15;927 }928 if ($this->match_TagLine($context, $token)) {929 if ($this->lookahead_1($context)) {930 $this->startRule($context, RuleType::ExamplesDefinition);931 $this->startRule($context, RuleType::Tags);932 $this->build($context, $token);933 return 17;934 }935 }936 if ($this->match_TagLine($context, $token)) {937 if ($this->lookahead_0($context)) {938 $this->endRule($context, RuleType::Scenario);939 $this->endRule($context, RuleType::ScenarioDefinition);940 $this->startRule($context, RuleType::ScenarioDefinition);941 $this->startRule($context, RuleType::Tags);942 $this->build($context, $token);943 return 11;944 }945 }946 if ($this->match_TagLine($context, $token)) {947 $this->endRule($context, RuleType::Scenario);948 $this->endRule($context, RuleType::ScenarioDefinition);949 $this->startRule($context, RuleType::Rule);950 $this->startRule($context, RuleType::RuleHeader);951 $this->startRule($context, RuleType::Tags);952 $this->build($context, $token);953 return 22;954 }955 if ($this->match_ExamplesLine($context, $token)) {956 $this->startRule($context, RuleType::ExamplesDefinition);957 $this->startRule($context, RuleType::Examples);958 $this->build($context, $token);959 return 18;960 }961 if ($this->match_ScenarioLine($context, $token)) {962 $this->endRule($context, RuleType::Scenario);963 $this->endRule($context, RuleType::ScenarioDefinition);964 $this->startRule($context, RuleType::ScenarioDefinition);965 $this->startRule($context, RuleType::Scenario);966 $this->build($context, $token);967 return 12;968 }969 if ($this->match_RuleLine($context, $token)) {970 $this->endRule($context, RuleType::Scenario);971 $this->endRule($context, RuleType::ScenarioDefinition);972 $this->startRule($context, RuleType::Rule);973 $this->startRule($context, RuleType::RuleHeader);974 $this->build($context, $token);975 return 23;976 }977 if ($this->match_Other($context, $token)) {978 $this->startRule($context, RuleType::Description);979 $this->build($context, $token);980 return 13;981 }982 $stateComment = "State: 12 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0";983 $expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"];984 $error = $token->isEOF()985 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)986 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);987 $this->addError($context, $error);988 return 12;989 }990 // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0991 private function matchTokenAt_13(Token $token, ParserContext $context): int992 {993 if ($this->match_EOF($context, $token)) {994 $this->endRule($context, RuleType::Description);995 $this->endRule($context, RuleType::Scenario);996 $this->endRule($context, RuleType::ScenarioDefinition);997 $this->endRule($context, RuleType::Feature);998 $this->build($context, $token);999 return 42;1000 }1001 if ($this->match_Comment($context, $token)) {1002 $this->endRule($context, RuleType::Description);1003 $this->build($context, $token);1004 return 14;1005 }1006 if ($this->match_StepLine($context, $token)) {1007 $this->endRule($context, RuleType::Description);1008 $this->startRule($context, RuleType::Step);1009 $this->build($context, $token);1010 return 15;1011 }1012 if ($this->match_TagLine($context, $token)) {1013 if ($this->lookahead_1($context)) {1014 $this->endRule($context, RuleType::Description);1015 $this->startRule($context, RuleType::ExamplesDefinition);1016 $this->startRule($context, RuleType::Tags);1017 $this->build($context, $token);1018 return 17;1019 }1020 }1021 if ($this->match_TagLine($context, $token)) {1022 if ($this->lookahead_0($context)) {1023 $this->endRule($context, RuleType::Description);1024 $this->endRule($context, RuleType::Scenario);1025 $this->endRule($context, RuleType::ScenarioDefinition);1026 $this->startRule($context, RuleType::ScenarioDefinition);1027 $this->startRule($context, RuleType::Tags);1028 $this->build($context, $token);1029 return 11;1030 }1031 }1032 if ($this->match_TagLine($context, $token)) {1033 $this->endRule($context, RuleType::Description);1034 $this->endRule($context, RuleType::Scenario);1035 $this->endRule($context, RuleType::ScenarioDefinition);1036 $this->startRule($context, RuleType::Rule);1037 $this->startRule($context, RuleType::RuleHeader);1038 $this->startRule($context, RuleType::Tags);1039 $this->build($context, $token);1040 return 22;1041 }1042 if ($this->match_ExamplesLine($context, $token)) {1043 $this->endRule($context, RuleType::Description);1044 $this->startRule($context, RuleType::ExamplesDefinition);1045 $this->startRule($context, RuleType::Examples);1046 $this->build($context, $token);1047 return 18;1048 }1049 if ($this->match_ScenarioLine($context, $token)) {1050 $this->endRule($context, RuleType::Description);1051 $this->endRule($context, RuleType::Scenario);1052 $this->endRule($context, RuleType::ScenarioDefinition);1053 $this->startRule($context, RuleType::ScenarioDefinition);1054 $this->startRule($context, RuleType::Scenario);1055 $this->build($context, $token);1056 return 12;1057 }1058 if ($this->match_RuleLine($context, $token)) {1059 $this->endRule($context, RuleType::Description);1060 $this->endRule($context, RuleType::Scenario);1061 $this->endRule($context, RuleType::ScenarioDefinition);1062 $this->startRule($context, RuleType::Rule);1063 $this->startRule($context, RuleType::RuleHeader);1064 $this->build($context, $token);1065 return 23;1066 }1067 if ($this->match_Other($context, $token)) {1068 $this->build($context, $token);1069 return 13;1070 }1071 $stateComment = "State: 13 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0";1072 $expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"];1073 $error = $token->isEOF()1074 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)1075 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);1076 $this->addError($context, $error);1077 return 13;1078 }1079 // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:01080 private function matchTokenAt_14(Token $token, ParserContext $context): int1081 {1082 if ($this->match_EOF($context, $token)) {1083 $this->endRule($context, RuleType::Scenario);1084 $this->endRule($context, RuleType::ScenarioDefinition);1085 $this->endRule($context, RuleType::Feature);1086 $this->build($context, $token);1087 return 42;1088 }1089 if ($this->match_Comment($context, $token)) {1090 $this->build($context, $token);1091 return 14;1092 }1093 if ($this->match_StepLine($context, $token)) {1094 $this->startRule($context, RuleType::Step);1095 $this->build($context, $token);1096 return 15;1097 }1098 if ($this->match_TagLine($context, $token)) {1099 if ($this->lookahead_1($context)) {1100 $this->startRule($context, RuleType::ExamplesDefinition);1101 $this->startRule($context, RuleType::Tags);1102 $this->build($context, $token);1103 return 17;1104 }1105 }1106 if ($this->match_TagLine($context, $token)) {1107 if ($this->lookahead_0($context)) {1108 $this->endRule($context, RuleType::Scenario);1109 $this->endRule($context, RuleType::ScenarioDefinition);1110 $this->startRule($context, RuleType::ScenarioDefinition);1111 $this->startRule($context, RuleType::Tags);1112 $this->build($context, $token);1113 return 11;1114 }1115 }1116 if ($this->match_TagLine($context, $token)) {1117 $this->endRule($context, RuleType::Scenario);1118 $this->endRule($context, RuleType::ScenarioDefinition);1119 $this->startRule($context, RuleType::Rule);1120 $this->startRule($context, RuleType::RuleHeader);1121 $this->startRule($context, RuleType::Tags);1122 $this->build($context, $token);1123 return 22;1124 }1125 if ($this->match_ExamplesLine($context, $token)) {1126 $this->startRule($context, RuleType::ExamplesDefinition);1127 $this->startRule($context, RuleType::Examples);1128 $this->build($context, $token);1129 return 18;1130 }1131 if ($this->match_ScenarioLine($context, $token)) {1132 $this->endRule($context, RuleType::Scenario);1133 $this->endRule($context, RuleType::ScenarioDefinition);1134 $this->startRule($context, RuleType::ScenarioDefinition);1135 $this->startRule($context, RuleType::Scenario);1136 $this->build($context, $token);1137 return 12;1138 }1139 if ($this->match_RuleLine($context, $token)) {1140 $this->endRule($context, RuleType::Scenario);1141 $this->endRule($context, RuleType::ScenarioDefinition);1142 $this->startRule($context, RuleType::Rule);1143 $this->startRule($context, RuleType::RuleHeader);1144 $this->build($context, $token);1145 return 23;1146 }1147 if ($this->match_Empty($context, $token)) {1148 $this->build($context, $token);1149 return 14;1150 }1151 $stateComment = "State: 14 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0";1152 $expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"];1153 $error = $token->isEOF()1154 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)1155 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);1156 $this->addError($context, $error);1157 return 14;1158 }1159 // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:01160 private function matchTokenAt_15(Token $token, ParserContext $context): int1161 {1162 if ($this->match_EOF($context, $token)) {1163 $this->endRule($context, RuleType::Step);1164 $this->endRule($context, RuleType::Scenario);1165 $this->endRule($context, RuleType::ScenarioDefinition);1166 $this->endRule($context, RuleType::Feature);1167 $this->build($context, $token);1168 return 42;1169 }1170 if ($this->match_TableRow($context, $token)) {1171 $this->startRule($context, RuleType::DataTable);1172 $this->build($context, $token);1173 return 16;1174 }1175 if ($this->match_DocStringSeparator($context, $token)) {1176 $this->startRule($context, RuleType::DocString);1177 $this->build($context, $token);1178 return 47;1179 }1180 if ($this->match_StepLine($context, $token)) {1181 $this->endRule($context, RuleType::Step);1182 $this->startRule($context, RuleType::Step);1183 $this->build($context, $token);1184 return 15;1185 }1186 if ($this->match_TagLine($context, $token)) {1187 if ($this->lookahead_1($context)) {1188 $this->endRule($context, RuleType::Step);1189 $this->startRule($context, RuleType::ExamplesDefinition);1190 $this->startRule($context, RuleType::Tags);1191 $this->build($context, $token);1192 return 17;1193 }1194 }1195 if ($this->match_TagLine($context, $token)) {1196 if ($this->lookahead_0($context)) {1197 $this->endRule($context, RuleType::Step);1198 $this->endRule($context, RuleType::Scenario);1199 $this->endRule($context, RuleType::ScenarioDefinition);1200 $this->startRule($context, RuleType::ScenarioDefinition);1201 $this->startRule($context, RuleType::Tags);1202 $this->build($context, $token);1203 return 11;1204 }1205 }1206 if ($this->match_TagLine($context, $token)) {1207 $this->endRule($context, RuleType::Step);1208 $this->endRule($context, RuleType::Scenario);1209 $this->endRule($context, RuleType::ScenarioDefinition);1210 $this->startRule($context, RuleType::Rule);1211 $this->startRule($context, RuleType::RuleHeader);1212 $this->startRule($context, RuleType::Tags);1213 $this->build($context, $token);1214 return 22;1215 }1216 if ($this->match_ExamplesLine($context, $token)) {1217 $this->endRule($context, RuleType::Step);1218 $this->startRule($context, RuleType::ExamplesDefinition);1219 $this->startRule($context, RuleType::Examples);1220 $this->build($context, $token);1221 return 18;1222 }1223 if ($this->match_ScenarioLine($context, $token)) {1224 $this->endRule($context, RuleType::Step);1225 $this->endRule($context, RuleType::Scenario);1226 $this->endRule($context, RuleType::ScenarioDefinition);1227 $this->startRule($context, RuleType::ScenarioDefinition);1228 $this->startRule($context, RuleType::Scenario);1229 $this->build($context, $token);1230 return 12;1231 }1232 if ($this->match_RuleLine($context, $token)) {1233 $this->endRule($context, RuleType::Step);1234 $this->endRule($context, RuleType::Scenario);1235 $this->endRule($context, RuleType::ScenarioDefinition);1236 $this->startRule($context, RuleType::Rule);1237 $this->startRule($context, RuleType::RuleHeader);1238 $this->build($context, $token);1239 return 23;1240 }1241 if ($this->match_Comment($context, $token)) {1242 $this->build($context, $token);1243 return 15;1244 }1245 if ($this->match_Empty($context, $token)) {1246 $this->build($context, $token);1247 return 15;1248 }1249 $stateComment = "State: 15 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0";1250 $expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];1251 $error = $token->isEOF()1252 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)1253 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);1254 $this->addError($context, $error);1255 return 15;1256 }1257 // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:01258 private function matchTokenAt_16(Token $token, ParserContext $context): int1259 {1260 if ($this->match_EOF($context, $token)) {1261 $this->endRule($context, RuleType::DataTable);1262 $this->endRule($context, RuleType::Step);1263 $this->endRule($context, RuleType::Scenario);1264 $this->endRule($context, RuleType::ScenarioDefinition);1265 $this->endRule($context, RuleType::Feature);1266 $this->build($context, $token);1267 return 42;1268 }1269 if ($this->match_TableRow($context, $token)) {1270 $this->build($context, $token);1271 return 16;1272 }1273 if ($this->match_StepLine($context, $token)) {1274 $this->endRule($context, RuleType::DataTable);1275 $this->endRule($context, RuleType::Step);1276 $this->startRule($context, RuleType::Step);1277 $this->build($context, $token);1278 return 15;1279 }1280 if ($this->match_TagLine($context, $token)) {1281 if ($this->lookahead_1($context)) {1282 $this->endRule($context, RuleType::DataTable);1283 $this->endRule($context, RuleType::Step);1284 $this->startRule($context, RuleType::ExamplesDefinition);1285 $this->startRule($context, RuleType::Tags);1286 $this->build($context, $token);1287 return 17;1288 }1289 }1290 if ($this->match_TagLine($context, $token)) {1291 if ($this->lookahead_0($context)) {1292 $this->endRule($context, RuleType::DataTable);1293 $this->endRule($context, RuleType::Step);1294 $this->endRule($context, RuleType::Scenario);1295 $this->endRule($context, RuleType::ScenarioDefinition);1296 $this->startRule($context, RuleType::ScenarioDefinition);1297 $this->startRule($context, RuleType::Tags);1298 $this->build($context, $token);1299 return 11;1300 }1301 }1302 if ($this->match_TagLine($context, $token)) {1303 $this->endRule($context, RuleType::DataTable);1304 $this->endRule($context, RuleType::Step);1305 $this->endRule($context, RuleType::Scenario);1306 $this->endRule($context, RuleType::ScenarioDefinition);1307 $this->startRule($context, RuleType::Rule);1308 $this->startRule($context, RuleType::RuleHeader);1309 $this->startRule($context, RuleType::Tags);1310 $this->build($context, $token);1311 return 22;1312 }1313 if ($this->match_ExamplesLine($context, $token)) {1314 $this->endRule($context, RuleType::DataTable);1315 $this->endRule($context, RuleType::Step);1316 $this->startRule($context, RuleType::ExamplesDefinition);1317 $this->startRule($context, RuleType::Examples);1318 $this->build($context, $token);1319 return 18;1320 }1321 if ($this->match_ScenarioLine($context, $token)) {1322 $this->endRule($context, RuleType::DataTable);1323 $this->endRule($context, RuleType::Step);1324 $this->endRule($context, RuleType::Scenario);1325 $this->endRule($context, RuleType::ScenarioDefinition);1326 $this->startRule($context, RuleType::ScenarioDefinition);1327 $this->startRule($context, RuleType::Scenario);1328 $this->build($context, $token);1329 return 12;1330 }1331 if ($this->match_RuleLine($context, $token)) {1332 $this->endRule($context, RuleType::DataTable);1333 $this->endRule($context, RuleType::Step);1334 $this->endRule($context, RuleType::Scenario);1335 $this->endRule($context, RuleType::ScenarioDefinition);1336 $this->startRule($context, RuleType::Rule);1337 $this->startRule($context, RuleType::RuleHeader);1338 $this->build($context, $token);1339 return 23;1340 }1341 if ($this->match_Comment($context, $token)) {1342 $this->build($context, $token);1343 return 16;1344 }1345 if ($this->match_Empty($context, $token)) {1346 $this->build($context, $token);1347 return 16;1348 }1349 $stateComment = "State: 16 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0";1350 $expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];1351 $error = $token->isEOF()1352 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)1353 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);1354 $this->addError($context, $error);1355 return 16;1356 }1357 // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:01358 private function matchTokenAt_17(Token $token, ParserContext $context): int1359 {1360 if ($this->match_TagLine($context, $token)) {1361 $this->build($context, $token);1362 return 17;1363 }1364 if ($this->match_ExamplesLine($context, $token)) {1365 $this->endRule($context, RuleType::Tags);1366 $this->startRule($context, RuleType::Examples);1367 $this->build($context, $token);1368 return 18;1369 }1370 if ($this->match_Comment($context, $token)) {1371 $this->build($context, $token);1372 return 17;1373 }1374 if ($this->match_Empty($context, $token)) {1375 $this->build($context, $token);1376 return 17;1377 }1378 $stateComment = "State: 17 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0";1379 $expectedTokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"];1380 $error = $token->isEOF()1381 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)1382 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);1383 $this->addError($context, $error);1384 return 17;1385 }1386 // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:01387 private function matchTokenAt_18(Token $token, ParserContext $context): int1388 {1389 if ($this->match_EOF($context, $token)) {1390 $this->endRule($context, RuleType::Examples);1391 $this->endRule($context, RuleType::ExamplesDefinition);1392 $this->endRule($context, RuleType::Scenario);1393 $this->endRule($context, RuleType::ScenarioDefinition);1394 $this->endRule($context, RuleType::Feature);1395 $this->build($context, $token);1396 return 42;1397 }1398 if ($this->match_Empty($context, $token)) {1399 $this->build($context, $token);1400 return 18;1401 }1402 if ($this->match_Comment($context, $token)) {1403 $this->build($context, $token);1404 return 20;1405 }1406 if ($this->match_TableRow($context, $token)) {1407 $this->startRule($context, RuleType::ExamplesTable);1408 $this->build($context, $token);1409 return 21;1410 }1411 if ($this->match_TagLine($context, $token)) {1412 if ($this->lookahead_1($context)) {1413 $this->endRule($context, RuleType::Examples);1414 $this->endRule($context, RuleType::ExamplesDefinition);1415 $this->startRule($context, RuleType::ExamplesDefinition);1416 $this->startRule($context, RuleType::Tags);1417 $this->build($context, $token);1418 return 17;1419 }1420 }1421 if ($this->match_TagLine($context, $token)) {1422 if ($this->lookahead_0($context)) {1423 $this->endRule($context, RuleType::Examples);1424 $this->endRule($context, RuleType::ExamplesDefinition);1425 $this->endRule($context, RuleType::Scenario);1426 $this->endRule($context, RuleType::ScenarioDefinition);1427 $this->startRule($context, RuleType::ScenarioDefinition);1428 $this->startRule($context, RuleType::Tags);1429 $this->build($context, $token);1430 return 11;1431 }1432 }1433 if ($this->match_TagLine($context, $token)) {1434 $this->endRule($context, RuleType::Examples);1435 $this->endRule($context, RuleType::ExamplesDefinition);1436 $this->endRule($context, RuleType::Scenario);1437 $this->endRule($context, RuleType::ScenarioDefinition);1438 $this->startRule($context, RuleType::Rule);1439 $this->startRule($context, RuleType::RuleHeader);1440 $this->startRule($context, RuleType::Tags);1441 $this->build($context, $token);1442 return 22;1443 }1444 if ($this->match_ExamplesLine($context, $token)) {1445 $this->endRule($context, RuleType::Examples);1446 $this->endRule($context, RuleType::ExamplesDefinition);1447 $this->startRule($context, RuleType::ExamplesDefinition);1448 $this->startRule($context, RuleType::Examples);1449 $this->build($context, $token);1450 return 18;1451 }1452 if ($this->match_ScenarioLine($context, $token)) {1453 $this->endRule($context, RuleType::Examples);1454 $this->endRule($context, RuleType::ExamplesDefinition);1455 $this->endRule($context, RuleType::Scenario);1456 $this->endRule($context, RuleType::ScenarioDefinition);1457 $this->startRule($context, RuleType::ScenarioDefinition);1458 $this->startRule($context, RuleType::Scenario);1459 $this->build($context, $token);1460 return 12;1461 }1462 if ($this->match_RuleLine($context, $token)) {1463 $this->endRule($context, RuleType::Examples);1464 $this->endRule($context, RuleType::ExamplesDefinition);1465 $this->endRule($context, RuleType::Scenario);1466 $this->endRule($context, RuleType::ScenarioDefinition);1467 $this->startRule($context, RuleType::Rule);1468 $this->startRule($context, RuleType::RuleHeader);1469 $this->build($context, $token);1470 return 23;1471 }1472 if ($this->match_Other($context, $token)) {1473 $this->startRule($context, RuleType::Description);1474 $this->build($context, $token);1475 return 19;1476 }1477 $stateComment = "State: 18 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0";1478 $expectedTokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"];1479 $error = $token->isEOF()1480 ? new UnexpectedEofException($token, $expectedTokens, $stateComment)1481 : new UnexpectedTokenException($token, $expectedTokens, $stateComment);1482 $this->addError($context, $error);1483 return 18;1484 }1485 // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:01486 private function matchTokenAt_19(Token $token, ParserContext $context): int1487 {1488 if ($this->match_EOF($context, $token)) {1489 $this->endRule($context, RuleType::Description);1490 $this->endRule($context, RuleType::Examples);1491 $this->endRule($context, RuleType::ExamplesDefinition);1492 $this->endRule($context, RuleType::Scenario);1493 $this->endRule($context, RuleType::ScenarioDefinition);1494 $this->endRule($context, RuleType::Feature);1495 $this->build($context, $token);1496 return 42;1497 }1498 if ($this->match_Comment($context, $token)) {1499 $this->endRule($context, RuleType::Description);1500 $this->build($context, $token);...

Full Screen

Full Screen

matchTokenAt_19

Using AI Code Generation

copy

Full Screen

1$parser = new Parser();2$parser->matchTokenAt_19($tokens, 0);3$parser = new Parser();4$parser->matchTokenAt_19($tokens, 0);5$parser = new Parser();6$parser->matchTokenAt_19($tokens, 0);7$parser = new Parser();8$parser->matchTokenAt_19($tokens, 0);9$parser = new Parser();10$parser->matchTokenAt_19($tokens, 0);11$parser = new Parser();12$parser->matchTokenAt_19($tokens, 0);13$parser = new Parser();14$parser->matchTokenAt_19($tokens, 0);15$parser = new Parser();16$parser->matchTokenAt_19($tokens, 0);17$parser = new Parser();18$parser->matchTokenAt_19($tokens, 0);19$parser = new Parser();20$parser->matchTokenAt_19($tokens, 0);21$parser = new Parser();22$parser->matchTokenAt_19($tokens, 0);23$parser = new Parser();24$parser->matchTokenAt_19($tokens, 0);25$parser = new Parser();

Full Screen

Full Screen

matchTokenAt_19

Using AI Code Generation

copy

Full Screen

1require_once 'Parser.php';2$parser = new Parser();3$parser->matchTokenAt_19();4require_once 'Parser.php';5$parser = new Parser();6$parser->matchTokenAt_19();7require_once 'Parser.php';8$parser = new Parser();9$parser->matchTokenAt_19();10require_once 'Parser.php';11$parser = new Parser();12$parser->matchTokenAt_19();13require_once 'Parser.php';14$parser = new Parser();15$parser->matchTokenAt_19();16require_once 'Parser.php';17$parser = new Parser();18$parser->matchTokenAt_19();19require_once 'Parser.php';20$parser = new Parser();21$parser->matchTokenAt_19();22require_once 'Parser.php';23$parser = new Parser();24$parser->matchTokenAt_19();25require_once 'Parser.php';26$parser = new Parser();27$parser->matchTokenAt_19();28require_once 'Parser.php';29$parser = new Parser();30$parser->matchTokenAt_19();31require_once 'Parser.php';32$parser = new Parser();33$parser->matchTokenAt_19();34require_once 'Parser.php';35$parser = new Parser();36$parser->matchTokenAt_19();

Full Screen

Full Screen

matchTokenAt_19

Using AI Code Generation

copy

Full Screen

1$parser = new Parser();2$parser->matchTokenAt_19($token);3$parser = new Parser();4$parser->matchTokenAt_19($token);5$parser = new Parser();6$parser->matchTokenAt_19($token);7$parser = new Parser();8$parser->matchTokenAt_19($token);9$parser = new Parser();10$parser->matchTokenAt_19($token);11$parser = new Parser();12$parser->matchTokenAt_19($token);13$parser = new Parser();14$parser->matchTokenAt_19($token);15$parser = new Parser();16$parser->matchTokenAt_19($token);17$parser = new Parser();18$parser->matchTokenAt_19($token);19$parser = new Parser();20$parser->matchTokenAt_19($token);

Full Screen

Full Screen

matchTokenAt_19

Using AI Code Generation

copy

Full Screen

1$parser->matchTokenAt_19();2$parser->matchTokenAt_20();3$parser->matchTokenAt_21();4$parser->matchTokenAt_22();5$parser->matchTokenAt_23();6$parser->matchTokenAt_24();7$parser->matchTokenAt_25();8$parser->matchTokenAt_26();9$parser->matchTokenAt_27();10$parser->matchTokenAt_28();11$parser->matchTokenAt_29();12$parser->matchTokenAt_30();13$parser->matchTokenAt_31();14$parser->matchTokenAt_32();15$parser->matchTokenAt_33();

Full Screen

Full Screen

matchTokenAt_19

Using AI Code Generation

copy

Full Screen

1$parser = new Parser();2$parser->matchTokenAt_19($tokenList, $index);3$parser = new Parser();4$parser->matchTokenAt_19($tokenList, $index);5$parser = new Parser();6$parser->matchTokenAt_19($tokenList, $index);7$parser = new Parser();8$parser->matchTokenAt_19($tokenList, $index);9$parser = new Parser();10$parser->matchTokenAt_19($tokenList, $index);11$parser = new Parser();12$parser->matchTokenAt_19($tokenList, $index);13$parser = new Parser();14$parser->matchTokenAt_19($tokenList, $index);15$parser = new Parser();16$parser->matchTokenAt_19($tokenList, $index);17$parser = new Parser();18$parser->matchTokenAt_19($tokenList, $index);19$parser = new Parser();20$parser->matchTokenAt_19($tokenList, $index);21$parser = new Parser();22$parser->matchTokenAt_19($tokenList, $index);23$parser = new Parser();24$parser->matchTokenAt_19($tokenList, $index);

Full Screen

Full Screen

matchTokenAt_19

Using AI Code Generation

copy

Full Screen

1$parser = new Parser();2$parser->matchTokenAt_19($tokenArray, $i, $tokenArray[$i]['token'], $tokenArray[$i]['line'], $tokenArray[$i]['column']);3$parser = new Parser();4$parser->matchTokenAt_20($tokenArray, $i, $tokenArray[$i]['token'], $tokenArray[$i]['line'], $tokenArray[$i]['column']);5$parser = new Parser();6$parser->matchTokenAt_21($tokenArray, $i, $tokenArray[$i]['token'], $tokenArray[$i]['line'], $tokenArray[$i]['column']);7$parser = new Parser();8$parser->matchTokenAt_22($tokenArray, $i, $tokenArray[$i]['token'], $tokenArray[$i]['line'], $tokenArray[$i]['column']);9$parser = new Parser();10$parser->matchTokenAt_23($tokenArray, $i, $tokenArray[$i]['token'], $tokenArray[$i]['line'], $tokenArray[$i]['column']);11$parser = new Parser();12$parser->matchTokenAt_24($tokenArray, $i, $tokenArray[$i]['token'], $tokenArray[$i]['line'], $tokenArray[$i]['column']);13$parser = new Parser();14$parser->matchTokenAt_25($tokenArray,

Full Screen

Full Screen

matchTokenAt_19

Using AI Code Generation

copy

Full Screen

1require_once 'Parser.php';2$parser = new Parser();3$parser->parseFile('test.php');4$match = $parser->matchTokenAt_19($parser->tokens[19]);5echo $match;6public function matchTokenAt_19($token) {7 $match = false;8 if ($token['type'] == 'T_STRING' && $token['content'] == 'get') {9 $match = true;10 }11 return $match;12}

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful