How to use match_token_at_27 method of Gherkin Package

Best Gherkin-ruby code snippet using Gherkin.match_token_at_27

parser.rb

Source:parser.rb Github

copy

Full Screen

...238 match_token_at_25(token, context)239 when 26240 match_token_at_26(token, context)241 when 27242 match_token_at_27(token, context)243 when 28244 match_token_at_28(token, context)245 when 29246 match_token_at_29(token, context)247 when 30248 match_token_at_30(token, context)249 when 31250 match_token_at_31(token, context)251 when 32252 match_token_at_32(token, context)253 when 33254 match_token_at_33(token, context)255 when 34256 match_token_at_34(token, context)257 when 35258 match_token_at_35(token, context)259 when 36260 match_token_at_36(token, context)261 when 37262 match_token_at_37(token, context)263 when 38264 match_token_at_38(token, context)265 when 39266 match_token_at_39(token, context)267 when 40268 match_token_at_40(token, context)269 when 42270 match_token_at_42(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 else286 raise InvalidOperationException, "Unknown state: #{state}"287 end288 end289 # Start290 def match_token_at_0(token, context)291 if match_EOF(context, token)292 build(context, token);293 return 41294 end295 if match_Language(context, token)296 start_rule(context, :Feature);297 start_rule(context, :FeatureHeader);298 build(context, token);299 return 1300 end301 if match_TagLine(context, token)302 start_rule(context, :Feature);303 start_rule(context, :FeatureHeader);304 start_rule(context, :Tags);305 build(context, token);306 return 2307 end308 if match_FeatureLine(context, token)309 start_rule(context, :Feature);310 start_rule(context, :FeatureHeader);311 build(context, token);312 return 3313 end314 if match_Comment(context, token)315 build(context, token);316 return 0317 end318 if match_Empty(context, token)319 build(context, token);320 return 0321 end322 323 state_comment = "State: 0 - Start"324 token.detach325 expected_tokens = ["#EOF", "#Language", "#TagLine", "#FeatureLine", "#Comment", "#Empty"]326 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)327 raise error if (stop_at_first_error)328 add_error(context, error)329 return 0330 end331 # GherkinDocument:0>Feature:0>FeatureHeader:0>#Language:0332 def match_token_at_1(token, context)333 if match_TagLine(context, token)334 start_rule(context, :Tags);335 build(context, token);336 return 2337 end338 if match_FeatureLine(context, token)339 build(context, token);340 return 3341 end342 if match_Comment(context, token)343 build(context, token);344 return 1345 end346 if match_Empty(context, token)347 build(context, token);348 return 1349 end350 351 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 379 state_comment = "State: 2 - GherkinDocument:0>Feature:0>FeatureHeader:1>Tags:0>#TagLine:0"380 token.detach381 expected_tokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"]382 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)383 raise error if (stop_at_first_error)384 add_error(context, error)385 return 2386 end387 # GherkinDocument:0>Feature:0>FeatureHeader:2>#FeatureLine:0388 def match_token_at_3(token, context)389 if match_EOF(context, token)390 end_rule(context, :FeatureHeader);391 end_rule(context, :Feature);392 build(context, token);393 return 41394 end395 if match_Empty(context, token)396 build(context, token);397 return 3398 end399 if match_Comment(context, token)400 build(context, token);401 return 5402 end403 if match_BackgroundLine(context, token)404 end_rule(context, :FeatureHeader);405 start_rule(context, :Background);406 build(context, token);407 return 6408 end409 if match_TagLine(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 if match_ScenarioLine(context, token)417 end_rule(context, :FeatureHeader);418 start_rule(context, :ScenarioDefinition);419 start_rule(context, :Scenario);420 build(context, token);421 return 12422 end423 if match_RuleLine(context, token)424 end_rule(context, :FeatureHeader);425 start_rule(context, :Rule);426 start_rule(context, :RuleHeader);427 build(context, token);428 return 22429 end430 if match_Other(context, token)431 start_rule(context, :Description);432 build(context, token);433 return 4434 end435 436 state_comment = "State: 3 - GherkinDocument:0>Feature:0>FeatureHeader:2>#FeatureLine:0"437 token.detach438 expected_tokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]439 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)440 raise error if (stop_at_first_error)441 add_error(context, error)442 return 3443 end444 # GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0445 def match_token_at_4(token, context)446 if match_EOF(context, token)447 end_rule(context, :Description);448 end_rule(context, :FeatureHeader);449 end_rule(context, :Feature);450 build(context, token);451 return 41452 end453 if match_Comment(context, token)454 end_rule(context, :Description);455 build(context, token);456 return 5457 end458 if match_BackgroundLine(context, token)459 end_rule(context, :Description);460 end_rule(context, :FeatureHeader);461 start_rule(context, :Background);462 build(context, token);463 return 6464 end465 if match_TagLine(context, token)466 end_rule(context, :Description);467 end_rule(context, :FeatureHeader);468 start_rule(context, :ScenarioDefinition);469 start_rule(context, :Tags);470 build(context, token);471 return 11472 end473 if match_ScenarioLine(context, token)474 end_rule(context, :Description);475 end_rule(context, :FeatureHeader);476 start_rule(context, :ScenarioDefinition);477 start_rule(context, :Scenario);478 build(context, token);479 return 12480 end481 if match_RuleLine(context, token)482 end_rule(context, :Description);483 end_rule(context, :FeatureHeader);484 start_rule(context, :Rule);485 start_rule(context, :RuleHeader);486 build(context, token);487 return 22488 end489 if match_Other(context, token)490 build(context, token);491 return 4492 end493 494 state_comment = "State: 4 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0"495 token.detach496 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]497 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)498 raise error if (stop_at_first_error)499 add_error(context, error)500 return 4501 end502 # GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0503 def match_token_at_5(token, context)504 if match_EOF(context, token)505 end_rule(context, :FeatureHeader);506 end_rule(context, :Feature);507 build(context, token);508 return 41509 end510 if match_Comment(context, token)511 build(context, token);512 return 5513 end514 if match_BackgroundLine(context, token)515 end_rule(context, :FeatureHeader);516 start_rule(context, :Background);517 build(context, token);518 return 6519 end520 if match_TagLine(context, token)521 end_rule(context, :FeatureHeader);522 start_rule(context, :ScenarioDefinition);523 start_rule(context, :Tags);524 build(context, token);525 return 11526 end527 if match_ScenarioLine(context, token)528 end_rule(context, :FeatureHeader);529 start_rule(context, :ScenarioDefinition);530 start_rule(context, :Scenario);531 build(context, token);532 return 12533 end534 if match_RuleLine(context, token)535 end_rule(context, :FeatureHeader);536 start_rule(context, :Rule);537 start_rule(context, :RuleHeader);538 build(context, token);539 return 22540 end541 if match_Empty(context, token)542 build(context, token);543 return 5544 end545 546 state_comment = "State: 5 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0"547 token.detach548 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]549 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)550 raise error if (stop_at_first_error)551 add_error(context, error)552 return 5553 end554 # GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0555 def match_token_at_6(token, context)556 if match_EOF(context, token)557 end_rule(context, :Background);558 end_rule(context, :Feature);559 build(context, token);560 return 41561 end562 if match_Empty(context, token)563 build(context, token);564 return 6565 end566 if match_Comment(context, token)567 build(context, token);568 return 8569 end570 if match_StepLine(context, token)571 start_rule(context, :Step);572 build(context, token);573 return 9574 end575 if match_TagLine(context, token)576 end_rule(context, :Background);577 start_rule(context, :ScenarioDefinition);578 start_rule(context, :Tags);579 build(context, token);580 return 11581 end582 if match_ScenarioLine(context, token)583 end_rule(context, :Background);584 start_rule(context, :ScenarioDefinition);585 start_rule(context, :Scenario);586 build(context, token);587 return 12588 end589 if match_RuleLine(context, token)590 end_rule(context, :Background);591 start_rule(context, :Rule);592 start_rule(context, :RuleHeader);593 build(context, token);594 return 22595 end596 if match_Other(context, token)597 start_rule(context, :Description);598 build(context, token);599 return 7600 end601 602 state_comment = "State: 6 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0"603 token.detach604 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]605 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)606 raise error if (stop_at_first_error)607 add_error(context, error)608 return 6609 end610 # GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0611 def match_token_at_7(token, context)612 if match_EOF(context, token)613 end_rule(context, :Description);614 end_rule(context, :Background);615 end_rule(context, :Feature);616 build(context, token);617 return 41618 end619 if match_Comment(context, token)620 end_rule(context, :Description);621 build(context, token);622 return 8623 end624 if match_StepLine(context, token)625 end_rule(context, :Description);626 start_rule(context, :Step);627 build(context, token);628 return 9629 end630 if match_TagLine(context, token)631 end_rule(context, :Description);632 end_rule(context, :Background);633 start_rule(context, :ScenarioDefinition);634 start_rule(context, :Tags);635 build(context, token);636 return 11637 end638 if match_ScenarioLine(context, token)639 end_rule(context, :Description);640 end_rule(context, :Background);641 start_rule(context, :ScenarioDefinition);642 start_rule(context, :Scenario);643 build(context, token);644 return 12645 end646 if match_RuleLine(context, token)647 end_rule(context, :Description);648 end_rule(context, :Background);649 start_rule(context, :Rule);650 start_rule(context, :RuleHeader);651 build(context, token);652 return 22653 end654 if match_Other(context, token)655 build(context, token);656 return 7657 end658 659 state_comment = "State: 7 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0"660 token.detach661 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]662 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)663 raise error if (stop_at_first_error)664 add_error(context, error)665 return 7666 end667 # GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0668 def match_token_at_8(token, context)669 if match_EOF(context, token)670 end_rule(context, :Background);671 end_rule(context, :Feature);672 build(context, token);673 return 41674 end675 if match_Comment(context, token)676 build(context, token);677 return 8678 end679 if match_StepLine(context, token)680 start_rule(context, :Step);681 build(context, token);682 return 9683 end684 if match_TagLine(context, token)685 end_rule(context, :Background);686 start_rule(context, :ScenarioDefinition);687 start_rule(context, :Tags);688 build(context, token);689 return 11690 end691 if match_ScenarioLine(context, token)692 end_rule(context, :Background);693 start_rule(context, :ScenarioDefinition);694 start_rule(context, :Scenario);695 build(context, token);696 return 12697 end698 if match_RuleLine(context, token)699 end_rule(context, :Background);700 start_rule(context, :Rule);701 start_rule(context, :RuleHeader);702 build(context, token);703 return 22704 end705 if match_Empty(context, token)706 build(context, token);707 return 8708 end709 710 state_comment = "State: 8 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0"711 token.detach712 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]713 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)714 raise error if (stop_at_first_error)715 add_error(context, error)716 return 8717 end718 # GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0719 def match_token_at_9(token, context)720 if match_EOF(context, token)721 end_rule(context, :Step);722 end_rule(context, :Background);723 end_rule(context, :Feature);724 build(context, token);725 return 41726 end727 if match_TableRow(context, token)728 start_rule(context, :DataTable);729 build(context, token);730 return 10731 end732 if match_DocStringSeparator(context, token)733 start_rule(context, :DocString);734 build(context, token);735 return 48736 end737 if match_StepLine(context, token)738 end_rule(context, :Step);739 start_rule(context, :Step);740 build(context, token);741 return 9742 end743 if match_TagLine(context, token)744 end_rule(context, :Step);745 end_rule(context, :Background);746 start_rule(context, :ScenarioDefinition);747 start_rule(context, :Tags);748 build(context, token);749 return 11750 end751 if match_ScenarioLine(context, token)752 end_rule(context, :Step);753 end_rule(context, :Background);754 start_rule(context, :ScenarioDefinition);755 start_rule(context, :Scenario);756 build(context, token);757 return 12758 end759 if match_RuleLine(context, token)760 end_rule(context, :Step);761 end_rule(context, :Background);762 start_rule(context, :Rule);763 start_rule(context, :RuleHeader);764 build(context, token);765 return 22766 end767 if match_Comment(context, token)768 build(context, token);769 return 9770 end771 if match_Empty(context, token)772 build(context, token);773 return 9774 end775 776 state_comment = "State: 9 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0"777 token.detach778 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]779 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)780 raise error if (stop_at_first_error)781 add_error(context, error)782 return 9783 end784 # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0785 def match_token_at_10(token, context)786 if match_EOF(context, token)787 end_rule(context, :DataTable);788 end_rule(context, :Step);789 end_rule(context, :Background);790 end_rule(context, :Feature);791 build(context, token);792 return 41793 end794 if match_TableRow(context, token)795 build(context, token);796 return 10797 end798 if match_StepLine(context, token)799 end_rule(context, :DataTable);800 end_rule(context, :Step);801 start_rule(context, :Step);802 build(context, token);803 return 9804 end805 if match_TagLine(context, token)806 end_rule(context, :DataTable);807 end_rule(context, :Step);808 end_rule(context, :Background);809 start_rule(context, :ScenarioDefinition);810 start_rule(context, :Tags);811 build(context, token);812 return 11813 end814 if match_ScenarioLine(context, token)815 end_rule(context, :DataTable);816 end_rule(context, :Step);817 end_rule(context, :Background);818 start_rule(context, :ScenarioDefinition);819 start_rule(context, :Scenario);820 build(context, token);821 return 12822 end823 if match_RuleLine(context, token)824 end_rule(context, :DataTable);825 end_rule(context, :Step);826 end_rule(context, :Background);827 start_rule(context, :Rule);828 start_rule(context, :RuleHeader);829 build(context, token);830 return 22831 end832 if match_Comment(context, token)833 build(context, token);834 return 10835 end836 if match_Empty(context, token)837 build(context, token);838 return 10839 end840 841 state_comment = "State: 10 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"842 token.detach843 expected_tokens = ["#EOF", "#TableRow", "#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 10848 end849 # GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0850 def match_token_at_11(token, context)851 if match_TagLine(context, token)852 build(context, token);853 return 11854 end855 if match_ScenarioLine(context, token)856 end_rule(context, :Tags);857 start_rule(context, :Scenario);858 build(context, token);859 return 12860 end861 if match_Comment(context, token)862 build(context, token);863 return 11864 end865 if match_Empty(context, token)866 build(context, token);867 return 11868 end869 870 state_comment = "State: 11 - GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0"871 token.detach872 expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]873 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)874 raise error if (stop_at_first_error)875 add_error(context, error)876 return 11877 end878 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0879 def match_token_at_12(token, context)880 if match_EOF(context, token)881 end_rule(context, :Scenario);882 end_rule(context, :ScenarioDefinition);883 end_rule(context, :Feature);884 build(context, token);885 return 41886 end887 if match_Empty(context, token)888 build(context, token);889 return 12890 end891 if match_Comment(context, token)892 build(context, token);893 return 14894 end895 if match_StepLine(context, token)896 start_rule(context, :Step);897 build(context, token);898 return 15899 end900 if match_TagLine(context, token)901 if lookahead_0(context, token)902 start_rule(context, :ExamplesDefinition);903 start_rule(context, :Tags);904 build(context, token);905 return 17906 end907 end908 if match_TagLine(context, token)909 end_rule(context, :Scenario);910 end_rule(context, :ScenarioDefinition);911 start_rule(context, :ScenarioDefinition);912 start_rule(context, :Tags);913 build(context, token);914 return 11915 end916 if match_ExamplesLine(context, token)917 start_rule(context, :ExamplesDefinition);918 start_rule(context, :Examples);919 build(context, token);920 return 18921 end922 if match_ScenarioLine(context, token)923 end_rule(context, :Scenario);924 end_rule(context, :ScenarioDefinition);925 start_rule(context, :ScenarioDefinition);926 start_rule(context, :Scenario);927 build(context, token);928 return 12929 end930 if match_RuleLine(context, token)931 end_rule(context, :Scenario);932 end_rule(context, :ScenarioDefinition);933 start_rule(context, :Rule);934 start_rule(context, :RuleHeader);935 build(context, token);936 return 22937 end938 if match_Other(context, token)939 start_rule(context, :Description);940 build(context, token);941 return 13942 end943 944 state_comment = "State: 12 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"945 token.detach946 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]947 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)948 raise error if (stop_at_first_error)949 add_error(context, error)950 return 12951 end952 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0953 def match_token_at_13(token, context)954 if match_EOF(context, token)955 end_rule(context, :Description);956 end_rule(context, :Scenario);957 end_rule(context, :ScenarioDefinition);958 end_rule(context, :Feature);959 build(context, token);960 return 41961 end962 if match_Comment(context, token)963 end_rule(context, :Description);964 build(context, token);965 return 14966 end967 if match_StepLine(context, token)968 end_rule(context, :Description);969 start_rule(context, :Step);970 build(context, token);971 return 15972 end973 if match_TagLine(context, token)974 if lookahead_0(context, token)975 end_rule(context, :Description);976 start_rule(context, :ExamplesDefinition);977 start_rule(context, :Tags);978 build(context, token);979 return 17980 end981 end982 if match_TagLine(context, token)983 end_rule(context, :Description);984 end_rule(context, :Scenario);985 end_rule(context, :ScenarioDefinition);986 start_rule(context, :ScenarioDefinition);987 start_rule(context, :Tags);988 build(context, token);989 return 11990 end991 if match_ExamplesLine(context, token)992 end_rule(context, :Description);993 start_rule(context, :ExamplesDefinition);994 start_rule(context, :Examples);995 build(context, token);996 return 18997 end998 if match_ScenarioLine(context, token)999 end_rule(context, :Description);1000 end_rule(context, :Scenario);1001 end_rule(context, :ScenarioDefinition);1002 start_rule(context, :ScenarioDefinition);1003 start_rule(context, :Scenario);1004 build(context, token);1005 return 121006 end1007 if match_RuleLine(context, token)1008 end_rule(context, :Description);1009 end_rule(context, :Scenario);1010 end_rule(context, :ScenarioDefinition);1011 start_rule(context, :Rule);1012 start_rule(context, :RuleHeader);1013 build(context, token);1014 return 221015 end1016 if match_Other(context, token)1017 build(context, token);1018 return 131019 end1020 1021 state_comment = "State: 13 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0"1022 token.detach1023 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]1024 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1025 raise error if (stop_at_first_error)1026 add_error(context, error)1027 return 131028 end1029 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:01030 def match_token_at_14(token, context)1031 if match_EOF(context, token)1032 end_rule(context, :Scenario);1033 end_rule(context, :ScenarioDefinition);1034 end_rule(context, :Feature);1035 build(context, token);1036 return 411037 end1038 if match_Comment(context, token)1039 build(context, token);1040 return 141041 end1042 if match_StepLine(context, token)1043 start_rule(context, :Step);1044 build(context, token);1045 return 151046 end1047 if match_TagLine(context, token)1048 if lookahead_0(context, token)1049 start_rule(context, :ExamplesDefinition);1050 start_rule(context, :Tags);1051 build(context, token);1052 return 171053 end1054 end1055 if match_TagLine(context, token)1056 end_rule(context, :Scenario);1057 end_rule(context, :ScenarioDefinition);1058 start_rule(context, :ScenarioDefinition);1059 start_rule(context, :Tags);1060 build(context, token);1061 return 111062 end1063 if match_ExamplesLine(context, token)1064 start_rule(context, :ExamplesDefinition);1065 start_rule(context, :Examples);1066 build(context, token);1067 return 181068 end1069 if match_ScenarioLine(context, token)1070 end_rule(context, :Scenario);1071 end_rule(context, :ScenarioDefinition);1072 start_rule(context, :ScenarioDefinition);1073 start_rule(context, :Scenario);1074 build(context, token);1075 return 121076 end1077 if match_RuleLine(context, token)1078 end_rule(context, :Scenario);1079 end_rule(context, :ScenarioDefinition);1080 start_rule(context, :Rule);1081 start_rule(context, :RuleHeader);1082 build(context, token);1083 return 221084 end1085 if match_Empty(context, token)1086 build(context, token);1087 return 141088 end1089 1090 state_comment = "State: 14 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"1091 token.detach1092 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]1093 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1094 raise error if (stop_at_first_error)1095 add_error(context, error)1096 return 141097 end1098 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:01099 def match_token_at_15(token, context)1100 if match_EOF(context, token)1101 end_rule(context, :Step);1102 end_rule(context, :Scenario);1103 end_rule(context, :ScenarioDefinition);1104 end_rule(context, :Feature);1105 build(context, token);1106 return 411107 end1108 if match_TableRow(context, token)1109 start_rule(context, :DataTable);1110 build(context, token);1111 return 161112 end1113 if match_DocStringSeparator(context, token)1114 start_rule(context, :DocString);1115 build(context, token);1116 return 461117 end1118 if match_StepLine(context, token)1119 end_rule(context, :Step);1120 start_rule(context, :Step);1121 build(context, token);1122 return 151123 end1124 if match_TagLine(context, token)1125 if lookahead_0(context, token)1126 end_rule(context, :Step);1127 start_rule(context, :ExamplesDefinition);1128 start_rule(context, :Tags);1129 build(context, token);1130 return 171131 end1132 end1133 if match_TagLine(context, token)1134 end_rule(context, :Step);1135 end_rule(context, :Scenario);1136 end_rule(context, :ScenarioDefinition);1137 start_rule(context, :ScenarioDefinition);1138 start_rule(context, :Tags);1139 build(context, token);1140 return 111141 end1142 if match_ExamplesLine(context, token)1143 end_rule(context, :Step);1144 start_rule(context, :ExamplesDefinition);1145 start_rule(context, :Examples);1146 build(context, token);1147 return 181148 end1149 if match_ScenarioLine(context, token)1150 end_rule(context, :Step);1151 end_rule(context, :Scenario);1152 end_rule(context, :ScenarioDefinition);1153 start_rule(context, :ScenarioDefinition);1154 start_rule(context, :Scenario);1155 build(context, token);1156 return 121157 end1158 if match_RuleLine(context, token)1159 end_rule(context, :Step);1160 end_rule(context, :Scenario);1161 end_rule(context, :ScenarioDefinition);1162 start_rule(context, :Rule);1163 start_rule(context, :RuleHeader);1164 build(context, token);1165 return 221166 end1167 if match_Comment(context, token)1168 build(context, token);1169 return 151170 end1171 if match_Empty(context, token)1172 build(context, token);1173 return 151174 end1175 1176 state_comment = "State: 15 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"1177 token.detach1178 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1179 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1180 raise error if (stop_at_first_error)1181 add_error(context, error)1182 return 151183 end1184 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:01185 def match_token_at_16(token, context)1186 if match_EOF(context, token)1187 end_rule(context, :DataTable);1188 end_rule(context, :Step);1189 end_rule(context, :Scenario);1190 end_rule(context, :ScenarioDefinition);1191 end_rule(context, :Feature);1192 build(context, token);1193 return 411194 end1195 if match_TableRow(context, token)1196 build(context, token);1197 return 161198 end1199 if match_StepLine(context, token)1200 end_rule(context, :DataTable);1201 end_rule(context, :Step);1202 start_rule(context, :Step);1203 build(context, token);1204 return 151205 end1206 if match_TagLine(context, token)1207 if lookahead_0(context, token)1208 end_rule(context, :DataTable);1209 end_rule(context, :Step);1210 start_rule(context, :ExamplesDefinition);1211 start_rule(context, :Tags);1212 build(context, token);1213 return 171214 end1215 end1216 if match_TagLine(context, token)1217 end_rule(context, :DataTable);1218 end_rule(context, :Step);1219 end_rule(context, :Scenario);1220 end_rule(context, :ScenarioDefinition);1221 start_rule(context, :ScenarioDefinition);1222 start_rule(context, :Tags);1223 build(context, token);1224 return 111225 end1226 if match_ExamplesLine(context, token)1227 end_rule(context, :DataTable);1228 end_rule(context, :Step);1229 start_rule(context, :ExamplesDefinition);1230 start_rule(context, :Examples);1231 build(context, token);1232 return 181233 end1234 if match_ScenarioLine(context, token)1235 end_rule(context, :DataTable);1236 end_rule(context, :Step);1237 end_rule(context, :Scenario);1238 end_rule(context, :ScenarioDefinition);1239 start_rule(context, :ScenarioDefinition);1240 start_rule(context, :Scenario);1241 build(context, token);1242 return 121243 end1244 if match_RuleLine(context, token)1245 end_rule(context, :DataTable);1246 end_rule(context, :Step);1247 end_rule(context, :Scenario);1248 end_rule(context, :ScenarioDefinition);1249 start_rule(context, :Rule);1250 start_rule(context, :RuleHeader);1251 build(context, token);1252 return 221253 end1254 if match_Comment(context, token)1255 build(context, token);1256 return 161257 end1258 if match_Empty(context, token)1259 build(context, token);1260 return 161261 end1262 1263 state_comment = "State: 16 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"1264 token.detach1265 expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1266 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1267 raise error if (stop_at_first_error)1268 add_error(context, error)1269 return 161270 end1271 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:01272 def match_token_at_17(token, context)1273 if match_TagLine(context, token)1274 build(context, token);1275 return 171276 end1277 if match_ExamplesLine(context, token)1278 end_rule(context, :Tags);1279 start_rule(context, :Examples);1280 build(context, token);1281 return 181282 end1283 if match_Comment(context, token)1284 build(context, token);1285 return 171286 end1287 if match_Empty(context, token)1288 build(context, token);1289 return 171290 end1291 1292 state_comment = "State: 17 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"1293 token.detach1294 expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]1295 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1296 raise error if (stop_at_first_error)1297 add_error(context, error)1298 return 171299 end1300 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:01301 def match_token_at_18(token, context)1302 if match_EOF(context, token)1303 end_rule(context, :Examples);1304 end_rule(context, :ExamplesDefinition);1305 end_rule(context, :Scenario);1306 end_rule(context, :ScenarioDefinition);1307 end_rule(context, :Feature);1308 build(context, token);1309 return 411310 end1311 if match_Empty(context, token)1312 build(context, token);1313 return 181314 end1315 if match_Comment(context, token)1316 build(context, token);1317 return 201318 end1319 if match_TableRow(context, token)1320 start_rule(context, :ExamplesTable);1321 build(context, token);1322 return 211323 end1324 if match_TagLine(context, token)1325 if lookahead_0(context, token)1326 end_rule(context, :Examples);1327 end_rule(context, :ExamplesDefinition);1328 start_rule(context, :ExamplesDefinition);1329 start_rule(context, :Tags);1330 build(context, token);1331 return 171332 end1333 end1334 if match_TagLine(context, token)1335 end_rule(context, :Examples);1336 end_rule(context, :ExamplesDefinition);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 if match_ExamplesLine(context, token)1345 end_rule(context, :Examples);1346 end_rule(context, :ExamplesDefinition);1347 start_rule(context, :ExamplesDefinition);1348 start_rule(context, :Examples);1349 build(context, token);1350 return 181351 end1352 if match_ScenarioLine(context, token)1353 end_rule(context, :Examples);1354 end_rule(context, :ExamplesDefinition);1355 end_rule(context, :Scenario);1356 end_rule(context, :ScenarioDefinition);1357 start_rule(context, :ScenarioDefinition);1358 start_rule(context, :Scenario);1359 build(context, token);1360 return 121361 end1362 if match_RuleLine(context, token)1363 end_rule(context, :Examples);1364 end_rule(context, :ExamplesDefinition);1365 end_rule(context, :Scenario);1366 end_rule(context, :ScenarioDefinition);1367 start_rule(context, :Rule);1368 start_rule(context, :RuleHeader);1369 build(context, token);1370 return 221371 end1372 if match_Other(context, token)1373 start_rule(context, :Description);1374 build(context, token);1375 return 191376 end1377 1378 state_comment = "State: 18 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"1379 token.detach1380 expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]1381 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1382 raise error if (stop_at_first_error)1383 add_error(context, error)1384 return 181385 end1386 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:01387 def match_token_at_19(token, context)1388 if match_EOF(context, token)1389 end_rule(context, :Description);1390 end_rule(context, :Examples);1391 end_rule(context, :ExamplesDefinition);1392 end_rule(context, :Scenario);1393 end_rule(context, :ScenarioDefinition);1394 end_rule(context, :Feature);1395 build(context, token);1396 return 411397 end1398 if match_Comment(context, token)1399 end_rule(context, :Description);1400 build(context, token);1401 return 201402 end1403 if match_TableRow(context, token)1404 end_rule(context, :Description);1405 start_rule(context, :ExamplesTable);1406 build(context, token);1407 return 211408 end1409 if match_TagLine(context, token)1410 if lookahead_0(context, token)1411 end_rule(context, :Description);1412 end_rule(context, :Examples);1413 end_rule(context, :ExamplesDefinition);1414 start_rule(context, :ExamplesDefinition);1415 start_rule(context, :Tags);1416 build(context, token);1417 return 171418 end1419 end1420 if match_TagLine(context, token)1421 end_rule(context, :Description);1422 end_rule(context, :Examples);1423 end_rule(context, :ExamplesDefinition);1424 end_rule(context, :Scenario);1425 end_rule(context, :ScenarioDefinition);1426 start_rule(context, :ScenarioDefinition);1427 start_rule(context, :Tags);1428 build(context, token);1429 return 111430 end1431 if match_ExamplesLine(context, token)1432 end_rule(context, :Description);1433 end_rule(context, :Examples);1434 end_rule(context, :ExamplesDefinition);1435 start_rule(context, :ExamplesDefinition);1436 start_rule(context, :Examples);1437 build(context, token);1438 return 181439 end1440 if match_ScenarioLine(context, token)1441 end_rule(context, :Description);1442 end_rule(context, :Examples);1443 end_rule(context, :ExamplesDefinition);1444 end_rule(context, :Scenario);1445 end_rule(context, :ScenarioDefinition);1446 start_rule(context, :ScenarioDefinition);1447 start_rule(context, :Scenario);1448 build(context, token);1449 return 121450 end1451 if match_RuleLine(context, token)1452 end_rule(context, :Description);1453 end_rule(context, :Examples);1454 end_rule(context, :ExamplesDefinition);1455 end_rule(context, :Scenario);1456 end_rule(context, :ScenarioDefinition);1457 start_rule(context, :Rule);1458 start_rule(context, :RuleHeader);1459 build(context, token);1460 return 221461 end1462 if match_Other(context, token)1463 build(context, token);1464 return 191465 end1466 1467 state_comment = "State: 19 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0"1468 token.detach1469 expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]1470 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1471 raise error if (stop_at_first_error)1472 add_error(context, error)1473 return 191474 end1475 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:01476 def match_token_at_20(token, context)1477 if match_EOF(context, token)1478 end_rule(context, :Examples);1479 end_rule(context, :ExamplesDefinition);1480 end_rule(context, :Scenario);1481 end_rule(context, :ScenarioDefinition);1482 end_rule(context, :Feature);1483 build(context, token);1484 return 411485 end1486 if match_Comment(context, token)1487 build(context, token);1488 return 201489 end1490 if match_TableRow(context, token)1491 start_rule(context, :ExamplesTable);1492 build(context, token);1493 return 211494 end1495 if match_TagLine(context, token)1496 if lookahead_0(context, token)1497 end_rule(context, :Examples);1498 end_rule(context, :ExamplesDefinition);1499 start_rule(context, :ExamplesDefinition);1500 start_rule(context, :Tags);1501 build(context, token);1502 return 171503 end1504 end1505 if match_TagLine(context, token)1506 end_rule(context, :Examples);1507 end_rule(context, :ExamplesDefinition);1508 end_rule(context, :Scenario);1509 end_rule(context, :ScenarioDefinition);1510 start_rule(context, :ScenarioDefinition);1511 start_rule(context, :Tags);1512 build(context, token);1513 return 111514 end1515 if match_ExamplesLine(context, token)1516 end_rule(context, :Examples);1517 end_rule(context, :ExamplesDefinition);1518 start_rule(context, :ExamplesDefinition);1519 start_rule(context, :Examples);1520 build(context, token);1521 return 181522 end1523 if match_ScenarioLine(context, token)1524 end_rule(context, :Examples);1525 end_rule(context, :ExamplesDefinition);1526 end_rule(context, :Scenario);1527 end_rule(context, :ScenarioDefinition);1528 start_rule(context, :ScenarioDefinition);1529 start_rule(context, :Scenario);1530 build(context, token);1531 return 121532 end1533 if match_RuleLine(context, token)1534 end_rule(context, :Examples);1535 end_rule(context, :ExamplesDefinition);1536 end_rule(context, :Scenario);1537 end_rule(context, :ScenarioDefinition);1538 start_rule(context, :Rule);1539 start_rule(context, :RuleHeader);1540 build(context, token);1541 return 221542 end1543 if match_Empty(context, token)1544 build(context, token);1545 return 201546 end1547 1548 state_comment = "State: 20 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0"1549 token.detach1550 expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]1551 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1552 raise error if (stop_at_first_error)1553 add_error(context, error)1554 return 201555 end1556 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:01557 def match_token_at_21(token, context)1558 if match_EOF(context, token)1559 end_rule(context, :ExamplesTable);1560 end_rule(context, :Examples);1561 end_rule(context, :ExamplesDefinition);1562 end_rule(context, :Scenario);1563 end_rule(context, :ScenarioDefinition);1564 end_rule(context, :Feature);1565 build(context, token);1566 return 411567 end1568 if match_TableRow(context, token)1569 build(context, token);1570 return 211571 end1572 if match_TagLine(context, token)1573 if lookahead_0(context, token)1574 end_rule(context, :ExamplesTable);1575 end_rule(context, :Examples);1576 end_rule(context, :ExamplesDefinition);1577 start_rule(context, :ExamplesDefinition);1578 start_rule(context, :Tags);1579 build(context, token);1580 return 171581 end1582 end1583 if match_TagLine(context, token)1584 end_rule(context, :ExamplesTable);1585 end_rule(context, :Examples);1586 end_rule(context, :ExamplesDefinition);1587 end_rule(context, :Scenario);1588 end_rule(context, :ScenarioDefinition);1589 start_rule(context, :ScenarioDefinition);1590 start_rule(context, :Tags);1591 build(context, token);1592 return 111593 end1594 if match_ExamplesLine(context, token)1595 end_rule(context, :ExamplesTable);1596 end_rule(context, :Examples);1597 end_rule(context, :ExamplesDefinition);1598 start_rule(context, :ExamplesDefinition);1599 start_rule(context, :Examples);1600 build(context, token);1601 return 181602 end1603 if match_ScenarioLine(context, token)1604 end_rule(context, :ExamplesTable);1605 end_rule(context, :Examples);1606 end_rule(context, :ExamplesDefinition);1607 end_rule(context, :Scenario);1608 end_rule(context, :ScenarioDefinition);1609 start_rule(context, :ScenarioDefinition);1610 start_rule(context, :Scenario);1611 build(context, token);1612 return 121613 end1614 if match_RuleLine(context, token)1615 end_rule(context, :ExamplesTable);1616 end_rule(context, :Examples);1617 end_rule(context, :ExamplesDefinition);1618 end_rule(context, :Scenario);1619 end_rule(context, :ScenarioDefinition);1620 start_rule(context, :Rule);1621 start_rule(context, :RuleHeader);1622 build(context, token);1623 return 221624 end1625 if match_Comment(context, token)1626 build(context, token);1627 return 211628 end1629 if match_Empty(context, token)1630 build(context, token);1631 return 211632 end1633 1634 state_comment = "State: 21 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"1635 token.detach1636 expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1637 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1638 raise error if (stop_at_first_error)1639 add_error(context, error)1640 return 211641 end1642 # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>#RuleLine:01643 def match_token_at_22(token, context)1644 if match_EOF(context, token)1645 end_rule(context, :RuleHeader);1646 end_rule(context, :Rule);1647 end_rule(context, :Feature);1648 build(context, token);1649 return 411650 end1651 if match_Empty(context, token)1652 build(context, token);1653 return 221654 end1655 if match_Comment(context, token)1656 build(context, token);1657 return 241658 end1659 if match_BackgroundLine(context, token)1660 end_rule(context, :RuleHeader);1661 start_rule(context, :Background);1662 build(context, token);1663 return 251664 end1665 if match_TagLine(context, token)1666 end_rule(context, :RuleHeader);1667 start_rule(context, :ScenarioDefinition);1668 start_rule(context, :Tags);1669 build(context, token);1670 return 301671 end1672 if match_ScenarioLine(context, token)1673 end_rule(context, :RuleHeader);1674 start_rule(context, :ScenarioDefinition);1675 start_rule(context, :Scenario);1676 build(context, token);1677 return 311678 end1679 if match_RuleLine(context, token)1680 end_rule(context, :RuleHeader);1681 end_rule(context, :Rule);1682 start_rule(context, :Rule);1683 start_rule(context, :RuleHeader);1684 build(context, token);1685 return 221686 end1687 if match_Other(context, token)1688 start_rule(context, :Description);1689 build(context, token);1690 return 231691 end1692 1693 state_comment = "State: 22 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>#RuleLine:0"1694 token.detach1695 expected_tokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1696 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1697 raise error if (stop_at_first_error)1698 add_error(context, error)1699 return 221700 end1701 # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>DescriptionHelper:1>Description:0>#Other:01702 def match_token_at_23(token, context)1703 if match_EOF(context, token)1704 end_rule(context, :Description);1705 end_rule(context, :RuleHeader);1706 end_rule(context, :Rule);1707 end_rule(context, :Feature);1708 build(context, token);1709 return 411710 end1711 if match_Comment(context, token)1712 end_rule(context, :Description);1713 build(context, token);1714 return 241715 end1716 if match_BackgroundLine(context, token)1717 end_rule(context, :Description);1718 end_rule(context, :RuleHeader);1719 start_rule(context, :Background);1720 build(context, token);1721 return 251722 end1723 if match_TagLine(context, token)1724 end_rule(context, :Description);1725 end_rule(context, :RuleHeader);1726 start_rule(context, :ScenarioDefinition);1727 start_rule(context, :Tags);1728 build(context, token);1729 return 301730 end1731 if match_ScenarioLine(context, token)1732 end_rule(context, :Description);1733 end_rule(context, :RuleHeader);1734 start_rule(context, :ScenarioDefinition);1735 start_rule(context, :Scenario);1736 build(context, token);1737 return 311738 end1739 if match_RuleLine(context, token)1740 end_rule(context, :Description);1741 end_rule(context, :RuleHeader);1742 end_rule(context, :Rule);1743 start_rule(context, :Rule);1744 start_rule(context, :RuleHeader);1745 build(context, token);1746 return 221747 end1748 if match_Other(context, token)1749 build(context, token);1750 return 231751 end1752 1753 state_comment = "State: 23 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>DescriptionHelper:1>Description:0>#Other:0"1754 token.detach1755 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1756 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1757 raise error if (stop_at_first_error)1758 add_error(context, error)1759 return 231760 end1761 # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>DescriptionHelper:2>#Comment:01762 def match_token_at_24(token, context)1763 if match_EOF(context, token)1764 end_rule(context, :RuleHeader);1765 end_rule(context, :Rule);1766 end_rule(context, :Feature);1767 build(context, token);1768 return 411769 end1770 if match_Comment(context, token)1771 build(context, token);1772 return 241773 end1774 if match_BackgroundLine(context, token)1775 end_rule(context, :RuleHeader);1776 start_rule(context, :Background);1777 build(context, token);1778 return 251779 end1780 if match_TagLine(context, token)1781 end_rule(context, :RuleHeader);1782 start_rule(context, :ScenarioDefinition);1783 start_rule(context, :Tags);1784 build(context, token);1785 return 301786 end1787 if match_ScenarioLine(context, token)1788 end_rule(context, :RuleHeader);1789 start_rule(context, :ScenarioDefinition);1790 start_rule(context, :Scenario);1791 build(context, token);1792 return 311793 end1794 if match_RuleLine(context, token)1795 end_rule(context, :RuleHeader);1796 end_rule(context, :Rule);1797 start_rule(context, :Rule);1798 start_rule(context, :RuleHeader);1799 build(context, token);1800 return 221801 end1802 if match_Empty(context, token)1803 build(context, token);1804 return 241805 end1806 1807 state_comment = "State: 24 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>DescriptionHelper:2>#Comment:0"1808 token.detach1809 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]1810 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1811 raise error if (stop_at_first_error)1812 add_error(context, error)1813 return 241814 end1815 # GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:01816 def match_token_at_25(token, context)1817 if match_EOF(context, token)1818 end_rule(context, :Background);1819 end_rule(context, :Rule);1820 end_rule(context, :Feature);1821 build(context, token);1822 return 411823 end1824 if match_Empty(context, token)1825 build(context, token);1826 return 251827 end1828 if match_Comment(context, token)1829 build(context, token);1830 return 271831 end1832 if match_StepLine(context, token)1833 start_rule(context, :Step);1834 build(context, token);1835 return 281836 end1837 if match_TagLine(context, token)1838 end_rule(context, :Background);1839 start_rule(context, :ScenarioDefinition);1840 start_rule(context, :Tags);1841 build(context, token);1842 return 301843 end1844 if match_ScenarioLine(context, token)1845 end_rule(context, :Background);1846 start_rule(context, :ScenarioDefinition);1847 start_rule(context, :Scenario);1848 build(context, token);1849 return 311850 end1851 if match_RuleLine(context, token)1852 end_rule(context, :Background);1853 end_rule(context, :Rule);1854 start_rule(context, :Rule);1855 start_rule(context, :RuleHeader);1856 build(context, token);1857 return 221858 end1859 if match_Other(context, token)1860 start_rule(context, :Description);1861 build(context, token);1862 return 261863 end1864 1865 state_comment = "State: 25 - GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0"1866 token.detach1867 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1868 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1869 raise error if (stop_at_first_error)1870 add_error(context, error)1871 return 251872 end1873 # GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:01874 def match_token_at_26(token, context)1875 if match_EOF(context, token)1876 end_rule(context, :Description);1877 end_rule(context, :Background);1878 end_rule(context, :Rule);1879 end_rule(context, :Feature);1880 build(context, token);1881 return 411882 end1883 if match_Comment(context, token)1884 end_rule(context, :Description);1885 build(context, token);1886 return 271887 end1888 if match_StepLine(context, token)1889 end_rule(context, :Description);1890 start_rule(context, :Step);1891 build(context, token);1892 return 281893 end1894 if match_TagLine(context, token)1895 end_rule(context, :Description);1896 end_rule(context, :Background);1897 start_rule(context, :ScenarioDefinition);1898 start_rule(context, :Tags);1899 build(context, token);1900 return 301901 end1902 if match_ScenarioLine(context, token)1903 end_rule(context, :Description);1904 end_rule(context, :Background);1905 start_rule(context, :ScenarioDefinition);1906 start_rule(context, :Scenario);1907 build(context, token);1908 return 311909 end1910 if match_RuleLine(context, token)1911 end_rule(context, :Description);1912 end_rule(context, :Background);1913 end_rule(context, :Rule);1914 start_rule(context, :Rule);1915 start_rule(context, :RuleHeader);1916 build(context, token);1917 return 221918 end1919 if match_Other(context, token)1920 build(context, token);1921 return 261922 end1923 1924 state_comment = "State: 26 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:0"1925 token.detach1926 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1927 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1928 raise error if (stop_at_first_error)1929 add_error(context, error)1930 return 261931 end1932 # GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:01933 def match_token_at_27(token, context)1934 if match_EOF(context, token)1935 end_rule(context, :Background);1936 end_rule(context, :Rule);1937 end_rule(context, :Feature);1938 build(context, token);1939 return 411940 end1941 if match_Comment(context, token)1942 build(context, token);1943 return 271944 end1945 if match_StepLine(context, token)1946 start_rule(context, :Step);1947 build(context, token);...

Full Screen

Full Screen

cucumber-gherkin.rbi

Source:cucumber-gherkin.rbi Github

copy

Full Screen

...209 def match_token_at_23(token, context); end210 def match_token_at_24(token, context); end211 def match_token_at_25(token, context); end212 def match_token_at_26(token, context); end213 def match_token_at_27(token, context); end214 def match_token_at_28(token, context); end215 def match_token_at_29(token, context); end216 def match_token_at_3(token, context); end217 def match_token_at_30(token, context); end218 def match_token_at_31(token, context); end219 def match_token_at_32(token, context); end220 def match_token_at_33(token, context); end221 def match_token_at_34(token, context); end222 def match_token_at_35(token, context); end223 def match_token_at_36(token, context); end224 def match_token_at_37(token, context); end225 def match_token_at_38(token, context); end226 def match_token_at_39(token, context); end227 def match_token_at_4(token, context); end...

Full Screen

Full Screen

match_token_at_27

Using AI Code Generation

copy

Full Screen

1gherkin.match_token_at_27(gherkin.get_token_at_27)2 def match_token_at_27(token)3gherkin.match_token_at_27(gherkin.get_token_at_27)4 def match_token_at_27(token)

Full Screen

Full Screen

match_token_at_27

Using AI Code Generation

copy

Full Screen

1file = File.open("sample.feature", "r")2puts gherkin.match_token_at_27(file_contents, 27)3file = File.open("sample.feature", "r")4puts gherkin.match_token_at_27(file_contents, 27)5file = File.open("sample.feature", "r")6puts gherkin.match_token_at_27(file_contents, 27)7file = File.open("sample.feature", "r")8puts gherkin.match_token_at_27(file_contents, 27)

Full Screen

Full Screen

match_token_at_27

Using AI Code Generation

copy

Full Screen

1feature_file = File.open('features/feature.feature', 'r').read2match = gherkin.match_token_at_27(feature_file, token_matcher)3feature_file = File.open('features/feature.feature', 'r').read4match = gherkin.match_token_at_27(feature_file, token_matcher)

Full Screen

Full Screen

match_token_at_27

Using AI Code Generation

copy

Full Screen

1gherkin = Gherkin::Gherkin.new("features/feature1.feature")2gherkin = Gherkin::Gherkin.new("features/feature1.feature")3gherkin = Gherkin::Gherkin.new("features/feature1.feature")4gherkin = Gherkin::Gherkin.new("features/feature1.feature")5gherkin = Gherkin::Gherkin.new("features/feature1.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