How to use match_token_at_16 method of Gherkin Package

Best Gherkin-ruby code snippet using Gherkin.match_token_at_16

parser.rb

Source:parser.rb Github

copy

Full Screen

...215 match_token_at_14(token, context)216 when 15217 match_token_at_15(token, context)218 when 16219 match_token_at_16(token, context)220 when 17221 match_token_at_17(token, context)222 when 18223 match_token_at_18(token, context)224 when 19225 match_token_at_19(token, context)226 when 20227 match_token_at_20(token, context)228 when 21229 match_token_at_21(token, context)230 when 22231 match_token_at_22(token, context)232 when 23233 match_token_at_23(token, context)234 when 24235 match_token_at_24(token, context)236 when 25237 match_token_at_25(token, context)238 when 26239 match_token_at_26(token, context)240 when 28241 match_token_at_28(token, context)242 when 29243 match_token_at_29(token, context)244 when 30245 match_token_at_30(token, context)246 when 31247 match_token_at_31(token, context)248 when 32249 match_token_at_32(token, context)250 when 33251 match_token_at_33(token, context)252 else253 raise InvalidOperationException, "Unknown state: #{state}"254 end255 end256 # Start257 def match_token_at_0(token, context)258 if match_EOF(context, token)259 build(context, token);260 return 27261 end262 if match_Language(context, token)263 start_rule(context, :Feature);264 start_rule(context, :Feature_Header);265 build(context, token);266 return 1267 end268 if match_TagLine(context, token)269 start_rule(context, :Feature);270 start_rule(context, :Feature_Header);271 start_rule(context, :Tags);272 build(context, token);273 return 2274 end275 if match_FeatureLine(context, token)276 start_rule(context, :Feature);277 start_rule(context, :Feature_Header);278 build(context, token);279 return 3280 end281 if match_Comment(context, token)282 build(context, token);283 return 0284 end285 if match_Empty(context, token)286 build(context, token);287 return 0288 end289 290 state_comment = "State: 0 - Start"291 token.detach292 expected_tokens = ["#EOF", "#Language", "#TagLine", "#FeatureLine", "#Comment", "#Empty"]293 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)294 raise error if (stop_at_first_error)295 add_error(context, error)296 return 0297 end298 # GherkinDocument:0>Feature:0>Feature_Header:0>#Language:0299 def match_token_at_1(token, context)300 if match_TagLine(context, token)301 start_rule(context, :Tags);302 build(context, token);303 return 2304 end305 if match_FeatureLine(context, token)306 build(context, token);307 return 3308 end309 if match_Comment(context, token)310 build(context, token);311 return 1312 end313 if match_Empty(context, token)314 build(context, token);315 return 1316 end317 318 state_comment = "State: 1 - GherkinDocument:0>Feature:0>Feature_Header:0>#Language:0"319 token.detach320 expected_tokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"]321 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)322 raise error if (stop_at_first_error)323 add_error(context, error)324 return 1325 end326 # GherkinDocument:0>Feature:0>Feature_Header:1>Tags:0>#TagLine:0327 def match_token_at_2(token, context)328 if match_TagLine(context, token)329 build(context, token);330 return 2331 end332 if match_FeatureLine(context, token)333 end_rule(context, :Tags);334 build(context, token);335 return 3336 end337 if match_Comment(context, token)338 build(context, token);339 return 2340 end341 if match_Empty(context, token)342 build(context, token);343 return 2344 end345 346 state_comment = "State: 2 - GherkinDocument:0>Feature:0>Feature_Header:1>Tags:0>#TagLine:0"347 token.detach348 expected_tokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"]349 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)350 raise error if (stop_at_first_error)351 add_error(context, error)352 return 2353 end354 # GherkinDocument:0>Feature:0>Feature_Header:2>#FeatureLine:0355 def match_token_at_3(token, context)356 if match_EOF(context, token)357 end_rule(context, :Feature_Header);358 end_rule(context, :Feature);359 build(context, token);360 return 27361 end362 if match_Empty(context, token)363 build(context, token);364 return 3365 end366 if match_Comment(context, token)367 build(context, token);368 return 5369 end370 if match_BackgroundLine(context, token)371 end_rule(context, :Feature_Header);372 start_rule(context, :Background);373 build(context, token);374 return 6375 end376 if match_TagLine(context, token)377 end_rule(context, :Feature_Header);378 start_rule(context, :Scenario_Definition);379 start_rule(context, :Tags);380 build(context, token);381 return 11382 end383 if match_ScenarioLine(context, token)384 end_rule(context, :Feature_Header);385 start_rule(context, :Scenario_Definition);386 start_rule(context, :Scenario);387 build(context, token);388 return 12389 end390 if match_ScenarioOutlineLine(context, token)391 end_rule(context, :Feature_Header);392 start_rule(context, :Scenario_Definition);393 start_rule(context, :ScenarioOutline);394 build(context, token);395 return 17396 end397 if match_Other(context, token)398 start_rule(context, :Description);399 build(context, token);400 return 4401 end402 403 state_comment = "State: 3 - GherkinDocument:0>Feature:0>Feature_Header:2>#FeatureLine:0"404 token.detach405 expected_tokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"]406 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)407 raise error if (stop_at_first_error)408 add_error(context, error)409 return 3410 end411 # GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:1>Description:0>#Other:0412 def match_token_at_4(token, context)413 if match_EOF(context, token)414 end_rule(context, :Description);415 end_rule(context, :Feature_Header);416 end_rule(context, :Feature);417 build(context, token);418 return 27419 end420 if match_Comment(context, token)421 end_rule(context, :Description);422 build(context, token);423 return 5424 end425 if match_BackgroundLine(context, token)426 end_rule(context, :Description);427 end_rule(context, :Feature_Header);428 start_rule(context, :Background);429 build(context, token);430 return 6431 end432 if match_TagLine(context, token)433 end_rule(context, :Description);434 end_rule(context, :Feature_Header);435 start_rule(context, :Scenario_Definition);436 start_rule(context, :Tags);437 build(context, token);438 return 11439 end440 if match_ScenarioLine(context, token)441 end_rule(context, :Description);442 end_rule(context, :Feature_Header);443 start_rule(context, :Scenario_Definition);444 start_rule(context, :Scenario);445 build(context, token);446 return 12447 end448 if match_ScenarioOutlineLine(context, token)449 end_rule(context, :Description);450 end_rule(context, :Feature_Header);451 start_rule(context, :Scenario_Definition);452 start_rule(context, :ScenarioOutline);453 build(context, token);454 return 17455 end456 if match_Other(context, token)457 build(context, token);458 return 4459 end460 461 state_comment = "State: 4 - GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:1>Description:0>#Other:0"462 token.detach463 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"]464 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)465 raise error if (stop_at_first_error)466 add_error(context, error)467 return 4468 end469 # GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:2>#Comment:0470 def match_token_at_5(token, context)471 if match_EOF(context, token)472 end_rule(context, :Feature_Header);473 end_rule(context, :Feature);474 build(context, token);475 return 27476 end477 if match_Comment(context, token)478 build(context, token);479 return 5480 end481 if match_BackgroundLine(context, token)482 end_rule(context, :Feature_Header);483 start_rule(context, :Background);484 build(context, token);485 return 6486 end487 if match_TagLine(context, token)488 end_rule(context, :Feature_Header);489 start_rule(context, :Scenario_Definition);490 start_rule(context, :Tags);491 build(context, token);492 return 11493 end494 if match_ScenarioLine(context, token)495 end_rule(context, :Feature_Header);496 start_rule(context, :Scenario_Definition);497 start_rule(context, :Scenario);498 build(context, token);499 return 12500 end501 if match_ScenarioOutlineLine(context, token)502 end_rule(context, :Feature_Header);503 start_rule(context, :Scenario_Definition);504 start_rule(context, :ScenarioOutline);505 build(context, token);506 return 17507 end508 if match_Empty(context, token)509 build(context, token);510 return 5511 end512 513 state_comment = "State: 5 - GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:2>#Comment:0"514 token.detach515 expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"]516 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)517 raise error if (stop_at_first_error)518 add_error(context, error)519 return 5520 end521 # GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0522 def match_token_at_6(token, context)523 if match_EOF(context, token)524 end_rule(context, :Background);525 end_rule(context, :Feature);526 build(context, token);527 return 27528 end529 if match_Empty(context, token)530 build(context, token);531 return 6532 end533 if match_Comment(context, token)534 build(context, token);535 return 8536 end537 if match_StepLine(context, token)538 start_rule(context, :Step);539 build(context, token);540 return 9541 end542 if match_TagLine(context, token)543 end_rule(context, :Background);544 start_rule(context, :Scenario_Definition);545 start_rule(context, :Tags);546 build(context, token);547 return 11548 end549 if match_ScenarioLine(context, token)550 end_rule(context, :Background);551 start_rule(context, :Scenario_Definition);552 start_rule(context, :Scenario);553 build(context, token);554 return 12555 end556 if match_ScenarioOutlineLine(context, token)557 end_rule(context, :Background);558 start_rule(context, :Scenario_Definition);559 start_rule(context, :ScenarioOutline);560 build(context, token);561 return 17562 end563 if match_Other(context, token)564 start_rule(context, :Description);565 build(context, token);566 return 7567 end568 569 state_comment = "State: 6 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0"570 token.detach571 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"]572 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)573 raise error if (stop_at_first_error)574 add_error(context, error)575 return 6576 end577 # GherkinDocument:0>Feature:1>Background:1>Description_Helper:1>Description:0>#Other:0578 def match_token_at_7(token, context)579 if match_EOF(context, token)580 end_rule(context, :Description);581 end_rule(context, :Background);582 end_rule(context, :Feature);583 build(context, token);584 return 27585 end586 if match_Comment(context, token)587 end_rule(context, :Description);588 build(context, token);589 return 8590 end591 if match_StepLine(context, token)592 end_rule(context, :Description);593 start_rule(context, :Step);594 build(context, token);595 return 9596 end597 if match_TagLine(context, token)598 end_rule(context, :Description);599 end_rule(context, :Background);600 start_rule(context, :Scenario_Definition);601 start_rule(context, :Tags);602 build(context, token);603 return 11604 end605 if match_ScenarioLine(context, token)606 end_rule(context, :Description);607 end_rule(context, :Background);608 start_rule(context, :Scenario_Definition);609 start_rule(context, :Scenario);610 build(context, token);611 return 12612 end613 if match_ScenarioOutlineLine(context, token)614 end_rule(context, :Description);615 end_rule(context, :Background);616 start_rule(context, :Scenario_Definition);617 start_rule(context, :ScenarioOutline);618 build(context, token);619 return 17620 end621 if match_Other(context, token)622 build(context, token);623 return 7624 end625 626 state_comment = "State: 7 - GherkinDocument:0>Feature:1>Background:1>Description_Helper:1>Description:0>#Other:0"627 token.detach628 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"]629 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)630 raise error if (stop_at_first_error)631 add_error(context, error)632 return 7633 end634 # GherkinDocument:0>Feature:1>Background:1>Description_Helper:2>#Comment:0635 def match_token_at_8(token, context)636 if match_EOF(context, token)637 end_rule(context, :Background);638 end_rule(context, :Feature);639 build(context, token);640 return 27641 end642 if match_Comment(context, token)643 build(context, token);644 return 8645 end646 if match_StepLine(context, token)647 start_rule(context, :Step);648 build(context, token);649 return 9650 end651 if match_TagLine(context, token)652 end_rule(context, :Background);653 start_rule(context, :Scenario_Definition);654 start_rule(context, :Tags);655 build(context, token);656 return 11657 end658 if match_ScenarioLine(context, token)659 end_rule(context, :Background);660 start_rule(context, :Scenario_Definition);661 start_rule(context, :Scenario);662 build(context, token);663 return 12664 end665 if match_ScenarioOutlineLine(context, token)666 end_rule(context, :Background);667 start_rule(context, :Scenario_Definition);668 start_rule(context, :ScenarioOutline);669 build(context, token);670 return 17671 end672 if match_Empty(context, token)673 build(context, token);674 return 8675 end676 677 state_comment = "State: 8 - GherkinDocument:0>Feature:1>Background:1>Description_Helper:2>#Comment:0"678 token.detach679 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"]680 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)681 raise error if (stop_at_first_error)682 add_error(context, error)683 return 8684 end685 # GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0686 def match_token_at_9(token, context)687 if match_EOF(context, token)688 end_rule(context, :Step);689 end_rule(context, :Background);690 end_rule(context, :Feature);691 build(context, token);692 return 27693 end694 if match_TableRow(context, token)695 start_rule(context, :DataTable);696 build(context, token);697 return 10698 end699 if match_DocStringSeparator(context, token)700 start_rule(context, :DocString);701 build(context, token);702 return 32703 end704 if match_StepLine(context, token)705 end_rule(context, :Step);706 start_rule(context, :Step);707 build(context, token);708 return 9709 end710 if match_TagLine(context, token)711 end_rule(context, :Step);712 end_rule(context, :Background);713 start_rule(context, :Scenario_Definition);714 start_rule(context, :Tags);715 build(context, token);716 return 11717 end718 if match_ScenarioLine(context, token)719 end_rule(context, :Step);720 end_rule(context, :Background);721 start_rule(context, :Scenario_Definition);722 start_rule(context, :Scenario);723 build(context, token);724 return 12725 end726 if match_ScenarioOutlineLine(context, token)727 end_rule(context, :Step);728 end_rule(context, :Background);729 start_rule(context, :Scenario_Definition);730 start_rule(context, :ScenarioOutline);731 build(context, token);732 return 17733 end734 if match_Comment(context, token)735 build(context, token);736 return 9737 end738 if match_Empty(context, token)739 build(context, token);740 return 9741 end742 743 state_comment = "State: 9 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0"744 token.detach745 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"]746 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)747 raise error if (stop_at_first_error)748 add_error(context, error)749 return 9750 end751 # GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0752 def match_token_at_10(token, context)753 if match_EOF(context, token)754 end_rule(context, :DataTable);755 end_rule(context, :Step);756 end_rule(context, :Background);757 end_rule(context, :Feature);758 build(context, token);759 return 27760 end761 if match_TableRow(context, token)762 build(context, token);763 return 10764 end765 if match_StepLine(context, token)766 end_rule(context, :DataTable);767 end_rule(context, :Step);768 start_rule(context, :Step);769 build(context, token);770 return 9771 end772 if match_TagLine(context, token)773 end_rule(context, :DataTable);774 end_rule(context, :Step);775 end_rule(context, :Background);776 start_rule(context, :Scenario_Definition);777 start_rule(context, :Tags);778 build(context, token);779 return 11780 end781 if match_ScenarioLine(context, token)782 end_rule(context, :DataTable);783 end_rule(context, :Step);784 end_rule(context, :Background);785 start_rule(context, :Scenario_Definition);786 start_rule(context, :Scenario);787 build(context, token);788 return 12789 end790 if match_ScenarioOutlineLine(context, token)791 end_rule(context, :DataTable);792 end_rule(context, :Step);793 end_rule(context, :Background);794 start_rule(context, :Scenario_Definition);795 start_rule(context, :ScenarioOutline);796 build(context, token);797 return 17798 end799 if match_Comment(context, token)800 build(context, token);801 return 10802 end803 if match_Empty(context, token)804 build(context, token);805 return 10806 end807 808 state_comment = "State: 10 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0"809 token.detach810 expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"]811 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)812 raise error if (stop_at_first_error)813 add_error(context, error)814 return 10815 end816 # GherkinDocument:0>Feature:2>Scenario_Definition:0>Tags:0>#TagLine:0817 def match_token_at_11(token, context)818 if match_TagLine(context, token)819 build(context, token);820 return 11821 end822 if match_ScenarioLine(context, token)823 end_rule(context, :Tags);824 start_rule(context, :Scenario);825 build(context, token);826 return 12827 end828 if match_ScenarioOutlineLine(context, token)829 end_rule(context, :Tags);830 start_rule(context, :ScenarioOutline);831 build(context, token);832 return 17833 end834 if match_Comment(context, token)835 build(context, token);836 return 11837 end838 if match_Empty(context, token)839 build(context, token);840 return 11841 end842 843 state_comment = "State: 11 - GherkinDocument:0>Feature:2>Scenario_Definition:0>Tags:0>#TagLine:0"844 token.detach845 expected_tokens = ["#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"]846 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)847 raise error if (stop_at_first_error)848 add_error(context, error)849 return 11850 end851 # GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:0>#ScenarioLine:0852 def match_token_at_12(token, context)853 if match_EOF(context, token)854 end_rule(context, :Scenario);855 end_rule(context, :Scenario_Definition);856 end_rule(context, :Feature);857 build(context, token);858 return 27859 end860 if match_Empty(context, token)861 build(context, token);862 return 12863 end864 if match_Comment(context, token)865 build(context, token);866 return 14867 end868 if match_StepLine(context, token)869 start_rule(context, :Step);870 build(context, token);871 return 15872 end873 if match_TagLine(context, token)874 end_rule(context, :Scenario);875 end_rule(context, :Scenario_Definition);876 start_rule(context, :Scenario_Definition);877 start_rule(context, :Tags);878 build(context, token);879 return 11880 end881 if match_ScenarioLine(context, token)882 end_rule(context, :Scenario);883 end_rule(context, :Scenario_Definition);884 start_rule(context, :Scenario_Definition);885 start_rule(context, :Scenario);886 build(context, token);887 return 12888 end889 if match_ScenarioOutlineLine(context, token)890 end_rule(context, :Scenario);891 end_rule(context, :Scenario_Definition);892 start_rule(context, :Scenario_Definition);893 start_rule(context, :ScenarioOutline);894 build(context, token);895 return 17896 end897 if match_Other(context, token)898 start_rule(context, :Description);899 build(context, token);900 return 13901 end902 903 state_comment = "State: 12 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:0>#ScenarioLine:0"904 token.detach905 expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"]906 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)907 raise error if (stop_at_first_error)908 add_error(context, error)909 return 12910 end911 # GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:1>Description:0>#Other:0912 def match_token_at_13(token, context)913 if match_EOF(context, token)914 end_rule(context, :Description);915 end_rule(context, :Scenario);916 end_rule(context, :Scenario_Definition);917 end_rule(context, :Feature);918 build(context, token);919 return 27920 end921 if match_Comment(context, token)922 end_rule(context, :Description);923 build(context, token);924 return 14925 end926 if match_StepLine(context, token)927 end_rule(context, :Description);928 start_rule(context, :Step);929 build(context, token);930 return 15931 end932 if match_TagLine(context, token)933 end_rule(context, :Description);934 end_rule(context, :Scenario);935 end_rule(context, :Scenario_Definition);936 start_rule(context, :Scenario_Definition);937 start_rule(context, :Tags);938 build(context, token);939 return 11940 end941 if match_ScenarioLine(context, token)942 end_rule(context, :Description);943 end_rule(context, :Scenario);944 end_rule(context, :Scenario_Definition);945 start_rule(context, :Scenario_Definition);946 start_rule(context, :Scenario);947 build(context, token);948 return 12949 end950 if match_ScenarioOutlineLine(context, token)951 end_rule(context, :Description);952 end_rule(context, :Scenario);953 end_rule(context, :Scenario_Definition);954 start_rule(context, :Scenario_Definition);955 start_rule(context, :ScenarioOutline);956 build(context, token);957 return 17958 end959 if match_Other(context, token)960 build(context, token);961 return 13962 end963 964 state_comment = "State: 13 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:1>Description:0>#Other:0"965 token.detach966 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"]967 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)968 raise error if (stop_at_first_error)969 add_error(context, error)970 return 13971 end972 # GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:2>#Comment:0973 def match_token_at_14(token, context)974 if match_EOF(context, token)975 end_rule(context, :Scenario);976 end_rule(context, :Scenario_Definition);977 end_rule(context, :Feature);978 build(context, token);979 return 27980 end981 if match_Comment(context, token)982 build(context, token);983 return 14984 end985 if match_StepLine(context, token)986 start_rule(context, :Step);987 build(context, token);988 return 15989 end990 if match_TagLine(context, token)991 end_rule(context, :Scenario);992 end_rule(context, :Scenario_Definition);993 start_rule(context, :Scenario_Definition);994 start_rule(context, :Tags);995 build(context, token);996 return 11997 end998 if match_ScenarioLine(context, token)999 end_rule(context, :Scenario);1000 end_rule(context, :Scenario_Definition);1001 start_rule(context, :Scenario_Definition);1002 start_rule(context, :Scenario);1003 build(context, token);1004 return 121005 end1006 if match_ScenarioOutlineLine(context, token)1007 end_rule(context, :Scenario);1008 end_rule(context, :Scenario_Definition);1009 start_rule(context, :Scenario_Definition);1010 start_rule(context, :ScenarioOutline);1011 build(context, token);1012 return 171013 end1014 if match_Empty(context, token)1015 build(context, token);1016 return 141017 end1018 1019 state_comment = "State: 14 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:2>#Comment:0"1020 token.detach1021 expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"]1022 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1023 raise error if (stop_at_first_error)1024 add_error(context, error)1025 return 141026 end1027 # GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:0>#StepLine:01028 def match_token_at_15(token, context)1029 if match_EOF(context, token)1030 end_rule(context, :Step);1031 end_rule(context, :Scenario);1032 end_rule(context, :Scenario_Definition);1033 end_rule(context, :Feature);1034 build(context, token);1035 return 271036 end1037 if match_TableRow(context, token)1038 start_rule(context, :DataTable);1039 build(context, token);1040 return 161041 end1042 if match_DocStringSeparator(context, token)1043 start_rule(context, :DocString);1044 build(context, token);1045 return 301046 end1047 if match_StepLine(context, token)1048 end_rule(context, :Step);1049 start_rule(context, :Step);1050 build(context, token);1051 return 151052 end1053 if match_TagLine(context, token)1054 end_rule(context, :Step);1055 end_rule(context, :Scenario);1056 end_rule(context, :Scenario_Definition);1057 start_rule(context, :Scenario_Definition);1058 start_rule(context, :Tags);1059 build(context, token);1060 return 111061 end1062 if match_ScenarioLine(context, token)1063 end_rule(context, :Step);1064 end_rule(context, :Scenario);1065 end_rule(context, :Scenario_Definition);1066 start_rule(context, :Scenario_Definition);1067 start_rule(context, :Scenario);1068 build(context, token);1069 return 121070 end1071 if match_ScenarioOutlineLine(context, token)1072 end_rule(context, :Step);1073 end_rule(context, :Scenario);1074 end_rule(context, :Scenario_Definition);1075 start_rule(context, :Scenario_Definition);1076 start_rule(context, :ScenarioOutline);1077 build(context, token);1078 return 171079 end1080 if match_Comment(context, token)1081 build(context, token);1082 return 151083 end1084 if match_Empty(context, token)1085 build(context, token);1086 return 151087 end1088 1089 state_comment = "State: 15 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:0>#StepLine:0"1090 token.detach1091 expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"]1092 error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)1093 raise error if (stop_at_first_error)1094 add_error(context, error)1095 return 151096 end1097 # GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:01098 def match_token_at_16(token, context)1099 if match_EOF(context, token)1100 end_rule(context, :DataTable);1101 end_rule(context, :Step);1102 end_rule(context, :Scenario);1103 end_rule(context, :Scenario_Definition);1104 end_rule(context, :Feature);1105 build(context, token);1106 return 271107 end1108 if match_TableRow(context, token)1109 build(context, token);1110 return 161111 end1112 if match_StepLine(context, token)...

Full Screen

Full Screen

cucumber-gherkin.rbi

Source:cucumber-gherkin.rbi Github

copy

Full Screen

...197 def match_token_at_12(token, context); end198 def match_token_at_13(token, context); end199 def match_token_at_14(token, context); end200 def match_token_at_15(token, context); end201 def match_token_at_16(token, context); end202 def match_token_at_17(token, context); end203 def match_token_at_18(token, context); end204 def match_token_at_19(token, context); end205 def match_token_at_2(token, context); end206 def match_token_at_20(token, context); end207 def match_token_at_21(token, context); end208 def match_token_at_22(token, context); end209 def match_token_at_23(token, context); end210 def match_token_at_24(token, context); end211 def match_token_at_25(token, context); end212 def match_token_at_26(token, context); end213 def match_token_at_27(token, context); end214 def match_token_at_28(token, context); end215 def match_token_at_29(token, context); end...

Full Screen

Full Screen

match_token_at_16

Using AI Code Generation

copy

Full Screen

1gherkin.match_token_at_16("1", 1)2gherkin.match_token_at_16("1", 2)3gherkin.match_token_at_16("1", 3)4gherkin.match_token_at_16("1", 4)5gherkin.match_token_at_16("1", 5)6gherkin.match_token_at_16("1", 6)7gherkin.match_token_at_16("1", 7)8gherkin.match_token_at_16("1", 8)9gherkin.match_token_at_16("1", 9)10gherkin.match_token_at_16("1", 10)

Full Screen

Full Screen

match_token_at_16

Using AI Code Generation

copy

Full Screen

1gherkin.match_token_at_16(0, :EOF, 0, 0, 0, 0)2gherkin.match_token_at_16(1, :EOF, 0, 0, 0, 0)3gherkin.match_token_at_16(2, :EOF, 0, 0, 0, 0)4gherkin.match_token_at_16(3, :EOF, 0, 0, 0, 0)5gherkin.match_token_at_16(4, :EOF, 0, 0, 0, 0)6gherkin.match_token_at_16(5, :EOF, 0, 0, 0, 0)7gherkin.match_token_at_16(6, :EOF, 0, 0, 0, 0)

Full Screen

Full Screen

Automation Testing Tutorials

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

LambdaTest Learning Hubs:

YouTube

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

Run Gherkin-ruby automation tests on LambdaTest cloud grid

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

Most used method in

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful