cucumber-gherkin 30.0.4 → 31.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gherkin/parser.rb +466 -1088
- metadata +6 -6
data/lib/gherkin/parser.rb
CHANGED
@@ -38,8 +38,8 @@ module Gherkin
|
|
38
38
|
:DataTable, # DataTable! := #TableRow+
|
39
39
|
:DocString, # DocString! := #DocStringSeparator #Other* #DocStringSeparator
|
40
40
|
:Tags, # Tags! := #TagLine+
|
41
|
-
:DescriptionHelper, # DescriptionHelper := #Empty* Description?
|
42
|
-
:Description, # Description! := #Other+
|
41
|
+
:DescriptionHelper, # DescriptionHelper := #Empty* Description?
|
42
|
+
:Description, # Description! := (#Other | #Comment)+
|
43
43
|
]
|
44
44
|
|
45
45
|
class ParserContext
|
@@ -286,8 +286,6 @@ module Gherkin
|
|
286
286
|
match_token_at_state32(token, context)
|
287
287
|
when 33
|
288
288
|
match_token_at_state33(token, context)
|
289
|
-
when 34
|
290
|
-
match_token_at_state34(token, context)
|
291
289
|
when 35
|
292
290
|
match_token_at_state35(token, context)
|
293
291
|
when 36
|
@@ -302,22 +300,8 @@ module Gherkin
|
|
302
300
|
match_token_at_state40(token, context)
|
303
301
|
when 41
|
304
302
|
match_token_at_state41(token, context)
|
305
|
-
when
|
306
|
-
|
307
|
-
when 44
|
308
|
-
match_token_at_state44(token, context)
|
309
|
-
when 45
|
310
|
-
match_token_at_state45(token, context)
|
311
|
-
when 46
|
312
|
-
match_token_at_state46(token, context)
|
313
|
-
when 47
|
314
|
-
match_token_at_state47(token, context)
|
315
|
-
when 48
|
316
|
-
match_token_at_state48(token, context)
|
317
|
-
when 49
|
318
|
-
match_token_at_state49(token, context)
|
319
|
-
when 50
|
320
|
-
match_token_at_state50(token, context)
|
303
|
+
when 42
|
304
|
+
match_token_at_state42(token, context)
|
321
305
|
else
|
322
306
|
raise InvalidOperationException, "Unknown state: #{state}"
|
323
307
|
end
|
@@ -328,7 +312,7 @@ module Gherkin
|
|
328
312
|
def match_token_at_state0(token, context)
|
329
313
|
if match_EOF(context, token)
|
330
314
|
build(context, token);
|
331
|
-
return
|
315
|
+
return 34
|
332
316
|
end
|
333
317
|
if match_Language(context, token)
|
334
318
|
start_rule(context, :Feature);
|
@@ -428,21 +412,22 @@ module Gherkin
|
|
428
412
|
end_rule(context, :FeatureHeader);
|
429
413
|
end_rule(context, :Feature);
|
430
414
|
build(context, token);
|
431
|
-
return
|
415
|
+
return 34
|
432
416
|
end
|
433
417
|
if match_Empty(context, token)
|
434
418
|
build(context, token);
|
435
419
|
return 3
|
436
420
|
end
|
437
421
|
if match_Comment(context, token)
|
422
|
+
start_rule(context, :Description);
|
438
423
|
build(context, token);
|
439
|
-
return
|
424
|
+
return 4
|
440
425
|
end
|
441
426
|
if match_BackgroundLine(context, token)
|
442
427
|
end_rule(context, :FeatureHeader);
|
443
428
|
start_rule(context, :Background);
|
444
429
|
build(context, token);
|
445
|
-
return
|
430
|
+
return 5
|
446
431
|
end
|
447
432
|
if match_TagLine(context, token)
|
448
433
|
if lookahead0(context, token)
|
@@ -450,7 +435,7 @@ module Gherkin
|
|
450
435
|
start_rule(context, :ScenarioDefinition);
|
451
436
|
start_rule(context, :Tags);
|
452
437
|
build(context, token);
|
453
|
-
return
|
438
|
+
return 9
|
454
439
|
end
|
455
440
|
end
|
456
441
|
if match_TagLine(context, token)
|
@@ -459,21 +444,21 @@ module Gherkin
|
|
459
444
|
start_rule(context, :RuleHeader);
|
460
445
|
start_rule(context, :Tags);
|
461
446
|
build(context, token);
|
462
|
-
return
|
447
|
+
return 18
|
463
448
|
end
|
464
449
|
if match_ScenarioLine(context, token)
|
465
450
|
end_rule(context, :FeatureHeader);
|
466
451
|
start_rule(context, :ScenarioDefinition);
|
467
452
|
start_rule(context, :Scenario);
|
468
453
|
build(context, token);
|
469
|
-
return
|
454
|
+
return 10
|
470
455
|
end
|
471
456
|
if match_RuleLine(context, token)
|
472
457
|
end_rule(context, :FeatureHeader);
|
473
458
|
start_rule(context, :Rule);
|
474
459
|
start_rule(context, :RuleHeader);
|
475
460
|
build(context, token);
|
476
|
-
return
|
461
|
+
return 19
|
477
462
|
end
|
478
463
|
if match_Other(context, token)
|
479
464
|
start_rule(context, :Description);
|
@@ -489,26 +474,25 @@ module Gherkin
|
|
489
474
|
add_error(context, error)
|
490
475
|
return 3
|
491
476
|
end
|
492
|
-
# GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0
|
477
|
+
# GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
|
493
478
|
def match_token_at_state4(token, context)
|
494
479
|
if match_EOF(context, token)
|
495
480
|
end_rule(context, :Description);
|
496
481
|
end_rule(context, :FeatureHeader);
|
497
482
|
end_rule(context, :Feature);
|
498
483
|
build(context, token);
|
499
|
-
return
|
484
|
+
return 34
|
500
485
|
end
|
501
486
|
if match_Comment(context, token)
|
502
|
-
end_rule(context, :Description);
|
503
487
|
build(context, token);
|
504
|
-
return
|
488
|
+
return 4
|
505
489
|
end
|
506
490
|
if match_BackgroundLine(context, token)
|
507
491
|
end_rule(context, :Description);
|
508
492
|
end_rule(context, :FeatureHeader);
|
509
493
|
start_rule(context, :Background);
|
510
494
|
build(context, token);
|
511
|
-
return
|
495
|
+
return 5
|
512
496
|
end
|
513
497
|
if match_TagLine(context, token)
|
514
498
|
if lookahead0(context, token)
|
@@ -517,7 +501,7 @@ module Gherkin
|
|
517
501
|
start_rule(context, :ScenarioDefinition);
|
518
502
|
start_rule(context, :Tags);
|
519
503
|
build(context, token);
|
520
|
-
return
|
504
|
+
return 9
|
521
505
|
end
|
522
506
|
end
|
523
507
|
if match_TagLine(context, token)
|
@@ -527,7 +511,7 @@ module Gherkin
|
|
527
511
|
start_rule(context, :RuleHeader);
|
528
512
|
start_rule(context, :Tags);
|
529
513
|
build(context, token);
|
530
|
-
return
|
514
|
+
return 18
|
531
515
|
end
|
532
516
|
if match_ScenarioLine(context, token)
|
533
517
|
end_rule(context, :Description);
|
@@ -535,7 +519,7 @@ module Gherkin
|
|
535
519
|
start_rule(context, :ScenarioDefinition);
|
536
520
|
start_rule(context, :Scenario);
|
537
521
|
build(context, token);
|
538
|
-
return
|
522
|
+
return 10
|
539
523
|
end
|
540
524
|
if match_RuleLine(context, token)
|
541
525
|
end_rule(context, :Description);
|
@@ -543,14 +527,14 @@ module Gherkin
|
|
543
527
|
start_rule(context, :Rule);
|
544
528
|
start_rule(context, :RuleHeader);
|
545
529
|
build(context, token);
|
546
|
-
return
|
530
|
+
return 19
|
547
531
|
end
|
548
532
|
if match_Other(context, token)
|
549
533
|
build(context, token);
|
550
534
|
return 4
|
551
535
|
end
|
552
536
|
|
553
|
-
state_comment = "State: 4 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0"
|
537
|
+
state_comment = "State: 4 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
|
554
538
|
token.detach
|
555
539
|
expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
556
540
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
@@ -558,88 +542,27 @@ module Gherkin
|
|
558
542
|
add_error(context, error)
|
559
543
|
return 4
|
560
544
|
end
|
561
|
-
# GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0
|
562
|
-
def match_token_at_state5(token, context)
|
563
|
-
if match_EOF(context, token)
|
564
|
-
end_rule(context, :FeatureHeader);
|
565
|
-
end_rule(context, :Feature);
|
566
|
-
build(context, token);
|
567
|
-
return 42
|
568
|
-
end
|
569
|
-
if match_Comment(context, token)
|
570
|
-
build(context, token);
|
571
|
-
return 5
|
572
|
-
end
|
573
|
-
if match_BackgroundLine(context, token)
|
574
|
-
end_rule(context, :FeatureHeader);
|
575
|
-
start_rule(context, :Background);
|
576
|
-
build(context, token);
|
577
|
-
return 6
|
578
|
-
end
|
579
|
-
if match_TagLine(context, token)
|
580
|
-
if lookahead0(context, token)
|
581
|
-
end_rule(context, :FeatureHeader);
|
582
|
-
start_rule(context, :ScenarioDefinition);
|
583
|
-
start_rule(context, :Tags);
|
584
|
-
build(context, token);
|
585
|
-
return 11
|
586
|
-
end
|
587
|
-
end
|
588
|
-
if match_TagLine(context, token)
|
589
|
-
end_rule(context, :FeatureHeader);
|
590
|
-
start_rule(context, :Rule);
|
591
|
-
start_rule(context, :RuleHeader);
|
592
|
-
start_rule(context, :Tags);
|
593
|
-
build(context, token);
|
594
|
-
return 22
|
595
|
-
end
|
596
|
-
if match_ScenarioLine(context, token)
|
597
|
-
end_rule(context, :FeatureHeader);
|
598
|
-
start_rule(context, :ScenarioDefinition);
|
599
|
-
start_rule(context, :Scenario);
|
600
|
-
build(context, token);
|
601
|
-
return 12
|
602
|
-
end
|
603
|
-
if match_RuleLine(context, token)
|
604
|
-
end_rule(context, :FeatureHeader);
|
605
|
-
start_rule(context, :Rule);
|
606
|
-
start_rule(context, :RuleHeader);
|
607
|
-
build(context, token);
|
608
|
-
return 23
|
609
|
-
end
|
610
|
-
if match_Empty(context, token)
|
611
|
-
build(context, token);
|
612
|
-
return 5
|
613
|
-
end
|
614
|
-
|
615
|
-
state_comment = "State: 5 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0"
|
616
|
-
token.detach
|
617
|
-
expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]
|
618
|
-
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
619
|
-
raise error if (stop_at_first_error)
|
620
|
-
add_error(context, error)
|
621
|
-
return 5
|
622
|
-
end
|
623
545
|
# GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0
|
624
|
-
def
|
546
|
+
def match_token_at_state5(token, context)
|
625
547
|
if match_EOF(context, token)
|
626
548
|
end_rule(context, :Background);
|
627
549
|
end_rule(context, :Feature);
|
628
550
|
build(context, token);
|
629
|
-
return
|
551
|
+
return 34
|
630
552
|
end
|
631
553
|
if match_Empty(context, token)
|
632
554
|
build(context, token);
|
633
|
-
return
|
555
|
+
return 5
|
634
556
|
end
|
635
557
|
if match_Comment(context, token)
|
558
|
+
start_rule(context, :Description);
|
636
559
|
build(context, token);
|
637
|
-
return
|
560
|
+
return 6
|
638
561
|
end
|
639
562
|
if match_StepLine(context, token)
|
640
563
|
start_rule(context, :Step);
|
641
564
|
build(context, token);
|
642
|
-
return
|
565
|
+
return 7
|
643
566
|
end
|
644
567
|
if match_TagLine(context, token)
|
645
568
|
if lookahead0(context, token)
|
@@ -647,7 +570,7 @@ module Gherkin
|
|
647
570
|
start_rule(context, :ScenarioDefinition);
|
648
571
|
start_rule(context, :Tags);
|
649
572
|
build(context, token);
|
650
|
-
return
|
573
|
+
return 9
|
651
574
|
end
|
652
575
|
end
|
653
576
|
if match_TagLine(context, token)
|
@@ -656,55 +579,54 @@ module Gherkin
|
|
656
579
|
start_rule(context, :RuleHeader);
|
657
580
|
start_rule(context, :Tags);
|
658
581
|
build(context, token);
|
659
|
-
return
|
582
|
+
return 18
|
660
583
|
end
|
661
584
|
if match_ScenarioLine(context, token)
|
662
585
|
end_rule(context, :Background);
|
663
586
|
start_rule(context, :ScenarioDefinition);
|
664
587
|
start_rule(context, :Scenario);
|
665
588
|
build(context, token);
|
666
|
-
return
|
589
|
+
return 10
|
667
590
|
end
|
668
591
|
if match_RuleLine(context, token)
|
669
592
|
end_rule(context, :Background);
|
670
593
|
start_rule(context, :Rule);
|
671
594
|
start_rule(context, :RuleHeader);
|
672
595
|
build(context, token);
|
673
|
-
return
|
596
|
+
return 19
|
674
597
|
end
|
675
598
|
if match_Other(context, token)
|
676
599
|
start_rule(context, :Description);
|
677
600
|
build(context, token);
|
678
|
-
return
|
601
|
+
return 6
|
679
602
|
end
|
680
603
|
|
681
|
-
state_comment = "State:
|
604
|
+
state_comment = "State: 5 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0"
|
682
605
|
token.detach
|
683
606
|
expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
684
607
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
685
608
|
raise error if (stop_at_first_error)
|
686
609
|
add_error(context, error)
|
687
|
-
return
|
610
|
+
return 5
|
688
611
|
end
|
689
|
-
# GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0
|
690
|
-
def
|
612
|
+
# GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
|
613
|
+
def match_token_at_state6(token, context)
|
691
614
|
if match_EOF(context, token)
|
692
615
|
end_rule(context, :Description);
|
693
616
|
end_rule(context, :Background);
|
694
617
|
end_rule(context, :Feature);
|
695
618
|
build(context, token);
|
696
|
-
return
|
619
|
+
return 34
|
697
620
|
end
|
698
621
|
if match_Comment(context, token)
|
699
|
-
end_rule(context, :Description);
|
700
622
|
build(context, token);
|
701
|
-
return
|
623
|
+
return 6
|
702
624
|
end
|
703
625
|
if match_StepLine(context, token)
|
704
626
|
end_rule(context, :Description);
|
705
627
|
start_rule(context, :Step);
|
706
628
|
build(context, token);
|
707
|
-
return
|
629
|
+
return 7
|
708
630
|
end
|
709
631
|
if match_TagLine(context, token)
|
710
632
|
if lookahead0(context, token)
|
@@ -713,7 +635,7 @@ module Gherkin
|
|
713
635
|
start_rule(context, :ScenarioDefinition);
|
714
636
|
start_rule(context, :Tags);
|
715
637
|
build(context, token);
|
716
|
-
return
|
638
|
+
return 9
|
717
639
|
end
|
718
640
|
end
|
719
641
|
if match_TagLine(context, token)
|
@@ -723,7 +645,7 @@ module Gherkin
|
|
723
645
|
start_rule(context, :RuleHeader);
|
724
646
|
start_rule(context, :Tags);
|
725
647
|
build(context, token);
|
726
|
-
return
|
648
|
+
return 18
|
727
649
|
end
|
728
650
|
if match_ScenarioLine(context, token)
|
729
651
|
end_rule(context, :Description);
|
@@ -731,7 +653,7 @@ module Gherkin
|
|
731
653
|
start_rule(context, :ScenarioDefinition);
|
732
654
|
start_rule(context, :Scenario);
|
733
655
|
build(context, token);
|
734
|
-
return
|
656
|
+
return 10
|
735
657
|
end
|
736
658
|
if match_RuleLine(context, token)
|
737
659
|
end_rule(context, :Description);
|
@@ -739,106 +661,45 @@ module Gherkin
|
|
739
661
|
start_rule(context, :Rule);
|
740
662
|
start_rule(context, :RuleHeader);
|
741
663
|
build(context, token);
|
742
|
-
return
|
664
|
+
return 19
|
743
665
|
end
|
744
666
|
if match_Other(context, token)
|
745
667
|
build(context, token);
|
746
|
-
return
|
668
|
+
return 6
|
747
669
|
end
|
748
670
|
|
749
|
-
state_comment = "State:
|
671
|
+
state_comment = "State: 6 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
|
750
672
|
token.detach
|
751
673
|
expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
752
674
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
753
675
|
raise error if (stop_at_first_error)
|
754
676
|
add_error(context, error)
|
755
|
-
return
|
756
|
-
end
|
757
|
-
# GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0
|
758
|
-
def match_token_at_state8(token, context)
|
759
|
-
if match_EOF(context, token)
|
760
|
-
end_rule(context, :Background);
|
761
|
-
end_rule(context, :Feature);
|
762
|
-
build(context, token);
|
763
|
-
return 42
|
764
|
-
end
|
765
|
-
if match_Comment(context, token)
|
766
|
-
build(context, token);
|
767
|
-
return 8
|
768
|
-
end
|
769
|
-
if match_StepLine(context, token)
|
770
|
-
start_rule(context, :Step);
|
771
|
-
build(context, token);
|
772
|
-
return 9
|
773
|
-
end
|
774
|
-
if match_TagLine(context, token)
|
775
|
-
if lookahead0(context, token)
|
776
|
-
end_rule(context, :Background);
|
777
|
-
start_rule(context, :ScenarioDefinition);
|
778
|
-
start_rule(context, :Tags);
|
779
|
-
build(context, token);
|
780
|
-
return 11
|
781
|
-
end
|
782
|
-
end
|
783
|
-
if match_TagLine(context, token)
|
784
|
-
end_rule(context, :Background);
|
785
|
-
start_rule(context, :Rule);
|
786
|
-
start_rule(context, :RuleHeader);
|
787
|
-
start_rule(context, :Tags);
|
788
|
-
build(context, token);
|
789
|
-
return 22
|
790
|
-
end
|
791
|
-
if match_ScenarioLine(context, token)
|
792
|
-
end_rule(context, :Background);
|
793
|
-
start_rule(context, :ScenarioDefinition);
|
794
|
-
start_rule(context, :Scenario);
|
795
|
-
build(context, token);
|
796
|
-
return 12
|
797
|
-
end
|
798
|
-
if match_RuleLine(context, token)
|
799
|
-
end_rule(context, :Background);
|
800
|
-
start_rule(context, :Rule);
|
801
|
-
start_rule(context, :RuleHeader);
|
802
|
-
build(context, token);
|
803
|
-
return 23
|
804
|
-
end
|
805
|
-
if match_Empty(context, token)
|
806
|
-
build(context, token);
|
807
|
-
return 8
|
808
|
-
end
|
809
|
-
|
810
|
-
state_comment = "State: 8 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0"
|
811
|
-
token.detach
|
812
|
-
expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]
|
813
|
-
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
814
|
-
raise error if (stop_at_first_error)
|
815
|
-
add_error(context, error)
|
816
|
-
return 8
|
677
|
+
return 6
|
817
678
|
end
|
818
679
|
# GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0
|
819
|
-
def
|
680
|
+
def match_token_at_state7(token, context)
|
820
681
|
if match_EOF(context, token)
|
821
682
|
end_rule(context, :Step);
|
822
683
|
end_rule(context, :Background);
|
823
684
|
end_rule(context, :Feature);
|
824
685
|
build(context, token);
|
825
|
-
return
|
686
|
+
return 34
|
826
687
|
end
|
827
688
|
if match_TableRow(context, token)
|
828
689
|
start_rule(context, :DataTable);
|
829
690
|
build(context, token);
|
830
|
-
return
|
691
|
+
return 8
|
831
692
|
end
|
832
693
|
if match_DocStringSeparator(context, token)
|
833
694
|
start_rule(context, :DocString);
|
834
695
|
build(context, token);
|
835
|
-
return
|
696
|
+
return 41
|
836
697
|
end
|
837
698
|
if match_StepLine(context, token)
|
838
699
|
end_rule(context, :Step);
|
839
700
|
start_rule(context, :Step);
|
840
701
|
build(context, token);
|
841
|
-
return
|
702
|
+
return 7
|
842
703
|
end
|
843
704
|
if match_TagLine(context, token)
|
844
705
|
if lookahead0(context, token)
|
@@ -847,7 +708,7 @@ module Gherkin
|
|
847
708
|
start_rule(context, :ScenarioDefinition);
|
848
709
|
start_rule(context, :Tags);
|
849
710
|
build(context, token);
|
850
|
-
return
|
711
|
+
return 9
|
851
712
|
end
|
852
713
|
end
|
853
714
|
if match_TagLine(context, token)
|
@@ -857,7 +718,7 @@ module Gherkin
|
|
857
718
|
start_rule(context, :RuleHeader);
|
858
719
|
start_rule(context, :Tags);
|
859
720
|
build(context, token);
|
860
|
-
return
|
721
|
+
return 18
|
861
722
|
end
|
862
723
|
if match_ScenarioLine(context, token)
|
863
724
|
end_rule(context, :Step);
|
@@ -865,7 +726,7 @@ module Gherkin
|
|
865
726
|
start_rule(context, :ScenarioDefinition);
|
866
727
|
start_rule(context, :Scenario);
|
867
728
|
build(context, token);
|
868
|
-
return
|
729
|
+
return 10
|
869
730
|
end
|
870
731
|
if match_RuleLine(context, token)
|
871
732
|
end_rule(context, :Step);
|
@@ -873,45 +734,45 @@ module Gherkin
|
|
873
734
|
start_rule(context, :Rule);
|
874
735
|
start_rule(context, :RuleHeader);
|
875
736
|
build(context, token);
|
876
|
-
return
|
737
|
+
return 19
|
877
738
|
end
|
878
739
|
if match_Comment(context, token)
|
879
740
|
build(context, token);
|
880
|
-
return
|
741
|
+
return 7
|
881
742
|
end
|
882
743
|
if match_Empty(context, token)
|
883
744
|
build(context, token);
|
884
|
-
return
|
745
|
+
return 7
|
885
746
|
end
|
886
747
|
|
887
|
-
state_comment = "State:
|
748
|
+
state_comment = "State: 7 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0"
|
888
749
|
token.detach
|
889
750
|
expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
890
751
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
891
752
|
raise error if (stop_at_first_error)
|
892
753
|
add_error(context, error)
|
893
|
-
return
|
754
|
+
return 7
|
894
755
|
end
|
895
756
|
# GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
|
896
|
-
def
|
757
|
+
def match_token_at_state8(token, context)
|
897
758
|
if match_EOF(context, token)
|
898
759
|
end_rule(context, :DataTable);
|
899
760
|
end_rule(context, :Step);
|
900
761
|
end_rule(context, :Background);
|
901
762
|
end_rule(context, :Feature);
|
902
763
|
build(context, token);
|
903
|
-
return
|
764
|
+
return 34
|
904
765
|
end
|
905
766
|
if match_TableRow(context, token)
|
906
767
|
build(context, token);
|
907
|
-
return
|
768
|
+
return 8
|
908
769
|
end
|
909
770
|
if match_StepLine(context, token)
|
910
771
|
end_rule(context, :DataTable);
|
911
772
|
end_rule(context, :Step);
|
912
773
|
start_rule(context, :Step);
|
913
774
|
build(context, token);
|
914
|
-
return
|
775
|
+
return 7
|
915
776
|
end
|
916
777
|
if match_TagLine(context, token)
|
917
778
|
if lookahead0(context, token)
|
@@ -921,7 +782,7 @@ module Gherkin
|
|
921
782
|
start_rule(context, :ScenarioDefinition);
|
922
783
|
start_rule(context, :Tags);
|
923
784
|
build(context, token);
|
924
|
-
return
|
785
|
+
return 9
|
925
786
|
end
|
926
787
|
end
|
927
788
|
if match_TagLine(context, token)
|
@@ -932,7 +793,7 @@ module Gherkin
|
|
932
793
|
start_rule(context, :RuleHeader);
|
933
794
|
start_rule(context, :Tags);
|
934
795
|
build(context, token);
|
935
|
-
return
|
796
|
+
return 18
|
936
797
|
end
|
937
798
|
if match_ScenarioLine(context, token)
|
938
799
|
end_rule(context, :DataTable);
|
@@ -941,7 +802,7 @@ module Gherkin
|
|
941
802
|
start_rule(context, :ScenarioDefinition);
|
942
803
|
start_rule(context, :Scenario);
|
943
804
|
build(context, token);
|
944
|
-
return
|
805
|
+
return 10
|
945
806
|
end
|
946
807
|
if match_RuleLine(context, token)
|
947
808
|
end_rule(context, :DataTable);
|
@@ -950,82 +811,83 @@ module Gherkin
|
|
950
811
|
start_rule(context, :Rule);
|
951
812
|
start_rule(context, :RuleHeader);
|
952
813
|
build(context, token);
|
953
|
-
return
|
814
|
+
return 19
|
954
815
|
end
|
955
816
|
if match_Comment(context, token)
|
956
817
|
build(context, token);
|
957
|
-
return
|
818
|
+
return 8
|
958
819
|
end
|
959
820
|
if match_Empty(context, token)
|
960
821
|
build(context, token);
|
961
|
-
return
|
822
|
+
return 8
|
962
823
|
end
|
963
824
|
|
964
|
-
state_comment = "State:
|
825
|
+
state_comment = "State: 8 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
|
965
826
|
token.detach
|
966
827
|
expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
967
828
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
968
829
|
raise error if (stop_at_first_error)
|
969
830
|
add_error(context, error)
|
970
|
-
return
|
831
|
+
return 8
|
971
832
|
end
|
972
833
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0
|
973
|
-
def
|
834
|
+
def match_token_at_state9(token, context)
|
974
835
|
if match_TagLine(context, token)
|
975
836
|
build(context, token);
|
976
|
-
return
|
837
|
+
return 9
|
977
838
|
end
|
978
839
|
if match_ScenarioLine(context, token)
|
979
840
|
end_rule(context, :Tags);
|
980
841
|
start_rule(context, :Scenario);
|
981
842
|
build(context, token);
|
982
|
-
return
|
843
|
+
return 10
|
983
844
|
end
|
984
845
|
if match_Comment(context, token)
|
985
846
|
build(context, token);
|
986
|
-
return
|
847
|
+
return 9
|
987
848
|
end
|
988
849
|
if match_Empty(context, token)
|
989
850
|
build(context, token);
|
990
|
-
return
|
851
|
+
return 9
|
991
852
|
end
|
992
853
|
|
993
|
-
state_comment = "State:
|
854
|
+
state_comment = "State: 9 - GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0"
|
994
855
|
token.detach
|
995
856
|
expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]
|
996
857
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
997
858
|
raise error if (stop_at_first_error)
|
998
859
|
add_error(context, error)
|
999
|
-
return
|
860
|
+
return 9
|
1000
861
|
end
|
1001
862
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0
|
1002
|
-
def
|
863
|
+
def match_token_at_state10(token, context)
|
1003
864
|
if match_EOF(context, token)
|
1004
865
|
end_rule(context, :Scenario);
|
1005
866
|
end_rule(context, :ScenarioDefinition);
|
1006
867
|
end_rule(context, :Feature);
|
1007
868
|
build(context, token);
|
1008
|
-
return
|
869
|
+
return 34
|
1009
870
|
end
|
1010
871
|
if match_Empty(context, token)
|
1011
872
|
build(context, token);
|
1012
|
-
return
|
873
|
+
return 10
|
1013
874
|
end
|
1014
875
|
if match_Comment(context, token)
|
876
|
+
start_rule(context, :Description);
|
1015
877
|
build(context, token);
|
1016
|
-
return
|
878
|
+
return 11
|
1017
879
|
end
|
1018
880
|
if match_StepLine(context, token)
|
1019
881
|
start_rule(context, :Step);
|
1020
882
|
build(context, token);
|
1021
|
-
return
|
883
|
+
return 12
|
1022
884
|
end
|
1023
885
|
if match_TagLine(context, token)
|
1024
886
|
if lookahead1(context, token)
|
1025
887
|
start_rule(context, :ExamplesDefinition);
|
1026
888
|
start_rule(context, :Tags);
|
1027
889
|
build(context, token);
|
1028
|
-
return
|
890
|
+
return 14
|
1029
891
|
end
|
1030
892
|
end
|
1031
893
|
if match_TagLine(context, token)
|
@@ -1035,7 +897,7 @@ module Gherkin
|
|
1035
897
|
start_rule(context, :ScenarioDefinition);
|
1036
898
|
start_rule(context, :Tags);
|
1037
899
|
build(context, token);
|
1038
|
-
return
|
900
|
+
return 9
|
1039
901
|
end
|
1040
902
|
end
|
1041
903
|
if match_TagLine(context, token)
|
@@ -1045,13 +907,13 @@ module Gherkin
|
|
1045
907
|
start_rule(context, :RuleHeader);
|
1046
908
|
start_rule(context, :Tags);
|
1047
909
|
build(context, token);
|
1048
|
-
return
|
910
|
+
return 18
|
1049
911
|
end
|
1050
912
|
if match_ExamplesLine(context, token)
|
1051
913
|
start_rule(context, :ExamplesDefinition);
|
1052
914
|
start_rule(context, :Examples);
|
1053
915
|
build(context, token);
|
1054
|
-
return
|
916
|
+
return 15
|
1055
917
|
end
|
1056
918
|
if match_ScenarioLine(context, token)
|
1057
919
|
end_rule(context, :Scenario);
|
@@ -1059,7 +921,7 @@ module Gherkin
|
|
1059
921
|
start_rule(context, :ScenarioDefinition);
|
1060
922
|
start_rule(context, :Scenario);
|
1061
923
|
build(context, token);
|
1062
|
-
return
|
924
|
+
return 10
|
1063
925
|
end
|
1064
926
|
if match_RuleLine(context, token)
|
1065
927
|
end_rule(context, :Scenario);
|
@@ -1067,42 +929,41 @@ module Gherkin
|
|
1067
929
|
start_rule(context, :Rule);
|
1068
930
|
start_rule(context, :RuleHeader);
|
1069
931
|
build(context, token);
|
1070
|
-
return
|
932
|
+
return 19
|
1071
933
|
end
|
1072
934
|
if match_Other(context, token)
|
1073
935
|
start_rule(context, :Description);
|
1074
936
|
build(context, token);
|
1075
|
-
return
|
937
|
+
return 11
|
1076
938
|
end
|
1077
939
|
|
1078
|
-
state_comment = "State:
|
940
|
+
state_comment = "State: 10 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"
|
1079
941
|
token.detach
|
1080
942
|
expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
1081
943
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1082
944
|
raise error if (stop_at_first_error)
|
1083
945
|
add_error(context, error)
|
1084
|
-
return
|
946
|
+
return 10
|
1085
947
|
end
|
1086
|
-
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0
|
1087
|
-
def
|
948
|
+
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
|
949
|
+
def match_token_at_state11(token, context)
|
1088
950
|
if match_EOF(context, token)
|
1089
951
|
end_rule(context, :Description);
|
1090
952
|
end_rule(context, :Scenario);
|
1091
953
|
end_rule(context, :ScenarioDefinition);
|
1092
954
|
end_rule(context, :Feature);
|
1093
955
|
build(context, token);
|
1094
|
-
return
|
956
|
+
return 34
|
1095
957
|
end
|
1096
958
|
if match_Comment(context, token)
|
1097
|
-
end_rule(context, :Description);
|
1098
959
|
build(context, token);
|
1099
|
-
return
|
960
|
+
return 11
|
1100
961
|
end
|
1101
962
|
if match_StepLine(context, token)
|
1102
963
|
end_rule(context, :Description);
|
1103
964
|
start_rule(context, :Step);
|
1104
965
|
build(context, token);
|
1105
|
-
return
|
966
|
+
return 12
|
1106
967
|
end
|
1107
968
|
if match_TagLine(context, token)
|
1108
969
|
if lookahead1(context, token)
|
@@ -1110,7 +971,7 @@ module Gherkin
|
|
1110
971
|
start_rule(context, :ExamplesDefinition);
|
1111
972
|
start_rule(context, :Tags);
|
1112
973
|
build(context, token);
|
1113
|
-
return
|
974
|
+
return 14
|
1114
975
|
end
|
1115
976
|
end
|
1116
977
|
if match_TagLine(context, token)
|
@@ -1121,7 +982,7 @@ module Gherkin
|
|
1121
982
|
start_rule(context, :ScenarioDefinition);
|
1122
983
|
start_rule(context, :Tags);
|
1123
984
|
build(context, token);
|
1124
|
-
return
|
985
|
+
return 9
|
1125
986
|
end
|
1126
987
|
end
|
1127
988
|
if match_TagLine(context, token)
|
@@ -1132,14 +993,14 @@ module Gherkin
|
|
1132
993
|
start_rule(context, :RuleHeader);
|
1133
994
|
start_rule(context, :Tags);
|
1134
995
|
build(context, token);
|
1135
|
-
return
|
996
|
+
return 18
|
1136
997
|
end
|
1137
998
|
if match_ExamplesLine(context, token)
|
1138
999
|
end_rule(context, :Description);
|
1139
1000
|
start_rule(context, :ExamplesDefinition);
|
1140
1001
|
start_rule(context, :Examples);
|
1141
1002
|
build(context, token);
|
1142
|
-
return
|
1003
|
+
return 15
|
1143
1004
|
end
|
1144
1005
|
if match_ScenarioLine(context, token)
|
1145
1006
|
end_rule(context, :Description);
|
@@ -1148,7 +1009,7 @@ module Gherkin
|
|
1148
1009
|
start_rule(context, :ScenarioDefinition);
|
1149
1010
|
start_rule(context, :Scenario);
|
1150
1011
|
build(context, token);
|
1151
|
-
return
|
1012
|
+
return 10
|
1152
1013
|
end
|
1153
1014
|
if match_RuleLine(context, token)
|
1154
1015
|
end_rule(context, :Description);
|
@@ -1157,126 +1018,46 @@ module Gherkin
|
|
1157
1018
|
start_rule(context, :Rule);
|
1158
1019
|
start_rule(context, :RuleHeader);
|
1159
1020
|
build(context, token);
|
1160
|
-
return
|
1021
|
+
return 19
|
1161
1022
|
end
|
1162
1023
|
if match_Other(context, token)
|
1163
1024
|
build(context, token);
|
1164
|
-
return
|
1025
|
+
return 11
|
1165
1026
|
end
|
1166
1027
|
|
1167
|
-
state_comment = "State:
|
1028
|
+
state_comment = "State: 11 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
|
1168
1029
|
token.detach
|
1169
1030
|
expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
1170
1031
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1171
1032
|
raise error if (stop_at_first_error)
|
1172
1033
|
add_error(context, error)
|
1173
|
-
return
|
1174
|
-
end
|
1175
|
-
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0
|
1176
|
-
def match_token_at_state14(token, context)
|
1177
|
-
if match_EOF(context, token)
|
1178
|
-
end_rule(context, :Scenario);
|
1179
|
-
end_rule(context, :ScenarioDefinition);
|
1180
|
-
end_rule(context, :Feature);
|
1181
|
-
build(context, token);
|
1182
|
-
return 42
|
1183
|
-
end
|
1184
|
-
if match_Comment(context, token)
|
1185
|
-
build(context, token);
|
1186
|
-
return 14
|
1187
|
-
end
|
1188
|
-
if match_StepLine(context, token)
|
1189
|
-
start_rule(context, :Step);
|
1190
|
-
build(context, token);
|
1191
|
-
return 15
|
1192
|
-
end
|
1193
|
-
if match_TagLine(context, token)
|
1194
|
-
if lookahead1(context, token)
|
1195
|
-
start_rule(context, :ExamplesDefinition);
|
1196
|
-
start_rule(context, :Tags);
|
1197
|
-
build(context, token);
|
1198
|
-
return 17
|
1199
|
-
end
|
1200
|
-
end
|
1201
|
-
if match_TagLine(context, token)
|
1202
|
-
if lookahead0(context, token)
|
1203
|
-
end_rule(context, :Scenario);
|
1204
|
-
end_rule(context, :ScenarioDefinition);
|
1205
|
-
start_rule(context, :ScenarioDefinition);
|
1206
|
-
start_rule(context, :Tags);
|
1207
|
-
build(context, token);
|
1208
|
-
return 11
|
1209
|
-
end
|
1210
|
-
end
|
1211
|
-
if match_TagLine(context, token)
|
1212
|
-
end_rule(context, :Scenario);
|
1213
|
-
end_rule(context, :ScenarioDefinition);
|
1214
|
-
start_rule(context, :Rule);
|
1215
|
-
start_rule(context, :RuleHeader);
|
1216
|
-
start_rule(context, :Tags);
|
1217
|
-
build(context, token);
|
1218
|
-
return 22
|
1219
|
-
end
|
1220
|
-
if match_ExamplesLine(context, token)
|
1221
|
-
start_rule(context, :ExamplesDefinition);
|
1222
|
-
start_rule(context, :Examples);
|
1223
|
-
build(context, token);
|
1224
|
-
return 18
|
1225
|
-
end
|
1226
|
-
if match_ScenarioLine(context, token)
|
1227
|
-
end_rule(context, :Scenario);
|
1228
|
-
end_rule(context, :ScenarioDefinition);
|
1229
|
-
start_rule(context, :ScenarioDefinition);
|
1230
|
-
start_rule(context, :Scenario);
|
1231
|
-
build(context, token);
|
1232
|
-
return 12
|
1233
|
-
end
|
1234
|
-
if match_RuleLine(context, token)
|
1235
|
-
end_rule(context, :Scenario);
|
1236
|
-
end_rule(context, :ScenarioDefinition);
|
1237
|
-
start_rule(context, :Rule);
|
1238
|
-
start_rule(context, :RuleHeader);
|
1239
|
-
build(context, token);
|
1240
|
-
return 23
|
1241
|
-
end
|
1242
|
-
if match_Empty(context, token)
|
1243
|
-
build(context, token);
|
1244
|
-
return 14
|
1245
|
-
end
|
1246
|
-
|
1247
|
-
state_comment = "State: 14 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"
|
1248
|
-
token.detach
|
1249
|
-
expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]
|
1250
|
-
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1251
|
-
raise error if (stop_at_first_error)
|
1252
|
-
add_error(context, error)
|
1253
|
-
return 14
|
1034
|
+
return 11
|
1254
1035
|
end
|
1255
1036
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0
|
1256
|
-
def
|
1037
|
+
def match_token_at_state12(token, context)
|
1257
1038
|
if match_EOF(context, token)
|
1258
1039
|
end_rule(context, :Step);
|
1259
1040
|
end_rule(context, :Scenario);
|
1260
1041
|
end_rule(context, :ScenarioDefinition);
|
1261
1042
|
end_rule(context, :Feature);
|
1262
1043
|
build(context, token);
|
1263
|
-
return
|
1044
|
+
return 34
|
1264
1045
|
end
|
1265
1046
|
if match_TableRow(context, token)
|
1266
1047
|
start_rule(context, :DataTable);
|
1267
1048
|
build(context, token);
|
1268
|
-
return
|
1049
|
+
return 13
|
1269
1050
|
end
|
1270
1051
|
if match_DocStringSeparator(context, token)
|
1271
1052
|
start_rule(context, :DocString);
|
1272
1053
|
build(context, token);
|
1273
|
-
return
|
1054
|
+
return 39
|
1274
1055
|
end
|
1275
1056
|
if match_StepLine(context, token)
|
1276
1057
|
end_rule(context, :Step);
|
1277
1058
|
start_rule(context, :Step);
|
1278
1059
|
build(context, token);
|
1279
|
-
return
|
1060
|
+
return 12
|
1280
1061
|
end
|
1281
1062
|
if match_TagLine(context, token)
|
1282
1063
|
if lookahead1(context, token)
|
@@ -1284,7 +1065,7 @@ module Gherkin
|
|
1284
1065
|
start_rule(context, :ExamplesDefinition);
|
1285
1066
|
start_rule(context, :Tags);
|
1286
1067
|
build(context, token);
|
1287
|
-
return
|
1068
|
+
return 14
|
1288
1069
|
end
|
1289
1070
|
end
|
1290
1071
|
if match_TagLine(context, token)
|
@@ -1295,7 +1076,7 @@ module Gherkin
|
|
1295
1076
|
start_rule(context, :ScenarioDefinition);
|
1296
1077
|
start_rule(context, :Tags);
|
1297
1078
|
build(context, token);
|
1298
|
-
return
|
1079
|
+
return 9
|
1299
1080
|
end
|
1300
1081
|
end
|
1301
1082
|
if match_TagLine(context, token)
|
@@ -1306,14 +1087,14 @@ module Gherkin
|
|
1306
1087
|
start_rule(context, :RuleHeader);
|
1307
1088
|
start_rule(context, :Tags);
|
1308
1089
|
build(context, token);
|
1309
|
-
return
|
1090
|
+
return 18
|
1310
1091
|
end
|
1311
1092
|
if match_ExamplesLine(context, token)
|
1312
1093
|
end_rule(context, :Step);
|
1313
1094
|
start_rule(context, :ExamplesDefinition);
|
1314
1095
|
start_rule(context, :Examples);
|
1315
1096
|
build(context, token);
|
1316
|
-
return
|
1097
|
+
return 15
|
1317
1098
|
end
|
1318
1099
|
if match_ScenarioLine(context, token)
|
1319
1100
|
end_rule(context, :Step);
|
@@ -1322,7 +1103,7 @@ module Gherkin
|
|
1322
1103
|
start_rule(context, :ScenarioDefinition);
|
1323
1104
|
start_rule(context, :Scenario);
|
1324
1105
|
build(context, token);
|
1325
|
-
return
|
1106
|
+
return 10
|
1326
1107
|
end
|
1327
1108
|
if match_RuleLine(context, token)
|
1328
1109
|
end_rule(context, :Step);
|
@@ -1331,27 +1112,27 @@ module Gherkin
|
|
1331
1112
|
start_rule(context, :Rule);
|
1332
1113
|
start_rule(context, :RuleHeader);
|
1333
1114
|
build(context, token);
|
1334
|
-
return
|
1115
|
+
return 19
|
1335
1116
|
end
|
1336
1117
|
if match_Comment(context, token)
|
1337
1118
|
build(context, token);
|
1338
|
-
return
|
1119
|
+
return 12
|
1339
1120
|
end
|
1340
1121
|
if match_Empty(context, token)
|
1341
1122
|
build(context, token);
|
1342
|
-
return
|
1123
|
+
return 12
|
1343
1124
|
end
|
1344
1125
|
|
1345
|
-
state_comment = "State:
|
1126
|
+
state_comment = "State: 12 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"
|
1346
1127
|
token.detach
|
1347
1128
|
expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
1348
1129
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1349
1130
|
raise error if (stop_at_first_error)
|
1350
1131
|
add_error(context, error)
|
1351
|
-
return
|
1132
|
+
return 12
|
1352
1133
|
end
|
1353
1134
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
|
1354
|
-
def
|
1135
|
+
def match_token_at_state13(token, context)
|
1355
1136
|
if match_EOF(context, token)
|
1356
1137
|
end_rule(context, :DataTable);
|
1357
1138
|
end_rule(context, :Step);
|
@@ -1359,18 +1140,18 @@ module Gherkin
|
|
1359
1140
|
end_rule(context, :ScenarioDefinition);
|
1360
1141
|
end_rule(context, :Feature);
|
1361
1142
|
build(context, token);
|
1362
|
-
return
|
1143
|
+
return 34
|
1363
1144
|
end
|
1364
1145
|
if match_TableRow(context, token)
|
1365
1146
|
build(context, token);
|
1366
|
-
return
|
1147
|
+
return 13
|
1367
1148
|
end
|
1368
1149
|
if match_StepLine(context, token)
|
1369
1150
|
end_rule(context, :DataTable);
|
1370
1151
|
end_rule(context, :Step);
|
1371
1152
|
start_rule(context, :Step);
|
1372
1153
|
build(context, token);
|
1373
|
-
return
|
1154
|
+
return 12
|
1374
1155
|
end
|
1375
1156
|
if match_TagLine(context, token)
|
1376
1157
|
if lookahead1(context, token)
|
@@ -1379,7 +1160,7 @@ module Gherkin
|
|
1379
1160
|
start_rule(context, :ExamplesDefinition);
|
1380
1161
|
start_rule(context, :Tags);
|
1381
1162
|
build(context, token);
|
1382
|
-
return
|
1163
|
+
return 14
|
1383
1164
|
end
|
1384
1165
|
end
|
1385
1166
|
if match_TagLine(context, token)
|
@@ -1391,7 +1172,7 @@ module Gherkin
|
|
1391
1172
|
start_rule(context, :ScenarioDefinition);
|
1392
1173
|
start_rule(context, :Tags);
|
1393
1174
|
build(context, token);
|
1394
|
-
return
|
1175
|
+
return 9
|
1395
1176
|
end
|
1396
1177
|
end
|
1397
1178
|
if match_TagLine(context, token)
|
@@ -1403,7 +1184,7 @@ module Gherkin
|
|
1403
1184
|
start_rule(context, :RuleHeader);
|
1404
1185
|
start_rule(context, :Tags);
|
1405
1186
|
build(context, token);
|
1406
|
-
return
|
1187
|
+
return 18
|
1407
1188
|
end
|
1408
1189
|
if match_ExamplesLine(context, token)
|
1409
1190
|
end_rule(context, :DataTable);
|
@@ -1411,7 +1192,7 @@ module Gherkin
|
|
1411
1192
|
start_rule(context, :ExamplesDefinition);
|
1412
1193
|
start_rule(context, :Examples);
|
1413
1194
|
build(context, token);
|
1414
|
-
return
|
1195
|
+
return 15
|
1415
1196
|
end
|
1416
1197
|
if match_ScenarioLine(context, token)
|
1417
1198
|
end_rule(context, :DataTable);
|
@@ -1421,7 +1202,7 @@ module Gherkin
|
|
1421
1202
|
start_rule(context, :ScenarioDefinition);
|
1422
1203
|
start_rule(context, :Scenario);
|
1423
1204
|
build(context, token);
|
1424
|
-
return
|
1205
|
+
return 10
|
1425
1206
|
end
|
1426
1207
|
if match_RuleLine(context, token)
|
1427
1208
|
end_rule(context, :DataTable);
|
@@ -1431,56 +1212,56 @@ module Gherkin
|
|
1431
1212
|
start_rule(context, :Rule);
|
1432
1213
|
start_rule(context, :RuleHeader);
|
1433
1214
|
build(context, token);
|
1434
|
-
return
|
1215
|
+
return 19
|
1435
1216
|
end
|
1436
1217
|
if match_Comment(context, token)
|
1437
1218
|
build(context, token);
|
1438
|
-
return
|
1219
|
+
return 13
|
1439
1220
|
end
|
1440
1221
|
if match_Empty(context, token)
|
1441
1222
|
build(context, token);
|
1442
|
-
return
|
1223
|
+
return 13
|
1443
1224
|
end
|
1444
1225
|
|
1445
|
-
state_comment = "State:
|
1226
|
+
state_comment = "State: 13 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
|
1446
1227
|
token.detach
|
1447
1228
|
expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
1448
1229
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1449
1230
|
raise error if (stop_at_first_error)
|
1450
1231
|
add_error(context, error)
|
1451
|
-
return
|
1232
|
+
return 13
|
1452
1233
|
end
|
1453
1234
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0
|
1454
|
-
def
|
1235
|
+
def match_token_at_state14(token, context)
|
1455
1236
|
if match_TagLine(context, token)
|
1456
1237
|
build(context, token);
|
1457
|
-
return
|
1238
|
+
return 14
|
1458
1239
|
end
|
1459
1240
|
if match_ExamplesLine(context, token)
|
1460
1241
|
end_rule(context, :Tags);
|
1461
1242
|
start_rule(context, :Examples);
|
1462
1243
|
build(context, token);
|
1463
|
-
return
|
1244
|
+
return 15
|
1464
1245
|
end
|
1465
1246
|
if match_Comment(context, token)
|
1466
1247
|
build(context, token);
|
1467
|
-
return
|
1248
|
+
return 14
|
1468
1249
|
end
|
1469
1250
|
if match_Empty(context, token)
|
1470
1251
|
build(context, token);
|
1471
|
-
return
|
1252
|
+
return 14
|
1472
1253
|
end
|
1473
1254
|
|
1474
|
-
state_comment = "State:
|
1255
|
+
state_comment = "State: 14 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"
|
1475
1256
|
token.detach
|
1476
1257
|
expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]
|
1477
1258
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1478
1259
|
raise error if (stop_at_first_error)
|
1479
1260
|
add_error(context, error)
|
1480
|
-
return
|
1261
|
+
return 14
|
1481
1262
|
end
|
1482
1263
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0
|
1483
|
-
def
|
1264
|
+
def match_token_at_state15(token, context)
|
1484
1265
|
if match_EOF(context, token)
|
1485
1266
|
end_rule(context, :Examples);
|
1486
1267
|
end_rule(context, :ExamplesDefinition);
|
@@ -1488,20 +1269,21 @@ module Gherkin
|
|
1488
1269
|
end_rule(context, :ScenarioDefinition);
|
1489
1270
|
end_rule(context, :Feature);
|
1490
1271
|
build(context, token);
|
1491
|
-
return
|
1272
|
+
return 34
|
1492
1273
|
end
|
1493
1274
|
if match_Empty(context, token)
|
1494
1275
|
build(context, token);
|
1495
|
-
return
|
1276
|
+
return 15
|
1496
1277
|
end
|
1497
1278
|
if match_Comment(context, token)
|
1279
|
+
start_rule(context, :Description);
|
1498
1280
|
build(context, token);
|
1499
|
-
return
|
1281
|
+
return 16
|
1500
1282
|
end
|
1501
1283
|
if match_TableRow(context, token)
|
1502
1284
|
start_rule(context, :ExamplesTable);
|
1503
1285
|
build(context, token);
|
1504
|
-
return
|
1286
|
+
return 17
|
1505
1287
|
end
|
1506
1288
|
if match_TagLine(context, token)
|
1507
1289
|
if lookahead1(context, token)
|
@@ -1510,7 +1292,7 @@ module Gherkin
|
|
1510
1292
|
start_rule(context, :ExamplesDefinition);
|
1511
1293
|
start_rule(context, :Tags);
|
1512
1294
|
build(context, token);
|
1513
|
-
return
|
1295
|
+
return 14
|
1514
1296
|
end
|
1515
1297
|
end
|
1516
1298
|
if match_TagLine(context, token)
|
@@ -1522,7 +1304,7 @@ module Gherkin
|
|
1522
1304
|
start_rule(context, :ScenarioDefinition);
|
1523
1305
|
start_rule(context, :Tags);
|
1524
1306
|
build(context, token);
|
1525
|
-
return
|
1307
|
+
return 9
|
1526
1308
|
end
|
1527
1309
|
end
|
1528
1310
|
if match_TagLine(context, token)
|
@@ -1534,7 +1316,7 @@ module Gherkin
|
|
1534
1316
|
start_rule(context, :RuleHeader);
|
1535
1317
|
start_rule(context, :Tags);
|
1536
1318
|
build(context, token);
|
1537
|
-
return
|
1319
|
+
return 18
|
1538
1320
|
end
|
1539
1321
|
if match_ExamplesLine(context, token)
|
1540
1322
|
end_rule(context, :Examples);
|
@@ -1542,7 +1324,7 @@ module Gherkin
|
|
1542
1324
|
start_rule(context, :ExamplesDefinition);
|
1543
1325
|
start_rule(context, :Examples);
|
1544
1326
|
build(context, token);
|
1545
|
-
return
|
1327
|
+
return 15
|
1546
1328
|
end
|
1547
1329
|
if match_ScenarioLine(context, token)
|
1548
1330
|
end_rule(context, :Examples);
|
@@ -1552,7 +1334,7 @@ module Gherkin
|
|
1552
1334
|
start_rule(context, :ScenarioDefinition);
|
1553
1335
|
start_rule(context, :Scenario);
|
1554
1336
|
build(context, token);
|
1555
|
-
return
|
1337
|
+
return 10
|
1556
1338
|
end
|
1557
1339
|
if match_RuleLine(context, token)
|
1558
1340
|
end_rule(context, :Examples);
|
@@ -1562,24 +1344,24 @@ module Gherkin
|
|
1562
1344
|
start_rule(context, :Rule);
|
1563
1345
|
start_rule(context, :RuleHeader);
|
1564
1346
|
build(context, token);
|
1565
|
-
return
|
1347
|
+
return 19
|
1566
1348
|
end
|
1567
1349
|
if match_Other(context, token)
|
1568
1350
|
start_rule(context, :Description);
|
1569
1351
|
build(context, token);
|
1570
|
-
return
|
1352
|
+
return 16
|
1571
1353
|
end
|
1572
1354
|
|
1573
|
-
state_comment = "State:
|
1355
|
+
state_comment = "State: 15 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"
|
1574
1356
|
token.detach
|
1575
1357
|
expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
1576
1358
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1577
1359
|
raise error if (stop_at_first_error)
|
1578
1360
|
add_error(context, error)
|
1579
|
-
return
|
1361
|
+
return 15
|
1580
1362
|
end
|
1581
|
-
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0
|
1582
|
-
def
|
1363
|
+
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
|
1364
|
+
def match_token_at_state16(token, context)
|
1583
1365
|
if match_EOF(context, token)
|
1584
1366
|
end_rule(context, :Description);
|
1585
1367
|
end_rule(context, :Examples);
|
@@ -1588,18 +1370,17 @@ module Gherkin
|
|
1588
1370
|
end_rule(context, :ScenarioDefinition);
|
1589
1371
|
end_rule(context, :Feature);
|
1590
1372
|
build(context, token);
|
1591
|
-
return
|
1373
|
+
return 34
|
1592
1374
|
end
|
1593
1375
|
if match_Comment(context, token)
|
1594
|
-
end_rule(context, :Description);
|
1595
1376
|
build(context, token);
|
1596
|
-
return
|
1377
|
+
return 16
|
1597
1378
|
end
|
1598
1379
|
if match_TableRow(context, token)
|
1599
1380
|
end_rule(context, :Description);
|
1600
1381
|
start_rule(context, :ExamplesTable);
|
1601
1382
|
build(context, token);
|
1602
|
-
return
|
1383
|
+
return 17
|
1603
1384
|
end
|
1604
1385
|
if match_TagLine(context, token)
|
1605
1386
|
if lookahead1(context, token)
|
@@ -1609,7 +1390,7 @@ module Gherkin
|
|
1609
1390
|
start_rule(context, :ExamplesDefinition);
|
1610
1391
|
start_rule(context, :Tags);
|
1611
1392
|
build(context, token);
|
1612
|
-
return
|
1393
|
+
return 14
|
1613
1394
|
end
|
1614
1395
|
end
|
1615
1396
|
if match_TagLine(context, token)
|
@@ -1622,7 +1403,7 @@ module Gherkin
|
|
1622
1403
|
start_rule(context, :ScenarioDefinition);
|
1623
1404
|
start_rule(context, :Tags);
|
1624
1405
|
build(context, token);
|
1625
|
-
return
|
1406
|
+
return 9
|
1626
1407
|
end
|
1627
1408
|
end
|
1628
1409
|
if match_TagLine(context, token)
|
@@ -1635,7 +1416,7 @@ module Gherkin
|
|
1635
1416
|
start_rule(context, :RuleHeader);
|
1636
1417
|
start_rule(context, :Tags);
|
1637
1418
|
build(context, token);
|
1638
|
-
return
|
1419
|
+
return 18
|
1639
1420
|
end
|
1640
1421
|
if match_ExamplesLine(context, token)
|
1641
1422
|
end_rule(context, :Description);
|
@@ -1644,7 +1425,7 @@ module Gherkin
|
|
1644
1425
|
start_rule(context, :ExamplesDefinition);
|
1645
1426
|
start_rule(context, :Examples);
|
1646
1427
|
build(context, token);
|
1647
|
-
return
|
1428
|
+
return 15
|
1648
1429
|
end
|
1649
1430
|
if match_ScenarioLine(context, token)
|
1650
1431
|
end_rule(context, :Description);
|
@@ -1655,7 +1436,7 @@ module Gherkin
|
|
1655
1436
|
start_rule(context, :ScenarioDefinition);
|
1656
1437
|
start_rule(context, :Scenario);
|
1657
1438
|
build(context, token);
|
1658
|
-
return
|
1439
|
+
return 10
|
1659
1440
|
end
|
1660
1441
|
if match_RuleLine(context, token)
|
1661
1442
|
end_rule(context, :Description);
|
@@ -1666,53 +1447,51 @@ module Gherkin
|
|
1666
1447
|
start_rule(context, :Rule);
|
1667
1448
|
start_rule(context, :RuleHeader);
|
1668
1449
|
build(context, token);
|
1669
|
-
return
|
1450
|
+
return 19
|
1670
1451
|
end
|
1671
1452
|
if match_Other(context, token)
|
1672
1453
|
build(context, token);
|
1673
|
-
return
|
1454
|
+
return 16
|
1674
1455
|
end
|
1675
1456
|
|
1676
|
-
state_comment = "State:
|
1457
|
+
state_comment = "State: 16 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
|
1677
1458
|
token.detach
|
1678
1459
|
expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
1679
1460
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1680
1461
|
raise error if (stop_at_first_error)
|
1681
1462
|
add_error(context, error)
|
1682
|
-
return
|
1463
|
+
return 16
|
1683
1464
|
end
|
1684
|
-
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:
|
1685
|
-
def
|
1465
|
+
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0
|
1466
|
+
def match_token_at_state17(token, context)
|
1686
1467
|
if match_EOF(context, token)
|
1468
|
+
end_rule(context, :ExamplesTable);
|
1687
1469
|
end_rule(context, :Examples);
|
1688
1470
|
end_rule(context, :ExamplesDefinition);
|
1689
1471
|
end_rule(context, :Scenario);
|
1690
1472
|
end_rule(context, :ScenarioDefinition);
|
1691
1473
|
end_rule(context, :Feature);
|
1692
1474
|
build(context, token);
|
1693
|
-
return
|
1694
|
-
end
|
1695
|
-
if match_Comment(context, token)
|
1696
|
-
build(context, token);
|
1697
|
-
return 20
|
1475
|
+
return 34
|
1698
1476
|
end
|
1699
1477
|
if match_TableRow(context, token)
|
1700
|
-
start_rule(context, :ExamplesTable);
|
1701
1478
|
build(context, token);
|
1702
|
-
return
|
1479
|
+
return 17
|
1703
1480
|
end
|
1704
1481
|
if match_TagLine(context, token)
|
1705
1482
|
if lookahead1(context, token)
|
1483
|
+
end_rule(context, :ExamplesTable);
|
1706
1484
|
end_rule(context, :Examples);
|
1707
1485
|
end_rule(context, :ExamplesDefinition);
|
1708
1486
|
start_rule(context, :ExamplesDefinition);
|
1709
1487
|
start_rule(context, :Tags);
|
1710
1488
|
build(context, token);
|
1711
|
-
return
|
1489
|
+
return 14
|
1712
1490
|
end
|
1713
1491
|
end
|
1714
1492
|
if match_TagLine(context, token)
|
1715
1493
|
if lookahead0(context, token)
|
1494
|
+
end_rule(context, :ExamplesTable);
|
1716
1495
|
end_rule(context, :Examples);
|
1717
1496
|
end_rule(context, :ExamplesDefinition);
|
1718
1497
|
end_rule(context, :Scenario);
|
@@ -1720,10 +1499,11 @@ module Gherkin
|
|
1720
1499
|
start_rule(context, :ScenarioDefinition);
|
1721
1500
|
start_rule(context, :Tags);
|
1722
1501
|
build(context, token);
|
1723
|
-
return
|
1502
|
+
return 9
|
1724
1503
|
end
|
1725
1504
|
end
|
1726
1505
|
if match_TagLine(context, token)
|
1506
|
+
end_rule(context, :ExamplesTable);
|
1727
1507
|
end_rule(context, :Examples);
|
1728
1508
|
end_rule(context, :ExamplesDefinition);
|
1729
1509
|
end_rule(context, :Scenario);
|
@@ -1732,17 +1512,19 @@ module Gherkin
|
|
1732
1512
|
start_rule(context, :RuleHeader);
|
1733
1513
|
start_rule(context, :Tags);
|
1734
1514
|
build(context, token);
|
1735
|
-
return
|
1515
|
+
return 18
|
1736
1516
|
end
|
1737
1517
|
if match_ExamplesLine(context, token)
|
1518
|
+
end_rule(context, :ExamplesTable);
|
1738
1519
|
end_rule(context, :Examples);
|
1739
1520
|
end_rule(context, :ExamplesDefinition);
|
1740
1521
|
start_rule(context, :ExamplesDefinition);
|
1741
1522
|
start_rule(context, :Examples);
|
1742
1523
|
build(context, token);
|
1743
|
-
return
|
1524
|
+
return 15
|
1744
1525
|
end
|
1745
1526
|
if match_ScenarioLine(context, token)
|
1527
|
+
end_rule(context, :ExamplesTable);
|
1746
1528
|
end_rule(context, :Examples);
|
1747
1529
|
end_rule(context, :ExamplesDefinition);
|
1748
1530
|
end_rule(context, :Scenario);
|
@@ -1750,9 +1532,10 @@ module Gherkin
|
|
1750
1532
|
start_rule(context, :ScenarioDefinition);
|
1751
1533
|
start_rule(context, :Scenario);
|
1752
1534
|
build(context, token);
|
1753
|
-
return
|
1535
|
+
return 10
|
1754
1536
|
end
|
1755
1537
|
if match_RuleLine(context, token)
|
1538
|
+
end_rule(context, :ExamplesTable);
|
1756
1539
|
end_rule(context, :Examples);
|
1757
1540
|
end_rule(context, :ExamplesDefinition);
|
1758
1541
|
end_rule(context, :Scenario);
|
@@ -1760,171 +1543,76 @@ module Gherkin
|
|
1760
1543
|
start_rule(context, :Rule);
|
1761
1544
|
start_rule(context, :RuleHeader);
|
1762
1545
|
build(context, token);
|
1763
|
-
return
|
1546
|
+
return 19
|
1547
|
+
end
|
1548
|
+
if match_Comment(context, token)
|
1549
|
+
build(context, token);
|
1550
|
+
return 17
|
1764
1551
|
end
|
1765
1552
|
if match_Empty(context, token)
|
1766
1553
|
build(context, token);
|
1767
|
-
return
|
1554
|
+
return 17
|
1768
1555
|
end
|
1769
1556
|
|
1770
|
-
state_comment = "State:
|
1557
|
+
state_comment = "State: 17 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"
|
1771
1558
|
token.detach
|
1772
|
-
expected_tokens = ["#EOF", "#
|
1559
|
+
expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
1773
1560
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1774
1561
|
raise error if (stop_at_first_error)
|
1775
1562
|
add_error(context, error)
|
1776
|
-
return
|
1563
|
+
return 17
|
1777
1564
|
end
|
1778
|
-
# GherkinDocument:0>Feature:
|
1779
|
-
def
|
1780
|
-
if
|
1781
|
-
end_rule(context, :ExamplesTable);
|
1782
|
-
end_rule(context, :Examples);
|
1783
|
-
end_rule(context, :ExamplesDefinition);
|
1784
|
-
end_rule(context, :Scenario);
|
1785
|
-
end_rule(context, :ScenarioDefinition);
|
1786
|
-
end_rule(context, :Feature);
|
1565
|
+
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:0
|
1566
|
+
def match_token_at_state18(token, context)
|
1567
|
+
if match_TagLine(context, token)
|
1787
1568
|
build(context, token);
|
1788
|
-
return
|
1569
|
+
return 18
|
1789
1570
|
end
|
1790
|
-
if
|
1571
|
+
if match_RuleLine(context, token)
|
1572
|
+
end_rule(context, :Tags);
|
1791
1573
|
build(context, token);
|
1792
|
-
return
|
1793
|
-
end
|
1794
|
-
if match_TagLine(context, token)
|
1795
|
-
if lookahead1(context, token)
|
1796
|
-
end_rule(context, :ExamplesTable);
|
1797
|
-
end_rule(context, :Examples);
|
1798
|
-
end_rule(context, :ExamplesDefinition);
|
1799
|
-
start_rule(context, :ExamplesDefinition);
|
1800
|
-
start_rule(context, :Tags);
|
1801
|
-
build(context, token);
|
1802
|
-
return 17
|
1803
|
-
end
|
1804
|
-
end
|
1805
|
-
if match_TagLine(context, token)
|
1806
|
-
if lookahead0(context, token)
|
1807
|
-
end_rule(context, :ExamplesTable);
|
1808
|
-
end_rule(context, :Examples);
|
1809
|
-
end_rule(context, :ExamplesDefinition);
|
1810
|
-
end_rule(context, :Scenario);
|
1811
|
-
end_rule(context, :ScenarioDefinition);
|
1812
|
-
start_rule(context, :ScenarioDefinition);
|
1813
|
-
start_rule(context, :Tags);
|
1814
|
-
build(context, token);
|
1815
|
-
return 11
|
1816
|
-
end
|
1817
|
-
end
|
1818
|
-
if match_TagLine(context, token)
|
1819
|
-
end_rule(context, :ExamplesTable);
|
1820
|
-
end_rule(context, :Examples);
|
1821
|
-
end_rule(context, :ExamplesDefinition);
|
1822
|
-
end_rule(context, :Scenario);
|
1823
|
-
end_rule(context, :ScenarioDefinition);
|
1824
|
-
start_rule(context, :Rule);
|
1825
|
-
start_rule(context, :RuleHeader);
|
1826
|
-
start_rule(context, :Tags);
|
1827
|
-
build(context, token);
|
1828
|
-
return 22
|
1829
|
-
end
|
1830
|
-
if match_ExamplesLine(context, token)
|
1831
|
-
end_rule(context, :ExamplesTable);
|
1832
|
-
end_rule(context, :Examples);
|
1833
|
-
end_rule(context, :ExamplesDefinition);
|
1834
|
-
start_rule(context, :ExamplesDefinition);
|
1835
|
-
start_rule(context, :Examples);
|
1836
|
-
build(context, token);
|
1837
|
-
return 18
|
1838
|
-
end
|
1839
|
-
if match_ScenarioLine(context, token)
|
1840
|
-
end_rule(context, :ExamplesTable);
|
1841
|
-
end_rule(context, :Examples);
|
1842
|
-
end_rule(context, :ExamplesDefinition);
|
1843
|
-
end_rule(context, :Scenario);
|
1844
|
-
end_rule(context, :ScenarioDefinition);
|
1845
|
-
start_rule(context, :ScenarioDefinition);
|
1846
|
-
start_rule(context, :Scenario);
|
1847
|
-
build(context, token);
|
1848
|
-
return 12
|
1849
|
-
end
|
1850
|
-
if match_RuleLine(context, token)
|
1851
|
-
end_rule(context, :ExamplesTable);
|
1852
|
-
end_rule(context, :Examples);
|
1853
|
-
end_rule(context, :ExamplesDefinition);
|
1854
|
-
end_rule(context, :Scenario);
|
1855
|
-
end_rule(context, :ScenarioDefinition);
|
1856
|
-
start_rule(context, :Rule);
|
1857
|
-
start_rule(context, :RuleHeader);
|
1858
|
-
build(context, token);
|
1859
|
-
return 23
|
1860
|
-
end
|
1861
|
-
if match_Comment(context, token)
|
1862
|
-
build(context, token);
|
1863
|
-
return 21
|
1864
|
-
end
|
1865
|
-
if match_Empty(context, token)
|
1866
|
-
build(context, token);
|
1867
|
-
return 21
|
1868
|
-
end
|
1869
|
-
|
1870
|
-
state_comment = "State: 21 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"
|
1871
|
-
token.detach
|
1872
|
-
expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
1873
|
-
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1874
|
-
raise error if (stop_at_first_error)
|
1875
|
-
add_error(context, error)
|
1876
|
-
return 21
|
1877
|
-
end
|
1878
|
-
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:0
|
1879
|
-
def match_token_at_state22(token, context)
|
1880
|
-
if match_TagLine(context, token)
|
1881
|
-
build(context, token);
|
1882
|
-
return 22
|
1883
|
-
end
|
1884
|
-
if match_RuleLine(context, token)
|
1885
|
-
end_rule(context, :Tags);
|
1886
|
-
build(context, token);
|
1887
|
-
return 23
|
1574
|
+
return 19
|
1888
1575
|
end
|
1889
1576
|
if match_Comment(context, token)
|
1890
1577
|
build(context, token);
|
1891
|
-
return
|
1578
|
+
return 18
|
1892
1579
|
end
|
1893
1580
|
if match_Empty(context, token)
|
1894
1581
|
build(context, token);
|
1895
|
-
return
|
1582
|
+
return 18
|
1896
1583
|
end
|
1897
1584
|
|
1898
|
-
state_comment = "State:
|
1585
|
+
state_comment = "State: 18 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:0"
|
1899
1586
|
token.detach
|
1900
1587
|
expected_tokens = ["#TagLine", "#RuleLine", "#Comment", "#Empty"]
|
1901
1588
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1902
1589
|
raise error if (stop_at_first_error)
|
1903
1590
|
add_error(context, error)
|
1904
|
-
return
|
1591
|
+
return 18
|
1905
1592
|
end
|
1906
1593
|
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:0
|
1907
|
-
def
|
1594
|
+
def match_token_at_state19(token, context)
|
1908
1595
|
if match_EOF(context, token)
|
1909
1596
|
end_rule(context, :RuleHeader);
|
1910
1597
|
end_rule(context, :Rule);
|
1911
1598
|
end_rule(context, :Feature);
|
1912
1599
|
build(context, token);
|
1913
|
-
return
|
1600
|
+
return 34
|
1914
1601
|
end
|
1915
1602
|
if match_Empty(context, token)
|
1916
1603
|
build(context, token);
|
1917
|
-
return
|
1604
|
+
return 19
|
1918
1605
|
end
|
1919
1606
|
if match_Comment(context, token)
|
1607
|
+
start_rule(context, :Description);
|
1920
1608
|
build(context, token);
|
1921
|
-
return
|
1609
|
+
return 20
|
1922
1610
|
end
|
1923
1611
|
if match_BackgroundLine(context, token)
|
1924
1612
|
end_rule(context, :RuleHeader);
|
1925
1613
|
start_rule(context, :Background);
|
1926
1614
|
build(context, token);
|
1927
|
-
return
|
1615
|
+
return 21
|
1928
1616
|
end
|
1929
1617
|
if match_TagLine(context, token)
|
1930
1618
|
if lookahead0(context, token)
|
@@ -1932,7 +1620,7 @@ module Gherkin
|
|
1932
1620
|
start_rule(context, :ScenarioDefinition);
|
1933
1621
|
start_rule(context, :Tags);
|
1934
1622
|
build(context, token);
|
1935
|
-
return
|
1623
|
+
return 25
|
1936
1624
|
end
|
1937
1625
|
end
|
1938
1626
|
if match_TagLine(context, token)
|
@@ -1942,14 +1630,14 @@ module Gherkin
|
|
1942
1630
|
start_rule(context, :RuleHeader);
|
1943
1631
|
start_rule(context, :Tags);
|
1944
1632
|
build(context, token);
|
1945
|
-
return
|
1633
|
+
return 18
|
1946
1634
|
end
|
1947
1635
|
if match_ScenarioLine(context, token)
|
1948
1636
|
end_rule(context, :RuleHeader);
|
1949
1637
|
start_rule(context, :ScenarioDefinition);
|
1950
1638
|
start_rule(context, :Scenario);
|
1951
1639
|
build(context, token);
|
1952
|
-
return
|
1640
|
+
return 26
|
1953
1641
|
end
|
1954
1642
|
if match_RuleLine(context, token)
|
1955
1643
|
end_rule(context, :RuleHeader);
|
@@ -1957,43 +1645,42 @@ module Gherkin
|
|
1957
1645
|
start_rule(context, :Rule);
|
1958
1646
|
start_rule(context, :RuleHeader);
|
1959
1647
|
build(context, token);
|
1960
|
-
return
|
1648
|
+
return 19
|
1961
1649
|
end
|
1962
1650
|
if match_Other(context, token)
|
1963
1651
|
start_rule(context, :Description);
|
1964
1652
|
build(context, token);
|
1965
|
-
return
|
1653
|
+
return 20
|
1966
1654
|
end
|
1967
1655
|
|
1968
|
-
state_comment = "State:
|
1656
|
+
state_comment = "State: 19 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:0"
|
1969
1657
|
token.detach
|
1970
1658
|
expected_tokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
1971
1659
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
1972
1660
|
raise error if (stop_at_first_error)
|
1973
1661
|
add_error(context, error)
|
1974
|
-
return
|
1662
|
+
return 19
|
1975
1663
|
end
|
1976
|
-
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>#Other:0
|
1977
|
-
def
|
1664
|
+
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
|
1665
|
+
def match_token_at_state20(token, context)
|
1978
1666
|
if match_EOF(context, token)
|
1979
1667
|
end_rule(context, :Description);
|
1980
1668
|
end_rule(context, :RuleHeader);
|
1981
1669
|
end_rule(context, :Rule);
|
1982
1670
|
end_rule(context, :Feature);
|
1983
1671
|
build(context, token);
|
1984
|
-
return
|
1672
|
+
return 34
|
1985
1673
|
end
|
1986
1674
|
if match_Comment(context, token)
|
1987
|
-
end_rule(context, :Description);
|
1988
1675
|
build(context, token);
|
1989
|
-
return
|
1676
|
+
return 20
|
1990
1677
|
end
|
1991
1678
|
if match_BackgroundLine(context, token)
|
1992
1679
|
end_rule(context, :Description);
|
1993
1680
|
end_rule(context, :RuleHeader);
|
1994
1681
|
start_rule(context, :Background);
|
1995
1682
|
build(context, token);
|
1996
|
-
return
|
1683
|
+
return 21
|
1997
1684
|
end
|
1998
1685
|
if match_TagLine(context, token)
|
1999
1686
|
if lookahead0(context, token)
|
@@ -2002,7 +1689,7 @@ module Gherkin
|
|
2002
1689
|
start_rule(context, :ScenarioDefinition);
|
2003
1690
|
start_rule(context, :Tags);
|
2004
1691
|
build(context, token);
|
2005
|
-
return
|
1692
|
+
return 25
|
2006
1693
|
end
|
2007
1694
|
end
|
2008
1695
|
if match_TagLine(context, token)
|
@@ -2013,7 +1700,7 @@ module Gherkin
|
|
2013
1700
|
start_rule(context, :RuleHeader);
|
2014
1701
|
start_rule(context, :Tags);
|
2015
1702
|
build(context, token);
|
2016
|
-
return
|
1703
|
+
return 18
|
2017
1704
|
end
|
2018
1705
|
if match_ScenarioLine(context, token)
|
2019
1706
|
end_rule(context, :Description);
|
@@ -2021,7 +1708,7 @@ module Gherkin
|
|
2021
1708
|
start_rule(context, :ScenarioDefinition);
|
2022
1709
|
start_rule(context, :Scenario);
|
2023
1710
|
build(context, token);
|
2024
|
-
return
|
1711
|
+
return 26
|
2025
1712
|
end
|
2026
1713
|
if match_RuleLine(context, token)
|
2027
1714
|
end_rule(context, :Description);
|
@@ -2030,107 +1717,43 @@ module Gherkin
|
|
2030
1717
|
start_rule(context, :Rule);
|
2031
1718
|
start_rule(context, :RuleHeader);
|
2032
1719
|
build(context, token);
|
2033
|
-
return
|
1720
|
+
return 19
|
2034
1721
|
end
|
2035
1722
|
if match_Other(context, token)
|
2036
1723
|
build(context, token);
|
2037
|
-
return
|
1724
|
+
return 20
|
2038
1725
|
end
|
2039
1726
|
|
2040
|
-
state_comment = "State:
|
1727
|
+
state_comment = "State: 20 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
|
2041
1728
|
token.detach
|
2042
1729
|
expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
2043
1730
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2044
1731
|
raise error if (stop_at_first_error)
|
2045
1732
|
add_error(context, error)
|
2046
|
-
return
|
2047
|
-
end
|
2048
|
-
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:2>#Comment:0
|
2049
|
-
def match_token_at_state25(token, context)
|
2050
|
-
if match_EOF(context, token)
|
2051
|
-
end_rule(context, :RuleHeader);
|
2052
|
-
end_rule(context, :Rule);
|
2053
|
-
end_rule(context, :Feature);
|
2054
|
-
build(context, token);
|
2055
|
-
return 42
|
2056
|
-
end
|
2057
|
-
if match_Comment(context, token)
|
2058
|
-
build(context, token);
|
2059
|
-
return 25
|
2060
|
-
end
|
2061
|
-
if match_BackgroundLine(context, token)
|
2062
|
-
end_rule(context, :RuleHeader);
|
2063
|
-
start_rule(context, :Background);
|
2064
|
-
build(context, token);
|
2065
|
-
return 26
|
2066
|
-
end
|
2067
|
-
if match_TagLine(context, token)
|
2068
|
-
if lookahead0(context, token)
|
2069
|
-
end_rule(context, :RuleHeader);
|
2070
|
-
start_rule(context, :ScenarioDefinition);
|
2071
|
-
start_rule(context, :Tags);
|
2072
|
-
build(context, token);
|
2073
|
-
return 31
|
2074
|
-
end
|
2075
|
-
end
|
2076
|
-
if match_TagLine(context, token)
|
2077
|
-
end_rule(context, :RuleHeader);
|
2078
|
-
end_rule(context, :Rule);
|
2079
|
-
start_rule(context, :Rule);
|
2080
|
-
start_rule(context, :RuleHeader);
|
2081
|
-
start_rule(context, :Tags);
|
2082
|
-
build(context, token);
|
2083
|
-
return 22
|
2084
|
-
end
|
2085
|
-
if match_ScenarioLine(context, token)
|
2086
|
-
end_rule(context, :RuleHeader);
|
2087
|
-
start_rule(context, :ScenarioDefinition);
|
2088
|
-
start_rule(context, :Scenario);
|
2089
|
-
build(context, token);
|
2090
|
-
return 32
|
2091
|
-
end
|
2092
|
-
if match_RuleLine(context, token)
|
2093
|
-
end_rule(context, :RuleHeader);
|
2094
|
-
end_rule(context, :Rule);
|
2095
|
-
start_rule(context, :Rule);
|
2096
|
-
start_rule(context, :RuleHeader);
|
2097
|
-
build(context, token);
|
2098
|
-
return 23
|
2099
|
-
end
|
2100
|
-
if match_Empty(context, token)
|
2101
|
-
build(context, token);
|
2102
|
-
return 25
|
2103
|
-
end
|
2104
|
-
|
2105
|
-
state_comment = "State: 25 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:2>#Comment:0"
|
2106
|
-
token.detach
|
2107
|
-
expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]
|
2108
|
-
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2109
|
-
raise error if (stop_at_first_error)
|
2110
|
-
add_error(context, error)
|
2111
|
-
return 25
|
1733
|
+
return 20
|
2112
1734
|
end
|
2113
1735
|
# GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0
|
2114
|
-
def
|
1736
|
+
def match_token_at_state21(token, context)
|
2115
1737
|
if match_EOF(context, token)
|
2116
1738
|
end_rule(context, :Background);
|
2117
1739
|
end_rule(context, :Rule);
|
2118
1740
|
end_rule(context, :Feature);
|
2119
1741
|
build(context, token);
|
2120
|
-
return
|
1742
|
+
return 34
|
2121
1743
|
end
|
2122
1744
|
if match_Empty(context, token)
|
2123
1745
|
build(context, token);
|
2124
|
-
return
|
1746
|
+
return 21
|
2125
1747
|
end
|
2126
1748
|
if match_Comment(context, token)
|
1749
|
+
start_rule(context, :Description);
|
2127
1750
|
build(context, token);
|
2128
|
-
return
|
1751
|
+
return 22
|
2129
1752
|
end
|
2130
1753
|
if match_StepLine(context, token)
|
2131
1754
|
start_rule(context, :Step);
|
2132
1755
|
build(context, token);
|
2133
|
-
return
|
1756
|
+
return 23
|
2134
1757
|
end
|
2135
1758
|
if match_TagLine(context, token)
|
2136
1759
|
if lookahead0(context, token)
|
@@ -2138,7 +1761,7 @@ module Gherkin
|
|
2138
1761
|
start_rule(context, :ScenarioDefinition);
|
2139
1762
|
start_rule(context, :Tags);
|
2140
1763
|
build(context, token);
|
2141
|
-
return
|
1764
|
+
return 25
|
2142
1765
|
end
|
2143
1766
|
end
|
2144
1767
|
if match_TagLine(context, token)
|
@@ -2148,14 +1771,14 @@ module Gherkin
|
|
2148
1771
|
start_rule(context, :RuleHeader);
|
2149
1772
|
start_rule(context, :Tags);
|
2150
1773
|
build(context, token);
|
2151
|
-
return
|
1774
|
+
return 18
|
2152
1775
|
end
|
2153
1776
|
if match_ScenarioLine(context, token)
|
2154
1777
|
end_rule(context, :Background);
|
2155
1778
|
start_rule(context, :ScenarioDefinition);
|
2156
1779
|
start_rule(context, :Scenario);
|
2157
1780
|
build(context, token);
|
2158
|
-
return
|
1781
|
+
return 26
|
2159
1782
|
end
|
2160
1783
|
if match_RuleLine(context, token)
|
2161
1784
|
end_rule(context, :Background);
|
@@ -2163,42 +1786,41 @@ module Gherkin
|
|
2163
1786
|
start_rule(context, :Rule);
|
2164
1787
|
start_rule(context, :RuleHeader);
|
2165
1788
|
build(context, token);
|
2166
|
-
return
|
1789
|
+
return 19
|
2167
1790
|
end
|
2168
1791
|
if match_Other(context, token)
|
2169
1792
|
start_rule(context, :Description);
|
2170
1793
|
build(context, token);
|
2171
|
-
return
|
1794
|
+
return 22
|
2172
1795
|
end
|
2173
1796
|
|
2174
|
-
state_comment = "State:
|
1797
|
+
state_comment = "State: 21 - GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0"
|
2175
1798
|
token.detach
|
2176
1799
|
expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
2177
1800
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2178
1801
|
raise error if (stop_at_first_error)
|
2179
1802
|
add_error(context, error)
|
2180
|
-
return
|
1803
|
+
return 21
|
2181
1804
|
end
|
2182
|
-
# GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:0
|
2183
|
-
def
|
1805
|
+
# GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
|
1806
|
+
def match_token_at_state22(token, context)
|
2184
1807
|
if match_EOF(context, token)
|
2185
1808
|
end_rule(context, :Description);
|
2186
1809
|
end_rule(context, :Background);
|
2187
1810
|
end_rule(context, :Rule);
|
2188
1811
|
end_rule(context, :Feature);
|
2189
1812
|
build(context, token);
|
2190
|
-
return
|
1813
|
+
return 34
|
2191
1814
|
end
|
2192
1815
|
if match_Comment(context, token)
|
2193
|
-
end_rule(context, :Description);
|
2194
1816
|
build(context, token);
|
2195
|
-
return
|
1817
|
+
return 22
|
2196
1818
|
end
|
2197
1819
|
if match_StepLine(context, token)
|
2198
1820
|
end_rule(context, :Description);
|
2199
1821
|
start_rule(context, :Step);
|
2200
1822
|
build(context, token);
|
2201
|
-
return
|
1823
|
+
return 23
|
2202
1824
|
end
|
2203
1825
|
if match_TagLine(context, token)
|
2204
1826
|
if lookahead0(context, token)
|
@@ -2207,7 +1829,7 @@ module Gherkin
|
|
2207
1829
|
start_rule(context, :ScenarioDefinition);
|
2208
1830
|
start_rule(context, :Tags);
|
2209
1831
|
build(context, token);
|
2210
|
-
return
|
1832
|
+
return 25
|
2211
1833
|
end
|
2212
1834
|
end
|
2213
1835
|
if match_TagLine(context, token)
|
@@ -2218,7 +1840,7 @@ module Gherkin
|
|
2218
1840
|
start_rule(context, :RuleHeader);
|
2219
1841
|
start_rule(context, :Tags);
|
2220
1842
|
build(context, token);
|
2221
|
-
return
|
1843
|
+
return 18
|
2222
1844
|
end
|
2223
1845
|
if match_ScenarioLine(context, token)
|
2224
1846
|
end_rule(context, :Description);
|
@@ -2226,7 +1848,7 @@ module Gherkin
|
|
2226
1848
|
start_rule(context, :ScenarioDefinition);
|
2227
1849
|
start_rule(context, :Scenario);
|
2228
1850
|
build(context, token);
|
2229
|
-
return
|
1851
|
+
return 26
|
2230
1852
|
end
|
2231
1853
|
if match_RuleLine(context, token)
|
2232
1854
|
end_rule(context, :Description);
|
@@ -2235,110 +1857,46 @@ module Gherkin
|
|
2235
1857
|
start_rule(context, :Rule);
|
2236
1858
|
start_rule(context, :RuleHeader);
|
2237
1859
|
build(context, token);
|
2238
|
-
return
|
1860
|
+
return 19
|
2239
1861
|
end
|
2240
1862
|
if match_Other(context, token)
|
2241
|
-
build(context, token);
|
2242
|
-
return 27
|
2243
|
-
end
|
2244
|
-
|
2245
|
-
state_comment = "State: 27 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:0"
|
2246
|
-
token.detach
|
2247
|
-
expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
2248
|
-
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2249
|
-
raise error if (stop_at_first_error)
|
2250
|
-
add_error(context, error)
|
2251
|
-
return 27
|
2252
|
-
end
|
2253
|
-
# GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:0
|
2254
|
-
def match_token_at_state28(token, context)
|
2255
|
-
if match_EOF(context, token)
|
2256
|
-
end_rule(context, :Background);
|
2257
|
-
end_rule(context, :Rule);
|
2258
|
-
end_rule(context, :Feature);
|
2259
|
-
build(context, token);
|
2260
|
-
return 42
|
2261
|
-
end
|
2262
|
-
if match_Comment(context, token)
|
2263
|
-
build(context, token);
|
2264
|
-
return 28
|
2265
|
-
end
|
2266
|
-
if match_StepLine(context, token)
|
2267
|
-
start_rule(context, :Step);
|
2268
|
-
build(context, token);
|
2269
|
-
return 29
|
2270
|
-
end
|
2271
|
-
if match_TagLine(context, token)
|
2272
|
-
if lookahead0(context, token)
|
2273
|
-
end_rule(context, :Background);
|
2274
|
-
start_rule(context, :ScenarioDefinition);
|
2275
|
-
start_rule(context, :Tags);
|
2276
|
-
build(context, token);
|
2277
|
-
return 31
|
2278
|
-
end
|
2279
|
-
end
|
2280
|
-
if match_TagLine(context, token)
|
2281
|
-
end_rule(context, :Background);
|
2282
|
-
end_rule(context, :Rule);
|
2283
|
-
start_rule(context, :Rule);
|
2284
|
-
start_rule(context, :RuleHeader);
|
2285
|
-
start_rule(context, :Tags);
|
2286
1863
|
build(context, token);
|
2287
1864
|
return 22
|
2288
1865
|
end
|
2289
|
-
if match_ScenarioLine(context, token)
|
2290
|
-
end_rule(context, :Background);
|
2291
|
-
start_rule(context, :ScenarioDefinition);
|
2292
|
-
start_rule(context, :Scenario);
|
2293
|
-
build(context, token);
|
2294
|
-
return 32
|
2295
|
-
end
|
2296
|
-
if match_RuleLine(context, token)
|
2297
|
-
end_rule(context, :Background);
|
2298
|
-
end_rule(context, :Rule);
|
2299
|
-
start_rule(context, :Rule);
|
2300
|
-
start_rule(context, :RuleHeader);
|
2301
|
-
build(context, token);
|
2302
|
-
return 23
|
2303
|
-
end
|
2304
|
-
if match_Empty(context, token)
|
2305
|
-
build(context, token);
|
2306
|
-
return 28
|
2307
|
-
end
|
2308
1866
|
|
2309
|
-
state_comment = "State:
|
1867
|
+
state_comment = "State: 22 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
|
2310
1868
|
token.detach
|
2311
|
-
expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#
|
1869
|
+
expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
2312
1870
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2313
1871
|
raise error if (stop_at_first_error)
|
2314
1872
|
add_error(context, error)
|
2315
|
-
return
|
1873
|
+
return 22
|
2316
1874
|
end
|
2317
1875
|
# GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0
|
2318
|
-
def
|
1876
|
+
def match_token_at_state23(token, context)
|
2319
1877
|
if match_EOF(context, token)
|
2320
1878
|
end_rule(context, :Step);
|
2321
1879
|
end_rule(context, :Background);
|
2322
1880
|
end_rule(context, :Rule);
|
2323
1881
|
end_rule(context, :Feature);
|
2324
1882
|
build(context, token);
|
2325
|
-
return
|
1883
|
+
return 34
|
2326
1884
|
end
|
2327
1885
|
if match_TableRow(context, token)
|
2328
1886
|
start_rule(context, :DataTable);
|
2329
1887
|
build(context, token);
|
2330
|
-
return
|
1888
|
+
return 24
|
2331
1889
|
end
|
2332
1890
|
if match_DocStringSeparator(context, token)
|
2333
1891
|
start_rule(context, :DocString);
|
2334
1892
|
build(context, token);
|
2335
|
-
return
|
1893
|
+
return 37
|
2336
1894
|
end
|
2337
1895
|
if match_StepLine(context, token)
|
2338
1896
|
end_rule(context, :Step);
|
2339
1897
|
start_rule(context, :Step);
|
2340
1898
|
build(context, token);
|
2341
|
-
return
|
1899
|
+
return 23
|
2342
1900
|
end
|
2343
1901
|
if match_TagLine(context, token)
|
2344
1902
|
if lookahead0(context, token)
|
@@ -2347,7 +1905,7 @@ module Gherkin
|
|
2347
1905
|
start_rule(context, :ScenarioDefinition);
|
2348
1906
|
start_rule(context, :Tags);
|
2349
1907
|
build(context, token);
|
2350
|
-
return
|
1908
|
+
return 25
|
2351
1909
|
end
|
2352
1910
|
end
|
2353
1911
|
if match_TagLine(context, token)
|
@@ -2358,7 +1916,7 @@ module Gherkin
|
|
2358
1916
|
start_rule(context, :RuleHeader);
|
2359
1917
|
start_rule(context, :Tags);
|
2360
1918
|
build(context, token);
|
2361
|
-
return
|
1919
|
+
return 18
|
2362
1920
|
end
|
2363
1921
|
if match_ScenarioLine(context, token)
|
2364
1922
|
end_rule(context, :Step);
|
@@ -2366,7 +1924,7 @@ module Gherkin
|
|
2366
1924
|
start_rule(context, :ScenarioDefinition);
|
2367
1925
|
start_rule(context, :Scenario);
|
2368
1926
|
build(context, token);
|
2369
|
-
return
|
1927
|
+
return 26
|
2370
1928
|
end
|
2371
1929
|
if match_RuleLine(context, token)
|
2372
1930
|
end_rule(context, :Step);
|
@@ -2375,27 +1933,27 @@ module Gherkin
|
|
2375
1933
|
start_rule(context, :Rule);
|
2376
1934
|
start_rule(context, :RuleHeader);
|
2377
1935
|
build(context, token);
|
2378
|
-
return
|
1936
|
+
return 19
|
2379
1937
|
end
|
2380
1938
|
if match_Comment(context, token)
|
2381
1939
|
build(context, token);
|
2382
|
-
return
|
1940
|
+
return 23
|
2383
1941
|
end
|
2384
1942
|
if match_Empty(context, token)
|
2385
1943
|
build(context, token);
|
2386
|
-
return
|
1944
|
+
return 23
|
2387
1945
|
end
|
2388
1946
|
|
2389
|
-
state_comment = "State:
|
1947
|
+
state_comment = "State: 23 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0"
|
2390
1948
|
token.detach
|
2391
1949
|
expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
2392
1950
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2393
1951
|
raise error if (stop_at_first_error)
|
2394
1952
|
add_error(context, error)
|
2395
|
-
return
|
1953
|
+
return 23
|
2396
1954
|
end
|
2397
1955
|
# GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
|
2398
|
-
def
|
1956
|
+
def match_token_at_state24(token, context)
|
2399
1957
|
if match_EOF(context, token)
|
2400
1958
|
end_rule(context, :DataTable);
|
2401
1959
|
end_rule(context, :Step);
|
@@ -2403,18 +1961,18 @@ module Gherkin
|
|
2403
1961
|
end_rule(context, :Rule);
|
2404
1962
|
end_rule(context, :Feature);
|
2405
1963
|
build(context, token);
|
2406
|
-
return
|
1964
|
+
return 34
|
2407
1965
|
end
|
2408
1966
|
if match_TableRow(context, token)
|
2409
1967
|
build(context, token);
|
2410
|
-
return
|
1968
|
+
return 24
|
2411
1969
|
end
|
2412
1970
|
if match_StepLine(context, token)
|
2413
1971
|
end_rule(context, :DataTable);
|
2414
1972
|
end_rule(context, :Step);
|
2415
1973
|
start_rule(context, :Step);
|
2416
1974
|
build(context, token);
|
2417
|
-
return
|
1975
|
+
return 23
|
2418
1976
|
end
|
2419
1977
|
if match_TagLine(context, token)
|
2420
1978
|
if lookahead0(context, token)
|
@@ -2424,7 +1982,7 @@ module Gherkin
|
|
2424
1982
|
start_rule(context, :ScenarioDefinition);
|
2425
1983
|
start_rule(context, :Tags);
|
2426
1984
|
build(context, token);
|
2427
|
-
return
|
1985
|
+
return 25
|
2428
1986
|
end
|
2429
1987
|
end
|
2430
1988
|
if match_TagLine(context, token)
|
@@ -2436,7 +1994,7 @@ module Gherkin
|
|
2436
1994
|
start_rule(context, :RuleHeader);
|
2437
1995
|
start_rule(context, :Tags);
|
2438
1996
|
build(context, token);
|
2439
|
-
return
|
1997
|
+
return 18
|
2440
1998
|
end
|
2441
1999
|
if match_ScenarioLine(context, token)
|
2442
2000
|
end_rule(context, :DataTable);
|
@@ -2445,7 +2003,7 @@ module Gherkin
|
|
2445
2003
|
start_rule(context, :ScenarioDefinition);
|
2446
2004
|
start_rule(context, :Scenario);
|
2447
2005
|
build(context, token);
|
2448
|
-
return
|
2006
|
+
return 26
|
2449
2007
|
end
|
2450
2008
|
if match_RuleLine(context, token)
|
2451
2009
|
end_rule(context, :DataTable);
|
@@ -2455,83 +2013,84 @@ module Gherkin
|
|
2455
2013
|
start_rule(context, :Rule);
|
2456
2014
|
start_rule(context, :RuleHeader);
|
2457
2015
|
build(context, token);
|
2458
|
-
return
|
2016
|
+
return 19
|
2459
2017
|
end
|
2460
2018
|
if match_Comment(context, token)
|
2461
2019
|
build(context, token);
|
2462
|
-
return
|
2020
|
+
return 24
|
2463
2021
|
end
|
2464
2022
|
if match_Empty(context, token)
|
2465
2023
|
build(context, token);
|
2466
|
-
return
|
2024
|
+
return 24
|
2467
2025
|
end
|
2468
2026
|
|
2469
|
-
state_comment = "State:
|
2027
|
+
state_comment = "State: 24 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
|
2470
2028
|
token.detach
|
2471
2029
|
expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
2472
2030
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2473
2031
|
raise error if (stop_at_first_error)
|
2474
2032
|
add_error(context, error)
|
2475
|
-
return
|
2033
|
+
return 24
|
2476
2034
|
end
|
2477
2035
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0
|
2478
|
-
def
|
2036
|
+
def match_token_at_state25(token, context)
|
2479
2037
|
if match_TagLine(context, token)
|
2480
2038
|
build(context, token);
|
2481
|
-
return
|
2039
|
+
return 25
|
2482
2040
|
end
|
2483
2041
|
if match_ScenarioLine(context, token)
|
2484
2042
|
end_rule(context, :Tags);
|
2485
2043
|
start_rule(context, :Scenario);
|
2486
2044
|
build(context, token);
|
2487
|
-
return
|
2045
|
+
return 26
|
2488
2046
|
end
|
2489
2047
|
if match_Comment(context, token)
|
2490
2048
|
build(context, token);
|
2491
|
-
return
|
2049
|
+
return 25
|
2492
2050
|
end
|
2493
2051
|
if match_Empty(context, token)
|
2494
2052
|
build(context, token);
|
2495
|
-
return
|
2053
|
+
return 25
|
2496
2054
|
end
|
2497
2055
|
|
2498
|
-
state_comment = "State:
|
2056
|
+
state_comment = "State: 25 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0"
|
2499
2057
|
token.detach
|
2500
2058
|
expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]
|
2501
2059
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2502
2060
|
raise error if (stop_at_first_error)
|
2503
2061
|
add_error(context, error)
|
2504
|
-
return
|
2062
|
+
return 25
|
2505
2063
|
end
|
2506
2064
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0
|
2507
|
-
def
|
2065
|
+
def match_token_at_state26(token, context)
|
2508
2066
|
if match_EOF(context, token)
|
2509
2067
|
end_rule(context, :Scenario);
|
2510
2068
|
end_rule(context, :ScenarioDefinition);
|
2511
2069
|
end_rule(context, :Rule);
|
2512
2070
|
end_rule(context, :Feature);
|
2513
2071
|
build(context, token);
|
2514
|
-
return
|
2072
|
+
return 34
|
2515
2073
|
end
|
2516
2074
|
if match_Empty(context, token)
|
2517
2075
|
build(context, token);
|
2518
|
-
return
|
2076
|
+
return 26
|
2519
2077
|
end
|
2520
2078
|
if match_Comment(context, token)
|
2079
|
+
start_rule(context, :Description);
|
2521
2080
|
build(context, token);
|
2522
|
-
return
|
2081
|
+
return 27
|
2523
2082
|
end
|
2524
2083
|
if match_StepLine(context, token)
|
2525
2084
|
start_rule(context, :Step);
|
2526
2085
|
build(context, token);
|
2527
|
-
return
|
2086
|
+
return 28
|
2528
2087
|
end
|
2529
2088
|
if match_TagLine(context, token)
|
2530
2089
|
if lookahead1(context, token)
|
2531
2090
|
start_rule(context, :ExamplesDefinition);
|
2532
2091
|
start_rule(context, :Tags);
|
2533
2092
|
build(context, token);
|
2534
|
-
return
|
2093
|
+
return 30
|
2535
2094
|
end
|
2536
2095
|
end
|
2537
2096
|
if match_TagLine(context, token)
|
@@ -2541,7 +2100,7 @@ module Gherkin
|
|
2541
2100
|
start_rule(context, :ScenarioDefinition);
|
2542
2101
|
start_rule(context, :Tags);
|
2543
2102
|
build(context, token);
|
2544
|
-
return
|
2103
|
+
return 25
|
2545
2104
|
end
|
2546
2105
|
end
|
2547
2106
|
if match_TagLine(context, token)
|
@@ -2552,13 +2111,13 @@ module Gherkin
|
|
2552
2111
|
start_rule(context, :RuleHeader);
|
2553
2112
|
start_rule(context, :Tags);
|
2554
2113
|
build(context, token);
|
2555
|
-
return
|
2114
|
+
return 18
|
2556
2115
|
end
|
2557
2116
|
if match_ExamplesLine(context, token)
|
2558
2117
|
start_rule(context, :ExamplesDefinition);
|
2559
2118
|
start_rule(context, :Examples);
|
2560
2119
|
build(context, token);
|
2561
|
-
return
|
2120
|
+
return 31
|
2562
2121
|
end
|
2563
2122
|
if match_ScenarioLine(context, token)
|
2564
2123
|
end_rule(context, :Scenario);
|
@@ -2566,7 +2125,7 @@ module Gherkin
|
|
2566
2125
|
start_rule(context, :ScenarioDefinition);
|
2567
2126
|
start_rule(context, :Scenario);
|
2568
2127
|
build(context, token);
|
2569
|
-
return
|
2128
|
+
return 26
|
2570
2129
|
end
|
2571
2130
|
if match_RuleLine(context, token)
|
2572
2131
|
end_rule(context, :Scenario);
|
@@ -2575,24 +2134,24 @@ module Gherkin
|
|
2575
2134
|
start_rule(context, :Rule);
|
2576
2135
|
start_rule(context, :RuleHeader);
|
2577
2136
|
build(context, token);
|
2578
|
-
return
|
2137
|
+
return 19
|
2579
2138
|
end
|
2580
2139
|
if match_Other(context, token)
|
2581
2140
|
start_rule(context, :Description);
|
2582
2141
|
build(context, token);
|
2583
|
-
return
|
2142
|
+
return 27
|
2584
2143
|
end
|
2585
2144
|
|
2586
|
-
state_comment = "State:
|
2145
|
+
state_comment = "State: 26 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"
|
2587
2146
|
token.detach
|
2588
2147
|
expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
2589
2148
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2590
2149
|
raise error if (stop_at_first_error)
|
2591
2150
|
add_error(context, error)
|
2592
|
-
return
|
2151
|
+
return 26
|
2593
2152
|
end
|
2594
|
-
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0
|
2595
|
-
def
|
2153
|
+
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
|
2154
|
+
def match_token_at_state27(token, context)
|
2596
2155
|
if match_EOF(context, token)
|
2597
2156
|
end_rule(context, :Description);
|
2598
2157
|
end_rule(context, :Scenario);
|
@@ -2600,18 +2159,17 @@ module Gherkin
|
|
2600
2159
|
end_rule(context, :Rule);
|
2601
2160
|
end_rule(context, :Feature);
|
2602
2161
|
build(context, token);
|
2603
|
-
return
|
2162
|
+
return 34
|
2604
2163
|
end
|
2605
2164
|
if match_Comment(context, token)
|
2606
|
-
end_rule(context, :Description);
|
2607
2165
|
build(context, token);
|
2608
|
-
return
|
2166
|
+
return 27
|
2609
2167
|
end
|
2610
2168
|
if match_StepLine(context, token)
|
2611
2169
|
end_rule(context, :Description);
|
2612
2170
|
start_rule(context, :Step);
|
2613
2171
|
build(context, token);
|
2614
|
-
return
|
2172
|
+
return 28
|
2615
2173
|
end
|
2616
2174
|
if match_TagLine(context, token)
|
2617
2175
|
if lookahead1(context, token)
|
@@ -2619,7 +2177,7 @@ module Gherkin
|
|
2619
2177
|
start_rule(context, :ExamplesDefinition);
|
2620
2178
|
start_rule(context, :Tags);
|
2621
2179
|
build(context, token);
|
2622
|
-
return
|
2180
|
+
return 30
|
2623
2181
|
end
|
2624
2182
|
end
|
2625
2183
|
if match_TagLine(context, token)
|
@@ -2630,7 +2188,7 @@ module Gherkin
|
|
2630
2188
|
start_rule(context, :ScenarioDefinition);
|
2631
2189
|
start_rule(context, :Tags);
|
2632
2190
|
build(context, token);
|
2633
|
-
return
|
2191
|
+
return 25
|
2634
2192
|
end
|
2635
2193
|
end
|
2636
2194
|
if match_TagLine(context, token)
|
@@ -2642,14 +2200,14 @@ module Gherkin
|
|
2642
2200
|
start_rule(context, :RuleHeader);
|
2643
2201
|
start_rule(context, :Tags);
|
2644
2202
|
build(context, token);
|
2645
|
-
return
|
2203
|
+
return 18
|
2646
2204
|
end
|
2647
2205
|
if match_ExamplesLine(context, token)
|
2648
2206
|
end_rule(context, :Description);
|
2649
2207
|
start_rule(context, :ExamplesDefinition);
|
2650
2208
|
start_rule(context, :Examples);
|
2651
2209
|
build(context, token);
|
2652
|
-
return
|
2210
|
+
return 31
|
2653
2211
|
end
|
2654
2212
|
if match_ScenarioLine(context, token)
|
2655
2213
|
end_rule(context, :Description);
|
@@ -2658,7 +2216,7 @@ module Gherkin
|
|
2658
2216
|
start_rule(context, :ScenarioDefinition);
|
2659
2217
|
start_rule(context, :Scenario);
|
2660
2218
|
build(context, token);
|
2661
|
-
return
|
2219
|
+
return 26
|
2662
2220
|
end
|
2663
2221
|
if match_RuleLine(context, token)
|
2664
2222
|
end_rule(context, :Description);
|
@@ -2668,106 +2226,23 @@ module Gherkin
|
|
2668
2226
|
start_rule(context, :Rule);
|
2669
2227
|
start_rule(context, :RuleHeader);
|
2670
2228
|
build(context, token);
|
2671
|
-
return
|
2229
|
+
return 19
|
2672
2230
|
end
|
2673
2231
|
if match_Other(context, token)
|
2674
2232
|
build(context, token);
|
2675
|
-
return
|
2233
|
+
return 27
|
2676
2234
|
end
|
2677
2235
|
|
2678
|
-
state_comment = "State:
|
2236
|
+
state_comment = "State: 27 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
|
2679
2237
|
token.detach
|
2680
2238
|
expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
2681
2239
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2682
2240
|
raise error if (stop_at_first_error)
|
2683
2241
|
add_error(context, error)
|
2684
|
-
return
|
2685
|
-
end
|
2686
|
-
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0
|
2687
|
-
def match_token_at_state34(token, context)
|
2688
|
-
if match_EOF(context, token)
|
2689
|
-
end_rule(context, :Scenario);
|
2690
|
-
end_rule(context, :ScenarioDefinition);
|
2691
|
-
end_rule(context, :Rule);
|
2692
|
-
end_rule(context, :Feature);
|
2693
|
-
build(context, token);
|
2694
|
-
return 42
|
2695
|
-
end
|
2696
|
-
if match_Comment(context, token)
|
2697
|
-
build(context, token);
|
2698
|
-
return 34
|
2699
|
-
end
|
2700
|
-
if match_StepLine(context, token)
|
2701
|
-
start_rule(context, :Step);
|
2702
|
-
build(context, token);
|
2703
|
-
return 35
|
2704
|
-
end
|
2705
|
-
if match_TagLine(context, token)
|
2706
|
-
if lookahead1(context, token)
|
2707
|
-
start_rule(context, :ExamplesDefinition);
|
2708
|
-
start_rule(context, :Tags);
|
2709
|
-
build(context, token);
|
2710
|
-
return 37
|
2711
|
-
end
|
2712
|
-
end
|
2713
|
-
if match_TagLine(context, token)
|
2714
|
-
if lookahead0(context, token)
|
2715
|
-
end_rule(context, :Scenario);
|
2716
|
-
end_rule(context, :ScenarioDefinition);
|
2717
|
-
start_rule(context, :ScenarioDefinition);
|
2718
|
-
start_rule(context, :Tags);
|
2719
|
-
build(context, token);
|
2720
|
-
return 31
|
2721
|
-
end
|
2722
|
-
end
|
2723
|
-
if match_TagLine(context, token)
|
2724
|
-
end_rule(context, :Scenario);
|
2725
|
-
end_rule(context, :ScenarioDefinition);
|
2726
|
-
end_rule(context, :Rule);
|
2727
|
-
start_rule(context, :Rule);
|
2728
|
-
start_rule(context, :RuleHeader);
|
2729
|
-
start_rule(context, :Tags);
|
2730
|
-
build(context, token);
|
2731
|
-
return 22
|
2732
|
-
end
|
2733
|
-
if match_ExamplesLine(context, token)
|
2734
|
-
start_rule(context, :ExamplesDefinition);
|
2735
|
-
start_rule(context, :Examples);
|
2736
|
-
build(context, token);
|
2737
|
-
return 38
|
2738
|
-
end
|
2739
|
-
if match_ScenarioLine(context, token)
|
2740
|
-
end_rule(context, :Scenario);
|
2741
|
-
end_rule(context, :ScenarioDefinition);
|
2742
|
-
start_rule(context, :ScenarioDefinition);
|
2743
|
-
start_rule(context, :Scenario);
|
2744
|
-
build(context, token);
|
2745
|
-
return 32
|
2746
|
-
end
|
2747
|
-
if match_RuleLine(context, token)
|
2748
|
-
end_rule(context, :Scenario);
|
2749
|
-
end_rule(context, :ScenarioDefinition);
|
2750
|
-
end_rule(context, :Rule);
|
2751
|
-
start_rule(context, :Rule);
|
2752
|
-
start_rule(context, :RuleHeader);
|
2753
|
-
build(context, token);
|
2754
|
-
return 23
|
2755
|
-
end
|
2756
|
-
if match_Empty(context, token)
|
2757
|
-
build(context, token);
|
2758
|
-
return 34
|
2759
|
-
end
|
2760
|
-
|
2761
|
-
state_comment = "State: 34 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"
|
2762
|
-
token.detach
|
2763
|
-
expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]
|
2764
|
-
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2765
|
-
raise error if (stop_at_first_error)
|
2766
|
-
add_error(context, error)
|
2767
|
-
return 34
|
2242
|
+
return 27
|
2768
2243
|
end
|
2769
2244
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0
|
2770
|
-
def
|
2245
|
+
def match_token_at_state28(token, context)
|
2771
2246
|
if match_EOF(context, token)
|
2772
2247
|
end_rule(context, :Step);
|
2773
2248
|
end_rule(context, :Scenario);
|
@@ -2775,23 +2250,23 @@ module Gherkin
|
|
2775
2250
|
end_rule(context, :Rule);
|
2776
2251
|
end_rule(context, :Feature);
|
2777
2252
|
build(context, token);
|
2778
|
-
return
|
2253
|
+
return 34
|
2779
2254
|
end
|
2780
2255
|
if match_TableRow(context, token)
|
2781
2256
|
start_rule(context, :DataTable);
|
2782
2257
|
build(context, token);
|
2783
|
-
return
|
2258
|
+
return 29
|
2784
2259
|
end
|
2785
2260
|
if match_DocStringSeparator(context, token)
|
2786
2261
|
start_rule(context, :DocString);
|
2787
2262
|
build(context, token);
|
2788
|
-
return
|
2263
|
+
return 35
|
2789
2264
|
end
|
2790
2265
|
if match_StepLine(context, token)
|
2791
2266
|
end_rule(context, :Step);
|
2792
2267
|
start_rule(context, :Step);
|
2793
2268
|
build(context, token);
|
2794
|
-
return
|
2269
|
+
return 28
|
2795
2270
|
end
|
2796
2271
|
if match_TagLine(context, token)
|
2797
2272
|
if lookahead1(context, token)
|
@@ -2799,7 +2274,7 @@ module Gherkin
|
|
2799
2274
|
start_rule(context, :ExamplesDefinition);
|
2800
2275
|
start_rule(context, :Tags);
|
2801
2276
|
build(context, token);
|
2802
|
-
return
|
2277
|
+
return 30
|
2803
2278
|
end
|
2804
2279
|
end
|
2805
2280
|
if match_TagLine(context, token)
|
@@ -2810,7 +2285,7 @@ module Gherkin
|
|
2810
2285
|
start_rule(context, :ScenarioDefinition);
|
2811
2286
|
start_rule(context, :Tags);
|
2812
2287
|
build(context, token);
|
2813
|
-
return
|
2288
|
+
return 25
|
2814
2289
|
end
|
2815
2290
|
end
|
2816
2291
|
if match_TagLine(context, token)
|
@@ -2822,14 +2297,14 @@ module Gherkin
|
|
2822
2297
|
start_rule(context, :RuleHeader);
|
2823
2298
|
start_rule(context, :Tags);
|
2824
2299
|
build(context, token);
|
2825
|
-
return
|
2300
|
+
return 18
|
2826
2301
|
end
|
2827
2302
|
if match_ExamplesLine(context, token)
|
2828
2303
|
end_rule(context, :Step);
|
2829
2304
|
start_rule(context, :ExamplesDefinition);
|
2830
2305
|
start_rule(context, :Examples);
|
2831
2306
|
build(context, token);
|
2832
|
-
return
|
2307
|
+
return 31
|
2833
2308
|
end
|
2834
2309
|
if match_ScenarioLine(context, token)
|
2835
2310
|
end_rule(context, :Step);
|
@@ -2838,7 +2313,7 @@ module Gherkin
|
|
2838
2313
|
start_rule(context, :ScenarioDefinition);
|
2839
2314
|
start_rule(context, :Scenario);
|
2840
2315
|
build(context, token);
|
2841
|
-
return
|
2316
|
+
return 26
|
2842
2317
|
end
|
2843
2318
|
if match_RuleLine(context, token)
|
2844
2319
|
end_rule(context, :Step);
|
@@ -2848,27 +2323,27 @@ module Gherkin
|
|
2848
2323
|
start_rule(context, :Rule);
|
2849
2324
|
start_rule(context, :RuleHeader);
|
2850
2325
|
build(context, token);
|
2851
|
-
return
|
2326
|
+
return 19
|
2852
2327
|
end
|
2853
2328
|
if match_Comment(context, token)
|
2854
2329
|
build(context, token);
|
2855
|
-
return
|
2330
|
+
return 28
|
2856
2331
|
end
|
2857
2332
|
if match_Empty(context, token)
|
2858
2333
|
build(context, token);
|
2859
|
-
return
|
2334
|
+
return 28
|
2860
2335
|
end
|
2861
2336
|
|
2862
|
-
state_comment = "State:
|
2337
|
+
state_comment = "State: 28 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"
|
2863
2338
|
token.detach
|
2864
2339
|
expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
2865
2340
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2866
2341
|
raise error if (stop_at_first_error)
|
2867
2342
|
add_error(context, error)
|
2868
|
-
return
|
2343
|
+
return 28
|
2869
2344
|
end
|
2870
2345
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
|
2871
|
-
def
|
2346
|
+
def match_token_at_state29(token, context)
|
2872
2347
|
if match_EOF(context, token)
|
2873
2348
|
end_rule(context, :DataTable);
|
2874
2349
|
end_rule(context, :Step);
|
@@ -2877,18 +2352,18 @@ module Gherkin
|
|
2877
2352
|
end_rule(context, :Rule);
|
2878
2353
|
end_rule(context, :Feature);
|
2879
2354
|
build(context, token);
|
2880
|
-
return
|
2355
|
+
return 34
|
2881
2356
|
end
|
2882
2357
|
if match_TableRow(context, token)
|
2883
2358
|
build(context, token);
|
2884
|
-
return
|
2359
|
+
return 29
|
2885
2360
|
end
|
2886
2361
|
if match_StepLine(context, token)
|
2887
2362
|
end_rule(context, :DataTable);
|
2888
2363
|
end_rule(context, :Step);
|
2889
2364
|
start_rule(context, :Step);
|
2890
2365
|
build(context, token);
|
2891
|
-
return
|
2366
|
+
return 28
|
2892
2367
|
end
|
2893
2368
|
if match_TagLine(context, token)
|
2894
2369
|
if lookahead1(context, token)
|
@@ -2897,7 +2372,7 @@ module Gherkin
|
|
2897
2372
|
start_rule(context, :ExamplesDefinition);
|
2898
2373
|
start_rule(context, :Tags);
|
2899
2374
|
build(context, token);
|
2900
|
-
return
|
2375
|
+
return 30
|
2901
2376
|
end
|
2902
2377
|
end
|
2903
2378
|
if match_TagLine(context, token)
|
@@ -2909,7 +2384,7 @@ module Gherkin
|
|
2909
2384
|
start_rule(context, :ScenarioDefinition);
|
2910
2385
|
start_rule(context, :Tags);
|
2911
2386
|
build(context, token);
|
2912
|
-
return
|
2387
|
+
return 25
|
2913
2388
|
end
|
2914
2389
|
end
|
2915
2390
|
if match_TagLine(context, token)
|
@@ -2922,7 +2397,7 @@ module Gherkin
|
|
2922
2397
|
start_rule(context, :RuleHeader);
|
2923
2398
|
start_rule(context, :Tags);
|
2924
2399
|
build(context, token);
|
2925
|
-
return
|
2400
|
+
return 18
|
2926
2401
|
end
|
2927
2402
|
if match_ExamplesLine(context, token)
|
2928
2403
|
end_rule(context, :DataTable);
|
@@ -2930,7 +2405,7 @@ module Gherkin
|
|
2930
2405
|
start_rule(context, :ExamplesDefinition);
|
2931
2406
|
start_rule(context, :Examples);
|
2932
2407
|
build(context, token);
|
2933
|
-
return
|
2408
|
+
return 31
|
2934
2409
|
end
|
2935
2410
|
if match_ScenarioLine(context, token)
|
2936
2411
|
end_rule(context, :DataTable);
|
@@ -2940,7 +2415,7 @@ module Gherkin
|
|
2940
2415
|
start_rule(context, :ScenarioDefinition);
|
2941
2416
|
start_rule(context, :Scenario);
|
2942
2417
|
build(context, token);
|
2943
|
-
return
|
2418
|
+
return 26
|
2944
2419
|
end
|
2945
2420
|
if match_RuleLine(context, token)
|
2946
2421
|
end_rule(context, :DataTable);
|
@@ -2951,56 +2426,56 @@ module Gherkin
|
|
2951
2426
|
start_rule(context, :Rule);
|
2952
2427
|
start_rule(context, :RuleHeader);
|
2953
2428
|
build(context, token);
|
2954
|
-
return
|
2429
|
+
return 19
|
2955
2430
|
end
|
2956
2431
|
if match_Comment(context, token)
|
2957
2432
|
build(context, token);
|
2958
|
-
return
|
2433
|
+
return 29
|
2959
2434
|
end
|
2960
2435
|
if match_Empty(context, token)
|
2961
2436
|
build(context, token);
|
2962
|
-
return
|
2437
|
+
return 29
|
2963
2438
|
end
|
2964
2439
|
|
2965
|
-
state_comment = "State:
|
2440
|
+
state_comment = "State: 29 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
|
2966
2441
|
token.detach
|
2967
2442
|
expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
2968
2443
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2969
2444
|
raise error if (stop_at_first_error)
|
2970
2445
|
add_error(context, error)
|
2971
|
-
return
|
2446
|
+
return 29
|
2972
2447
|
end
|
2973
2448
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0
|
2974
|
-
def
|
2449
|
+
def match_token_at_state30(token, context)
|
2975
2450
|
if match_TagLine(context, token)
|
2976
2451
|
build(context, token);
|
2977
|
-
return
|
2452
|
+
return 30
|
2978
2453
|
end
|
2979
2454
|
if match_ExamplesLine(context, token)
|
2980
2455
|
end_rule(context, :Tags);
|
2981
2456
|
start_rule(context, :Examples);
|
2982
2457
|
build(context, token);
|
2983
|
-
return
|
2458
|
+
return 31
|
2984
2459
|
end
|
2985
2460
|
if match_Comment(context, token)
|
2986
2461
|
build(context, token);
|
2987
|
-
return
|
2462
|
+
return 30
|
2988
2463
|
end
|
2989
2464
|
if match_Empty(context, token)
|
2990
2465
|
build(context, token);
|
2991
|
-
return
|
2466
|
+
return 30
|
2992
2467
|
end
|
2993
2468
|
|
2994
|
-
state_comment = "State:
|
2469
|
+
state_comment = "State: 30 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"
|
2995
2470
|
token.detach
|
2996
2471
|
expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]
|
2997
2472
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
2998
2473
|
raise error if (stop_at_first_error)
|
2999
2474
|
add_error(context, error)
|
3000
|
-
return
|
2475
|
+
return 30
|
3001
2476
|
end
|
3002
2477
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0
|
3003
|
-
def
|
2478
|
+
def match_token_at_state31(token, context)
|
3004
2479
|
if match_EOF(context, token)
|
3005
2480
|
end_rule(context, :Examples);
|
3006
2481
|
end_rule(context, :ExamplesDefinition);
|
@@ -3009,20 +2484,21 @@ module Gherkin
|
|
3009
2484
|
end_rule(context, :Rule);
|
3010
2485
|
end_rule(context, :Feature);
|
3011
2486
|
build(context, token);
|
3012
|
-
return
|
2487
|
+
return 34
|
3013
2488
|
end
|
3014
2489
|
if match_Empty(context, token)
|
3015
2490
|
build(context, token);
|
3016
|
-
return
|
2491
|
+
return 31
|
3017
2492
|
end
|
3018
2493
|
if match_Comment(context, token)
|
2494
|
+
start_rule(context, :Description);
|
3019
2495
|
build(context, token);
|
3020
|
-
return
|
2496
|
+
return 32
|
3021
2497
|
end
|
3022
2498
|
if match_TableRow(context, token)
|
3023
2499
|
start_rule(context, :ExamplesTable);
|
3024
2500
|
build(context, token);
|
3025
|
-
return
|
2501
|
+
return 33
|
3026
2502
|
end
|
3027
2503
|
if match_TagLine(context, token)
|
3028
2504
|
if lookahead1(context, token)
|
@@ -3031,7 +2507,7 @@ module Gherkin
|
|
3031
2507
|
start_rule(context, :ExamplesDefinition);
|
3032
2508
|
start_rule(context, :Tags);
|
3033
2509
|
build(context, token);
|
3034
|
-
return
|
2510
|
+
return 30
|
3035
2511
|
end
|
3036
2512
|
end
|
3037
2513
|
if match_TagLine(context, token)
|
@@ -3043,7 +2519,7 @@ module Gherkin
|
|
3043
2519
|
start_rule(context, :ScenarioDefinition);
|
3044
2520
|
start_rule(context, :Tags);
|
3045
2521
|
build(context, token);
|
3046
|
-
return
|
2522
|
+
return 25
|
3047
2523
|
end
|
3048
2524
|
end
|
3049
2525
|
if match_TagLine(context, token)
|
@@ -3056,7 +2532,7 @@ module Gherkin
|
|
3056
2532
|
start_rule(context, :RuleHeader);
|
3057
2533
|
start_rule(context, :Tags);
|
3058
2534
|
build(context, token);
|
3059
|
-
return
|
2535
|
+
return 18
|
3060
2536
|
end
|
3061
2537
|
if match_ExamplesLine(context, token)
|
3062
2538
|
end_rule(context, :Examples);
|
@@ -3064,7 +2540,7 @@ module Gherkin
|
|
3064
2540
|
start_rule(context, :ExamplesDefinition);
|
3065
2541
|
start_rule(context, :Examples);
|
3066
2542
|
build(context, token);
|
3067
|
-
return
|
2543
|
+
return 31
|
3068
2544
|
end
|
3069
2545
|
if match_ScenarioLine(context, token)
|
3070
2546
|
end_rule(context, :Examples);
|
@@ -3074,7 +2550,7 @@ module Gherkin
|
|
3074
2550
|
start_rule(context, :ScenarioDefinition);
|
3075
2551
|
start_rule(context, :Scenario);
|
3076
2552
|
build(context, token);
|
3077
|
-
return
|
2553
|
+
return 26
|
3078
2554
|
end
|
3079
2555
|
if match_RuleLine(context, token)
|
3080
2556
|
end_rule(context, :Examples);
|
@@ -3085,24 +2561,24 @@ module Gherkin
|
|
3085
2561
|
start_rule(context, :Rule);
|
3086
2562
|
start_rule(context, :RuleHeader);
|
3087
2563
|
build(context, token);
|
3088
|
-
return
|
2564
|
+
return 19
|
3089
2565
|
end
|
3090
2566
|
if match_Other(context, token)
|
3091
2567
|
start_rule(context, :Description);
|
3092
2568
|
build(context, token);
|
3093
|
-
return
|
2569
|
+
return 32
|
3094
2570
|
end
|
3095
2571
|
|
3096
|
-
state_comment = "State:
|
2572
|
+
state_comment = "State: 31 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"
|
3097
2573
|
token.detach
|
3098
2574
|
expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
3099
2575
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3100
2576
|
raise error if (stop_at_first_error)
|
3101
2577
|
add_error(context, error)
|
3102
|
-
return
|
2578
|
+
return 31
|
3103
2579
|
end
|
3104
|
-
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0
|
3105
|
-
def
|
2580
|
+
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
|
2581
|
+
def match_token_at_state32(token, context)
|
3106
2582
|
if match_EOF(context, token)
|
3107
2583
|
end_rule(context, :Description);
|
3108
2584
|
end_rule(context, :Examples);
|
@@ -3112,18 +2588,17 @@ module Gherkin
|
|
3112
2588
|
end_rule(context, :Rule);
|
3113
2589
|
end_rule(context, :Feature);
|
3114
2590
|
build(context, token);
|
3115
|
-
return
|
2591
|
+
return 34
|
3116
2592
|
end
|
3117
2593
|
if match_Comment(context, token)
|
3118
|
-
end_rule(context, :Description);
|
3119
2594
|
build(context, token);
|
3120
|
-
return
|
2595
|
+
return 32
|
3121
2596
|
end
|
3122
2597
|
if match_TableRow(context, token)
|
3123
2598
|
end_rule(context, :Description);
|
3124
2599
|
start_rule(context, :ExamplesTable);
|
3125
2600
|
build(context, token);
|
3126
|
-
return
|
2601
|
+
return 33
|
3127
2602
|
end
|
3128
2603
|
if match_TagLine(context, token)
|
3129
2604
|
if lookahead1(context, token)
|
@@ -3133,7 +2608,7 @@ module Gherkin
|
|
3133
2608
|
start_rule(context, :ExamplesDefinition);
|
3134
2609
|
start_rule(context, :Tags);
|
3135
2610
|
build(context, token);
|
3136
|
-
return
|
2611
|
+
return 30
|
3137
2612
|
end
|
3138
2613
|
end
|
3139
2614
|
if match_TagLine(context, token)
|
@@ -3146,7 +2621,7 @@ module Gherkin
|
|
3146
2621
|
start_rule(context, :ScenarioDefinition);
|
3147
2622
|
start_rule(context, :Tags);
|
3148
2623
|
build(context, token);
|
3149
|
-
return
|
2624
|
+
return 25
|
3150
2625
|
end
|
3151
2626
|
end
|
3152
2627
|
if match_TagLine(context, token)
|
@@ -3160,7 +2635,7 @@ module Gherkin
|
|
3160
2635
|
start_rule(context, :RuleHeader);
|
3161
2636
|
start_rule(context, :Tags);
|
3162
2637
|
build(context, token);
|
3163
|
-
return
|
2638
|
+
return 18
|
3164
2639
|
end
|
3165
2640
|
if match_ExamplesLine(context, token)
|
3166
2641
|
end_rule(context, :Description);
|
@@ -3169,7 +2644,7 @@ module Gherkin
|
|
3169
2644
|
start_rule(context, :ExamplesDefinition);
|
3170
2645
|
start_rule(context, :Examples);
|
3171
2646
|
build(context, token);
|
3172
|
-
return
|
2647
|
+
return 31
|
3173
2648
|
end
|
3174
2649
|
if match_ScenarioLine(context, token)
|
3175
2650
|
end_rule(context, :Description);
|
@@ -3180,7 +2655,7 @@ module Gherkin
|
|
3180
2655
|
start_rule(context, :ScenarioDefinition);
|
3181
2656
|
start_rule(context, :Scenario);
|
3182
2657
|
build(context, token);
|
3183
|
-
return
|
2658
|
+
return 26
|
3184
2659
|
end
|
3185
2660
|
if match_RuleLine(context, token)
|
3186
2661
|
end_rule(context, :Description);
|
@@ -3192,120 +2667,23 @@ module Gherkin
|
|
3192
2667
|
start_rule(context, :Rule);
|
3193
2668
|
start_rule(context, :RuleHeader);
|
3194
2669
|
build(context, token);
|
3195
|
-
return
|
2670
|
+
return 19
|
3196
2671
|
end
|
3197
2672
|
if match_Other(context, token)
|
3198
|
-
build(context, token);
|
3199
|
-
return 39
|
3200
|
-
end
|
3201
|
-
|
3202
|
-
state_comment = "State: 39 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0"
|
3203
|
-
token.detach
|
3204
|
-
expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
3205
|
-
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3206
|
-
raise error if (stop_at_first_error)
|
3207
|
-
add_error(context, error)
|
3208
|
-
return 39
|
3209
|
-
end
|
3210
|
-
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0
|
3211
|
-
def match_token_at_state40(token, context)
|
3212
|
-
if match_EOF(context, token)
|
3213
|
-
end_rule(context, :Examples);
|
3214
|
-
end_rule(context, :ExamplesDefinition);
|
3215
|
-
end_rule(context, :Scenario);
|
3216
|
-
end_rule(context, :ScenarioDefinition);
|
3217
|
-
end_rule(context, :Rule);
|
3218
|
-
end_rule(context, :Feature);
|
3219
|
-
build(context, token);
|
3220
|
-
return 42
|
3221
|
-
end
|
3222
|
-
if match_Comment(context, token)
|
3223
|
-
build(context, token);
|
3224
|
-
return 40
|
3225
|
-
end
|
3226
|
-
if match_TableRow(context, token)
|
3227
|
-
start_rule(context, :ExamplesTable);
|
3228
|
-
build(context, token);
|
3229
|
-
return 41
|
3230
|
-
end
|
3231
|
-
if match_TagLine(context, token)
|
3232
|
-
if lookahead1(context, token)
|
3233
|
-
end_rule(context, :Examples);
|
3234
|
-
end_rule(context, :ExamplesDefinition);
|
3235
|
-
start_rule(context, :ExamplesDefinition);
|
3236
|
-
start_rule(context, :Tags);
|
3237
|
-
build(context, token);
|
3238
|
-
return 37
|
3239
|
-
end
|
3240
|
-
end
|
3241
|
-
if match_TagLine(context, token)
|
3242
|
-
if lookahead0(context, token)
|
3243
|
-
end_rule(context, :Examples);
|
3244
|
-
end_rule(context, :ExamplesDefinition);
|
3245
|
-
end_rule(context, :Scenario);
|
3246
|
-
end_rule(context, :ScenarioDefinition);
|
3247
|
-
start_rule(context, :ScenarioDefinition);
|
3248
|
-
start_rule(context, :Tags);
|
3249
|
-
build(context, token);
|
3250
|
-
return 31
|
3251
|
-
end
|
3252
|
-
end
|
3253
|
-
if match_TagLine(context, token)
|
3254
|
-
end_rule(context, :Examples);
|
3255
|
-
end_rule(context, :ExamplesDefinition);
|
3256
|
-
end_rule(context, :Scenario);
|
3257
|
-
end_rule(context, :ScenarioDefinition);
|
3258
|
-
end_rule(context, :Rule);
|
3259
|
-
start_rule(context, :Rule);
|
3260
|
-
start_rule(context, :RuleHeader);
|
3261
|
-
start_rule(context, :Tags);
|
3262
|
-
build(context, token);
|
3263
|
-
return 22
|
3264
|
-
end
|
3265
|
-
if match_ExamplesLine(context, token)
|
3266
|
-
end_rule(context, :Examples);
|
3267
|
-
end_rule(context, :ExamplesDefinition);
|
3268
|
-
start_rule(context, :ExamplesDefinition);
|
3269
|
-
start_rule(context, :Examples);
|
3270
|
-
build(context, token);
|
3271
|
-
return 38
|
3272
|
-
end
|
3273
|
-
if match_ScenarioLine(context, token)
|
3274
|
-
end_rule(context, :Examples);
|
3275
|
-
end_rule(context, :ExamplesDefinition);
|
3276
|
-
end_rule(context, :Scenario);
|
3277
|
-
end_rule(context, :ScenarioDefinition);
|
3278
|
-
start_rule(context, :ScenarioDefinition);
|
3279
|
-
start_rule(context, :Scenario);
|
3280
2673
|
build(context, token);
|
3281
2674
|
return 32
|
3282
2675
|
end
|
3283
|
-
if match_RuleLine(context, token)
|
3284
|
-
end_rule(context, :Examples);
|
3285
|
-
end_rule(context, :ExamplesDefinition);
|
3286
|
-
end_rule(context, :Scenario);
|
3287
|
-
end_rule(context, :ScenarioDefinition);
|
3288
|
-
end_rule(context, :Rule);
|
3289
|
-
start_rule(context, :Rule);
|
3290
|
-
start_rule(context, :RuleHeader);
|
3291
|
-
build(context, token);
|
3292
|
-
return 23
|
3293
|
-
end
|
3294
|
-
if match_Empty(context, token)
|
3295
|
-
build(context, token);
|
3296
|
-
return 40
|
3297
|
-
end
|
3298
2676
|
|
3299
|
-
state_comment = "State:
|
2677
|
+
state_comment = "State: 32 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
|
3300
2678
|
token.detach
|
3301
|
-
expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#
|
2679
|
+
expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
|
3302
2680
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3303
2681
|
raise error if (stop_at_first_error)
|
3304
2682
|
add_error(context, error)
|
3305
|
-
return
|
2683
|
+
return 32
|
3306
2684
|
end
|
3307
2685
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0
|
3308
|
-
def
|
2686
|
+
def match_token_at_state33(token, context)
|
3309
2687
|
if match_EOF(context, token)
|
3310
2688
|
end_rule(context, :ExamplesTable);
|
3311
2689
|
end_rule(context, :Examples);
|
@@ -3315,11 +2693,11 @@ module Gherkin
|
|
3315
2693
|
end_rule(context, :Rule);
|
3316
2694
|
end_rule(context, :Feature);
|
3317
2695
|
build(context, token);
|
3318
|
-
return
|
2696
|
+
return 34
|
3319
2697
|
end
|
3320
2698
|
if match_TableRow(context, token)
|
3321
2699
|
build(context, token);
|
3322
|
-
return
|
2700
|
+
return 33
|
3323
2701
|
end
|
3324
2702
|
if match_TagLine(context, token)
|
3325
2703
|
if lookahead1(context, token)
|
@@ -3329,7 +2707,7 @@ module Gherkin
|
|
3329
2707
|
start_rule(context, :ExamplesDefinition);
|
3330
2708
|
start_rule(context, :Tags);
|
3331
2709
|
build(context, token);
|
3332
|
-
return
|
2710
|
+
return 30
|
3333
2711
|
end
|
3334
2712
|
end
|
3335
2713
|
if match_TagLine(context, token)
|
@@ -3342,7 +2720,7 @@ module Gherkin
|
|
3342
2720
|
start_rule(context, :ScenarioDefinition);
|
3343
2721
|
start_rule(context, :Tags);
|
3344
2722
|
build(context, token);
|
3345
|
-
return
|
2723
|
+
return 25
|
3346
2724
|
end
|
3347
2725
|
end
|
3348
2726
|
if match_TagLine(context, token)
|
@@ -3356,7 +2734,7 @@ module Gherkin
|
|
3356
2734
|
start_rule(context, :RuleHeader);
|
3357
2735
|
start_rule(context, :Tags);
|
3358
2736
|
build(context, token);
|
3359
|
-
return
|
2737
|
+
return 18
|
3360
2738
|
end
|
3361
2739
|
if match_ExamplesLine(context, token)
|
3362
2740
|
end_rule(context, :ExamplesTable);
|
@@ -3365,7 +2743,7 @@ module Gherkin
|
|
3365
2743
|
start_rule(context, :ExamplesDefinition);
|
3366
2744
|
start_rule(context, :Examples);
|
3367
2745
|
build(context, token);
|
3368
|
-
return
|
2746
|
+
return 31
|
3369
2747
|
end
|
3370
2748
|
if match_ScenarioLine(context, token)
|
3371
2749
|
end_rule(context, :ExamplesTable);
|
@@ -3376,7 +2754,7 @@ module Gherkin
|
|
3376
2754
|
start_rule(context, :ScenarioDefinition);
|
3377
2755
|
start_rule(context, :Scenario);
|
3378
2756
|
build(context, token);
|
3379
|
-
return
|
2757
|
+
return 26
|
3380
2758
|
end
|
3381
2759
|
if match_RuleLine(context, token)
|
3382
2760
|
end_rule(context, :ExamplesTable);
|
@@ -3388,46 +2766,46 @@ module Gherkin
|
|
3388
2766
|
start_rule(context, :Rule);
|
3389
2767
|
start_rule(context, :RuleHeader);
|
3390
2768
|
build(context, token);
|
3391
|
-
return
|
2769
|
+
return 19
|
3392
2770
|
end
|
3393
2771
|
if match_Comment(context, token)
|
3394
2772
|
build(context, token);
|
3395
|
-
return
|
2773
|
+
return 33
|
3396
2774
|
end
|
3397
2775
|
if match_Empty(context, token)
|
3398
2776
|
build(context, token);
|
3399
|
-
return
|
2777
|
+
return 33
|
3400
2778
|
end
|
3401
2779
|
|
3402
|
-
state_comment = "State:
|
2780
|
+
state_comment = "State: 33 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"
|
3403
2781
|
token.detach
|
3404
2782
|
expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
3405
2783
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3406
2784
|
raise error if (stop_at_first_error)
|
3407
2785
|
add_error(context, error)
|
3408
|
-
return
|
2786
|
+
return 33
|
3409
2787
|
end
|
3410
2788
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
|
3411
|
-
def
|
2789
|
+
def match_token_at_state35(token, context)
|
3412
2790
|
if match_DocStringSeparator(context, token)
|
3413
2791
|
build(context, token);
|
3414
|
-
return
|
2792
|
+
return 36
|
3415
2793
|
end
|
3416
2794
|
if match_Other(context, token)
|
3417
2795
|
build(context, token);
|
3418
|
-
return
|
2796
|
+
return 35
|
3419
2797
|
end
|
3420
2798
|
|
3421
|
-
state_comment = "State:
|
2799
|
+
state_comment = "State: 35 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
|
3422
2800
|
token.detach
|
3423
2801
|
expected_tokens = ["#DocStringSeparator", "#Other"]
|
3424
2802
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3425
2803
|
raise error if (stop_at_first_error)
|
3426
2804
|
add_error(context, error)
|
3427
|
-
return
|
2805
|
+
return 35
|
3428
2806
|
end
|
3429
2807
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
|
3430
|
-
def
|
2808
|
+
def match_token_at_state36(token, context)
|
3431
2809
|
if match_EOF(context, token)
|
3432
2810
|
end_rule(context, :DocString);
|
3433
2811
|
end_rule(context, :Step);
|
@@ -3436,14 +2814,14 @@ module Gherkin
|
|
3436
2814
|
end_rule(context, :Rule);
|
3437
2815
|
end_rule(context, :Feature);
|
3438
2816
|
build(context, token);
|
3439
|
-
return
|
2817
|
+
return 34
|
3440
2818
|
end
|
3441
2819
|
if match_StepLine(context, token)
|
3442
2820
|
end_rule(context, :DocString);
|
3443
2821
|
end_rule(context, :Step);
|
3444
2822
|
start_rule(context, :Step);
|
3445
2823
|
build(context, token);
|
3446
|
-
return
|
2824
|
+
return 28
|
3447
2825
|
end
|
3448
2826
|
if match_TagLine(context, token)
|
3449
2827
|
if lookahead1(context, token)
|
@@ -3452,7 +2830,7 @@ module Gherkin
|
|
3452
2830
|
start_rule(context, :ExamplesDefinition);
|
3453
2831
|
start_rule(context, :Tags);
|
3454
2832
|
build(context, token);
|
3455
|
-
return
|
2833
|
+
return 30
|
3456
2834
|
end
|
3457
2835
|
end
|
3458
2836
|
if match_TagLine(context, token)
|
@@ -3464,7 +2842,7 @@ module Gherkin
|
|
3464
2842
|
start_rule(context, :ScenarioDefinition);
|
3465
2843
|
start_rule(context, :Tags);
|
3466
2844
|
build(context, token);
|
3467
|
-
return
|
2845
|
+
return 25
|
3468
2846
|
end
|
3469
2847
|
end
|
3470
2848
|
if match_TagLine(context, token)
|
@@ -3477,7 +2855,7 @@ module Gherkin
|
|
3477
2855
|
start_rule(context, :RuleHeader);
|
3478
2856
|
start_rule(context, :Tags);
|
3479
2857
|
build(context, token);
|
3480
|
-
return
|
2858
|
+
return 18
|
3481
2859
|
end
|
3482
2860
|
if match_ExamplesLine(context, token)
|
3483
2861
|
end_rule(context, :DocString);
|
@@ -3485,7 +2863,7 @@ module Gherkin
|
|
3485
2863
|
start_rule(context, :ExamplesDefinition);
|
3486
2864
|
start_rule(context, :Examples);
|
3487
2865
|
build(context, token);
|
3488
|
-
return
|
2866
|
+
return 31
|
3489
2867
|
end
|
3490
2868
|
if match_ScenarioLine(context, token)
|
3491
2869
|
end_rule(context, :DocString);
|
@@ -3495,7 +2873,7 @@ module Gherkin
|
|
3495
2873
|
start_rule(context, :ScenarioDefinition);
|
3496
2874
|
start_rule(context, :Scenario);
|
3497
2875
|
build(context, token);
|
3498
|
-
return
|
2876
|
+
return 26
|
3499
2877
|
end
|
3500
2878
|
if match_RuleLine(context, token)
|
3501
2879
|
end_rule(context, :DocString);
|
@@ -3506,46 +2884,46 @@ module Gherkin
|
|
3506
2884
|
start_rule(context, :Rule);
|
3507
2885
|
start_rule(context, :RuleHeader);
|
3508
2886
|
build(context, token);
|
3509
|
-
return
|
2887
|
+
return 19
|
3510
2888
|
end
|
3511
2889
|
if match_Comment(context, token)
|
3512
2890
|
build(context, token);
|
3513
|
-
return
|
2891
|
+
return 36
|
3514
2892
|
end
|
3515
2893
|
if match_Empty(context, token)
|
3516
2894
|
build(context, token);
|
3517
|
-
return
|
2895
|
+
return 36
|
3518
2896
|
end
|
3519
2897
|
|
3520
|
-
state_comment = "State:
|
2898
|
+
state_comment = "State: 36 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
|
3521
2899
|
token.detach
|
3522
2900
|
expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
3523
2901
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3524
2902
|
raise error if (stop_at_first_error)
|
3525
2903
|
add_error(context, error)
|
3526
|
-
return
|
2904
|
+
return 36
|
3527
2905
|
end
|
3528
2906
|
# GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
|
3529
|
-
def
|
2907
|
+
def match_token_at_state37(token, context)
|
3530
2908
|
if match_DocStringSeparator(context, token)
|
3531
2909
|
build(context, token);
|
3532
|
-
return
|
2910
|
+
return 38
|
3533
2911
|
end
|
3534
2912
|
if match_Other(context, token)
|
3535
2913
|
build(context, token);
|
3536
|
-
return
|
2914
|
+
return 37
|
3537
2915
|
end
|
3538
2916
|
|
3539
|
-
state_comment = "State:
|
2917
|
+
state_comment = "State: 37 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
|
3540
2918
|
token.detach
|
3541
2919
|
expected_tokens = ["#DocStringSeparator", "#Other"]
|
3542
2920
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3543
2921
|
raise error if (stop_at_first_error)
|
3544
2922
|
add_error(context, error)
|
3545
|
-
return
|
2923
|
+
return 37
|
3546
2924
|
end
|
3547
2925
|
# GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
|
3548
|
-
def
|
2926
|
+
def match_token_at_state38(token, context)
|
3549
2927
|
if match_EOF(context, token)
|
3550
2928
|
end_rule(context, :DocString);
|
3551
2929
|
end_rule(context, :Step);
|
@@ -3553,14 +2931,14 @@ module Gherkin
|
|
3553
2931
|
end_rule(context, :Rule);
|
3554
2932
|
end_rule(context, :Feature);
|
3555
2933
|
build(context, token);
|
3556
|
-
return
|
2934
|
+
return 34
|
3557
2935
|
end
|
3558
2936
|
if match_StepLine(context, token)
|
3559
2937
|
end_rule(context, :DocString);
|
3560
2938
|
end_rule(context, :Step);
|
3561
2939
|
start_rule(context, :Step);
|
3562
2940
|
build(context, token);
|
3563
|
-
return
|
2941
|
+
return 23
|
3564
2942
|
end
|
3565
2943
|
if match_TagLine(context, token)
|
3566
2944
|
if lookahead0(context, token)
|
@@ -3570,7 +2948,7 @@ module Gherkin
|
|
3570
2948
|
start_rule(context, :ScenarioDefinition);
|
3571
2949
|
start_rule(context, :Tags);
|
3572
2950
|
build(context, token);
|
3573
|
-
return
|
2951
|
+
return 25
|
3574
2952
|
end
|
3575
2953
|
end
|
3576
2954
|
if match_TagLine(context, token)
|
@@ -3582,7 +2960,7 @@ module Gherkin
|
|
3582
2960
|
start_rule(context, :RuleHeader);
|
3583
2961
|
start_rule(context, :Tags);
|
3584
2962
|
build(context, token);
|
3585
|
-
return
|
2963
|
+
return 18
|
3586
2964
|
end
|
3587
2965
|
if match_ScenarioLine(context, token)
|
3588
2966
|
end_rule(context, :DocString);
|
@@ -3591,7 +2969,7 @@ module Gherkin
|
|
3591
2969
|
start_rule(context, :ScenarioDefinition);
|
3592
2970
|
start_rule(context, :Scenario);
|
3593
2971
|
build(context, token);
|
3594
|
-
return
|
2972
|
+
return 26
|
3595
2973
|
end
|
3596
2974
|
if match_RuleLine(context, token)
|
3597
2975
|
end_rule(context, :DocString);
|
@@ -3601,46 +2979,46 @@ module Gherkin
|
|
3601
2979
|
start_rule(context, :Rule);
|
3602
2980
|
start_rule(context, :RuleHeader);
|
3603
2981
|
build(context, token);
|
3604
|
-
return
|
2982
|
+
return 19
|
3605
2983
|
end
|
3606
2984
|
if match_Comment(context, token)
|
3607
2985
|
build(context, token);
|
3608
|
-
return
|
2986
|
+
return 38
|
3609
2987
|
end
|
3610
2988
|
if match_Empty(context, token)
|
3611
2989
|
build(context, token);
|
3612
|
-
return
|
2990
|
+
return 38
|
3613
2991
|
end
|
3614
2992
|
|
3615
|
-
state_comment = "State:
|
2993
|
+
state_comment = "State: 38 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
|
3616
2994
|
token.detach
|
3617
2995
|
expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
3618
2996
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3619
2997
|
raise error if (stop_at_first_error)
|
3620
2998
|
add_error(context, error)
|
3621
|
-
return
|
2999
|
+
return 38
|
3622
3000
|
end
|
3623
3001
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
|
3624
|
-
def
|
3002
|
+
def match_token_at_state39(token, context)
|
3625
3003
|
if match_DocStringSeparator(context, token)
|
3626
3004
|
build(context, token);
|
3627
|
-
return
|
3005
|
+
return 40
|
3628
3006
|
end
|
3629
3007
|
if match_Other(context, token)
|
3630
3008
|
build(context, token);
|
3631
|
-
return
|
3009
|
+
return 39
|
3632
3010
|
end
|
3633
3011
|
|
3634
|
-
state_comment = "State:
|
3012
|
+
state_comment = "State: 39 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
|
3635
3013
|
token.detach
|
3636
3014
|
expected_tokens = ["#DocStringSeparator", "#Other"]
|
3637
3015
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3638
3016
|
raise error if (stop_at_first_error)
|
3639
3017
|
add_error(context, error)
|
3640
|
-
return
|
3018
|
+
return 39
|
3641
3019
|
end
|
3642
3020
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
|
3643
|
-
def
|
3021
|
+
def match_token_at_state40(token, context)
|
3644
3022
|
if match_EOF(context, token)
|
3645
3023
|
end_rule(context, :DocString);
|
3646
3024
|
end_rule(context, :Step);
|
@@ -3648,14 +3026,14 @@ module Gherkin
|
|
3648
3026
|
end_rule(context, :ScenarioDefinition);
|
3649
3027
|
end_rule(context, :Feature);
|
3650
3028
|
build(context, token);
|
3651
|
-
return
|
3029
|
+
return 34
|
3652
3030
|
end
|
3653
3031
|
if match_StepLine(context, token)
|
3654
3032
|
end_rule(context, :DocString);
|
3655
3033
|
end_rule(context, :Step);
|
3656
3034
|
start_rule(context, :Step);
|
3657
3035
|
build(context, token);
|
3658
|
-
return
|
3036
|
+
return 12
|
3659
3037
|
end
|
3660
3038
|
if match_TagLine(context, token)
|
3661
3039
|
if lookahead1(context, token)
|
@@ -3664,7 +3042,7 @@ module Gherkin
|
|
3664
3042
|
start_rule(context, :ExamplesDefinition);
|
3665
3043
|
start_rule(context, :Tags);
|
3666
3044
|
build(context, token);
|
3667
|
-
return
|
3045
|
+
return 14
|
3668
3046
|
end
|
3669
3047
|
end
|
3670
3048
|
if match_TagLine(context, token)
|
@@ -3676,7 +3054,7 @@ module Gherkin
|
|
3676
3054
|
start_rule(context, :ScenarioDefinition);
|
3677
3055
|
start_rule(context, :Tags);
|
3678
3056
|
build(context, token);
|
3679
|
-
return
|
3057
|
+
return 9
|
3680
3058
|
end
|
3681
3059
|
end
|
3682
3060
|
if match_TagLine(context, token)
|
@@ -3688,7 +3066,7 @@ module Gherkin
|
|
3688
3066
|
start_rule(context, :RuleHeader);
|
3689
3067
|
start_rule(context, :Tags);
|
3690
3068
|
build(context, token);
|
3691
|
-
return
|
3069
|
+
return 18
|
3692
3070
|
end
|
3693
3071
|
if match_ExamplesLine(context, token)
|
3694
3072
|
end_rule(context, :DocString);
|
@@ -3696,7 +3074,7 @@ module Gherkin
|
|
3696
3074
|
start_rule(context, :ExamplesDefinition);
|
3697
3075
|
start_rule(context, :Examples);
|
3698
3076
|
build(context, token);
|
3699
|
-
return
|
3077
|
+
return 15
|
3700
3078
|
end
|
3701
3079
|
if match_ScenarioLine(context, token)
|
3702
3080
|
end_rule(context, :DocString);
|
@@ -3706,7 +3084,7 @@ module Gherkin
|
|
3706
3084
|
start_rule(context, :ScenarioDefinition);
|
3707
3085
|
start_rule(context, :Scenario);
|
3708
3086
|
build(context, token);
|
3709
|
-
return
|
3087
|
+
return 10
|
3710
3088
|
end
|
3711
3089
|
if match_RuleLine(context, token)
|
3712
3090
|
end_rule(context, :DocString);
|
@@ -3716,60 +3094,60 @@ module Gherkin
|
|
3716
3094
|
start_rule(context, :Rule);
|
3717
3095
|
start_rule(context, :RuleHeader);
|
3718
3096
|
build(context, token);
|
3719
|
-
return
|
3097
|
+
return 19
|
3720
3098
|
end
|
3721
3099
|
if match_Comment(context, token)
|
3722
3100
|
build(context, token);
|
3723
|
-
return
|
3101
|
+
return 40
|
3724
3102
|
end
|
3725
3103
|
if match_Empty(context, token)
|
3726
3104
|
build(context, token);
|
3727
|
-
return
|
3105
|
+
return 40
|
3728
3106
|
end
|
3729
3107
|
|
3730
|
-
state_comment = "State:
|
3108
|
+
state_comment = "State: 40 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
|
3731
3109
|
token.detach
|
3732
3110
|
expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
3733
3111
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3734
3112
|
raise error if (stop_at_first_error)
|
3735
3113
|
add_error(context, error)
|
3736
|
-
return
|
3114
|
+
return 40
|
3737
3115
|
end
|
3738
3116
|
# GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
|
3739
|
-
def
|
3117
|
+
def match_token_at_state41(token, context)
|
3740
3118
|
if match_DocStringSeparator(context, token)
|
3741
3119
|
build(context, token);
|
3742
|
-
return
|
3120
|
+
return 42
|
3743
3121
|
end
|
3744
3122
|
if match_Other(context, token)
|
3745
3123
|
build(context, token);
|
3746
|
-
return
|
3124
|
+
return 41
|
3747
3125
|
end
|
3748
3126
|
|
3749
|
-
state_comment = "State:
|
3127
|
+
state_comment = "State: 41 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
|
3750
3128
|
token.detach
|
3751
3129
|
expected_tokens = ["#DocStringSeparator", "#Other"]
|
3752
3130
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3753
3131
|
raise error if (stop_at_first_error)
|
3754
3132
|
add_error(context, error)
|
3755
|
-
return
|
3133
|
+
return 41
|
3756
3134
|
end
|
3757
3135
|
# GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
|
3758
|
-
def
|
3136
|
+
def match_token_at_state42(token, context)
|
3759
3137
|
if match_EOF(context, token)
|
3760
3138
|
end_rule(context, :DocString);
|
3761
3139
|
end_rule(context, :Step);
|
3762
3140
|
end_rule(context, :Background);
|
3763
3141
|
end_rule(context, :Feature);
|
3764
3142
|
build(context, token);
|
3765
|
-
return
|
3143
|
+
return 34
|
3766
3144
|
end
|
3767
3145
|
if match_StepLine(context, token)
|
3768
3146
|
end_rule(context, :DocString);
|
3769
3147
|
end_rule(context, :Step);
|
3770
3148
|
start_rule(context, :Step);
|
3771
3149
|
build(context, token);
|
3772
|
-
return
|
3150
|
+
return 7
|
3773
3151
|
end
|
3774
3152
|
if match_TagLine(context, token)
|
3775
3153
|
if lookahead0(context, token)
|
@@ -3779,7 +3157,7 @@ module Gherkin
|
|
3779
3157
|
start_rule(context, :ScenarioDefinition);
|
3780
3158
|
start_rule(context, :Tags);
|
3781
3159
|
build(context, token);
|
3782
|
-
return
|
3160
|
+
return 9
|
3783
3161
|
end
|
3784
3162
|
end
|
3785
3163
|
if match_TagLine(context, token)
|
@@ -3790,7 +3168,7 @@ module Gherkin
|
|
3790
3168
|
start_rule(context, :RuleHeader);
|
3791
3169
|
start_rule(context, :Tags);
|
3792
3170
|
build(context, token);
|
3793
|
-
return
|
3171
|
+
return 18
|
3794
3172
|
end
|
3795
3173
|
if match_ScenarioLine(context, token)
|
3796
3174
|
end_rule(context, :DocString);
|
@@ -3799,7 +3177,7 @@ module Gherkin
|
|
3799
3177
|
start_rule(context, :ScenarioDefinition);
|
3800
3178
|
start_rule(context, :Scenario);
|
3801
3179
|
build(context, token);
|
3802
|
-
return
|
3180
|
+
return 10
|
3803
3181
|
end
|
3804
3182
|
if match_RuleLine(context, token)
|
3805
3183
|
end_rule(context, :DocString);
|
@@ -3808,24 +3186,24 @@ module Gherkin
|
|
3808
3186
|
start_rule(context, :Rule);
|
3809
3187
|
start_rule(context, :RuleHeader);
|
3810
3188
|
build(context, token);
|
3811
|
-
return
|
3189
|
+
return 19
|
3812
3190
|
end
|
3813
3191
|
if match_Comment(context, token)
|
3814
3192
|
build(context, token);
|
3815
|
-
return
|
3193
|
+
return 42
|
3816
3194
|
end
|
3817
3195
|
if match_Empty(context, token)
|
3818
3196
|
build(context, token);
|
3819
|
-
return
|
3197
|
+
return 42
|
3820
3198
|
end
|
3821
3199
|
|
3822
|
-
state_comment = "State:
|
3200
|
+
state_comment = "State: 42 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
|
3823
3201
|
token.detach
|
3824
3202
|
expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
|
3825
3203
|
error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
|
3826
3204
|
raise error if (stop_at_first_error)
|
3827
3205
|
add_error(context, error)
|
3828
|
-
return
|
3206
|
+
return 42
|
3829
3207
|
end
|
3830
3208
|
|
3831
3209
|
def lookahead0(context, current_token)
|