How to use match_token_at_41 method of Gherkin Package

Best Gherkin-ruby code snippet using Gherkin.match_token_at_41

parser.rb

Source:parser.rb Github

copy

Full Screen

...266 match_token_at_39(token, context)267 when 40268 match_token_at_40(token, context)269 when 41270 match_token_at_41(token, context)271 when 43272 match_token_at_43(token, context)273 when 44274 match_token_at_44(token, context)275 when 45276 match_token_at_45(token, context)277 when 46278 match_token_at_46(token, context)279 when 47280 match_token_at_47(token, context)281 when 48282 match_token_at_48(token, context)283 when 49284 match_token_at_49(token, context)285 when 50286 match_token_at_50(token, context)287 else288 raise InvalidOperationException, "Unknown state: #{state}"289 end290 end291 # Start292 def match_token_at_0(token, context)293 if match_EOF(context, token)294 build(context, token);295 return 42296 end297 if match_Language(context, token)298 start_rule(context, :Feature);299 start_rule(context, :FeatureHeader);300 build(context, token);301 return 1302 end303 if match_TagLine(context, token)304 start_rule(context, :Feature);305 start_rule(context, :FeatureHeader);306 start_rule(context, :Tags);307 build(context, token);308 return 2309 end310 if match_FeatureLine(context, token)311 start_rule(context, :Feature);312 start_rule(context, :FeatureHeader);313 build(context, token);314 return 3315 end316 if match_Comment(context, token)317 build(context, token);318 return 0319 end320 if match_Empty(context, token)321 build(context, token);322 return 0323 end324 state_comment = "State: 0 - Start"325 token.detach326 expected_tokens = ["#EOF", "#Language", "#TagLine", "#FeatureLine", "#Comment", "#Empty"]327 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)328 raise error if (stop_at_first_error)329 add_error(context, error)330 return 0331 end332 # GherkinDocument:0>Feature:0>FeatureHeader:0>#Language:0333 def match_token_at_1(token, context)334 if match_TagLine(context, token)335 start_rule(context, :Tags);336 build(context, token);337 return 2338 end339 if match_FeatureLine(context, token)340 build(context, token);341 return 3342 end343 if match_Comment(context, token)344 build(context, token);345 return 1346 end347 if match_Empty(context, token)348 build(context, token);349 return 1350 end351 state_comment = "State: 1 - GherkinDocument:0>Feature:0>FeatureHeader:0>#Language:0"352 token.detach353 expected_tokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"]354 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)355 raise error if (stop_at_first_error)356 add_error(context, error)357 return 1358 end359 # GherkinDocument:0>Feature:0>FeatureHeader:1>Tags:0>#TagLine:0360 def match_token_at_2(token, context)361 if match_TagLine(context, token)362 build(context, token);363 return 2364 end365 if match_FeatureLine(context, token)366 end_rule(context, :Tags);367 build(context, token);368 return 3369 end370 if match_Comment(context, token)371 build(context, token);372 return 2373 end374 if match_Empty(context, token)375 build(context, token);376 return 2377 end378 state_comment = "State: 2 - GherkinDocument:0>Feature:0>FeatureHeader:1>Tags:0>#TagLine:0"379 token.detach380 expected_tokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"]381 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)382 raise error if (stop_at_first_error)383 add_error(context, error)384 return 2385 end386 # GherkinDocument:0>Feature:0>FeatureHeader:2>#FeatureLine:0387 def match_token_at_3(token, context)388 if match_EOF(context, token)389 end_rule(context, :FeatureHeader);390 end_rule(context, :Feature);391 build(context, token);392 return 42393 end394 if match_Empty(context, token)395 build(context, token);396 return 3397 end398 if match_Comment(context, token)399 build(context, token);400 return 5401 end402 if match_BackgroundLine(context, token)403 end_rule(context, :FeatureHeader);404 start_rule(context, :Background);405 build(context, token);406 return 6407 end408 if match_TagLine(context, token)409 if lookahead_0(context, token)410 end_rule(context, :FeatureHeader);411 start_rule(context, :ScenarioDefinition);412 start_rule(context, :Tags);413 build(context, token);414 return 11415 end416 end417 if match_TagLine(context, token)418 end_rule(context, :FeatureHeader);419 start_rule(context, :Rule);420 start_rule(context, :RuleHeader);421 start_rule(context, :Tags);422 build(context, token);423 return 22424 end425 if match_ScenarioLine(context, token)426 end_rule(context, :FeatureHeader);427 start_rule(context, :ScenarioDefinition);428 start_rule(context, :Scenario);429 build(context, token);430 return 12431 end432 if match_RuleLine(context, token)433 end_rule(context, :FeatureHeader);434 start_rule(context, :Rule);435 start_rule(context, :RuleHeader);436 build(context, token);437 return 23438 end439 if match_Other(context, token)440 start_rule(context, :Description);441 build(context, token);442 return 4443 end444 state_comment = "State: 3 - GherkinDocument:0>Feature:0>FeatureHeader:2>#FeatureLine:0"445 token.detach446 expected_tokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]447 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)448 raise error if (stop_at_first_error)449 add_error(context, error)450 return 3451 end452 # GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0453 def match_token_at_4(token, context)454 if match_EOF(context, token)455 end_rule(context, :Description);456 end_rule(context, :FeatureHeader);457 end_rule(context, :Feature);458 build(context, token);459 return 42460 end461 if match_Comment(context, token)462 end_rule(context, :Description);463 build(context, token);464 return 5465 end466 if match_BackgroundLine(context, token)467 end_rule(context, :Description);468 end_rule(context, :FeatureHeader);469 start_rule(context, :Background);470 build(context, token);471 return 6472 end473 if match_TagLine(context, token)474 if lookahead_0(context, token)475 end_rule(context, :Description);476 end_rule(context, :FeatureHeader);477 start_rule(context, :ScenarioDefinition);478 start_rule(context, :Tags);479 build(context, token);480 return 11481 end482 end483 if match_TagLine(context, token)484 end_rule(context, :Description);485 end_rule(context, :FeatureHeader);486 start_rule(context, :Rule);487 start_rule(context, :RuleHeader);488 start_rule(context, :Tags);489 build(context, token);490 return 22491 end492 if match_ScenarioLine(context, token)493 end_rule(context, :Description);494 end_rule(context, :FeatureHeader);495 start_rule(context, :ScenarioDefinition);496 start_rule(context, :Scenario);497 build(context, token);498 return 12499 end500 if match_RuleLine(context, token)501 end_rule(context, :Description);502 end_rule(context, :FeatureHeader);503 start_rule(context, :Rule);504 start_rule(context, :RuleHeader);505 build(context, token);506 return 23507 end508 if match_Other(context, token)509 build(context, token);510 return 4511 end512 state_comment = "State: 4 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0"513 token.detach514 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]515 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)516 raise error if (stop_at_first_error)517 add_error(context, error)518 return 4519 end520 # GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0521 def match_token_at_5(token, context)522 if match_EOF(context, token)523 end_rule(context, :FeatureHeader);524 end_rule(context, :Feature);525 build(context, token);526 return 42527 end528 if match_Comment(context, token)529 build(context, token);530 return 5531 end532 if match_BackgroundLine(context, token)533 end_rule(context, :FeatureHeader);534 start_rule(context, :Background);535 build(context, token);536 return 6537 end538 if match_TagLine(context, token)539 if lookahead_0(context, token)540 end_rule(context, :FeatureHeader);541 start_rule(context, :ScenarioDefinition);542 start_rule(context, :Tags);543 build(context, token);544 return 11545 end546 end547 if match_TagLine(context, token)548 end_rule(context, :FeatureHeader);549 start_rule(context, :Rule);550 start_rule(context, :RuleHeader);551 start_rule(context, :Tags);552 build(context, token);553 return 22554 end555 if match_ScenarioLine(context, token)556 end_rule(context, :FeatureHeader);557 start_rule(context, :ScenarioDefinition);558 start_rule(context, :Scenario);559 build(context, token);560 return 12561 end562 if match_RuleLine(context, token)563 end_rule(context, :FeatureHeader);564 start_rule(context, :Rule);565 start_rule(context, :RuleHeader);566 build(context, token);567 return 23568 end569 if match_Empty(context, token)570 build(context, token);571 return 5572 end573 state_comment = "State: 5 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0"574 token.detach575 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]576 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)577 raise error if (stop_at_first_error)578 add_error(context, error)579 return 5580 end581 # GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0582 def match_token_at_6(token, context)583 if match_EOF(context, token)584 end_rule(context, :Background);585 end_rule(context, :Feature);586 build(context, token);587 return 42588 end589 if match_Empty(context, token)590 build(context, token);591 return 6592 end593 if match_Comment(context, token)594 build(context, token);595 return 8596 end597 if match_StepLine(context, token)598 start_rule(context, :Step);599 build(context, token);600 return 9601 end602 if match_TagLine(context, token)603 if lookahead_0(context, token)604 end_rule(context, :Background);605 start_rule(context, :ScenarioDefinition);606 start_rule(context, :Tags);607 build(context, token);608 return 11609 end610 end611 if match_TagLine(context, token)612 end_rule(context, :Background);613 start_rule(context, :Rule);614 start_rule(context, :RuleHeader);615 start_rule(context, :Tags);616 build(context, token);617 return 22618 end619 if match_ScenarioLine(context, token)620 end_rule(context, :Background);621 start_rule(context, :ScenarioDefinition);622 start_rule(context, :Scenario);623 build(context, token);624 return 12625 end626 if match_RuleLine(context, token)627 end_rule(context, :Background);628 start_rule(context, :Rule);629 start_rule(context, :RuleHeader);630 build(context, token);631 return 23632 end633 if match_Other(context, token)634 start_rule(context, :Description);635 build(context, token);636 return 7637 end638 state_comment = "State: 6 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0"639 token.detach640 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]641 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)642 raise error if (stop_at_first_error)643 add_error(context, error)644 return 6645 end646 # GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0647 def match_token_at_7(token, context)648 if match_EOF(context, token)649 end_rule(context, :Description);650 end_rule(context, :Background);651 end_rule(context, :Feature);652 build(context, token);653 return 42654 end655 if match_Comment(context, token)656 end_rule(context, :Description);657 build(context, token);658 return 8659 end660 if match_StepLine(context, token)661 end_rule(context, :Description);662 start_rule(context, :Step);663 build(context, token);664 return 9665 end666 if match_TagLine(context, token)667 if lookahead_0(context, token)668 end_rule(context, :Description);669 end_rule(context, :Background);670 start_rule(context, :ScenarioDefinition);671 start_rule(context, :Tags);672 build(context, token);673 return 11674 end675 end676 if match_TagLine(context, token)677 end_rule(context, :Description);678 end_rule(context, :Background);679 start_rule(context, :Rule);680 start_rule(context, :RuleHeader);681 start_rule(context, :Tags);682 build(context, token);683 return 22684 end685 if match_ScenarioLine(context, token)686 end_rule(context, :Description);687 end_rule(context, :Background);688 start_rule(context, :ScenarioDefinition);689 start_rule(context, :Scenario);690 build(context, token);691 return 12692 end693 if match_RuleLine(context, token)694 end_rule(context, :Description);695 end_rule(context, :Background);696 start_rule(context, :Rule);697 start_rule(context, :RuleHeader);698 build(context, token);699 return 23700 end701 if match_Other(context, token)702 build(context, token);703 return 7704 end705 state_comment = "State: 7 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0"706 token.detach707 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]708 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)709 raise error if (stop_at_first_error)710 add_error(context, error)711 return 7712 end713 # GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0714 def match_token_at_8(token, context)715 if match_EOF(context, token)716 end_rule(context, :Background);717 end_rule(context, :Feature);718 build(context, token);719 return 42720 end721 if match_Comment(context, token)722 build(context, token);723 return 8724 end725 if match_StepLine(context, token)726 start_rule(context, :Step);727 build(context, token);728 return 9729 end730 if match_TagLine(context, token)731 if lookahead_0(context, token)732 end_rule(context, :Background);733 start_rule(context, :ScenarioDefinition);734 start_rule(context, :Tags);735 build(context, token);736 return 11737 end738 end739 if match_TagLine(context, token)740 end_rule(context, :Background);741 start_rule(context, :Rule);742 start_rule(context, :RuleHeader);743 start_rule(context, :Tags);744 build(context, token);745 return 22746 end747 if match_ScenarioLine(context, token)748 end_rule(context, :Background);749 start_rule(context, :ScenarioDefinition);750 start_rule(context, :Scenario);751 build(context, token);752 return 12753 end754 if match_RuleLine(context, token)755 end_rule(context, :Background);756 start_rule(context, :Rule);757 start_rule(context, :RuleHeader);758 build(context, token);759 return 23760 end761 if match_Empty(context, token)762 build(context, token);763 return 8764 end765 state_comment = "State: 8 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0"766 token.detach767 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]768 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)769 raise error if (stop_at_first_error)770 add_error(context, error)771 return 8772 end773 # GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0774 def match_token_at_9(token, context)775 if match_EOF(context, token)776 end_rule(context, :Step);777 end_rule(context, :Background);778 end_rule(context, :Feature);779 build(context, token);780 return 42781 end782 if match_TableRow(context, token)783 start_rule(context, :DataTable);784 build(context, token);785 return 10786 end787 if match_DocStringSeparator(context, token)788 start_rule(context, :DocString);789 build(context, token);790 return 49791 end792 if match_StepLine(context, token)793 end_rule(context, :Step);794 start_rule(context, :Step);795 build(context, token);796 return 9797 end798 if match_TagLine(context, token)799 if lookahead_0(context, token)800 end_rule(context, :Step);801 end_rule(context, :Background);802 start_rule(context, :ScenarioDefinition);803 start_rule(context, :Tags);804 build(context, token);805 return 11806 end807 end808 if match_TagLine(context, token)809 end_rule(context, :Step);810 end_rule(context, :Background);811 start_rule(context, :Rule);812 start_rule(context, :RuleHeader);813 start_rule(context, :Tags);814 build(context, token);815 return 22816 end817 if match_ScenarioLine(context, token)818 end_rule(context, :Step);819 end_rule(context, :Background);820 start_rule(context, :ScenarioDefinition);821 start_rule(context, :Scenario);822 build(context, token);823 return 12824 end825 if match_RuleLine(context, token)826 end_rule(context, :Step);827 end_rule(context, :Background);828 start_rule(context, :Rule);829 start_rule(context, :RuleHeader);830 build(context, token);831 return 23832 end833 if match_Comment(context, token)834 build(context, token);835 return 9836 end837 if match_Empty(context, token)838 build(context, token);839 return 9840 end841 state_comment = "State: 9 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0"842 token.detach843 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]844 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)845 raise error if (stop_at_first_error)846 add_error(context, error)847 return 9848 end849 # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0850 def match_token_at_10(token, context)851 if match_EOF(context, token)852 end_rule(context, :DataTable);853 end_rule(context, :Step);854 end_rule(context, :Background);855 end_rule(context, :Feature);856 build(context, token);857 return 42858 end859 if match_TableRow(context, token)860 build(context, token);861 return 10862 end863 if match_StepLine(context, token)864 end_rule(context, :DataTable);865 end_rule(context, :Step);866 start_rule(context, :Step);867 build(context, token);868 return 9869 end870 if match_TagLine(context, token)871 if lookahead_0(context, token)872 end_rule(context, :DataTable);873 end_rule(context, :Step);874 end_rule(context, :Background);875 start_rule(context, :ScenarioDefinition);876 start_rule(context, :Tags);877 build(context, token);878 return 11879 end880 end881 if match_TagLine(context, token)882 end_rule(context, :DataTable);883 end_rule(context, :Step);884 end_rule(context, :Background);885 start_rule(context, :Rule);886 start_rule(context, :RuleHeader);887 start_rule(context, :Tags);888 build(context, token);889 return 22890 end891 if match_ScenarioLine(context, token)892 end_rule(context, :DataTable);893 end_rule(context, :Step);894 end_rule(context, :Background);895 start_rule(context, :ScenarioDefinition);896 start_rule(context, :Scenario);897 build(context, token);898 return 12899 end900 if match_RuleLine(context, token)901 end_rule(context, :DataTable);902 end_rule(context, :Step);903 end_rule(context, :Background);904 start_rule(context, :Rule);905 start_rule(context, :RuleHeader);906 build(context, token);907 return 23908 end909 if match_Comment(context, token)910 build(context, token);911 return 10912 end913 if match_Empty(context, token)914 build(context, token);915 return 10916 end917 state_comment = "State: 10 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"918 token.detach919 expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]920 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)921 raise error if (stop_at_first_error)922 add_error(context, error)923 return 10924 end925 # GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0926 def match_token_at_11(token, context)927 if match_TagLine(context, token)928 build(context, token);929 return 11930 end931 if match_ScenarioLine(context, token)932 end_rule(context, :Tags);933 start_rule(context, :Scenario);934 build(context, token);935 return 12936 end937 if match_Comment(context, token)938 build(context, token);939 return 11940 end941 if match_Empty(context, token)942 build(context, token);943 return 11944 end945 state_comment = "State: 11 - GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0"946 token.detach947 expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]948 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)949 raise error if (stop_at_first_error)950 add_error(context, error)951 return 11952 end953 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0954 def match_token_at_12(token, context)955 if match_EOF(context, token)956 end_rule(context, :Scenario);957 end_rule(context, :ScenarioDefinition);958 end_rule(context, :Feature);959 build(context, token);960 return 42961 end962 if match_Empty(context, token)963 build(context, token);964 return 12965 end966 if match_Comment(context, token)967 build(context, token);968 return 14969 end970 if match_StepLine(context, token)971 start_rule(context, :Step);972 build(context, token);973 return 15974 end975 if match_TagLine(context, token)976 if lookahead_1(context, token)977 start_rule(context, :ExamplesDefinition);978 start_rule(context, :Tags);979 build(context, token);980 return 17981 end982 end983 if match_TagLine(context, token)984 if lookahead_0(context, token)985 end_rule(context, :Scenario);986 end_rule(context, :ScenarioDefinition);987 start_rule(context, :ScenarioDefinition);988 start_rule(context, :Tags);989 build(context, token);990 return 11991 end992 end993 if match_TagLine(context, token)994 end_rule(context, :Scenario);995 end_rule(context, :ScenarioDefinition);996 start_rule(context, :Rule);997 start_rule(context, :RuleHeader);998 start_rule(context, :Tags);999 build(context, token);1000 return 221001 end1002 if match_ExamplesLine(context, token)1003 start_rule(context, :ExamplesDefinition);1004 start_rule(context, :Examples);1005 build(context, token);1006 return 181007 end1008 if match_ScenarioLine(context, token)1009 end_rule(context, :Scenario);1010 end_rule(context, :ScenarioDefinition);1011 start_rule(context, :ScenarioDefinition);1012 start_rule(context, :Scenario);1013 build(context, token);1014 return 121015 end1016 if match_RuleLine(context, token)1017 end_rule(context, :Scenario);1018 end_rule(context, :ScenarioDefinition);1019 start_rule(context, :Rule);1020 start_rule(context, :RuleHeader);1021 build(context, token);1022 return 231023 end1024 if match_Other(context, token)1025 start_rule(context, :Description);1026 build(context, token);1027 return 131028 end1029 state_comment = "State: 12 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"1030 token.detach1031 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]1032 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1033 raise error if (stop_at_first_error)1034 add_error(context, error)1035 return 121036 end1037 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:01038 def match_token_at_13(token, context)1039 if match_EOF(context, token)1040 end_rule(context, :Description);1041 end_rule(context, :Scenario);1042 end_rule(context, :ScenarioDefinition);1043 end_rule(context, :Feature);1044 build(context, token);1045 return 421046 end1047 if match_Comment(context, token)1048 end_rule(context, :Description);1049 build(context, token);1050 return 141051 end1052 if match_StepLine(context, token)1053 end_rule(context, :Description);1054 start_rule(context, :Step);1055 build(context, token);1056 return 151057 end1058 if match_TagLine(context, token)1059 if lookahead_1(context, token)1060 end_rule(context, :Description);1061 start_rule(context, :ExamplesDefinition);1062 start_rule(context, :Tags);1063 build(context, token);1064 return 171065 end1066 end1067 if match_TagLine(context, token)1068 if lookahead_0(context, token)1069 end_rule(context, :Description);1070 end_rule(context, :Scenario);1071 end_rule(context, :ScenarioDefinition);1072 start_rule(context, :ScenarioDefinition);1073 start_rule(context, :Tags);1074 build(context, token);1075 return 111076 end1077 end1078 if match_TagLine(context, token)1079 end_rule(context, :Description);1080 end_rule(context, :Scenario);1081 end_rule(context, :ScenarioDefinition);1082 start_rule(context, :Rule);1083 start_rule(context, :RuleHeader);1084 start_rule(context, :Tags);1085 build(context, token);1086 return 221087 end1088 if match_ExamplesLine(context, token)1089 end_rule(context, :Description);1090 start_rule(context, :ExamplesDefinition);1091 start_rule(context, :Examples);1092 build(context, token);1093 return 181094 end1095 if match_ScenarioLine(context, token)1096 end_rule(context, :Description);1097 end_rule(context, :Scenario);1098 end_rule(context, :ScenarioDefinition);1099 start_rule(context, :ScenarioDefinition);1100 start_rule(context, :Scenario);1101 build(context, token);1102 return 121103 end1104 if match_RuleLine(context, token)1105 end_rule(context, :Description);1106 end_rule(context, :Scenario);1107 end_rule(context, :ScenarioDefinition);1108 start_rule(context, :Rule);1109 start_rule(context, :RuleHeader);1110 build(context, token);1111 return 231112 end1113 if match_Other(context, token)1114 build(context, token);1115 return 131116 end1117 state_comment = "State: 13 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0"1118 token.detach1119 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]1120 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1121 raise error if (stop_at_first_error)1122 add_error(context, error)1123 return 131124 end1125 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:01126 def match_token_at_14(token, context)1127 if match_EOF(context, token)1128 end_rule(context, :Scenario);1129 end_rule(context, :ScenarioDefinition);1130 end_rule(context, :Feature);1131 build(context, token);1132 return 421133 end1134 if match_Comment(context, token)1135 build(context, token);1136 return 141137 end1138 if match_StepLine(context, token)1139 start_rule(context, :Step);1140 build(context, token);1141 return 151142 end1143 if match_TagLine(context, token)1144 if lookahead_1(context, token)1145 start_rule(context, :ExamplesDefinition);1146 start_rule(context, :Tags);1147 build(context, token);1148 return 171149 end1150 end1151 if match_TagLine(context, token)1152 if lookahead_0(context, token)1153 end_rule(context, :Scenario);1154 end_rule(context, :ScenarioDefinition);1155 start_rule(context, :ScenarioDefinition);1156 start_rule(context, :Tags);1157 build(context, token);1158 return 111159 end1160 end1161 if match_TagLine(context, token)1162 end_rule(context, :Scenario);1163 end_rule(context, :ScenarioDefinition);1164 start_rule(context, :Rule);1165 start_rule(context, :RuleHeader);1166 start_rule(context, :Tags);1167 build(context, token);1168 return 221169 end1170 if match_ExamplesLine(context, token)1171 start_rule(context, :ExamplesDefinition);1172 start_rule(context, :Examples);1173 build(context, token);1174 return 181175 end1176 if match_ScenarioLine(context, token)1177 end_rule(context, :Scenario);1178 end_rule(context, :ScenarioDefinition);1179 start_rule(context, :ScenarioDefinition);1180 start_rule(context, :Scenario);1181 build(context, token);1182 return 121183 end1184 if match_RuleLine(context, token)1185 end_rule(context, :Scenario);1186 end_rule(context, :ScenarioDefinition);1187 start_rule(context, :Rule);1188 start_rule(context, :RuleHeader);1189 build(context, token);1190 return 231191 end1192 if match_Empty(context, token)1193 build(context, token);1194 return 141195 end1196 state_comment = "State: 14 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"1197 token.detach1198 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]1199 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1200 raise error if (stop_at_first_error)1201 add_error(context, error)1202 return 141203 end1204 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:01205 def match_token_at_15(token, context)1206 if match_EOF(context, token)1207 end_rule(context, :Step);1208 end_rule(context, :Scenario);1209 end_rule(context, :ScenarioDefinition);1210 end_rule(context, :Feature);1211 build(context, token);1212 return 421213 end1214 if match_TableRow(context, token)1215 start_rule(context, :DataTable);1216 build(context, token);1217 return 161218 end1219 if match_DocStringSeparator(context, token)1220 start_rule(context, :DocString);1221 build(context, token);1222 return 471223 end1224 if match_StepLine(context, token)1225 end_rule(context, :Step);1226 start_rule(context, :Step);1227 build(context, token);1228 return 151229 end1230 if match_TagLine(context, token)1231 if lookahead_1(context, token)1232 end_rule(context, :Step);1233 start_rule(context, :ExamplesDefinition);1234 start_rule(context, :Tags);1235 build(context, token);1236 return 171237 end1238 end1239 if match_TagLine(context, token)1240 if lookahead_0(context, token)1241 end_rule(context, :Step);1242 end_rule(context, :Scenario);1243 end_rule(context, :ScenarioDefinition);1244 start_rule(context, :ScenarioDefinition);1245 start_rule(context, :Tags);1246 build(context, token);1247 return 111248 end1249 end1250 if match_TagLine(context, token)1251 end_rule(context, :Step);1252 end_rule(context, :Scenario);1253 end_rule(context, :ScenarioDefinition);1254 start_rule(context, :Rule);1255 start_rule(context, :RuleHeader);1256 start_rule(context, :Tags);1257 build(context, token);1258 return 221259 end1260 if match_ExamplesLine(context, token)1261 end_rule(context, :Step);1262 start_rule(context, :ExamplesDefinition);1263 start_rule(context, :Examples);1264 build(context, token);1265 return 181266 end1267 if match_ScenarioLine(context, token)1268 end_rule(context, :Step);1269 end_rule(context, :Scenario);1270 end_rule(context, :ScenarioDefinition);1271 start_rule(context, :ScenarioDefinition);1272 start_rule(context, :Scenario);1273 build(context, token);1274 return 121275 end1276 if match_RuleLine(context, token)1277 end_rule(context, :Step);1278 end_rule(context, :Scenario);1279 end_rule(context, :ScenarioDefinition);1280 start_rule(context, :Rule);1281 start_rule(context, :RuleHeader);1282 build(context, token);1283 return 231284 end1285 if match_Comment(context, token)1286 build(context, token);1287 return 151288 end1289 if match_Empty(context, token)1290 build(context, token);1291 return 151292 end1293 state_comment = "State: 15 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"1294 token.detach1295 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1296 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1297 raise error if (stop_at_first_error)1298 add_error(context, error)1299 return 151300 end1301 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:01302 def match_token_at_16(token, context)1303 if match_EOF(context, token)1304 end_rule(context, :DataTable);1305 end_rule(context, :Step);1306 end_rule(context, :Scenario);1307 end_rule(context, :ScenarioDefinition);1308 end_rule(context, :Feature);1309 build(context, token);1310 return 421311 end1312 if match_TableRow(context, token)1313 build(context, token);1314 return 161315 end1316 if match_StepLine(context, token)1317 end_rule(context, :DataTable);1318 end_rule(context, :Step);1319 start_rule(context, :Step);1320 build(context, token);1321 return 151322 end1323 if match_TagLine(context, token)1324 if lookahead_1(context, token)1325 end_rule(context, :DataTable);1326 end_rule(context, :Step);1327 start_rule(context, :ExamplesDefinition);1328 start_rule(context, :Tags);1329 build(context, token);1330 return 171331 end1332 end1333 if match_TagLine(context, token)1334 if lookahead_0(context, token)1335 end_rule(context, :DataTable);1336 end_rule(context, :Step);1337 end_rule(context, :Scenario);1338 end_rule(context, :ScenarioDefinition);1339 start_rule(context, :ScenarioDefinition);1340 start_rule(context, :Tags);1341 build(context, token);1342 return 111343 end1344 end1345 if match_TagLine(context, token)1346 end_rule(context, :DataTable);1347 end_rule(context, :Step);1348 end_rule(context, :Scenario);1349 end_rule(context, :ScenarioDefinition);1350 start_rule(context, :Rule);1351 start_rule(context, :RuleHeader);1352 start_rule(context, :Tags);1353 build(context, token);1354 return 221355 end1356 if match_ExamplesLine(context, token)1357 end_rule(context, :DataTable);1358 end_rule(context, :Step);1359 start_rule(context, :ExamplesDefinition);1360 start_rule(context, :Examples);1361 build(context, token);1362 return 181363 end1364 if match_ScenarioLine(context, token)1365 end_rule(context, :DataTable);1366 end_rule(context, :Step);1367 end_rule(context, :Scenario);1368 end_rule(context, :ScenarioDefinition);1369 start_rule(context, :ScenarioDefinition);1370 start_rule(context, :Scenario);1371 build(context, token);1372 return 121373 end1374 if match_RuleLine(context, token)1375 end_rule(context, :DataTable);1376 end_rule(context, :Step);1377 end_rule(context, :Scenario);1378 end_rule(context, :ScenarioDefinition);1379 start_rule(context, :Rule);1380 start_rule(context, :RuleHeader);1381 build(context, token);1382 return 231383 end1384 if match_Comment(context, token)1385 build(context, token);1386 return 161387 end1388 if match_Empty(context, token)1389 build(context, token);1390 return 161391 end1392 state_comment = "State: 16 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"1393 token.detach1394 expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1395 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1396 raise error if (stop_at_first_error)1397 add_error(context, error)1398 return 161399 end1400 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:01401 def match_token_at_17(token, context)1402 if match_TagLine(context, token)1403 build(context, token);1404 return 171405 end1406 if match_ExamplesLine(context, token)1407 end_rule(context, :Tags);1408 start_rule(context, :Examples);1409 build(context, token);1410 return 181411 end1412 if match_Comment(context, token)1413 build(context, token);1414 return 171415 end1416 if match_Empty(context, token)1417 build(context, token);1418 return 171419 end1420 state_comment = "State: 17 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"1421 token.detach1422 expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]1423 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1424 raise error if (stop_at_first_error)1425 add_error(context, error)1426 return 171427 end1428 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:01429 def match_token_at_18(token, context)1430 if match_EOF(context, token)1431 end_rule(context, :Examples);1432 end_rule(context, :ExamplesDefinition);1433 end_rule(context, :Scenario);1434 end_rule(context, :ScenarioDefinition);1435 end_rule(context, :Feature);1436 build(context, token);1437 return 421438 end1439 if match_Empty(context, token)1440 build(context, token);1441 return 181442 end1443 if match_Comment(context, token)1444 build(context, token);1445 return 201446 end1447 if match_TableRow(context, token)1448 start_rule(context, :ExamplesTable);1449 build(context, token);1450 return 211451 end1452 if match_TagLine(context, token)1453 if lookahead_1(context, token)1454 end_rule(context, :Examples);1455 end_rule(context, :ExamplesDefinition);1456 start_rule(context, :ExamplesDefinition);1457 start_rule(context, :Tags);1458 build(context, token);1459 return 171460 end1461 end1462 if match_TagLine(context, token)1463 if lookahead_0(context, token)1464 end_rule(context, :Examples);1465 end_rule(context, :ExamplesDefinition);1466 end_rule(context, :Scenario);1467 end_rule(context, :ScenarioDefinition);1468 start_rule(context, :ScenarioDefinition);1469 start_rule(context, :Tags);1470 build(context, token);1471 return 111472 end1473 end1474 if match_TagLine(context, token)1475 end_rule(context, :Examples);1476 end_rule(context, :ExamplesDefinition);1477 end_rule(context, :Scenario);1478 end_rule(context, :ScenarioDefinition);1479 start_rule(context, :Rule);1480 start_rule(context, :RuleHeader);1481 start_rule(context, :Tags);1482 build(context, token);1483 return 221484 end1485 if match_ExamplesLine(context, token)1486 end_rule(context, :Examples);1487 end_rule(context, :ExamplesDefinition);1488 start_rule(context, :ExamplesDefinition);1489 start_rule(context, :Examples);1490 build(context, token);1491 return 181492 end1493 if match_ScenarioLine(context, token)1494 end_rule(context, :Examples);1495 end_rule(context, :ExamplesDefinition);1496 end_rule(context, :Scenario);1497 end_rule(context, :ScenarioDefinition);1498 start_rule(context, :ScenarioDefinition);1499 start_rule(context, :Scenario);1500 build(context, token);1501 return 121502 end1503 if match_RuleLine(context, token)1504 end_rule(context, :Examples);1505 end_rule(context, :ExamplesDefinition);1506 end_rule(context, :Scenario);1507 end_rule(context, :ScenarioDefinition);1508 start_rule(context, :Rule);1509 start_rule(context, :RuleHeader);1510 build(context, token);1511 return 231512 end1513 if match_Other(context, token)1514 start_rule(context, :Description);1515 build(context, token);1516 return 191517 end1518 state_comment = "State: 18 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"1519 token.detach1520 expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]1521 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1522 raise error if (stop_at_first_error)1523 add_error(context, error)1524 return 181525 end1526 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:01527 def match_token_at_19(token, context)1528 if match_EOF(context, token)1529 end_rule(context, :Description);1530 end_rule(context, :Examples);1531 end_rule(context, :ExamplesDefinition);1532 end_rule(context, :Scenario);1533 end_rule(context, :ScenarioDefinition);1534 end_rule(context, :Feature);1535 build(context, token);1536 return 421537 end1538 if match_Comment(context, token)1539 end_rule(context, :Description);1540 build(context, token);1541 return 201542 end1543 if match_TableRow(context, token)1544 end_rule(context, :Description);1545 start_rule(context, :ExamplesTable);1546 build(context, token);1547 return 211548 end1549 if match_TagLine(context, token)1550 if lookahead_1(context, token)1551 end_rule(context, :Description);1552 end_rule(context, :Examples);1553 end_rule(context, :ExamplesDefinition);1554 start_rule(context, :ExamplesDefinition);1555 start_rule(context, :Tags);1556 build(context, token);1557 return 171558 end1559 end1560 if match_TagLine(context, token)1561 if lookahead_0(context, token)1562 end_rule(context, :Description);1563 end_rule(context, :Examples);1564 end_rule(context, :ExamplesDefinition);1565 end_rule(context, :Scenario);1566 end_rule(context, :ScenarioDefinition);1567 start_rule(context, :ScenarioDefinition);1568 start_rule(context, :Tags);1569 build(context, token);1570 return 111571 end1572 end1573 if match_TagLine(context, token)1574 end_rule(context, :Description);1575 end_rule(context, :Examples);1576 end_rule(context, :ExamplesDefinition);1577 end_rule(context, :Scenario);1578 end_rule(context, :ScenarioDefinition);1579 start_rule(context, :Rule);1580 start_rule(context, :RuleHeader);1581 start_rule(context, :Tags);1582 build(context, token);1583 return 221584 end1585 if match_ExamplesLine(context, token)1586 end_rule(context, :Description);1587 end_rule(context, :Examples);1588 end_rule(context, :ExamplesDefinition);1589 start_rule(context, :ExamplesDefinition);1590 start_rule(context, :Examples);1591 build(context, token);1592 return 181593 end1594 if match_ScenarioLine(context, token)1595 end_rule(context, :Description);1596 end_rule(context, :Examples);1597 end_rule(context, :ExamplesDefinition);1598 end_rule(context, :Scenario);1599 end_rule(context, :ScenarioDefinition);1600 start_rule(context, :ScenarioDefinition);1601 start_rule(context, :Scenario);1602 build(context, token);1603 return 121604 end1605 if match_RuleLine(context, token)1606 end_rule(context, :Description);1607 end_rule(context, :Examples);1608 end_rule(context, :ExamplesDefinition);1609 end_rule(context, :Scenario);1610 end_rule(context, :ScenarioDefinition);1611 start_rule(context, :Rule);1612 start_rule(context, :RuleHeader);1613 build(context, token);1614 return 231615 end1616 if match_Other(context, token)1617 build(context, token);1618 return 191619 end1620 state_comment = "State: 19 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0"1621 token.detach1622 expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]1623 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1624 raise error if (stop_at_first_error)1625 add_error(context, error)1626 return 191627 end1628 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:01629 def match_token_at_20(token, context)1630 if match_EOF(context, token)1631 end_rule(context, :Examples);1632 end_rule(context, :ExamplesDefinition);1633 end_rule(context, :Scenario);1634 end_rule(context, :ScenarioDefinition);1635 end_rule(context, :Feature);1636 build(context, token);1637 return 421638 end1639 if match_Comment(context, token)1640 build(context, token);1641 return 201642 end1643 if match_TableRow(context, token)1644 start_rule(context, :ExamplesTable);1645 build(context, token);1646 return 211647 end1648 if match_TagLine(context, token)1649 if lookahead_1(context, token)1650 end_rule(context, :Examples);1651 end_rule(context, :ExamplesDefinition);1652 start_rule(context, :ExamplesDefinition);1653 start_rule(context, :Tags);1654 build(context, token);1655 return 171656 end1657 end1658 if match_TagLine(context, token)1659 if lookahead_0(context, token)1660 end_rule(context, :Examples);1661 end_rule(context, :ExamplesDefinition);1662 end_rule(context, :Scenario);1663 end_rule(context, :ScenarioDefinition);1664 start_rule(context, :ScenarioDefinition);1665 start_rule(context, :Tags);1666 build(context, token);1667 return 111668 end1669 end1670 if match_TagLine(context, token)1671 end_rule(context, :Examples);1672 end_rule(context, :ExamplesDefinition);1673 end_rule(context, :Scenario);1674 end_rule(context, :ScenarioDefinition);1675 start_rule(context, :Rule);1676 start_rule(context, :RuleHeader);1677 start_rule(context, :Tags);1678 build(context, token);1679 return 221680 end1681 if match_ExamplesLine(context, token)1682 end_rule(context, :Examples);1683 end_rule(context, :ExamplesDefinition);1684 start_rule(context, :ExamplesDefinition);1685 start_rule(context, :Examples);1686 build(context, token);1687 return 181688 end1689 if match_ScenarioLine(context, token)1690 end_rule(context, :Examples);1691 end_rule(context, :ExamplesDefinition);1692 end_rule(context, :Scenario);1693 end_rule(context, :ScenarioDefinition);1694 start_rule(context, :ScenarioDefinition);1695 start_rule(context, :Scenario);1696 build(context, token);1697 return 121698 end1699 if match_RuleLine(context, token)1700 end_rule(context, :Examples);1701 end_rule(context, :ExamplesDefinition);1702 end_rule(context, :Scenario);1703 end_rule(context, :ScenarioDefinition);1704 start_rule(context, :Rule);1705 start_rule(context, :RuleHeader);1706 build(context, token);1707 return 231708 end1709 if match_Empty(context, token)1710 build(context, token);1711 return 201712 end1713 state_comment = "State: 20 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0"1714 token.detach1715 expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]1716 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1717 raise error if (stop_at_first_error)1718 add_error(context, error)1719 return 201720 end1721 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:01722 def match_token_at_21(token, context)1723 if match_EOF(context, token)1724 end_rule(context, :ExamplesTable);1725 end_rule(context, :Examples);1726 end_rule(context, :ExamplesDefinition);1727 end_rule(context, :Scenario);1728 end_rule(context, :ScenarioDefinition);1729 end_rule(context, :Feature);1730 build(context, token);1731 return 421732 end1733 if match_TableRow(context, token)1734 build(context, token);1735 return 211736 end1737 if match_TagLine(context, token)1738 if lookahead_1(context, token)1739 end_rule(context, :ExamplesTable);1740 end_rule(context, :Examples);1741 end_rule(context, :ExamplesDefinition);1742 start_rule(context, :ExamplesDefinition);1743 start_rule(context, :Tags);1744 build(context, token);1745 return 171746 end1747 end1748 if match_TagLine(context, token)1749 if lookahead_0(context, token)1750 end_rule(context, :ExamplesTable);1751 end_rule(context, :Examples);1752 end_rule(context, :ExamplesDefinition);1753 end_rule(context, :Scenario);1754 end_rule(context, :ScenarioDefinition);1755 start_rule(context, :ScenarioDefinition);1756 start_rule(context, :Tags);1757 build(context, token);1758 return 111759 end1760 end1761 if match_TagLine(context, token)1762 end_rule(context, :ExamplesTable);1763 end_rule(context, :Examples);1764 end_rule(context, :ExamplesDefinition);1765 end_rule(context, :Scenario);1766 end_rule(context, :ScenarioDefinition);1767 start_rule(context, :Rule);1768 start_rule(context, :RuleHeader);1769 start_rule(context, :Tags);1770 build(context, token);1771 return 221772 end1773 if match_ExamplesLine(context, token)1774 end_rule(context, :ExamplesTable);1775 end_rule(context, :Examples);1776 end_rule(context, :ExamplesDefinition);1777 start_rule(context, :ExamplesDefinition);1778 start_rule(context, :Examples);1779 build(context, token);1780 return 181781 end1782 if match_ScenarioLine(context, token)1783 end_rule(context, :ExamplesTable);1784 end_rule(context, :Examples);1785 end_rule(context, :ExamplesDefinition);1786 end_rule(context, :Scenario);1787 end_rule(context, :ScenarioDefinition);1788 start_rule(context, :ScenarioDefinition);1789 start_rule(context, :Scenario);1790 build(context, token);1791 return 121792 end1793 if match_RuleLine(context, token)1794 end_rule(context, :ExamplesTable);1795 end_rule(context, :Examples);1796 end_rule(context, :ExamplesDefinition);1797 end_rule(context, :Scenario);1798 end_rule(context, :ScenarioDefinition);1799 start_rule(context, :Rule);1800 start_rule(context, :RuleHeader);1801 build(context, token);1802 return 231803 end1804 if match_Comment(context, token)1805 build(context, token);1806 return 211807 end1808 if match_Empty(context, token)1809 build(context, token);1810 return 211811 end1812 state_comment = "State: 21 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"1813 token.detach1814 expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1815 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1816 raise error if (stop_at_first_error)1817 add_error(context, error)1818 return 211819 end1820 # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:01821 def match_token_at_22(token, context)1822 if match_TagLine(context, token)1823 build(context, token);1824 return 221825 end1826 if match_RuleLine(context, token)1827 end_rule(context, :Tags);1828 build(context, token);1829 return 231830 end1831 if match_Comment(context, token)1832 build(context, token);1833 return 221834 end1835 if match_Empty(context, token)1836 build(context, token);1837 return 221838 end1839 state_comment = "State: 22 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:0"1840 token.detach1841 expected_tokens = ["#TagLine", "#RuleLine", "#Comment", "#Empty"]1842 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1843 raise error if (stop_at_first_error)1844 add_error(context, error)1845 return 221846 end1847 # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:01848 def match_token_at_23(token, context)1849 if match_EOF(context, token)1850 end_rule(context, :RuleHeader);1851 end_rule(context, :Rule);1852 end_rule(context, :Feature);1853 build(context, token);1854 return 421855 end1856 if match_Empty(context, token)1857 build(context, token);1858 return 231859 end1860 if match_Comment(context, token)1861 build(context, token);1862 return 251863 end1864 if match_BackgroundLine(context, token)1865 end_rule(context, :RuleHeader);1866 start_rule(context, :Background);1867 build(context, token);1868 return 261869 end1870 if match_TagLine(context, token)1871 if lookahead_0(context, token)1872 end_rule(context, :RuleHeader);1873 start_rule(context, :ScenarioDefinition);1874 start_rule(context, :Tags);1875 build(context, token);1876 return 311877 end1878 end1879 if match_TagLine(context, token)1880 end_rule(context, :RuleHeader);1881 end_rule(context, :Rule);1882 start_rule(context, :Rule);1883 start_rule(context, :RuleHeader);1884 start_rule(context, :Tags);1885 build(context, token);1886 return 221887 end1888 if match_ScenarioLine(context, token)1889 end_rule(context, :RuleHeader);1890 start_rule(context, :ScenarioDefinition);1891 start_rule(context, :Scenario);1892 build(context, token);1893 return 321894 end1895 if match_RuleLine(context, token)1896 end_rule(context, :RuleHeader);1897 end_rule(context, :Rule);1898 start_rule(context, :Rule);1899 start_rule(context, :RuleHeader);1900 build(context, token);1901 return 231902 end1903 if match_Other(context, token)1904 start_rule(context, :Description);1905 build(context, token);1906 return 241907 end1908 state_comment = "State: 23 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:0"1909 token.detach1910 expected_tokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1911 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1912 raise error if (stop_at_first_error)1913 add_error(context, error)1914 return 231915 end1916 # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>#Other:01917 def match_token_at_24(token, context)1918 if match_EOF(context, token)1919 end_rule(context, :Description);1920 end_rule(context, :RuleHeader);1921 end_rule(context, :Rule);1922 end_rule(context, :Feature);1923 build(context, token);1924 return 421925 end1926 if match_Comment(context, token)1927 end_rule(context, :Description);1928 build(context, token);1929 return 251930 end1931 if match_BackgroundLine(context, token)1932 end_rule(context, :Description);1933 end_rule(context, :RuleHeader);1934 start_rule(context, :Background);1935 build(context, token);1936 return 261937 end1938 if match_TagLine(context, token)1939 if lookahead_0(context, token)1940 end_rule(context, :Description);1941 end_rule(context, :RuleHeader);1942 start_rule(context, :ScenarioDefinition);1943 start_rule(context, :Tags);1944 build(context, token);1945 return 311946 end1947 end1948 if match_TagLine(context, token)1949 end_rule(context, :Description);1950 end_rule(context, :RuleHeader);1951 end_rule(context, :Rule);1952 start_rule(context, :Rule);1953 start_rule(context, :RuleHeader);1954 start_rule(context, :Tags);1955 build(context, token);1956 return 221957 end1958 if match_ScenarioLine(context, token)1959 end_rule(context, :Description);1960 end_rule(context, :RuleHeader);1961 start_rule(context, :ScenarioDefinition);1962 start_rule(context, :Scenario);1963 build(context, token);1964 return 321965 end1966 if match_RuleLine(context, token)1967 end_rule(context, :Description);1968 end_rule(context, :RuleHeader);1969 end_rule(context, :Rule);1970 start_rule(context, :Rule);1971 start_rule(context, :RuleHeader);1972 build(context, token);1973 return 231974 end1975 if match_Other(context, token)1976 build(context, token);1977 return 241978 end1979 state_comment = "State: 24 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>#Other:0"1980 token.detach1981 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1982 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1983 raise error if (stop_at_first_error)1984 add_error(context, error)1985 return 241986 end1987 # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:2>#Comment:01988 def match_token_at_25(token, context)1989 if match_EOF(context, token)1990 end_rule(context, :RuleHeader);1991 end_rule(context, :Rule);1992 end_rule(context, :Feature);1993 build(context, token);1994 return 421995 end1996 if match_Comment(context, token)1997 build(context, token);1998 return 251999 end2000 if match_BackgroundLine(context, token)2001 end_rule(context, :RuleHeader);2002 start_rule(context, :Background);2003 build(context, token);2004 return 262005 end2006 if match_TagLine(context, token)2007 if lookahead_0(context, token)2008 end_rule(context, :RuleHeader);2009 start_rule(context, :ScenarioDefinition);2010 start_rule(context, :Tags);2011 build(context, token);2012 return 312013 end2014 end2015 if match_TagLine(context, token)2016 end_rule(context, :RuleHeader);2017 end_rule(context, :Rule);2018 start_rule(context, :Rule);2019 start_rule(context, :RuleHeader);2020 start_rule(context, :Tags);2021 build(context, token);2022 return 222023 end2024 if match_ScenarioLine(context, token)2025 end_rule(context, :RuleHeader);2026 start_rule(context, :ScenarioDefinition);2027 start_rule(context, :Scenario);2028 build(context, token);2029 return 322030 end2031 if match_RuleLine(context, token)2032 end_rule(context, :RuleHeader);2033 end_rule(context, :Rule);2034 start_rule(context, :Rule);2035 start_rule(context, :RuleHeader);2036 build(context, token);2037 return 232038 end2039 if match_Empty(context, token)2040 build(context, token);2041 return 252042 end2043 state_comment = "State: 25 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:2>#Comment:0"2044 token.detach2045 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]2046 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2047 raise error if (stop_at_first_error)2048 add_error(context, error)2049 return 252050 end2051 # GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:02052 def match_token_at_26(token, context)2053 if match_EOF(context, token)2054 end_rule(context, :Background);2055 end_rule(context, :Rule);2056 end_rule(context, :Feature);2057 build(context, token);2058 return 422059 end2060 if match_Empty(context, token)2061 build(context, token);2062 return 262063 end2064 if match_Comment(context, token)2065 build(context, token);2066 return 282067 end2068 if match_StepLine(context, token)2069 start_rule(context, :Step);2070 build(context, token);2071 return 292072 end2073 if match_TagLine(context, token)2074 if lookahead_0(context, token)2075 end_rule(context, :Background);2076 start_rule(context, :ScenarioDefinition);2077 start_rule(context, :Tags);2078 build(context, token);2079 return 312080 end2081 end2082 if match_TagLine(context, token)2083 end_rule(context, :Background);2084 end_rule(context, :Rule);2085 start_rule(context, :Rule);2086 start_rule(context, :RuleHeader);2087 start_rule(context, :Tags);2088 build(context, token);2089 return 222090 end2091 if match_ScenarioLine(context, token)2092 end_rule(context, :Background);2093 start_rule(context, :ScenarioDefinition);2094 start_rule(context, :Scenario);2095 build(context, token);2096 return 322097 end2098 if match_RuleLine(context, token)2099 end_rule(context, :Background);2100 end_rule(context, :Rule);2101 start_rule(context, :Rule);2102 start_rule(context, :RuleHeader);2103 build(context, token);2104 return 232105 end2106 if match_Other(context, token)2107 start_rule(context, :Description);2108 build(context, token);2109 return 272110 end2111 state_comment = "State: 26 - GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0"2112 token.detach2113 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]2114 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2115 raise error if (stop_at_first_error)2116 add_error(context, error)2117 return 262118 end2119 # GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:02120 def match_token_at_27(token, context)2121 if match_EOF(context, token)2122 end_rule(context, :Description);2123 end_rule(context, :Background);2124 end_rule(context, :Rule);2125 end_rule(context, :Feature);2126 build(context, token);2127 return 422128 end2129 if match_Comment(context, token)2130 end_rule(context, :Description);2131 build(context, token);2132 return 282133 end2134 if match_StepLine(context, token)2135 end_rule(context, :Description);2136 start_rule(context, :Step);2137 build(context, token);2138 return 292139 end2140 if match_TagLine(context, token)2141 if lookahead_0(context, token)2142 end_rule(context, :Description);2143 end_rule(context, :Background);2144 start_rule(context, :ScenarioDefinition);2145 start_rule(context, :Tags);2146 build(context, token);2147 return 312148 end2149 end2150 if match_TagLine(context, token)2151 end_rule(context, :Description);2152 end_rule(context, :Background);2153 end_rule(context, :Rule);2154 start_rule(context, :Rule);2155 start_rule(context, :RuleHeader);2156 start_rule(context, :Tags);2157 build(context, token);2158 return 222159 end2160 if match_ScenarioLine(context, token)2161 end_rule(context, :Description);2162 end_rule(context, :Background);2163 start_rule(context, :ScenarioDefinition);2164 start_rule(context, :Scenario);2165 build(context, token);2166 return 322167 end2168 if match_RuleLine(context, token)2169 end_rule(context, :Description);2170 end_rule(context, :Background);2171 end_rule(context, :Rule);2172 start_rule(context, :Rule);2173 start_rule(context, :RuleHeader);2174 build(context, token);2175 return 232176 end2177 if match_Other(context, token)2178 build(context, token);2179 return 272180 end2181 state_comment = "State: 27 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:0"2182 token.detach2183 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]2184 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2185 raise error if (stop_at_first_error)2186 add_error(context, error)2187 return 272188 end2189 # GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:02190 def match_token_at_28(token, context)2191 if match_EOF(context, token)2192 end_rule(context, :Background);2193 end_rule(context, :Rule);2194 end_rule(context, :Feature);2195 build(context, token);2196 return 422197 end2198 if match_Comment(context, token)2199 build(context, token);2200 return 282201 end2202 if match_StepLine(context, token)2203 start_rule(context, :Step);2204 build(context, token);2205 return 292206 end2207 if match_TagLine(context, token)2208 if lookahead_0(context, token)2209 end_rule(context, :Background);2210 start_rule(context, :ScenarioDefinition);2211 start_rule(context, :Tags);2212 build(context, token);2213 return 312214 end2215 end2216 if match_TagLine(context, token)2217 end_rule(context, :Background);2218 end_rule(context, :Rule);2219 start_rule(context, :Rule);2220 start_rule(context, :RuleHeader);2221 start_rule(context, :Tags);2222 build(context, token);2223 return 222224 end2225 if match_ScenarioLine(context, token)2226 end_rule(context, :Background);2227 start_rule(context, :ScenarioDefinition);2228 start_rule(context, :Scenario);2229 build(context, token);2230 return 322231 end2232 if match_RuleLine(context, token)2233 end_rule(context, :Background);2234 end_rule(context, :Rule);2235 start_rule(context, :Rule);2236 start_rule(context, :RuleHeader);2237 build(context, token);2238 return 232239 end2240 if match_Empty(context, token)2241 build(context, token);2242 return 282243 end2244 state_comment = "State: 28 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:0"2245 token.detach2246 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]2247 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2248 raise error if (stop_at_first_error)2249 add_error(context, error)2250 return 282251 end2252 # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:02253 def match_token_at_29(token, context)2254 if match_EOF(context, token)2255 end_rule(context, :Step);2256 end_rule(context, :Background);2257 end_rule(context, :Rule);2258 end_rule(context, :Feature);2259 build(context, token);2260 return 422261 end2262 if match_TableRow(context, token)2263 start_rule(context, :DataTable);2264 build(context, token);2265 return 302266 end2267 if match_DocStringSeparator(context, token)2268 start_rule(context, :DocString);2269 build(context, token);2270 return 452271 end2272 if match_StepLine(context, token)2273 end_rule(context, :Step);2274 start_rule(context, :Step);2275 build(context, token);2276 return 292277 end2278 if match_TagLine(context, token)2279 if lookahead_0(context, token)2280 end_rule(context, :Step);2281 end_rule(context, :Background);2282 start_rule(context, :ScenarioDefinition);2283 start_rule(context, :Tags);2284 build(context, token);2285 return 312286 end2287 end2288 if match_TagLine(context, token)2289 end_rule(context, :Step);2290 end_rule(context, :Background);2291 end_rule(context, :Rule);2292 start_rule(context, :Rule);2293 start_rule(context, :RuleHeader);2294 start_rule(context, :Tags);2295 build(context, token);2296 return 222297 end2298 if match_ScenarioLine(context, token)2299 end_rule(context, :Step);2300 end_rule(context, :Background);2301 start_rule(context, :ScenarioDefinition);2302 start_rule(context, :Scenario);2303 build(context, token);2304 return 322305 end2306 if match_RuleLine(context, token)2307 end_rule(context, :Step);2308 end_rule(context, :Background);2309 end_rule(context, :Rule);2310 start_rule(context, :Rule);2311 start_rule(context, :RuleHeader);2312 build(context, token);2313 return 232314 end2315 if match_Comment(context, token)2316 build(context, token);2317 return 292318 end2319 if match_Empty(context, token)2320 build(context, token);2321 return 292322 end2323 state_comment = "State: 29 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0"2324 token.detach2325 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2326 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2327 raise error if (stop_at_first_error)2328 add_error(context, error)2329 return 292330 end2331 # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:02332 def match_token_at_30(token, context)2333 if match_EOF(context, token)2334 end_rule(context, :DataTable);2335 end_rule(context, :Step);2336 end_rule(context, :Background);2337 end_rule(context, :Rule);2338 end_rule(context, :Feature);2339 build(context, token);2340 return 422341 end2342 if match_TableRow(context, token)2343 build(context, token);2344 return 302345 end2346 if match_StepLine(context, token)2347 end_rule(context, :DataTable);2348 end_rule(context, :Step);2349 start_rule(context, :Step);2350 build(context, token);2351 return 292352 end2353 if match_TagLine(context, token)2354 if lookahead_0(context, token)2355 end_rule(context, :DataTable);2356 end_rule(context, :Step);2357 end_rule(context, :Background);2358 start_rule(context, :ScenarioDefinition);2359 start_rule(context, :Tags);2360 build(context, token);2361 return 312362 end2363 end2364 if match_TagLine(context, token)2365 end_rule(context, :DataTable);2366 end_rule(context, :Step);2367 end_rule(context, :Background);2368 end_rule(context, :Rule);2369 start_rule(context, :Rule);2370 start_rule(context, :RuleHeader);2371 start_rule(context, :Tags);2372 build(context, token);2373 return 222374 end2375 if match_ScenarioLine(context, token)2376 end_rule(context, :DataTable);2377 end_rule(context, :Step);2378 end_rule(context, :Background);2379 start_rule(context, :ScenarioDefinition);2380 start_rule(context, :Scenario);2381 build(context, token);2382 return 322383 end2384 if match_RuleLine(context, token)2385 end_rule(context, :DataTable);2386 end_rule(context, :Step);2387 end_rule(context, :Background);2388 end_rule(context, :Rule);2389 start_rule(context, :Rule);2390 start_rule(context, :RuleHeader);2391 build(context, token);2392 return 232393 end2394 if match_Comment(context, token)2395 build(context, token);2396 return 302397 end2398 if match_Empty(context, token)2399 build(context, token);2400 return 302401 end2402 state_comment = "State: 30 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"2403 token.detach2404 expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2405 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2406 raise error if (stop_at_first_error)2407 add_error(context, error)2408 return 302409 end2410 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:02411 def match_token_at_31(token, context)2412 if match_TagLine(context, token)2413 build(context, token);2414 return 312415 end2416 if match_ScenarioLine(context, token)2417 end_rule(context, :Tags);2418 start_rule(context, :Scenario);2419 build(context, token);2420 return 322421 end2422 if match_Comment(context, token)2423 build(context, token);2424 return 312425 end2426 if match_Empty(context, token)2427 build(context, token);2428 return 312429 end2430 state_comment = "State: 31 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0"2431 token.detach2432 expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]2433 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2434 raise error if (stop_at_first_error)2435 add_error(context, error)2436 return 312437 end2438 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:02439 def match_token_at_32(token, context)2440 if match_EOF(context, token)2441 end_rule(context, :Scenario);2442 end_rule(context, :ScenarioDefinition);2443 end_rule(context, :Rule);2444 end_rule(context, :Feature);2445 build(context, token);2446 return 422447 end2448 if match_Empty(context, token)2449 build(context, token);2450 return 322451 end2452 if match_Comment(context, token)2453 build(context, token);2454 return 342455 end2456 if match_StepLine(context, token)2457 start_rule(context, :Step);2458 build(context, token);2459 return 352460 end2461 if match_TagLine(context, token)2462 if lookahead_1(context, token)2463 start_rule(context, :ExamplesDefinition);2464 start_rule(context, :Tags);2465 build(context, token);2466 return 372467 end2468 end2469 if match_TagLine(context, token)2470 if lookahead_0(context, token)2471 end_rule(context, :Scenario);2472 end_rule(context, :ScenarioDefinition);2473 start_rule(context, :ScenarioDefinition);2474 start_rule(context, :Tags);2475 build(context, token);2476 return 312477 end2478 end2479 if match_TagLine(context, token)2480 end_rule(context, :Scenario);2481 end_rule(context, :ScenarioDefinition);2482 end_rule(context, :Rule);2483 start_rule(context, :Rule);2484 start_rule(context, :RuleHeader);2485 start_rule(context, :Tags);2486 build(context, token);2487 return 222488 end2489 if match_ExamplesLine(context, token)2490 start_rule(context, :ExamplesDefinition);2491 start_rule(context, :Examples);2492 build(context, token);2493 return 382494 end2495 if match_ScenarioLine(context, token)2496 end_rule(context, :Scenario);2497 end_rule(context, :ScenarioDefinition);2498 start_rule(context, :ScenarioDefinition);2499 start_rule(context, :Scenario);2500 build(context, token);2501 return 322502 end2503 if match_RuleLine(context, token)2504 end_rule(context, :Scenario);2505 end_rule(context, :ScenarioDefinition);2506 end_rule(context, :Rule);2507 start_rule(context, :Rule);2508 start_rule(context, :RuleHeader);2509 build(context, token);2510 return 232511 end2512 if match_Other(context, token)2513 start_rule(context, :Description);2514 build(context, token);2515 return 332516 end2517 state_comment = "State: 32 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"2518 token.detach2519 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2520 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2521 raise error if (stop_at_first_error)2522 add_error(context, error)2523 return 322524 end2525 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:02526 def match_token_at_33(token, context)2527 if match_EOF(context, token)2528 end_rule(context, :Description);2529 end_rule(context, :Scenario);2530 end_rule(context, :ScenarioDefinition);2531 end_rule(context, :Rule);2532 end_rule(context, :Feature);2533 build(context, token);2534 return 422535 end2536 if match_Comment(context, token)2537 end_rule(context, :Description);2538 build(context, token);2539 return 342540 end2541 if match_StepLine(context, token)2542 end_rule(context, :Description);2543 start_rule(context, :Step);2544 build(context, token);2545 return 352546 end2547 if match_TagLine(context, token)2548 if lookahead_1(context, token)2549 end_rule(context, :Description);2550 start_rule(context, :ExamplesDefinition);2551 start_rule(context, :Tags);2552 build(context, token);2553 return 372554 end2555 end2556 if match_TagLine(context, token)2557 if lookahead_0(context, token)2558 end_rule(context, :Description);2559 end_rule(context, :Scenario);2560 end_rule(context, :ScenarioDefinition);2561 start_rule(context, :ScenarioDefinition);2562 start_rule(context, :Tags);2563 build(context, token);2564 return 312565 end2566 end2567 if match_TagLine(context, token)2568 end_rule(context, :Description);2569 end_rule(context, :Scenario);2570 end_rule(context, :ScenarioDefinition);2571 end_rule(context, :Rule);2572 start_rule(context, :Rule);2573 start_rule(context, :RuleHeader);2574 start_rule(context, :Tags);2575 build(context, token);2576 return 222577 end2578 if match_ExamplesLine(context, token)2579 end_rule(context, :Description);2580 start_rule(context, :ExamplesDefinition);2581 start_rule(context, :Examples);2582 build(context, token);2583 return 382584 end2585 if match_ScenarioLine(context, token)2586 end_rule(context, :Description);2587 end_rule(context, :Scenario);2588 end_rule(context, :ScenarioDefinition);2589 start_rule(context, :ScenarioDefinition);2590 start_rule(context, :Scenario);2591 build(context, token);2592 return 322593 end2594 if match_RuleLine(context, token)2595 end_rule(context, :Description);2596 end_rule(context, :Scenario);2597 end_rule(context, :ScenarioDefinition);2598 end_rule(context, :Rule);2599 start_rule(context, :Rule);2600 start_rule(context, :RuleHeader);2601 build(context, token);2602 return 232603 end2604 if match_Other(context, token)2605 build(context, token);2606 return 332607 end2608 state_comment = "State: 33 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0"2609 token.detach2610 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2611 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2612 raise error if (stop_at_first_error)2613 add_error(context, error)2614 return 332615 end2616 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:02617 def match_token_at_34(token, context)2618 if match_EOF(context, token)2619 end_rule(context, :Scenario);2620 end_rule(context, :ScenarioDefinition);2621 end_rule(context, :Rule);2622 end_rule(context, :Feature);2623 build(context, token);2624 return 422625 end2626 if match_Comment(context, token)2627 build(context, token);2628 return 342629 end2630 if match_StepLine(context, token)2631 start_rule(context, :Step);2632 build(context, token);2633 return 352634 end2635 if match_TagLine(context, token)2636 if lookahead_1(context, token)2637 start_rule(context, :ExamplesDefinition);2638 start_rule(context, :Tags);2639 build(context, token);2640 return 372641 end2642 end2643 if match_TagLine(context, token)2644 if lookahead_0(context, token)2645 end_rule(context, :Scenario);2646 end_rule(context, :ScenarioDefinition);2647 start_rule(context, :ScenarioDefinition);2648 start_rule(context, :Tags);2649 build(context, token);2650 return 312651 end2652 end2653 if match_TagLine(context, token)2654 end_rule(context, :Scenario);2655 end_rule(context, :ScenarioDefinition);2656 end_rule(context, :Rule);2657 start_rule(context, :Rule);2658 start_rule(context, :RuleHeader);2659 start_rule(context, :Tags);2660 build(context, token);2661 return 222662 end2663 if match_ExamplesLine(context, token)2664 start_rule(context, :ExamplesDefinition);2665 start_rule(context, :Examples);2666 build(context, token);2667 return 382668 end2669 if match_ScenarioLine(context, token)2670 end_rule(context, :Scenario);2671 end_rule(context, :ScenarioDefinition);2672 start_rule(context, :ScenarioDefinition);2673 start_rule(context, :Scenario);2674 build(context, token);2675 return 322676 end2677 if match_RuleLine(context, token)2678 end_rule(context, :Scenario);2679 end_rule(context, :ScenarioDefinition);2680 end_rule(context, :Rule);2681 start_rule(context, :Rule);2682 start_rule(context, :RuleHeader);2683 build(context, token);2684 return 232685 end2686 if match_Empty(context, token)2687 build(context, token);2688 return 342689 end2690 state_comment = "State: 34 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"2691 token.detach2692 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]2693 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2694 raise error if (stop_at_first_error)2695 add_error(context, error)2696 return 342697 end2698 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:02699 def match_token_at_35(token, context)2700 if match_EOF(context, token)2701 end_rule(context, :Step);2702 end_rule(context, :Scenario);2703 end_rule(context, :ScenarioDefinition);2704 end_rule(context, :Rule);2705 end_rule(context, :Feature);2706 build(context, token);2707 return 422708 end2709 if match_TableRow(context, token)2710 start_rule(context, :DataTable);2711 build(context, token);2712 return 362713 end2714 if match_DocStringSeparator(context, token)2715 start_rule(context, :DocString);2716 build(context, token);2717 return 432718 end2719 if match_StepLine(context, token)2720 end_rule(context, :Step);2721 start_rule(context, :Step);2722 build(context, token);2723 return 352724 end2725 if match_TagLine(context, token)2726 if lookahead_1(context, token)2727 end_rule(context, :Step);2728 start_rule(context, :ExamplesDefinition);2729 start_rule(context, :Tags);2730 build(context, token);2731 return 372732 end2733 end2734 if match_TagLine(context, token)2735 if lookahead_0(context, token)2736 end_rule(context, :Step);2737 end_rule(context, :Scenario);2738 end_rule(context, :ScenarioDefinition);2739 start_rule(context, :ScenarioDefinition);2740 start_rule(context, :Tags);2741 build(context, token);2742 return 312743 end2744 end2745 if match_TagLine(context, token)2746 end_rule(context, :Step);2747 end_rule(context, :Scenario);2748 end_rule(context, :ScenarioDefinition);2749 end_rule(context, :Rule);2750 start_rule(context, :Rule);2751 start_rule(context, :RuleHeader);2752 start_rule(context, :Tags);2753 build(context, token);2754 return 222755 end2756 if match_ExamplesLine(context, token)2757 end_rule(context, :Step);2758 start_rule(context, :ExamplesDefinition);2759 start_rule(context, :Examples);2760 build(context, token);2761 return 382762 end2763 if match_ScenarioLine(context, token)2764 end_rule(context, :Step);2765 end_rule(context, :Scenario);2766 end_rule(context, :ScenarioDefinition);2767 start_rule(context, :ScenarioDefinition);2768 start_rule(context, :Scenario);2769 build(context, token);2770 return 322771 end2772 if match_RuleLine(context, token)2773 end_rule(context, :Step);2774 end_rule(context, :Scenario);2775 end_rule(context, :ScenarioDefinition);2776 end_rule(context, :Rule);2777 start_rule(context, :Rule);2778 start_rule(context, :RuleHeader);2779 build(context, token);2780 return 232781 end2782 if match_Comment(context, token)2783 build(context, token);2784 return 352785 end2786 if match_Empty(context, token)2787 build(context, token);2788 return 352789 end2790 state_comment = "State: 35 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"2791 token.detach2792 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2793 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2794 raise error if (stop_at_first_error)2795 add_error(context, error)2796 return 352797 end2798 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:02799 def match_token_at_36(token, context)2800 if match_EOF(context, token)2801 end_rule(context, :DataTable);2802 end_rule(context, :Step);2803 end_rule(context, :Scenario);2804 end_rule(context, :ScenarioDefinition);2805 end_rule(context, :Rule);2806 end_rule(context, :Feature);2807 build(context, token);2808 return 422809 end2810 if match_TableRow(context, token)2811 build(context, token);2812 return 362813 end2814 if match_StepLine(context, token)2815 end_rule(context, :DataTable);2816 end_rule(context, :Step);2817 start_rule(context, :Step);2818 build(context, token);2819 return 352820 end2821 if match_TagLine(context, token)2822 if lookahead_1(context, token)2823 end_rule(context, :DataTable);2824 end_rule(context, :Step);2825 start_rule(context, :ExamplesDefinition);2826 start_rule(context, :Tags);2827 build(context, token);2828 return 372829 end2830 end2831 if match_TagLine(context, token)2832 if lookahead_0(context, token)2833 end_rule(context, :DataTable);2834 end_rule(context, :Step);2835 end_rule(context, :Scenario);2836 end_rule(context, :ScenarioDefinition);2837 start_rule(context, :ScenarioDefinition);2838 start_rule(context, :Tags);2839 build(context, token);2840 return 312841 end2842 end2843 if match_TagLine(context, token)2844 end_rule(context, :DataTable);2845 end_rule(context, :Step);2846 end_rule(context, :Scenario);2847 end_rule(context, :ScenarioDefinition);2848 end_rule(context, :Rule);2849 start_rule(context, :Rule);2850 start_rule(context, :RuleHeader);2851 start_rule(context, :Tags);2852 build(context, token);2853 return 222854 end2855 if match_ExamplesLine(context, token)2856 end_rule(context, :DataTable);2857 end_rule(context, :Step);2858 start_rule(context, :ExamplesDefinition);2859 start_rule(context, :Examples);2860 build(context, token);2861 return 382862 end2863 if match_ScenarioLine(context, token)2864 end_rule(context, :DataTable);2865 end_rule(context, :Step);2866 end_rule(context, :Scenario);2867 end_rule(context, :ScenarioDefinition);2868 start_rule(context, :ScenarioDefinition);2869 start_rule(context, :Scenario);2870 build(context, token);2871 return 322872 end2873 if match_RuleLine(context, token)2874 end_rule(context, :DataTable);2875 end_rule(context, :Step);2876 end_rule(context, :Scenario);2877 end_rule(context, :ScenarioDefinition);2878 end_rule(context, :Rule);2879 start_rule(context, :Rule);2880 start_rule(context, :RuleHeader);2881 build(context, token);2882 return 232883 end2884 if match_Comment(context, token)2885 build(context, token);2886 return 362887 end2888 if match_Empty(context, token)2889 build(context, token);2890 return 362891 end2892 state_comment = "State: 36 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"2893 token.detach2894 expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2895 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2896 raise error if (stop_at_first_error)2897 add_error(context, error)2898 return 362899 end2900 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:02901 def match_token_at_37(token, context)2902 if match_TagLine(context, token)2903 build(context, token);2904 return 372905 end2906 if match_ExamplesLine(context, token)2907 end_rule(context, :Tags);2908 start_rule(context, :Examples);2909 build(context, token);2910 return 382911 end2912 if match_Comment(context, token)2913 build(context, token);2914 return 372915 end2916 if match_Empty(context, token)2917 build(context, token);2918 return 372919 end2920 state_comment = "State: 37 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"2921 token.detach2922 expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]2923 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2924 raise error if (stop_at_first_error)2925 add_error(context, error)2926 return 372927 end2928 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:02929 def match_token_at_38(token, context)2930 if match_EOF(context, token)2931 end_rule(context, :Examples);2932 end_rule(context, :ExamplesDefinition);2933 end_rule(context, :Scenario);2934 end_rule(context, :ScenarioDefinition);2935 end_rule(context, :Rule);2936 end_rule(context, :Feature);2937 build(context, token);2938 return 422939 end2940 if match_Empty(context, token)2941 build(context, token);2942 return 382943 end2944 if match_Comment(context, token)2945 build(context, token);2946 return 402947 end2948 if match_TableRow(context, token)2949 start_rule(context, :ExamplesTable);2950 build(context, token);2951 return 412952 end2953 if match_TagLine(context, token)2954 if lookahead_1(context, token)2955 end_rule(context, :Examples);2956 end_rule(context, :ExamplesDefinition);2957 start_rule(context, :ExamplesDefinition);2958 start_rule(context, :Tags);2959 build(context, token);2960 return 372961 end2962 end2963 if match_TagLine(context, token)2964 if lookahead_0(context, token)2965 end_rule(context, :Examples);2966 end_rule(context, :ExamplesDefinition);2967 end_rule(context, :Scenario);2968 end_rule(context, :ScenarioDefinition);2969 start_rule(context, :ScenarioDefinition);2970 start_rule(context, :Tags);2971 build(context, token);2972 return 312973 end2974 end2975 if match_TagLine(context, token)2976 end_rule(context, :Examples);2977 end_rule(context, :ExamplesDefinition);2978 end_rule(context, :Scenario);2979 end_rule(context, :ScenarioDefinition);2980 end_rule(context, :Rule);2981 start_rule(context, :Rule);2982 start_rule(context, :RuleHeader);2983 start_rule(context, :Tags);2984 build(context, token);2985 return 222986 end2987 if match_ExamplesLine(context, token)2988 end_rule(context, :Examples);2989 end_rule(context, :ExamplesDefinition);2990 start_rule(context, :ExamplesDefinition);2991 start_rule(context, :Examples);2992 build(context, token);2993 return 382994 end2995 if match_ScenarioLine(context, token)2996 end_rule(context, :Examples);2997 end_rule(context, :ExamplesDefinition);2998 end_rule(context, :Scenario);2999 end_rule(context, :ScenarioDefinition);3000 start_rule(context, :ScenarioDefinition);3001 start_rule(context, :Scenario);3002 build(context, token);3003 return 323004 end3005 if match_RuleLine(context, token)3006 end_rule(context, :Examples);3007 end_rule(context, :ExamplesDefinition);3008 end_rule(context, :Scenario);3009 end_rule(context, :ScenarioDefinition);3010 end_rule(context, :Rule);3011 start_rule(context, :Rule);3012 start_rule(context, :RuleHeader);3013 build(context, token);3014 return 233015 end3016 if match_Other(context, token)3017 start_rule(context, :Description);3018 build(context, token);3019 return 393020 end3021 state_comment = "State: 38 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"3022 token.detach3023 expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]3024 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)3025 raise error if (stop_at_first_error)3026 add_error(context, error)3027 return 383028 end3029 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:03030 def match_token_at_39(token, context)3031 if match_EOF(context, token)3032 end_rule(context, :Description);3033 end_rule(context, :Examples);3034 end_rule(context, :ExamplesDefinition);3035 end_rule(context, :Scenario);3036 end_rule(context, :ScenarioDefinition);3037 end_rule(context, :Rule);3038 end_rule(context, :Feature);3039 build(context, token);3040 return 423041 end3042 if match_Comment(context, token)3043 end_rule(context, :Description);3044 build(context, token);3045 return 403046 end3047 if match_TableRow(context, token)3048 end_rule(context, :Description);3049 start_rule(context, :ExamplesTable);3050 build(context, token);3051 return 413052 end3053 if match_TagLine(context, token)3054 if lookahead_1(context, token)3055 end_rule(context, :Description);3056 end_rule(context, :Examples);3057 end_rule(context, :ExamplesDefinition);3058 start_rule(context, :ExamplesDefinition);3059 start_rule(context, :Tags);3060 build(context, token);3061 return 373062 end3063 end3064 if match_TagLine(context, token)3065 if lookahead_0(context, token)3066 end_rule(context, :Description);3067 end_rule(context, :Examples);3068 end_rule(context, :ExamplesDefinition);3069 end_rule(context, :Scenario);3070 end_rule(context, :ScenarioDefinition);3071 start_rule(context, :ScenarioDefinition);3072 start_rule(context, :Tags);3073 build(context, token);3074 return 313075 end3076 end3077 if match_TagLine(context, token)3078 end_rule(context, :Description);3079 end_rule(context, :Examples);3080 end_rule(context, :ExamplesDefinition);3081 end_rule(context, :Scenario);3082 end_rule(context, :ScenarioDefinition);3083 end_rule(context, :Rule);3084 start_rule(context, :Rule);3085 start_rule(context, :RuleHeader);3086 start_rule(context, :Tags);3087 build(context, token);3088 return 223089 end3090 if match_ExamplesLine(context, token)3091 end_rule(context, :Description);3092 end_rule(context, :Examples);3093 end_rule(context, :ExamplesDefinition);3094 start_rule(context, :ExamplesDefinition);3095 start_rule(context, :Examples);3096 build(context, token);3097 return 383098 end3099 if match_ScenarioLine(context, token)3100 end_rule(context, :Description);3101 end_rule(context, :Examples);3102 end_rule(context, :ExamplesDefinition);3103 end_rule(context, :Scenario);3104 end_rule(context, :ScenarioDefinition);3105 start_rule(context, :ScenarioDefinition);3106 start_rule(context, :Scenario);3107 build(context, token);3108 return 323109 end3110 if match_RuleLine(context, token)3111 end_rule(context, :Description);3112 end_rule(context, :Examples);3113 end_rule(context, :ExamplesDefinition);3114 end_rule(context, :Scenario);3115 end_rule(context, :ScenarioDefinition);3116 end_rule(context, :Rule);3117 start_rule(context, :Rule);3118 start_rule(context, :RuleHeader);3119 build(context, token);3120 return 233121 end3122 if match_Other(context, token)3123 build(context, token);3124 return 393125 end3126 state_comment = "State: 39 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0"3127 token.detach3128 expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]3129 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)3130 raise error if (stop_at_first_error)3131 add_error(context, error)3132 return 393133 end3134 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:03135 def match_token_at_40(token, context)3136 if match_EOF(context, token)3137 end_rule(context, :Examples);3138 end_rule(context, :ExamplesDefinition);3139 end_rule(context, :Scenario);3140 end_rule(context, :ScenarioDefinition);3141 end_rule(context, :Rule);3142 end_rule(context, :Feature);3143 build(context, token);3144 return 423145 end3146 if match_Comment(context, token)3147 build(context, token);3148 return 403149 end3150 if match_TableRow(context, token)3151 start_rule(context, :ExamplesTable);3152 build(context, token);3153 return 413154 end3155 if match_TagLine(context, token)3156 if lookahead_1(context, token)3157 end_rule(context, :Examples);3158 end_rule(context, :ExamplesDefinition);3159 start_rule(context, :ExamplesDefinition);3160 start_rule(context, :Tags);3161 build(context, token);3162 return 373163 end3164 end3165 if match_TagLine(context, token)3166 if lookahead_0(context, token)3167 end_rule(context, :Examples);3168 end_rule(context, :ExamplesDefinition);3169 end_rule(context, :Scenario);3170 end_rule(context, :ScenarioDefinition);3171 start_rule(context, :ScenarioDefinition);3172 start_rule(context, :Tags);3173 build(context, token);3174 return 313175 end3176 end3177 if match_TagLine(context, token)3178 end_rule(context, :Examples);3179 end_rule(context, :ExamplesDefinition);3180 end_rule(context, :Scenario);3181 end_rule(context, :ScenarioDefinition);3182 end_rule(context, :Rule);3183 start_rule(context, :Rule);3184 start_rule(context, :RuleHeader);3185 start_rule(context, :Tags);3186 build(context, token);3187 return 223188 end3189 if match_ExamplesLine(context, token)3190 end_rule(context, :Examples);3191 end_rule(context, :ExamplesDefinition);3192 start_rule(context, :ExamplesDefinition);3193 start_rule(context, :Examples);3194 build(context, token);3195 return 383196 end3197 if match_ScenarioLine(context, token)3198 end_rule(context, :Examples);3199 end_rule(context, :ExamplesDefinition);3200 end_rule(context, :Scenario);3201 end_rule(context, :ScenarioDefinition);3202 start_rule(context, :ScenarioDefinition);3203 start_rule(context, :Scenario);3204 build(context, token);3205 return 323206 end3207 if match_RuleLine(context, token)3208 end_rule(context, :Examples);3209 end_rule(context, :ExamplesDefinition);3210 end_rule(context, :Scenario);3211 end_rule(context, :ScenarioDefinition);3212 end_rule(context, :Rule);3213 start_rule(context, :Rule);3214 start_rule(context, :RuleHeader);3215 build(context, token);3216 return 233217 end3218 if match_Empty(context, token)3219 build(context, token);3220 return 403221 end3222 state_comment = "State: 40 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0"3223 token.detach3224 expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]3225 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)3226 raise error if (stop_at_first_error)3227 add_error(context, error)3228 return 403229 end3230 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:03231 def match_token_at_41(token, context)3232 if match_EOF(context, token)3233 end_rule(context, :ExamplesTable);3234 end_rule(context, :Examples);3235 end_rule(context, :ExamplesDefinition);3236 end_rule(context, :Scenario);3237 end_rule(context, :ScenarioDefinition);3238 end_rule(context, :Rule);3239 end_rule(context, :Feature);3240 build(context, token);3241 return 423242 end3243 if match_TableRow(context, token)3244 build(context, token);3245 return 41...

Full Screen

Full Screen

cucumber-gherkin.rbi

Source:cucumber-gherkin.rbi Github

copy

Full Screen

...225 def match_token_at_38(token, context); end226 def match_token_at_39(token, context); end227 def match_token_at_4(token, context); end228 def match_token_at_40(token, context); end229 def match_token_at_41(token, context); end230 def match_token_at_43(token, context); end231 def match_token_at_44(token, context); end232 def match_token_at_45(token, context); end233 def match_token_at_46(token, context); end234 def match_token_at_47(token, context); end235 def match_token_at_48(token, context); end236 def match_token_at_49(token, context); end237 def match_token_at_5(token, context); end238 def match_token_at_50(token, context); end239 def match_token_at_6(token, context); end240 def match_token_at_7(token, context); end241 def match_token_at_8(token, context); end242 def match_token_at_9(token, context); end243 def parse(token_scanner, token_matcher = nil); end...

Full Screen

Full Screen

match_token_at_41

Using AI Code Generation

copy

Full Screen

1listener = Gherkin::Formatter::PrettyFormatter.new(STDOUT, false, false)2parser = Gherkin::Parser::Parser.new(listener, false, 'root')3parser.parse(lexer.scan("Feature: blah4puts parser.match_token_at_41(lexer, 1, 1)

Full Screen

Full Screen

match_token_at_41

Using AI Code Generation

copy

Full Screen

1file = File.open(ARGV[0], "r")2parser = Gherkin::Parser::Parser.new(lexer)3formatter = Gherkin::Formatter::PrettyFormatter.new(true, true)4parser.parse(contents, formatter, true)5file = File.open(ARGV[0], "r")6parser = Gherkin::Parser::Parser.new(lexer)7formatter = Gherkin::Formatter::PrettyFormatter.new(true, true)8parser.parse(contents, formatter, true)9file = File.open(ARGV[0], "r")10parser = Gherkin::Parser::Parser.new(lexer)11formatter = Gherkin::Formatter::PrettyFormatter.new(true, true)12parser.parse(contents, formatter, true)

Full Screen

Full Screen

match_token_at_41

Using AI Code Generation

copy

Full Screen

1gherkin_file = File.read('simple.feature')2gherkin.parse(gherkin_file)3gherkin_file = File.read('simple.feature')4gherkin.parse(gherkin_file)5gherkin_file = File.read('simple.feature')6gherkin.parse(gherkin_file)7gherkin_file = File.read('simple.feature')

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.

Run Gherkin-ruby automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used method in

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful