cucumber-gherkin 29.0.0 → 30.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/gherkin +11 -10
- data/lib/gherkin/ast_builder.rb +22 -15
- data/lib/gherkin/dialect.rb +2 -1
- data/lib/gherkin/errors.rb +1 -1
- data/lib/gherkin/gherkin_line.rb +3 -4
- data/lib/gherkin/parser.rb +370 -370
- data/lib/gherkin/pickles/compiler.rb +4 -7
- data/lib/gherkin/query.rb +4 -0
- data/lib/gherkin/stream/parser_message_stream.rb +14 -13
- data/lib/gherkin/token_formatter_builder.rb +9 -9
- data/lib/gherkin/token_matcher.rb +10 -12
- data/lib/gherkin/token_scanner.rb +2 -3
- data/lib/gherkin.rb +9 -11
- metadata +6 -6
data/lib/gherkin/parser.rb
CHANGED
@@ -446,11 +446,11 @@ module Gherkin
|
|
446
446
|
end
|
447
447
|
if match_TagLine(context, token)
|
448
448
|
if lookahead_0(context, token)
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
449
|
+
end_rule(context, :FeatureHeader);
|
450
|
+
start_rule(context, :ScenarioDefinition);
|
451
|
+
start_rule(context, :Tags);
|
452
|
+
build(context, token);
|
453
|
+
return 11
|
454
454
|
end
|
455
455
|
end
|
456
456
|
if match_TagLine(context, token)
|
@@ -512,12 +512,12 @@ module Gherkin
|
|
512
512
|
end
|
513
513
|
if match_TagLine(context, token)
|
514
514
|
if lookahead_0(context, token)
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
515
|
+
end_rule(context, :Description);
|
516
|
+
end_rule(context, :FeatureHeader);
|
517
|
+
start_rule(context, :ScenarioDefinition);
|
518
|
+
start_rule(context, :Tags);
|
519
|
+
build(context, token);
|
520
|
+
return 11
|
521
521
|
end
|
522
522
|
end
|
523
523
|
if match_TagLine(context, token)
|
@@ -578,11 +578,11 @@ module Gherkin
|
|
578
578
|
end
|
579
579
|
if match_TagLine(context, token)
|
580
580
|
if lookahead_0(context, token)
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
581
|
+
end_rule(context, :FeatureHeader);
|
582
|
+
start_rule(context, :ScenarioDefinition);
|
583
|
+
start_rule(context, :Tags);
|
584
|
+
build(context, token);
|
585
|
+
return 11
|
586
586
|
end
|
587
587
|
end
|
588
588
|
if match_TagLine(context, token)
|
@@ -643,11 +643,11 @@ module Gherkin
|
|
643
643
|
end
|
644
644
|
if match_TagLine(context, token)
|
645
645
|
if lookahead_0(context, token)
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
646
|
+
end_rule(context, :Background);
|
647
|
+
start_rule(context, :ScenarioDefinition);
|
648
|
+
start_rule(context, :Tags);
|
649
|
+
build(context, token);
|
650
|
+
return 11
|
651
651
|
end
|
652
652
|
end
|
653
653
|
if match_TagLine(context, token)
|
@@ -708,12 +708,12 @@ module Gherkin
|
|
708
708
|
end
|
709
709
|
if match_TagLine(context, token)
|
710
710
|
if lookahead_0(context, token)
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
711
|
+
end_rule(context, :Description);
|
712
|
+
end_rule(context, :Background);
|
713
|
+
start_rule(context, :ScenarioDefinition);
|
714
|
+
start_rule(context, :Tags);
|
715
|
+
build(context, token);
|
716
|
+
return 11
|
717
717
|
end
|
718
718
|
end
|
719
719
|
if match_TagLine(context, token)
|
@@ -773,11 +773,11 @@ module Gherkin
|
|
773
773
|
end
|
774
774
|
if match_TagLine(context, token)
|
775
775
|
if lookahead_0(context, token)
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
776
|
+
end_rule(context, :Background);
|
777
|
+
start_rule(context, :ScenarioDefinition);
|
778
|
+
start_rule(context, :Tags);
|
779
|
+
build(context, token);
|
780
|
+
return 11
|
781
781
|
end
|
782
782
|
end
|
783
783
|
if match_TagLine(context, token)
|
@@ -842,12 +842,12 @@ module Gherkin
|
|
842
842
|
end
|
843
843
|
if match_TagLine(context, token)
|
844
844
|
if lookahead_0(context, token)
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
845
|
+
end_rule(context, :Step);
|
846
|
+
end_rule(context, :Background);
|
847
|
+
start_rule(context, :ScenarioDefinition);
|
848
|
+
start_rule(context, :Tags);
|
849
|
+
build(context, token);
|
850
|
+
return 11
|
851
851
|
end
|
852
852
|
end
|
853
853
|
if match_TagLine(context, token)
|
@@ -915,13 +915,13 @@ module Gherkin
|
|
915
915
|
end
|
916
916
|
if match_TagLine(context, token)
|
917
917
|
if lookahead_0(context, token)
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
918
|
+
end_rule(context, :DataTable);
|
919
|
+
end_rule(context, :Step);
|
920
|
+
end_rule(context, :Background);
|
921
|
+
start_rule(context, :ScenarioDefinition);
|
922
|
+
start_rule(context, :Tags);
|
923
|
+
build(context, token);
|
924
|
+
return 11
|
925
925
|
end
|
926
926
|
end
|
927
927
|
if match_TagLine(context, token)
|
@@ -1022,20 +1022,20 @@ module Gherkin
|
|
1022
1022
|
end
|
1023
1023
|
if match_TagLine(context, token)
|
1024
1024
|
if lookahead_1(context, token)
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1025
|
+
start_rule(context, :ExamplesDefinition);
|
1026
|
+
start_rule(context, :Tags);
|
1027
|
+
build(context, token);
|
1028
|
+
return 17
|
1029
1029
|
end
|
1030
1030
|
end
|
1031
1031
|
if match_TagLine(context, token)
|
1032
1032
|
if lookahead_0(context, token)
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1033
|
+
end_rule(context, :Scenario);
|
1034
|
+
end_rule(context, :ScenarioDefinition);
|
1035
|
+
start_rule(context, :ScenarioDefinition);
|
1036
|
+
start_rule(context, :Tags);
|
1037
|
+
build(context, token);
|
1038
|
+
return 11
|
1039
1039
|
end
|
1040
1040
|
end
|
1041
1041
|
if match_TagLine(context, token)
|
@@ -1106,22 +1106,22 @@ module Gherkin
|
|
1106
1106
|
end
|
1107
1107
|
if match_TagLine(context, token)
|
1108
1108
|
if lookahead_1(context, token)
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1109
|
+
end_rule(context, :Description);
|
1110
|
+
start_rule(context, :ExamplesDefinition);
|
1111
|
+
start_rule(context, :Tags);
|
1112
|
+
build(context, token);
|
1113
|
+
return 17
|
1114
1114
|
end
|
1115
1115
|
end
|
1116
1116
|
if match_TagLine(context, token)
|
1117
1117
|
if lookahead_0(context, token)
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1118
|
+
end_rule(context, :Description);
|
1119
|
+
end_rule(context, :Scenario);
|
1120
|
+
end_rule(context, :ScenarioDefinition);
|
1121
|
+
start_rule(context, :ScenarioDefinition);
|
1122
|
+
start_rule(context, :Tags);
|
1123
|
+
build(context, token);
|
1124
|
+
return 11
|
1125
1125
|
end
|
1126
1126
|
end
|
1127
1127
|
if match_TagLine(context, token)
|
@@ -1192,20 +1192,20 @@ module Gherkin
|
|
1192
1192
|
end
|
1193
1193
|
if match_TagLine(context, token)
|
1194
1194
|
if lookahead_1(context, token)
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1195
|
+
start_rule(context, :ExamplesDefinition);
|
1196
|
+
start_rule(context, :Tags);
|
1197
|
+
build(context, token);
|
1198
|
+
return 17
|
1199
1199
|
end
|
1200
1200
|
end
|
1201
1201
|
if match_TagLine(context, token)
|
1202
1202
|
if lookahead_0(context, token)
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
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
1209
|
end
|
1210
1210
|
end
|
1211
1211
|
if match_TagLine(context, token)
|
@@ -1280,22 +1280,22 @@ module Gherkin
|
|
1280
1280
|
end
|
1281
1281
|
if match_TagLine(context, token)
|
1282
1282
|
if lookahead_1(context, token)
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1283
|
+
end_rule(context, :Step);
|
1284
|
+
start_rule(context, :ExamplesDefinition);
|
1285
|
+
start_rule(context, :Tags);
|
1286
|
+
build(context, token);
|
1287
|
+
return 17
|
1288
1288
|
end
|
1289
1289
|
end
|
1290
1290
|
if match_TagLine(context, token)
|
1291
1291
|
if lookahead_0(context, token)
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1292
|
+
end_rule(context, :Step);
|
1293
|
+
end_rule(context, :Scenario);
|
1294
|
+
end_rule(context, :ScenarioDefinition);
|
1295
|
+
start_rule(context, :ScenarioDefinition);
|
1296
|
+
start_rule(context, :Tags);
|
1297
|
+
build(context, token);
|
1298
|
+
return 11
|
1299
1299
|
end
|
1300
1300
|
end
|
1301
1301
|
if match_TagLine(context, token)
|
@@ -1374,24 +1374,24 @@ module Gherkin
|
|
1374
1374
|
end
|
1375
1375
|
if match_TagLine(context, token)
|
1376
1376
|
if lookahead_1(context, token)
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1377
|
+
end_rule(context, :DataTable);
|
1378
|
+
end_rule(context, :Step);
|
1379
|
+
start_rule(context, :ExamplesDefinition);
|
1380
|
+
start_rule(context, :Tags);
|
1381
|
+
build(context, token);
|
1382
|
+
return 17
|
1383
1383
|
end
|
1384
1384
|
end
|
1385
1385
|
if match_TagLine(context, token)
|
1386
1386
|
if lookahead_0(context, token)
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1387
|
+
end_rule(context, :DataTable);
|
1388
|
+
end_rule(context, :Step);
|
1389
|
+
end_rule(context, :Scenario);
|
1390
|
+
end_rule(context, :ScenarioDefinition);
|
1391
|
+
start_rule(context, :ScenarioDefinition);
|
1392
|
+
start_rule(context, :Tags);
|
1393
|
+
build(context, token);
|
1394
|
+
return 11
|
1395
1395
|
end
|
1396
1396
|
end
|
1397
1397
|
if match_TagLine(context, token)
|
@@ -1505,24 +1505,24 @@ module Gherkin
|
|
1505
1505
|
end
|
1506
1506
|
if match_TagLine(context, token)
|
1507
1507
|
if lookahead_1(context, token)
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1508
|
+
end_rule(context, :Examples);
|
1509
|
+
end_rule(context, :ExamplesDefinition);
|
1510
|
+
start_rule(context, :ExamplesDefinition);
|
1511
|
+
start_rule(context, :Tags);
|
1512
|
+
build(context, token);
|
1513
|
+
return 17
|
1514
1514
|
end
|
1515
1515
|
end
|
1516
1516
|
if match_TagLine(context, token)
|
1517
1517
|
if lookahead_0(context, token)
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1518
|
+
end_rule(context, :Examples);
|
1519
|
+
end_rule(context, :ExamplesDefinition);
|
1520
|
+
end_rule(context, :Scenario);
|
1521
|
+
end_rule(context, :ScenarioDefinition);
|
1522
|
+
start_rule(context, :ScenarioDefinition);
|
1523
|
+
start_rule(context, :Tags);
|
1524
|
+
build(context, token);
|
1525
|
+
return 11
|
1526
1526
|
end
|
1527
1527
|
end
|
1528
1528
|
if match_TagLine(context, token)
|
@@ -1603,26 +1603,26 @@ module Gherkin
|
|
1603
1603
|
end
|
1604
1604
|
if match_TagLine(context, token)
|
1605
1605
|
if lookahead_1(context, token)
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1606
|
+
end_rule(context, :Description);
|
1607
|
+
end_rule(context, :Examples);
|
1608
|
+
end_rule(context, :ExamplesDefinition);
|
1609
|
+
start_rule(context, :ExamplesDefinition);
|
1610
|
+
start_rule(context, :Tags);
|
1611
|
+
build(context, token);
|
1612
|
+
return 17
|
1613
1613
|
end
|
1614
1614
|
end
|
1615
1615
|
if match_TagLine(context, token)
|
1616
1616
|
if lookahead_0(context, token)
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1617
|
+
end_rule(context, :Description);
|
1618
|
+
end_rule(context, :Examples);
|
1619
|
+
end_rule(context, :ExamplesDefinition);
|
1620
|
+
end_rule(context, :Scenario);
|
1621
|
+
end_rule(context, :ScenarioDefinition);
|
1622
|
+
start_rule(context, :ScenarioDefinition);
|
1623
|
+
start_rule(context, :Tags);
|
1624
|
+
build(context, token);
|
1625
|
+
return 11
|
1626
1626
|
end
|
1627
1627
|
end
|
1628
1628
|
if match_TagLine(context, token)
|
@@ -1703,24 +1703,24 @@ module Gherkin
|
|
1703
1703
|
end
|
1704
1704
|
if match_TagLine(context, token)
|
1705
1705
|
if lookahead_1(context, token)
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
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
1712
|
end
|
1713
1713
|
end
|
1714
1714
|
if match_TagLine(context, token)
|
1715
1715
|
if lookahead_0(context, token)
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
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
1724
|
end
|
1725
1725
|
end
|
1726
1726
|
if match_TagLine(context, token)
|
@@ -1793,26 +1793,26 @@ module Gherkin
|
|
1793
1793
|
end
|
1794
1794
|
if match_TagLine(context, token)
|
1795
1795
|
if lookahead_1(context, token)
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1796
|
+
end_rule(context, :ExamplesTable);
|
1797
|
+
end_rule(context, :Examples);
|
1798
|
+
end_rule(context, :ExamplesDefinition);
|
1799
|
+
start_rule(context, :ExamplesDefinition);
|
1800
|
+
start_rule(context, :Tags);
|
1801
|
+
build(context, token);
|
1802
|
+
return 17
|
1803
1803
|
end
|
1804
1804
|
end
|
1805
1805
|
if match_TagLine(context, token)
|
1806
1806
|
if lookahead_0(context, token)
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1807
|
+
end_rule(context, :ExamplesTable);
|
1808
|
+
end_rule(context, :Examples);
|
1809
|
+
end_rule(context, :ExamplesDefinition);
|
1810
|
+
end_rule(context, :Scenario);
|
1811
|
+
end_rule(context, :ScenarioDefinition);
|
1812
|
+
start_rule(context, :ScenarioDefinition);
|
1813
|
+
start_rule(context, :Tags);
|
1814
|
+
build(context, token);
|
1815
|
+
return 11
|
1816
1816
|
end
|
1817
1817
|
end
|
1818
1818
|
if match_TagLine(context, token)
|
@@ -1928,11 +1928,11 @@ module Gherkin
|
|
1928
1928
|
end
|
1929
1929
|
if match_TagLine(context, token)
|
1930
1930
|
if lookahead_0(context, token)
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1931
|
+
end_rule(context, :RuleHeader);
|
1932
|
+
start_rule(context, :ScenarioDefinition);
|
1933
|
+
start_rule(context, :Tags);
|
1934
|
+
build(context, token);
|
1935
|
+
return 31
|
1936
1936
|
end
|
1937
1937
|
end
|
1938
1938
|
if match_TagLine(context, token)
|
@@ -1997,12 +1997,12 @@ module Gherkin
|
|
1997
1997
|
end
|
1998
1998
|
if match_TagLine(context, token)
|
1999
1999
|
if lookahead_0(context, token)
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2000
|
+
end_rule(context, :Description);
|
2001
|
+
end_rule(context, :RuleHeader);
|
2002
|
+
start_rule(context, :ScenarioDefinition);
|
2003
|
+
start_rule(context, :Tags);
|
2004
|
+
build(context, token);
|
2005
|
+
return 31
|
2006
2006
|
end
|
2007
2007
|
end
|
2008
2008
|
if match_TagLine(context, token)
|
@@ -2066,11 +2066,11 @@ module Gherkin
|
|
2066
2066
|
end
|
2067
2067
|
if match_TagLine(context, token)
|
2068
2068
|
if lookahead_0(context, token)
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2069
|
+
end_rule(context, :RuleHeader);
|
2070
|
+
start_rule(context, :ScenarioDefinition);
|
2071
|
+
start_rule(context, :Tags);
|
2072
|
+
build(context, token);
|
2073
|
+
return 31
|
2074
2074
|
end
|
2075
2075
|
end
|
2076
2076
|
if match_TagLine(context, token)
|
@@ -2134,11 +2134,11 @@ module Gherkin
|
|
2134
2134
|
end
|
2135
2135
|
if match_TagLine(context, token)
|
2136
2136
|
if lookahead_0(context, token)
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
2141
|
-
|
2137
|
+
end_rule(context, :Background);
|
2138
|
+
start_rule(context, :ScenarioDefinition);
|
2139
|
+
start_rule(context, :Tags);
|
2140
|
+
build(context, token);
|
2141
|
+
return 31
|
2142
2142
|
end
|
2143
2143
|
end
|
2144
2144
|
if match_TagLine(context, token)
|
@@ -2202,12 +2202,12 @@ module Gherkin
|
|
2202
2202
|
end
|
2203
2203
|
if match_TagLine(context, token)
|
2204
2204
|
if lookahead_0(context, token)
|
2205
|
-
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2205
|
+
end_rule(context, :Description);
|
2206
|
+
end_rule(context, :Background);
|
2207
|
+
start_rule(context, :ScenarioDefinition);
|
2208
|
+
start_rule(context, :Tags);
|
2209
|
+
build(context, token);
|
2210
|
+
return 31
|
2211
2211
|
end
|
2212
2212
|
end
|
2213
2213
|
if match_TagLine(context, token)
|
@@ -2270,11 +2270,11 @@ module Gherkin
|
|
2270
2270
|
end
|
2271
2271
|
if match_TagLine(context, token)
|
2272
2272
|
if lookahead_0(context, token)
|
2273
|
-
|
2274
|
-
|
2275
|
-
|
2276
|
-
|
2277
|
-
|
2273
|
+
end_rule(context, :Background);
|
2274
|
+
start_rule(context, :ScenarioDefinition);
|
2275
|
+
start_rule(context, :Tags);
|
2276
|
+
build(context, token);
|
2277
|
+
return 31
|
2278
2278
|
end
|
2279
2279
|
end
|
2280
2280
|
if match_TagLine(context, token)
|
@@ -2342,12 +2342,12 @@ module Gherkin
|
|
2342
2342
|
end
|
2343
2343
|
if match_TagLine(context, token)
|
2344
2344
|
if lookahead_0(context, token)
|
2345
|
-
|
2346
|
-
|
2347
|
-
|
2348
|
-
|
2349
|
-
|
2350
|
-
|
2345
|
+
end_rule(context, :Step);
|
2346
|
+
end_rule(context, :Background);
|
2347
|
+
start_rule(context, :ScenarioDefinition);
|
2348
|
+
start_rule(context, :Tags);
|
2349
|
+
build(context, token);
|
2350
|
+
return 31
|
2351
2351
|
end
|
2352
2352
|
end
|
2353
2353
|
if match_TagLine(context, token)
|
@@ -2418,13 +2418,13 @@ module Gherkin
|
|
2418
2418
|
end
|
2419
2419
|
if match_TagLine(context, token)
|
2420
2420
|
if lookahead_0(context, token)
|
2421
|
-
|
2422
|
-
|
2423
|
-
|
2424
|
-
|
2425
|
-
|
2426
|
-
|
2427
|
-
|
2421
|
+
end_rule(context, :DataTable);
|
2422
|
+
end_rule(context, :Step);
|
2423
|
+
end_rule(context, :Background);
|
2424
|
+
start_rule(context, :ScenarioDefinition);
|
2425
|
+
start_rule(context, :Tags);
|
2426
|
+
build(context, token);
|
2427
|
+
return 31
|
2428
2428
|
end
|
2429
2429
|
end
|
2430
2430
|
if match_TagLine(context, token)
|
@@ -2528,20 +2528,20 @@ module Gherkin
|
|
2528
2528
|
end
|
2529
2529
|
if match_TagLine(context, token)
|
2530
2530
|
if lookahead_1(context, token)
|
2531
|
-
|
2532
|
-
|
2533
|
-
|
2534
|
-
|
2531
|
+
start_rule(context, :ExamplesDefinition);
|
2532
|
+
start_rule(context, :Tags);
|
2533
|
+
build(context, token);
|
2534
|
+
return 37
|
2535
2535
|
end
|
2536
2536
|
end
|
2537
2537
|
if match_TagLine(context, token)
|
2538
2538
|
if lookahead_0(context, token)
|
2539
|
-
|
2540
|
-
|
2541
|
-
|
2542
|
-
|
2543
|
-
|
2544
|
-
|
2539
|
+
end_rule(context, :Scenario);
|
2540
|
+
end_rule(context, :ScenarioDefinition);
|
2541
|
+
start_rule(context, :ScenarioDefinition);
|
2542
|
+
start_rule(context, :Tags);
|
2543
|
+
build(context, token);
|
2544
|
+
return 31
|
2545
2545
|
end
|
2546
2546
|
end
|
2547
2547
|
if match_TagLine(context, token)
|
@@ -2615,22 +2615,22 @@ module Gherkin
|
|
2615
2615
|
end
|
2616
2616
|
if match_TagLine(context, token)
|
2617
2617
|
if lookahead_1(context, token)
|
2618
|
-
|
2619
|
-
|
2620
|
-
|
2621
|
-
|
2622
|
-
|
2618
|
+
end_rule(context, :Description);
|
2619
|
+
start_rule(context, :ExamplesDefinition);
|
2620
|
+
start_rule(context, :Tags);
|
2621
|
+
build(context, token);
|
2622
|
+
return 37
|
2623
2623
|
end
|
2624
2624
|
end
|
2625
2625
|
if match_TagLine(context, token)
|
2626
2626
|
if lookahead_0(context, token)
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2627
|
+
end_rule(context, :Description);
|
2628
|
+
end_rule(context, :Scenario);
|
2629
|
+
end_rule(context, :ScenarioDefinition);
|
2630
|
+
start_rule(context, :ScenarioDefinition);
|
2631
|
+
start_rule(context, :Tags);
|
2632
|
+
build(context, token);
|
2633
|
+
return 31
|
2634
2634
|
end
|
2635
2635
|
end
|
2636
2636
|
if match_TagLine(context, token)
|
@@ -2704,20 +2704,20 @@ module Gherkin
|
|
2704
2704
|
end
|
2705
2705
|
if match_TagLine(context, token)
|
2706
2706
|
if lookahead_1(context, token)
|
2707
|
-
|
2708
|
-
|
2709
|
-
|
2710
|
-
|
2707
|
+
start_rule(context, :ExamplesDefinition);
|
2708
|
+
start_rule(context, :Tags);
|
2709
|
+
build(context, token);
|
2710
|
+
return 37
|
2711
2711
|
end
|
2712
2712
|
end
|
2713
2713
|
if match_TagLine(context, token)
|
2714
2714
|
if lookahead_0(context, token)
|
2715
|
-
|
2716
|
-
|
2717
|
-
|
2718
|
-
|
2719
|
-
|
2720
|
-
|
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
2721
|
end
|
2722
2722
|
end
|
2723
2723
|
if match_TagLine(context, token)
|
@@ -2795,22 +2795,22 @@ module Gherkin
|
|
2795
2795
|
end
|
2796
2796
|
if match_TagLine(context, token)
|
2797
2797
|
if lookahead_1(context, token)
|
2798
|
-
|
2799
|
-
|
2800
|
-
|
2801
|
-
|
2802
|
-
|
2798
|
+
end_rule(context, :Step);
|
2799
|
+
start_rule(context, :ExamplesDefinition);
|
2800
|
+
start_rule(context, :Tags);
|
2801
|
+
build(context, token);
|
2802
|
+
return 37
|
2803
2803
|
end
|
2804
2804
|
end
|
2805
2805
|
if match_TagLine(context, token)
|
2806
2806
|
if lookahead_0(context, token)
|
2807
|
-
|
2808
|
-
|
2809
|
-
|
2810
|
-
|
2811
|
-
|
2812
|
-
|
2813
|
-
|
2807
|
+
end_rule(context, :Step);
|
2808
|
+
end_rule(context, :Scenario);
|
2809
|
+
end_rule(context, :ScenarioDefinition);
|
2810
|
+
start_rule(context, :ScenarioDefinition);
|
2811
|
+
start_rule(context, :Tags);
|
2812
|
+
build(context, token);
|
2813
|
+
return 31
|
2814
2814
|
end
|
2815
2815
|
end
|
2816
2816
|
if match_TagLine(context, token)
|
@@ -2892,24 +2892,24 @@ module Gherkin
|
|
2892
2892
|
end
|
2893
2893
|
if match_TagLine(context, token)
|
2894
2894
|
if lookahead_1(context, token)
|
2895
|
-
|
2896
|
-
|
2897
|
-
|
2898
|
-
|
2899
|
-
|
2900
|
-
|
2895
|
+
end_rule(context, :DataTable);
|
2896
|
+
end_rule(context, :Step);
|
2897
|
+
start_rule(context, :ExamplesDefinition);
|
2898
|
+
start_rule(context, :Tags);
|
2899
|
+
build(context, token);
|
2900
|
+
return 37
|
2901
2901
|
end
|
2902
2902
|
end
|
2903
2903
|
if match_TagLine(context, token)
|
2904
2904
|
if lookahead_0(context, token)
|
2905
|
-
|
2906
|
-
|
2907
|
-
|
2908
|
-
|
2909
|
-
|
2910
|
-
|
2911
|
-
|
2912
|
-
|
2905
|
+
end_rule(context, :DataTable);
|
2906
|
+
end_rule(context, :Step);
|
2907
|
+
end_rule(context, :Scenario);
|
2908
|
+
end_rule(context, :ScenarioDefinition);
|
2909
|
+
start_rule(context, :ScenarioDefinition);
|
2910
|
+
start_rule(context, :Tags);
|
2911
|
+
build(context, token);
|
2912
|
+
return 31
|
2913
2913
|
end
|
2914
2914
|
end
|
2915
2915
|
if match_TagLine(context, token)
|
@@ -3026,24 +3026,24 @@ module Gherkin
|
|
3026
3026
|
end
|
3027
3027
|
if match_TagLine(context, token)
|
3028
3028
|
if lookahead_1(context, token)
|
3029
|
-
|
3030
|
-
|
3031
|
-
|
3032
|
-
|
3033
|
-
|
3034
|
-
|
3029
|
+
end_rule(context, :Examples);
|
3030
|
+
end_rule(context, :ExamplesDefinition);
|
3031
|
+
start_rule(context, :ExamplesDefinition);
|
3032
|
+
start_rule(context, :Tags);
|
3033
|
+
build(context, token);
|
3034
|
+
return 37
|
3035
3035
|
end
|
3036
3036
|
end
|
3037
3037
|
if match_TagLine(context, token)
|
3038
3038
|
if lookahead_0(context, token)
|
3039
|
-
|
3040
|
-
|
3041
|
-
|
3042
|
-
|
3043
|
-
|
3044
|
-
|
3045
|
-
|
3046
|
-
|
3039
|
+
end_rule(context, :Examples);
|
3040
|
+
end_rule(context, :ExamplesDefinition);
|
3041
|
+
end_rule(context, :Scenario);
|
3042
|
+
end_rule(context, :ScenarioDefinition);
|
3043
|
+
start_rule(context, :ScenarioDefinition);
|
3044
|
+
start_rule(context, :Tags);
|
3045
|
+
build(context, token);
|
3046
|
+
return 31
|
3047
3047
|
end
|
3048
3048
|
end
|
3049
3049
|
if match_TagLine(context, token)
|
@@ -3127,26 +3127,26 @@ module Gherkin
|
|
3127
3127
|
end
|
3128
3128
|
if match_TagLine(context, token)
|
3129
3129
|
if lookahead_1(context, token)
|
3130
|
-
|
3131
|
-
|
3132
|
-
|
3133
|
-
|
3134
|
-
|
3135
|
-
|
3136
|
-
|
3130
|
+
end_rule(context, :Description);
|
3131
|
+
end_rule(context, :Examples);
|
3132
|
+
end_rule(context, :ExamplesDefinition);
|
3133
|
+
start_rule(context, :ExamplesDefinition);
|
3134
|
+
start_rule(context, :Tags);
|
3135
|
+
build(context, token);
|
3136
|
+
return 37
|
3137
3137
|
end
|
3138
3138
|
end
|
3139
3139
|
if match_TagLine(context, token)
|
3140
3140
|
if lookahead_0(context, token)
|
3141
|
-
|
3142
|
-
|
3143
|
-
|
3144
|
-
|
3145
|
-
|
3146
|
-
|
3147
|
-
|
3148
|
-
|
3149
|
-
|
3141
|
+
end_rule(context, :Description);
|
3142
|
+
end_rule(context, :Examples);
|
3143
|
+
end_rule(context, :ExamplesDefinition);
|
3144
|
+
end_rule(context, :Scenario);
|
3145
|
+
end_rule(context, :ScenarioDefinition);
|
3146
|
+
start_rule(context, :ScenarioDefinition);
|
3147
|
+
start_rule(context, :Tags);
|
3148
|
+
build(context, token);
|
3149
|
+
return 31
|
3150
3150
|
end
|
3151
3151
|
end
|
3152
3152
|
if match_TagLine(context, token)
|
@@ -3230,24 +3230,24 @@ module Gherkin
|
|
3230
3230
|
end
|
3231
3231
|
if match_TagLine(context, token)
|
3232
3232
|
if lookahead_1(context, token)
|
3233
|
-
|
3234
|
-
|
3235
|
-
|
3236
|
-
|
3237
|
-
|
3238
|
-
|
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
3239
|
end
|
3240
3240
|
end
|
3241
3241
|
if match_TagLine(context, token)
|
3242
3242
|
if lookahead_0(context, token)
|
3243
|
-
|
3244
|
-
|
3245
|
-
|
3246
|
-
|
3247
|
-
|
3248
|
-
|
3249
|
-
|
3250
|
-
|
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
3251
|
end
|
3252
3252
|
end
|
3253
3253
|
if match_TagLine(context, token)
|
@@ -3323,26 +3323,26 @@ module Gherkin
|
|
3323
3323
|
end
|
3324
3324
|
if match_TagLine(context, token)
|
3325
3325
|
if lookahead_1(context, token)
|
3326
|
-
|
3327
|
-
|
3328
|
-
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3332
|
-
|
3326
|
+
end_rule(context, :ExamplesTable);
|
3327
|
+
end_rule(context, :Examples);
|
3328
|
+
end_rule(context, :ExamplesDefinition);
|
3329
|
+
start_rule(context, :ExamplesDefinition);
|
3330
|
+
start_rule(context, :Tags);
|
3331
|
+
build(context, token);
|
3332
|
+
return 37
|
3333
3333
|
end
|
3334
3334
|
end
|
3335
3335
|
if match_TagLine(context, token)
|
3336
3336
|
if lookahead_0(context, token)
|
3337
|
-
|
3338
|
-
|
3339
|
-
|
3340
|
-
|
3341
|
-
|
3342
|
-
|
3343
|
-
|
3344
|
-
|
3345
|
-
|
3337
|
+
end_rule(context, :ExamplesTable);
|
3338
|
+
end_rule(context, :Examples);
|
3339
|
+
end_rule(context, :ExamplesDefinition);
|
3340
|
+
end_rule(context, :Scenario);
|
3341
|
+
end_rule(context, :ScenarioDefinition);
|
3342
|
+
start_rule(context, :ScenarioDefinition);
|
3343
|
+
start_rule(context, :Tags);
|
3344
|
+
build(context, token);
|
3345
|
+
return 31
|
3346
3346
|
end
|
3347
3347
|
end
|
3348
3348
|
if match_TagLine(context, token)
|
@@ -3447,24 +3447,24 @@ module Gherkin
|
|
3447
3447
|
end
|
3448
3448
|
if match_TagLine(context, token)
|
3449
3449
|
if lookahead_1(context, token)
|
3450
|
-
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3455
|
-
|
3450
|
+
end_rule(context, :DocString);
|
3451
|
+
end_rule(context, :Step);
|
3452
|
+
start_rule(context, :ExamplesDefinition);
|
3453
|
+
start_rule(context, :Tags);
|
3454
|
+
build(context, token);
|
3455
|
+
return 37
|
3456
3456
|
end
|
3457
3457
|
end
|
3458
3458
|
if match_TagLine(context, token)
|
3459
3459
|
if lookahead_0(context, token)
|
3460
|
-
|
3461
|
-
|
3462
|
-
|
3463
|
-
|
3464
|
-
|
3465
|
-
|
3466
|
-
|
3467
|
-
|
3460
|
+
end_rule(context, :DocString);
|
3461
|
+
end_rule(context, :Step);
|
3462
|
+
end_rule(context, :Scenario);
|
3463
|
+
end_rule(context, :ScenarioDefinition);
|
3464
|
+
start_rule(context, :ScenarioDefinition);
|
3465
|
+
start_rule(context, :Tags);
|
3466
|
+
build(context, token);
|
3467
|
+
return 31
|
3468
3468
|
end
|
3469
3469
|
end
|
3470
3470
|
if match_TagLine(context, token)
|
@@ -3564,13 +3564,13 @@ module Gherkin
|
|
3564
3564
|
end
|
3565
3565
|
if match_TagLine(context, token)
|
3566
3566
|
if lookahead_0(context, token)
|
3567
|
-
|
3568
|
-
|
3569
|
-
|
3570
|
-
|
3571
|
-
|
3572
|
-
|
3573
|
-
|
3567
|
+
end_rule(context, :DocString);
|
3568
|
+
end_rule(context, :Step);
|
3569
|
+
end_rule(context, :Background);
|
3570
|
+
start_rule(context, :ScenarioDefinition);
|
3571
|
+
start_rule(context, :Tags);
|
3572
|
+
build(context, token);
|
3573
|
+
return 31
|
3574
3574
|
end
|
3575
3575
|
end
|
3576
3576
|
if match_TagLine(context, token)
|
@@ -3659,24 +3659,24 @@ module Gherkin
|
|
3659
3659
|
end
|
3660
3660
|
if match_TagLine(context, token)
|
3661
3661
|
if lookahead_1(context, token)
|
3662
|
-
|
3663
|
-
|
3664
|
-
|
3665
|
-
|
3666
|
-
|
3667
|
-
|
3662
|
+
end_rule(context, :DocString);
|
3663
|
+
end_rule(context, :Step);
|
3664
|
+
start_rule(context, :ExamplesDefinition);
|
3665
|
+
start_rule(context, :Tags);
|
3666
|
+
build(context, token);
|
3667
|
+
return 17
|
3668
3668
|
end
|
3669
3669
|
end
|
3670
3670
|
if match_TagLine(context, token)
|
3671
3671
|
if lookahead_0(context, token)
|
3672
|
-
|
3673
|
-
|
3674
|
-
|
3675
|
-
|
3676
|
-
|
3677
|
-
|
3678
|
-
|
3679
|
-
|
3672
|
+
end_rule(context, :DocString);
|
3673
|
+
end_rule(context, :Step);
|
3674
|
+
end_rule(context, :Scenario);
|
3675
|
+
end_rule(context, :ScenarioDefinition);
|
3676
|
+
start_rule(context, :ScenarioDefinition);
|
3677
|
+
start_rule(context, :Tags);
|
3678
|
+
build(context, token);
|
3679
|
+
return 11
|
3680
3680
|
end
|
3681
3681
|
end
|
3682
3682
|
if match_TagLine(context, token)
|
@@ -3773,13 +3773,13 @@ module Gherkin
|
|
3773
3773
|
end
|
3774
3774
|
if match_TagLine(context, token)
|
3775
3775
|
if lookahead_0(context, token)
|
3776
|
-
|
3777
|
-
|
3778
|
-
|
3779
|
-
|
3780
|
-
|
3781
|
-
|
3782
|
-
|
3776
|
+
end_rule(context, :DocString);
|
3777
|
+
end_rule(context, :Step);
|
3778
|
+
end_rule(context, :Background);
|
3779
|
+
start_rule(context, :ScenarioDefinition);
|
3780
|
+
start_rule(context, :Tags);
|
3781
|
+
build(context, token);
|
3782
|
+
return 11
|
3783
3783
|
end
|
3784
3784
|
end
|
3785
3785
|
if match_TagLine(context, token)
|
@@ -3850,7 +3850,7 @@ module Gherkin
|
|
3850
3850
|
|
3851
3851
|
return match
|
3852
3852
|
end
|
3853
|
-
|
3853
|
+
|
3854
3854
|
def lookahead_1(context, currentToken)
|
3855
3855
|
currentToken.detach
|
3856
3856
|
token = nil
|
@@ -3873,7 +3873,7 @@ module Gherkin
|
|
3873
3873
|
|
3874
3874
|
return match
|
3875
3875
|
end
|
3876
|
-
|
3876
|
+
|
3877
3877
|
private
|
3878
3878
|
|
3879
3879
|
def handle_ast_error(context, &action)
|