Best Gherkin-ruby code snippet using Gherkin.match_ScenarioLine
parser.rb
Source:parser.rb
...139 return handle_external_error(context, false) do140 context.token_matcher.match_BackgroundLine(token)141 end142 end143 def match_ScenarioLine( context, token)144 return false if token.eof?145 return handle_external_error(context, false) do146 context.token_matcher.match_ScenarioLine(token)147 end148 end149 def match_ExamplesLine( context, token)150 return false if token.eof?151 return handle_external_error(context, false) do152 context.token_matcher.match_ExamplesLine(token)153 end154 end155 def match_StepLine( context, token)156 return false if token.eof?157 return handle_external_error(context, false) do158 context.token_matcher.match_StepLine(token)159 end160 end161 def match_DocStringSeparator( context, token)162 return false if token.eof?163 return handle_external_error(context, false) do164 context.token_matcher.match_DocStringSeparator(token)165 end166 end167 def match_TableRow( context, token)168 return false if token.eof?169 return handle_external_error(context, false) do170 context.token_matcher.match_TableRow(token)171 end172 end173 def match_Language( context, token)174 return false if token.eof?175 return handle_external_error(context, false) do176 context.token_matcher.match_Language(token)177 end178 end179 def match_Other( context, token)180 return false if token.eof?181 return handle_external_error(context, false) do182 context.token_matcher.match_Other(token)183 end184 end185 def match_token(state, token, context)186 case state187 when 0188 match_token_at_0(token, context)189 when 1190 match_token_at_1(token, context)191 when 2192 match_token_at_2(token, context)193 when 3194 match_token_at_3(token, context)195 when 4196 match_token_at_4(token, context)197 when 5198 match_token_at_5(token, context)199 when 6200 match_token_at_6(token, context)201 when 7202 match_token_at_7(token, context)203 when 8204 match_token_at_8(token, context)205 when 9206 match_token_at_9(token, context)207 when 10208 match_token_at_10(token, context)209 when 11210 match_token_at_11(token, context)211 when 12212 match_token_at_12(token, context)213 when 13214 match_token_at_13(token, context)215 when 14216 match_token_at_14(token, context)217 when 15218 match_token_at_15(token, context)219 when 16220 match_token_at_16(token, context)221 when 17222 match_token_at_17(token, context)223 when 18224 match_token_at_18(token, context)225 when 19226 match_token_at_19(token, context)227 when 20228 match_token_at_20(token, context)229 when 21230 match_token_at_21(token, context)231 when 22232 match_token_at_22(token, context)233 when 23234 match_token_at_23(token, context)235 when 24236 match_token_at_24(token, context)237 when 25238 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);1948 return 281949 end1950 if match_TagLine(context, token)1951 end_rule(context, :Background);1952 start_rule(context, :ScenarioDefinition);1953 start_rule(context, :Tags);1954 build(context, token);1955 return 301956 end1957 if match_ScenarioLine(context, token)1958 end_rule(context, :Background);1959 start_rule(context, :ScenarioDefinition);1960 start_rule(context, :Scenario);1961 build(context, token);1962 return 311963 end1964 if match_RuleLine(context, token)1965 end_rule(context, :Background);1966 end_rule(context, :Rule);1967 start_rule(context, :Rule);1968 start_rule(context, :RuleHeader);1969 build(context, token);1970 return 221971 end1972 if match_Empty(context, token)1973 build(context, token);1974 return 271975 end1976 1977 state_comment = "State: 27 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:0"1978 token.detach1979 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]1980 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1981 raise error if (stop_at_first_error)1982 add_error(context, error)1983 return 271984 end1985 # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:01986 def match_token_at_28(token, context)1987 if match_EOF(context, token)1988 end_rule(context, :Step);1989 end_rule(context, :Background);1990 end_rule(context, :Rule);1991 end_rule(context, :Feature);1992 build(context, token);1993 return 411994 end1995 if match_TableRow(context, token)1996 start_rule(context, :DataTable);1997 build(context, token);1998 return 291999 end2000 if match_DocStringSeparator(context, token)2001 start_rule(context, :DocString);2002 build(context, token);2003 return 442004 end2005 if match_StepLine(context, token)2006 end_rule(context, :Step);2007 start_rule(context, :Step);2008 build(context, token);2009 return 282010 end2011 if match_TagLine(context, token)2012 end_rule(context, :Step);2013 end_rule(context, :Background);2014 start_rule(context, :ScenarioDefinition);2015 start_rule(context, :Tags);2016 build(context, token);2017 return 302018 end2019 if match_ScenarioLine(context, token)2020 end_rule(context, :Step);2021 end_rule(context, :Background);2022 start_rule(context, :ScenarioDefinition);2023 start_rule(context, :Scenario);2024 build(context, token);2025 return 312026 end2027 if match_RuleLine(context, token)2028 end_rule(context, :Step);2029 end_rule(context, :Background);2030 end_rule(context, :Rule);2031 start_rule(context, :Rule);2032 start_rule(context, :RuleHeader);2033 build(context, token);2034 return 222035 end2036 if match_Comment(context, token)2037 build(context, token);2038 return 282039 end2040 if match_Empty(context, token)2041 build(context, token);2042 return 282043 end2044 2045 state_comment = "State: 28 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0"2046 token.detach2047 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2048 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2049 raise error if (stop_at_first_error)2050 add_error(context, error)2051 return 282052 end2053 # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:02054 def match_token_at_29(token, context)2055 if match_EOF(context, token)2056 end_rule(context, :DataTable);2057 end_rule(context, :Step);2058 end_rule(context, :Background);2059 end_rule(context, :Rule);2060 end_rule(context, :Feature);2061 build(context, token);2062 return 412063 end2064 if match_TableRow(context, token)2065 build(context, token);2066 return 292067 end2068 if match_StepLine(context, token)2069 end_rule(context, :DataTable);2070 end_rule(context, :Step);2071 start_rule(context, :Step);2072 build(context, token);2073 return 282074 end2075 if match_TagLine(context, token)2076 end_rule(context, :DataTable);2077 end_rule(context, :Step);2078 end_rule(context, :Background);2079 start_rule(context, :ScenarioDefinition);2080 start_rule(context, :Tags);2081 build(context, token);2082 return 302083 end2084 if match_ScenarioLine(context, token)2085 end_rule(context, :DataTable);2086 end_rule(context, :Step);2087 end_rule(context, :Background);2088 start_rule(context, :ScenarioDefinition);2089 start_rule(context, :Scenario);2090 build(context, token);2091 return 312092 end2093 if match_RuleLine(context, token)2094 end_rule(context, :DataTable);2095 end_rule(context, :Step);2096 end_rule(context, :Background);2097 end_rule(context, :Rule);2098 start_rule(context, :Rule);2099 start_rule(context, :RuleHeader);2100 build(context, token);2101 return 222102 end2103 if match_Comment(context, token)2104 build(context, token);2105 return 292106 end2107 if match_Empty(context, token)2108 build(context, token);2109 return 292110 end2111 2112 state_comment = "State: 29 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"2113 token.detach2114 expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2115 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2116 raise error if (stop_at_first_error)2117 add_error(context, error)2118 return 292119 end2120 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:02121 def match_token_at_30(token, context)2122 if match_TagLine(context, token)2123 build(context, token);2124 return 302125 end2126 if match_ScenarioLine(context, token)2127 end_rule(context, :Tags);2128 start_rule(context, :Scenario);2129 build(context, token);2130 return 312131 end2132 if match_Comment(context, token)2133 build(context, token);2134 return 302135 end2136 if match_Empty(context, token)2137 build(context, token);2138 return 302139 end2140 2141 state_comment = "State: 30 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0"2142 token.detach2143 expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]2144 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2145 raise error if (stop_at_first_error)2146 add_error(context, error)2147 return 302148 end2149 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:02150 def match_token_at_31(token, context)2151 if match_EOF(context, token)2152 end_rule(context, :Scenario);2153 end_rule(context, :ScenarioDefinition);2154 end_rule(context, :Rule);2155 end_rule(context, :Feature);2156 build(context, token);2157 return 412158 end2159 if match_Empty(context, token)2160 build(context, token);2161 return 312162 end2163 if match_Comment(context, token)2164 build(context, token);2165 return 332166 end2167 if match_StepLine(context, token)2168 start_rule(context, :Step);2169 build(context, token);2170 return 342171 end2172 if match_TagLine(context, token)2173 if lookahead_0(context, token)2174 start_rule(context, :ExamplesDefinition);2175 start_rule(context, :Tags);2176 build(context, token);2177 return 362178 end2179 end2180 if match_TagLine(context, token)2181 end_rule(context, :Scenario);2182 end_rule(context, :ScenarioDefinition);2183 start_rule(context, :ScenarioDefinition);2184 start_rule(context, :Tags);2185 build(context, token);2186 return 302187 end2188 if match_ExamplesLine(context, token)2189 start_rule(context, :ExamplesDefinition);2190 start_rule(context, :Examples);2191 build(context, token);2192 return 372193 end2194 if match_ScenarioLine(context, token)2195 end_rule(context, :Scenario);2196 end_rule(context, :ScenarioDefinition);2197 start_rule(context, :ScenarioDefinition);2198 start_rule(context, :Scenario);2199 build(context, token);2200 return 312201 end2202 if match_RuleLine(context, token)2203 end_rule(context, :Scenario);2204 end_rule(context, :ScenarioDefinition);2205 end_rule(context, :Rule);2206 start_rule(context, :Rule);2207 start_rule(context, :RuleHeader);2208 build(context, token);2209 return 222210 end2211 if match_Other(context, token)2212 start_rule(context, :Description);2213 build(context, token);2214 return 322215 end2216 2217 state_comment = "State: 31 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"2218 token.detach2219 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2220 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2221 raise error if (stop_at_first_error)2222 add_error(context, error)2223 return 312224 end2225 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:02226 def match_token_at_32(token, context)2227 if match_EOF(context, token)2228 end_rule(context, :Description);2229 end_rule(context, :Scenario);2230 end_rule(context, :ScenarioDefinition);2231 end_rule(context, :Rule);2232 end_rule(context, :Feature);2233 build(context, token);2234 return 412235 end2236 if match_Comment(context, token)2237 end_rule(context, :Description);2238 build(context, token);2239 return 332240 end2241 if match_StepLine(context, token)2242 end_rule(context, :Description);2243 start_rule(context, :Step);2244 build(context, token);2245 return 342246 end2247 if match_TagLine(context, token)2248 if lookahead_0(context, token)2249 end_rule(context, :Description);2250 start_rule(context, :ExamplesDefinition);2251 start_rule(context, :Tags);2252 build(context, token);2253 return 362254 end2255 end2256 if match_TagLine(context, token)2257 end_rule(context, :Description);2258 end_rule(context, :Scenario);2259 end_rule(context, :ScenarioDefinition);2260 start_rule(context, :ScenarioDefinition);2261 start_rule(context, :Tags);2262 build(context, token);2263 return 302264 end2265 if match_ExamplesLine(context, token)2266 end_rule(context, :Description);2267 start_rule(context, :ExamplesDefinition);2268 start_rule(context, :Examples);2269 build(context, token);2270 return 372271 end2272 if match_ScenarioLine(context, token)2273 end_rule(context, :Description);2274 end_rule(context, :Scenario);2275 end_rule(context, :ScenarioDefinition);2276 start_rule(context, :ScenarioDefinition);2277 start_rule(context, :Scenario);2278 build(context, token);2279 return 312280 end2281 if match_RuleLine(context, token)2282 end_rule(context, :Description);2283 end_rule(context, :Scenario);2284 end_rule(context, :ScenarioDefinition);2285 end_rule(context, :Rule);2286 start_rule(context, :Rule);2287 start_rule(context, :RuleHeader);2288 build(context, token);2289 return 222290 end2291 if match_Other(context, token)2292 build(context, token);2293 return 322294 end2295 2296 state_comment = "State: 32 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0"2297 token.detach2298 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2299 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2300 raise error if (stop_at_first_error)2301 add_error(context, error)2302 return 322303 end2304 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:02305 def match_token_at_33(token, context)2306 if match_EOF(context, token)2307 end_rule(context, :Scenario);2308 end_rule(context, :ScenarioDefinition);2309 end_rule(context, :Rule);2310 end_rule(context, :Feature);2311 build(context, token);2312 return 412313 end2314 if match_Comment(context, token)2315 build(context, token);2316 return 332317 end2318 if match_StepLine(context, token)2319 start_rule(context, :Step);2320 build(context, token);2321 return 342322 end2323 if match_TagLine(context, token)2324 if lookahead_0(context, token)2325 start_rule(context, :ExamplesDefinition);2326 start_rule(context, :Tags);2327 build(context, token);2328 return 362329 end2330 end2331 if match_TagLine(context, token)2332 end_rule(context, :Scenario);2333 end_rule(context, :ScenarioDefinition);2334 start_rule(context, :ScenarioDefinition);2335 start_rule(context, :Tags);2336 build(context, token);2337 return 302338 end2339 if match_ExamplesLine(context, token)2340 start_rule(context, :ExamplesDefinition);2341 start_rule(context, :Examples);2342 build(context, token);2343 return 372344 end2345 if match_ScenarioLine(context, token)2346 end_rule(context, :Scenario);2347 end_rule(context, :ScenarioDefinition);2348 start_rule(context, :ScenarioDefinition);2349 start_rule(context, :Scenario);2350 build(context, token);2351 return 312352 end2353 if match_RuleLine(context, token)2354 end_rule(context, :Scenario);2355 end_rule(context, :ScenarioDefinition);2356 end_rule(context, :Rule);2357 start_rule(context, :Rule);2358 start_rule(context, :RuleHeader);2359 build(context, token);2360 return 222361 end2362 if match_Empty(context, token)2363 build(context, token);2364 return 332365 end2366 2367 state_comment = "State: 33 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"2368 token.detach2369 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]2370 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2371 raise error if (stop_at_first_error)2372 add_error(context, error)2373 return 332374 end2375 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:02376 def match_token_at_34(token, context)2377 if match_EOF(context, token)2378 end_rule(context, :Step);2379 end_rule(context, :Scenario);2380 end_rule(context, :ScenarioDefinition);2381 end_rule(context, :Rule);2382 end_rule(context, :Feature);2383 build(context, token);2384 return 412385 end2386 if match_TableRow(context, token)2387 start_rule(context, :DataTable);2388 build(context, token);2389 return 352390 end2391 if match_DocStringSeparator(context, token)2392 start_rule(context, :DocString);2393 build(context, token);2394 return 422395 end2396 if match_StepLine(context, token)2397 end_rule(context, :Step);2398 start_rule(context, :Step);2399 build(context, token);2400 return 342401 end2402 if match_TagLine(context, token)2403 if lookahead_0(context, token)2404 end_rule(context, :Step);2405 start_rule(context, :ExamplesDefinition);2406 start_rule(context, :Tags);2407 build(context, token);2408 return 362409 end2410 end2411 if match_TagLine(context, token)2412 end_rule(context, :Step);2413 end_rule(context, :Scenario);2414 end_rule(context, :ScenarioDefinition);2415 start_rule(context, :ScenarioDefinition);2416 start_rule(context, :Tags);2417 build(context, token);2418 return 302419 end2420 if match_ExamplesLine(context, token)2421 end_rule(context, :Step);2422 start_rule(context, :ExamplesDefinition);2423 start_rule(context, :Examples);2424 build(context, token);2425 return 372426 end2427 if match_ScenarioLine(context, token)2428 end_rule(context, :Step);2429 end_rule(context, :Scenario);2430 end_rule(context, :ScenarioDefinition);2431 start_rule(context, :ScenarioDefinition);2432 start_rule(context, :Scenario);2433 build(context, token);2434 return 312435 end2436 if match_RuleLine(context, token)2437 end_rule(context, :Step);2438 end_rule(context, :Scenario);2439 end_rule(context, :ScenarioDefinition);2440 end_rule(context, :Rule);2441 start_rule(context, :Rule);2442 start_rule(context, :RuleHeader);2443 build(context, token);2444 return 222445 end2446 if match_Comment(context, token)2447 build(context, token);2448 return 342449 end2450 if match_Empty(context, token)2451 build(context, token);2452 return 342453 end2454 2455 state_comment = "State: 34 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"2456 token.detach2457 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2458 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2459 raise error if (stop_at_first_error)2460 add_error(context, error)2461 return 342462 end2463 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:02464 def match_token_at_35(token, context)2465 if match_EOF(context, token)2466 end_rule(context, :DataTable);2467 end_rule(context, :Step);2468 end_rule(context, :Scenario);2469 end_rule(context, :ScenarioDefinition);2470 end_rule(context, :Rule);2471 end_rule(context, :Feature);2472 build(context, token);2473 return 412474 end2475 if match_TableRow(context, token)2476 build(context, token);2477 return 352478 end2479 if match_StepLine(context, token)2480 end_rule(context, :DataTable);2481 end_rule(context, :Step);2482 start_rule(context, :Step);2483 build(context, token);2484 return 342485 end2486 if match_TagLine(context, token)2487 if lookahead_0(context, token)2488 end_rule(context, :DataTable);2489 end_rule(context, :Step);2490 start_rule(context, :ExamplesDefinition);2491 start_rule(context, :Tags);2492 build(context, token);2493 return 362494 end2495 end2496 if match_TagLine(context, token)2497 end_rule(context, :DataTable);2498 end_rule(context, :Step);2499 end_rule(context, :Scenario);2500 end_rule(context, :ScenarioDefinition);2501 start_rule(context, :ScenarioDefinition);2502 start_rule(context, :Tags);2503 build(context, token);2504 return 302505 end2506 if match_ExamplesLine(context, token)2507 end_rule(context, :DataTable);2508 end_rule(context, :Step);2509 start_rule(context, :ExamplesDefinition);2510 start_rule(context, :Examples);2511 build(context, token);2512 return 372513 end2514 if match_ScenarioLine(context, token)2515 end_rule(context, :DataTable);2516 end_rule(context, :Step);2517 end_rule(context, :Scenario);2518 end_rule(context, :ScenarioDefinition);2519 start_rule(context, :ScenarioDefinition);2520 start_rule(context, :Scenario);2521 build(context, token);2522 return 312523 end2524 if match_RuleLine(context, token)2525 end_rule(context, :DataTable);2526 end_rule(context, :Step);2527 end_rule(context, :Scenario);2528 end_rule(context, :ScenarioDefinition);2529 end_rule(context, :Rule);2530 start_rule(context, :Rule);2531 start_rule(context, :RuleHeader);2532 build(context, token);2533 return 222534 end2535 if match_Comment(context, token)2536 build(context, token);2537 return 352538 end2539 if match_Empty(context, token)2540 build(context, token);2541 return 352542 end2543 2544 state_comment = "State: 35 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"2545 token.detach2546 expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2547 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2548 raise error if (stop_at_first_error)2549 add_error(context, error)2550 return 352551 end2552 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:02553 def match_token_at_36(token, context)2554 if match_TagLine(context, token)2555 build(context, token);2556 return 362557 end2558 if match_ExamplesLine(context, token)2559 end_rule(context, :Tags);2560 start_rule(context, :Examples);2561 build(context, token);2562 return 372563 end2564 if match_Comment(context, token)2565 build(context, token);2566 return 362567 end2568 if match_Empty(context, token)2569 build(context, token);2570 return 362571 end2572 2573 state_comment = "State: 36 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"2574 token.detach2575 expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]2576 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2577 raise error if (stop_at_first_error)2578 add_error(context, error)2579 return 362580 end2581 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:02582 def match_token_at_37(token, context)2583 if match_EOF(context, token)2584 end_rule(context, :Examples);2585 end_rule(context, :ExamplesDefinition);2586 end_rule(context, :Scenario);2587 end_rule(context, :ScenarioDefinition);2588 end_rule(context, :Rule);2589 end_rule(context, :Feature);2590 build(context, token);2591 return 412592 end2593 if match_Empty(context, token)2594 build(context, token);2595 return 372596 end2597 if match_Comment(context, token)2598 build(context, token);2599 return 392600 end2601 if match_TableRow(context, token)2602 start_rule(context, :ExamplesTable);2603 build(context, token);2604 return 402605 end2606 if match_TagLine(context, token)2607 if lookahead_0(context, token)2608 end_rule(context, :Examples);2609 end_rule(context, :ExamplesDefinition);2610 start_rule(context, :ExamplesDefinition);2611 start_rule(context, :Tags);2612 build(context, token);2613 return 362614 end2615 end2616 if match_TagLine(context, token)2617 end_rule(context, :Examples);2618 end_rule(context, :ExamplesDefinition);2619 end_rule(context, :Scenario);2620 end_rule(context, :ScenarioDefinition);2621 start_rule(context, :ScenarioDefinition);2622 start_rule(context, :Tags);2623 build(context, token);2624 return 302625 end2626 if match_ExamplesLine(context, token)2627 end_rule(context, :Examples);2628 end_rule(context, :ExamplesDefinition);2629 start_rule(context, :ExamplesDefinition);2630 start_rule(context, :Examples);2631 build(context, token);2632 return 372633 end2634 if match_ScenarioLine(context, token)2635 end_rule(context, :Examples);2636 end_rule(context, :ExamplesDefinition);2637 end_rule(context, :Scenario);2638 end_rule(context, :ScenarioDefinition);2639 start_rule(context, :ScenarioDefinition);2640 start_rule(context, :Scenario);2641 build(context, token);2642 return 312643 end2644 if match_RuleLine(context, token)2645 end_rule(context, :Examples);2646 end_rule(context, :ExamplesDefinition);2647 end_rule(context, :Scenario);2648 end_rule(context, :ScenarioDefinition);2649 end_rule(context, :Rule);2650 start_rule(context, :Rule);2651 start_rule(context, :RuleHeader);2652 build(context, token);2653 return 222654 end2655 if match_Other(context, token)2656 start_rule(context, :Description);2657 build(context, token);2658 return 382659 end2660 2661 state_comment = "State: 37 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"2662 token.detach2663 expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2664 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2665 raise error if (stop_at_first_error)2666 add_error(context, error)2667 return 372668 end2669 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:02670 def match_token_at_38(token, context)2671 if match_EOF(context, token)2672 end_rule(context, :Description);2673 end_rule(context, :Examples);2674 end_rule(context, :ExamplesDefinition);2675 end_rule(context, :Scenario);2676 end_rule(context, :ScenarioDefinition);2677 end_rule(context, :Rule);2678 end_rule(context, :Feature);2679 build(context, token);2680 return 412681 end2682 if match_Comment(context, token)2683 end_rule(context, :Description);2684 build(context, token);2685 return 392686 end2687 if match_TableRow(context, token)2688 end_rule(context, :Description);2689 start_rule(context, :ExamplesTable);2690 build(context, token);2691 return 402692 end2693 if match_TagLine(context, token)2694 if lookahead_0(context, token)2695 end_rule(context, :Description);2696 end_rule(context, :Examples);2697 end_rule(context, :ExamplesDefinition);2698 start_rule(context, :ExamplesDefinition);2699 start_rule(context, :Tags);2700 build(context, token);2701 return 362702 end2703 end2704 if match_TagLine(context, token)2705 end_rule(context, :Description);2706 end_rule(context, :Examples);2707 end_rule(context, :ExamplesDefinition);2708 end_rule(context, :Scenario);2709 end_rule(context, :ScenarioDefinition);2710 start_rule(context, :ScenarioDefinition);2711 start_rule(context, :Tags);2712 build(context, token);2713 return 302714 end2715 if match_ExamplesLine(context, token)2716 end_rule(context, :Description);2717 end_rule(context, :Examples);2718 end_rule(context, :ExamplesDefinition);2719 start_rule(context, :ExamplesDefinition);2720 start_rule(context, :Examples);2721 build(context, token);2722 return 372723 end2724 if match_ScenarioLine(context, token)2725 end_rule(context, :Description);2726 end_rule(context, :Examples);2727 end_rule(context, :ExamplesDefinition);2728 end_rule(context, :Scenario);2729 end_rule(context, :ScenarioDefinition);2730 start_rule(context, :ScenarioDefinition);2731 start_rule(context, :Scenario);2732 build(context, token);2733 return 312734 end2735 if match_RuleLine(context, token)2736 end_rule(context, :Description);2737 end_rule(context, :Examples);2738 end_rule(context, :ExamplesDefinition);2739 end_rule(context, :Scenario);2740 end_rule(context, :ScenarioDefinition);2741 end_rule(context, :Rule);2742 start_rule(context, :Rule);2743 start_rule(context, :RuleHeader);2744 build(context, token);2745 return 222746 end2747 if match_Other(context, token)2748 build(context, token);2749 return 382750 end2751 2752 state_comment = "State: 38 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0"2753 token.detach2754 expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2755 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2756 raise error if (stop_at_first_error)2757 add_error(context, error)2758 return 382759 end2760 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:02761 def match_token_at_39(token, context)2762 if match_EOF(context, token)2763 end_rule(context, :Examples);2764 end_rule(context, :ExamplesDefinition);2765 end_rule(context, :Scenario);2766 end_rule(context, :ScenarioDefinition);2767 end_rule(context, :Rule);2768 end_rule(context, :Feature);2769 build(context, token);2770 return 412771 end2772 if match_Comment(context, token)2773 build(context, token);2774 return 392775 end2776 if match_TableRow(context, token)2777 start_rule(context, :ExamplesTable);2778 build(context, token);2779 return 402780 end2781 if match_TagLine(context, token)2782 if lookahead_0(context, token)2783 end_rule(context, :Examples);2784 end_rule(context, :ExamplesDefinition);2785 start_rule(context, :ExamplesDefinition);2786 start_rule(context, :Tags);2787 build(context, token);2788 return 362789 end2790 end2791 if match_TagLine(context, token)2792 end_rule(context, :Examples);2793 end_rule(context, :ExamplesDefinition);2794 end_rule(context, :Scenario);2795 end_rule(context, :ScenarioDefinition);2796 start_rule(context, :ScenarioDefinition);2797 start_rule(context, :Tags);2798 build(context, token);2799 return 302800 end2801 if match_ExamplesLine(context, token)2802 end_rule(context, :Examples);2803 end_rule(context, :ExamplesDefinition);2804 start_rule(context, :ExamplesDefinition);2805 start_rule(context, :Examples);2806 build(context, token);2807 return 372808 end2809 if match_ScenarioLine(context, token)2810 end_rule(context, :Examples);2811 end_rule(context, :ExamplesDefinition);2812 end_rule(context, :Scenario);2813 end_rule(context, :ScenarioDefinition);2814 start_rule(context, :ScenarioDefinition);2815 start_rule(context, :Scenario);2816 build(context, token);2817 return 312818 end2819 if match_RuleLine(context, token)2820 end_rule(context, :Examples);2821 end_rule(context, :ExamplesDefinition);2822 end_rule(context, :Scenario);2823 end_rule(context, :ScenarioDefinition);2824 end_rule(context, :Rule);2825 start_rule(context, :Rule);2826 start_rule(context, :RuleHeader);2827 build(context, token);2828 return 222829 end2830 if match_Empty(context, token)2831 build(context, token);2832 return 392833 end2834 2835 state_comment = "State: 39 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0"2836 token.detach2837 expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]2838 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2839 raise error if (stop_at_first_error)2840 add_error(context, error)2841 return 392842 end2843 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:02844 def match_token_at_40(token, context)2845 if match_EOF(context, token)2846 end_rule(context, :ExamplesTable);2847 end_rule(context, :Examples);2848 end_rule(context, :ExamplesDefinition);2849 end_rule(context, :Scenario);2850 end_rule(context, :ScenarioDefinition);2851 end_rule(context, :Rule);2852 end_rule(context, :Feature);2853 build(context, token);2854 return 412855 end2856 if match_TableRow(context, token)2857 build(context, token);2858 return 402859 end2860 if match_TagLine(context, token)2861 if lookahead_0(context, token)2862 end_rule(context, :ExamplesTable);2863 end_rule(context, :Examples);2864 end_rule(context, :ExamplesDefinition);2865 start_rule(context, :ExamplesDefinition);2866 start_rule(context, :Tags);2867 build(context, token);2868 return 362869 end2870 end2871 if match_TagLine(context, token)2872 end_rule(context, :ExamplesTable);2873 end_rule(context, :Examples);2874 end_rule(context, :ExamplesDefinition);2875 end_rule(context, :Scenario);2876 end_rule(context, :ScenarioDefinition);2877 start_rule(context, :ScenarioDefinition);2878 start_rule(context, :Tags);2879 build(context, token);2880 return 302881 end2882 if match_ExamplesLine(context, token)2883 end_rule(context, :ExamplesTable);2884 end_rule(context, :Examples);2885 end_rule(context, :ExamplesDefinition);2886 start_rule(context, :ExamplesDefinition);2887 start_rule(context, :Examples);2888 build(context, token);2889 return 372890 end2891 if match_ScenarioLine(context, token)2892 end_rule(context, :ExamplesTable);2893 end_rule(context, :Examples);2894 end_rule(context, :ExamplesDefinition);2895 end_rule(context, :Scenario);2896 end_rule(context, :ScenarioDefinition);2897 start_rule(context, :ScenarioDefinition);2898 start_rule(context, :Scenario);2899 build(context, token);2900 return 312901 end2902 if match_RuleLine(context, token)2903 end_rule(context, :ExamplesTable);2904 end_rule(context, :Examples);2905 end_rule(context, :ExamplesDefinition);2906 end_rule(context, :Scenario);2907 end_rule(context, :ScenarioDefinition);2908 end_rule(context, :Rule);2909 start_rule(context, :Rule);2910 start_rule(context, :RuleHeader);2911 build(context, token);2912 return 222913 end2914 if match_Comment(context, token)2915 build(context, token);2916 return 402917 end2918 if match_Empty(context, token)2919 build(context, token);2920 return 402921 end2922 2923 state_comment = "State: 40 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"2924 token.detach2925 expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2926 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2927 raise error if (stop_at_first_error)2928 add_error(context, error)2929 return 402930 end2931 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:02932 def match_token_at_42(token, context)2933 if match_DocStringSeparator(context, token)2934 build(context, token);2935 return 432936 end2937 if match_Other(context, token)2938 build(context, token);2939 return 422940 end2941 2942 state_comment = "State: 42 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"2943 token.detach2944 expected_tokens = ["#DocStringSeparator", "#Other"]2945 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)2946 raise error if (stop_at_first_error)2947 add_error(context, error)2948 return 422949 end2950 # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:02951 def match_token_at_43(token, context)2952 if match_EOF(context, token)2953 end_rule(context, :DocString);2954 end_rule(context, :Step);2955 end_rule(context, :Scenario);2956 end_rule(context, :ScenarioDefinition);2957 end_rule(context, :Rule);2958 end_rule(context, :Feature);2959 build(context, token);2960 return 412961 end2962 if match_StepLine(context, token)2963 end_rule(context, :DocString);2964 end_rule(context, :Step);2965 start_rule(context, :Step);2966 build(context, token);2967 return 342968 end2969 if match_TagLine(context, token)2970 if lookahead_0(context, token)2971 end_rule(context, :DocString);2972 end_rule(context, :Step);2973 start_rule(context, :ExamplesDefinition);2974 start_rule(context, :Tags);2975 build(context, token);2976 return 362977 end2978 end2979 if match_TagLine(context, token)2980 end_rule(context, :DocString);2981 end_rule(context, :Step);2982 end_rule(context, :Scenario);2983 end_rule(context, :ScenarioDefinition);2984 start_rule(context, :ScenarioDefinition);2985 start_rule(context, :Tags);2986 build(context, token);2987 return 302988 end2989 if match_ExamplesLine(context, token)2990 end_rule(context, :DocString);2991 end_rule(context, :Step);2992 start_rule(context, :ExamplesDefinition);2993 start_rule(context, :Examples);2994 build(context, token);2995 return 372996 end2997 if match_ScenarioLine(context, token)2998 end_rule(context, :DocString);2999 end_rule(context, :Step);3000 end_rule(context, :Scenario);3001 end_rule(context, :ScenarioDefinition);3002 start_rule(context, :ScenarioDefinition);3003 start_rule(context, :Scenario);3004 build(context, token);3005 return 313006 end3007 if match_RuleLine(context, token)3008 end_rule(context, :DocString);3009 end_rule(context, :Step);3010 end_rule(context, :Scenario);3011 end_rule(context, :ScenarioDefinition);3012 end_rule(context, :Rule);3013 start_rule(context, :Rule);3014 start_rule(context, :RuleHeader);3015 build(context, token);3016 return 223017 end3018 if match_Comment(context, token)3019 build(context, token);3020 return 433021 end3022 if match_Empty(context, token)3023 build(context, token);3024 return 433025 end3026 3027 state_comment = "State: 43 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"3028 token.detach3029 expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]3030 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)3031 raise error if (stop_at_first_error)3032 add_error(context, error)3033 return 433034 end3035 # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:03036 def match_token_at_44(token, context)3037 if match_DocStringSeparator(context, token)3038 build(context, token);3039 return 453040 end3041 if match_Other(context, token)3042 build(context, token);3043 return 443044 end3045 3046 state_comment = "State: 44 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"3047 token.detach3048 expected_tokens = ["#DocStringSeparator", "#Other"]3049 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)3050 raise error if (stop_at_first_error)3051 add_error(context, error)3052 return 443053 end3054 # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:03055 def match_token_at_45(token, context)3056 if match_EOF(context, token)3057 end_rule(context, :DocString);3058 end_rule(context, :Step);3059 end_rule(context, :Background);3060 end_rule(context, :Rule);3061 end_rule(context, :Feature);3062 build(context, token);3063 return 413064 end3065 if match_StepLine(context, token)3066 end_rule(context, :DocString);3067 end_rule(context, :Step);3068 start_rule(context, :Step);3069 build(context, token);3070 return 283071 end3072 if match_TagLine(context, token)3073 end_rule(context, :DocString);3074 end_rule(context, :Step);3075 end_rule(context, :Background);3076 start_rule(context, :ScenarioDefinition);3077 start_rule(context, :Tags);3078 build(context, token);3079 return 303080 end3081 if match_ScenarioLine(context, token)3082 end_rule(context, :DocString);3083 end_rule(context, :Step);3084 end_rule(context, :Background);3085 start_rule(context, :ScenarioDefinition);3086 start_rule(context, :Scenario);3087 build(context, token);3088 return 313089 end3090 if match_RuleLine(context, token)3091 end_rule(context, :DocString);3092 end_rule(context, :Step);3093 end_rule(context, :Background);3094 end_rule(context, :Rule);3095 start_rule(context, :Rule);3096 start_rule(context, :RuleHeader);3097 build(context, token);3098 return 223099 end3100 if match_Comment(context, token)3101 build(context, token);3102 return 453103 end3104 if match_Empty(context, token)3105 build(context, token);3106 return 453107 end3108 3109 state_comment = "State: 45 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"3110 token.detach3111 expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]3112 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)3113 raise error if (stop_at_first_error)3114 add_error(context, error)3115 return 453116 end3117 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:03118 def match_token_at_46(token, context)3119 if match_DocStringSeparator(context, token)3120 build(context, token);3121 return 473122 end3123 if match_Other(context, token)3124 build(context, token);3125 return 463126 end3127 3128 state_comment = "State: 46 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"3129 token.detach3130 expected_tokens = ["#DocStringSeparator", "#Other"]3131 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)3132 raise error if (stop_at_first_error)3133 add_error(context, error)3134 return 463135 end3136 # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:03137 def match_token_at_47(token, context)3138 if match_EOF(context, token)3139 end_rule(context, :DocString);3140 end_rule(context, :Step);3141 end_rule(context, :Scenario);3142 end_rule(context, :ScenarioDefinition);3143 end_rule(context, :Feature);3144 build(context, token);3145 return 413146 end3147 if match_StepLine(context, token)3148 end_rule(context, :DocString);3149 end_rule(context, :Step);3150 start_rule(context, :Step);3151 build(context, token);3152 return 153153 end3154 if match_TagLine(context, token)3155 if lookahead_0(context, token)3156 end_rule(context, :DocString);3157 end_rule(context, :Step);3158 start_rule(context, :ExamplesDefinition);3159 start_rule(context, :Tags);3160 build(context, token);3161 return 173162 end3163 end3164 if match_TagLine(context, token)3165 end_rule(context, :DocString);3166 end_rule(context, :Step);3167 end_rule(context, :Scenario);3168 end_rule(context, :ScenarioDefinition);3169 start_rule(context, :ScenarioDefinition);3170 start_rule(context, :Tags);3171 build(context, token);3172 return 113173 end3174 if match_ExamplesLine(context, token)3175 end_rule(context, :DocString);3176 end_rule(context, :Step);3177 start_rule(context, :ExamplesDefinition);3178 start_rule(context, :Examples);3179 build(context, token);3180 return 183181 end3182 if match_ScenarioLine(context, token)3183 end_rule(context, :DocString);3184 end_rule(context, :Step);3185 end_rule(context, :Scenario);3186 end_rule(context, :ScenarioDefinition);3187 start_rule(context, :ScenarioDefinition);3188 start_rule(context, :Scenario);3189 build(context, token);3190 return 123191 end3192 if match_RuleLine(context, token)3193 end_rule(context, :DocString);3194 end_rule(context, :Step);3195 end_rule(context, :Scenario);3196 end_rule(context, :ScenarioDefinition);3197 start_rule(context, :Rule);3198 start_rule(context, :RuleHeader);3199 build(context, token);3200 return 223201 end3202 if match_Comment(context, token)3203 build(context, token);3204 return 473205 end3206 if match_Empty(context, token)3207 build(context, token);3208 return 473209 end3210 3211 state_comment = "State: 47 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"3212 token.detach3213 expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]3214 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)3215 raise error if (stop_at_first_error)3216 add_error(context, error)3217 return 473218 end3219 # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:03220 def match_token_at_48(token, context)3221 if match_DocStringSeparator(context, token)3222 build(context, token);3223 return 493224 end3225 if match_Other(context, token)3226 build(context, token);3227 return 483228 end3229 3230 state_comment = "State: 48 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"3231 token.detach3232 expected_tokens = ["#DocStringSeparator", "#Other"]3233 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)3234 raise error if (stop_at_first_error)3235 add_error(context, error)3236 return 483237 end3238 # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:03239 def match_token_at_49(token, context)3240 if match_EOF(context, token)3241 end_rule(context, :DocString);3242 end_rule(context, :Step);3243 end_rule(context, :Background);3244 end_rule(context, :Feature);3245 build(context, token);3246 return 413247 end3248 if match_StepLine(context, token)3249 end_rule(context, :DocString);3250 end_rule(context, :Step);3251 start_rule(context, :Step);3252 build(context, token);3253 return 93254 end3255 if match_TagLine(context, token)3256 end_rule(context, :DocString);3257 end_rule(context, :Step);3258 end_rule(context, :Background);3259 start_rule(context, :ScenarioDefinition);3260 start_rule(context, :Tags);3261 build(context, token);3262 return 113263 end3264 if match_ScenarioLine(context, token)3265 end_rule(context, :DocString);3266 end_rule(context, :Step);3267 end_rule(context, :Background);3268 start_rule(context, :ScenarioDefinition);3269 start_rule(context, :Scenario);3270 build(context, token);3271 return 123272 end3273 if match_RuleLine(context, token)3274 end_rule(context, :DocString);3275 end_rule(context, :Step);3276 end_rule(context, :Background);3277 start_rule(context, :Rule);3278 start_rule(context, :RuleHeader);...
match_ScenarioLine
Using AI Code Generation
1match_data = gherkin.match_ScenarioLine(line)2match_data = gherkin.match_ScenarioLine(line)3match_data = gherkin.match_ScenarioLine(line)4match_data = gherkin.match_ScenarioLine(line)5match_data = gherkin.match_ScenarioLine(line)
match_ScenarioLine
Using AI Code Generation
1file = File.open('1.feature', 'r')2line_number = gherkin.match_ScenarioLine(contents)3file = File.open('1.feature', 'r')4line_number = gherkin.match_StepLine(contents)5file = File.open('1.feature', 'r')6line_number = gherkin.match_ExampleLine(contents)7file = File.open('1.feature', 'r')8line_number = gherkin.match_TagLine(contents)9file = File.open('1.feature', 'r')10line_number = gherkin.match_FeatureLine(contents)
match_ScenarioLine
Using AI Code Generation
1if gherkin.match_ScenarioLine(line)2if gherkin.match_ScenarioLine(line)3if gherkin.match_ScenarioLine(line)4if gherkin.match_ScenarioLine(line)
match_ScenarioLine
Using AI Code Generation
1def match_ScenarioLine(scenario, file)2 parser = Gherkin::Parser::Parser.new(Gherkin::Formatter::ASTBuilder.new)3 formatter = Gherkin::Formatter::PrettyFormatter.new(builder)4 parser.parse(File.open(file), formatter, true, 'root')5puts match_ScenarioLine("Scenario 1", "my_feature.feature")
match_ScenarioLine
Using AI Code Generation
1f = File.open("1.feature")2 if gherkin.match_ScenarioLine(line)3 scenario = gherkin.get_ScenarioName(line)
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!