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