cucumber-gherkin 30.0.0 → 30.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/gherkin +1 -0
- data/bin/gherkin-ruby +2 -0
- data/lib/gherkin/ast_builder.rb +5 -4
- data/lib/gherkin/ast_node.rb +2 -0
- data/lib/gherkin/dialect.rb +2 -0
- data/lib/gherkin/errors.rb +4 -2
- data/lib/gherkin/gherkin_line.rb +4 -2
- data/lib/gherkin/parser.rb +162 -162
- data/lib/gherkin/pickles/compiler.rb +17 -7
- data/lib/gherkin/query.rb +2 -0
- data/lib/gherkin/stream/parser_message_stream.rb +2 -0
- data/lib/gherkin/token.rb +2 -0
- data/lib/gherkin/token_formatter_builder.rb +9 -3
- data/lib/gherkin/token_matcher.rb +10 -7
- data/lib/gherkin/token_scanner.rb +6 -2
- data/lib/gherkin.rb +2 -0
- metadata +4 -4
data/lib/gherkin/parser.rb
CHANGED
@@ -219,105 +219,105 @@ module Gherkin
|
|
219
219
|
def match_token(state, token, context)
|
220
220
|
case state
|
221
221
|
when 0
|
222
|
-
|
222
|
+
match_token_at_state0(token, context)
|
223
223
|
when 1
|
224
|
-
|
224
|
+
match_token_at_state1(token, context)
|
225
225
|
when 2
|
226
|
-
|
226
|
+
match_token_at_state2(token, context)
|
227
227
|
when 3
|
228
|
-
|
228
|
+
match_token_at_state3(token, context)
|
229
229
|
when 4
|
230
|
-
|
230
|
+
match_token_at_state4(token, context)
|
231
231
|
when 5
|
232
|
-
|
232
|
+
match_token_at_state5(token, context)
|
233
233
|
when 6
|
234
|
-
|
234
|
+
match_token_at_state6(token, context)
|
235
235
|
when 7
|
236
|
-
|
236
|
+
match_token_at_state7(token, context)
|
237
237
|
when 8
|
238
|
-
|
238
|
+
match_token_at_state8(token, context)
|
239
239
|
when 9
|
240
|
-
|
240
|
+
match_token_at_state9(token, context)
|
241
241
|
when 10
|
242
|
-
|
242
|
+
match_token_at_state10(token, context)
|
243
243
|
when 11
|
244
|
-
|
244
|
+
match_token_at_state11(token, context)
|
245
245
|
when 12
|
246
|
-
|
246
|
+
match_token_at_state12(token, context)
|
247
247
|
when 13
|
248
|
-
|
248
|
+
match_token_at_state13(token, context)
|
249
249
|
when 14
|
250
|
-
|
250
|
+
match_token_at_state14(token, context)
|
251
251
|
when 15
|
252
|
-
|
252
|
+
match_token_at_state15(token, context)
|
253
253
|
when 16
|
254
|
-
|
254
|
+
match_token_at_state16(token, context)
|
255
255
|
when 17
|
256
|
-
|
256
|
+
match_token_at_state17(token, context)
|
257
257
|
when 18
|
258
|
-
|
258
|
+
match_token_at_state18(token, context)
|
259
259
|
when 19
|
260
|
-
|
260
|
+
match_token_at_state19(token, context)
|
261
261
|
when 20
|
262
|
-
|
262
|
+
match_token_at_state20(token, context)
|
263
263
|
when 21
|
264
|
-
|
264
|
+
match_token_at_state21(token, context)
|
265
265
|
when 22
|
266
|
-
|
266
|
+
match_token_at_state22(token, context)
|
267
267
|
when 23
|
268
|
-
|
268
|
+
match_token_at_state23(token, context)
|
269
269
|
when 24
|
270
|
-
|
270
|
+
match_token_at_state24(token, context)
|
271
271
|
when 25
|
272
|
-
|
272
|
+
match_token_at_state25(token, context)
|
273
273
|
when 26
|
274
|
-
|
274
|
+
match_token_at_state26(token, context)
|
275
275
|
when 27
|
276
|
-
|
276
|
+
match_token_at_state27(token, context)
|
277
277
|
when 28
|
278
|
-
|
278
|
+
match_token_at_state28(token, context)
|
279
279
|
when 29
|
280
|
-
|
280
|
+
match_token_at_state29(token, context)
|
281
281
|
when 30
|
282
|
-
|
282
|
+
match_token_at_state30(token, context)
|
283
283
|
when 31
|
284
|
-
|
284
|
+
match_token_at_state31(token, context)
|
285
285
|
when 32
|
286
|
-
|
286
|
+
match_token_at_state32(token, context)
|
287
287
|
when 33
|
288
|
-
|
288
|
+
match_token_at_state33(token, context)
|
289
289
|
when 34
|
290
|
-
|
290
|
+
match_token_at_state34(token, context)
|
291
291
|
when 35
|
292
|
-
|
292
|
+
match_token_at_state35(token, context)
|
293
293
|
when 36
|
294
|
-
|
294
|
+
match_token_at_state36(token, context)
|
295
295
|
when 37
|
296
|
-
|
296
|
+
match_token_at_state37(token, context)
|
297
297
|
when 38
|
298
|
-
|
298
|
+
match_token_at_state38(token, context)
|
299
299
|
when 39
|
300
|
-
|
300
|
+
match_token_at_state39(token, context)
|
301
301
|
when 40
|
302
|
-
|
302
|
+
match_token_at_state40(token, context)
|
303
303
|
when 41
|
304
|
-
|
304
|
+
match_token_at_state41(token, context)
|
305
305
|
when 43
|
306
|
-
|
306
|
+
match_token_at_state43(token, context)
|
307
307
|
when 44
|
308
|
-
|
308
|
+
match_token_at_state44(token, context)
|
309
309
|
when 45
|
310
|
-
|
310
|
+
match_token_at_state45(token, context)
|
311
311
|
when 46
|
312
|
-
|
312
|
+
match_token_at_state46(token, context)
|
313
313
|
when 47
|
314
|
-
|
314
|
+
match_token_at_state47(token, context)
|
315
315
|
when 48
|
316
|
-
|
316
|
+
match_token_at_state48(token, context)
|
317
317
|
when 49
|
318
|
-
|
318
|
+
match_token_at_state49(token, context)
|
319
319
|
when 50
|
320
|
-
|
320
|
+
match_token_at_state50(token, context)
|
321
321
|
else
|
322
322
|
raise InvalidOperationException, "Unknown state: #{state}"
|
323
323
|
end
|
@@ -325,7 +325,7 @@ module Gherkin
|
|
325
325
|
|
326
326
|
|
327
327
|
# Start
|
328
|
-
def
|
328
|
+
def match_token_at_state0(token, context)
|
329
329
|
if match_EOF(context, token)
|
330
330
|
build(context, token);
|
331
331
|
return 42
|
@@ -367,7 +367,7 @@ module Gherkin
|
|
367
367
|
return 0
|
368
368
|
end
|
369
369
|
# GherkinDocument:0>Feature:0>FeatureHeader:0>#Language:0
|
370
|
-
def
|
370
|
+
def match_token_at_state1(token, context)
|
371
371
|
if match_TagLine(context, token)
|
372
372
|
start_rule(context, :Tags);
|
373
373
|
build(context, token);
|
@@ -395,7 +395,7 @@ module Gherkin
|
|
395
395
|
return 1
|
396
396
|
end
|
397
397
|
# GherkinDocument:0>Feature:0>FeatureHeader:1>Tags:0>#TagLine:0
|
398
|
-
def
|
398
|
+
def match_token_at_state2(token, context)
|
399
399
|
if match_TagLine(context, token)
|
400
400
|
build(context, token);
|
401
401
|
return 2
|
@@ -423,7 +423,7 @@ module Gherkin
|
|
423
423
|
return 2
|
424
424
|
end
|
425
425
|
# GherkinDocument:0>Feature:0>FeatureHeader:2>#FeatureLine:0
|
426
|
-
def
|
426
|
+
def match_token_at_state3(token, context)
|
427
427
|
if match_EOF(context, token)
|
428
428
|
end_rule(context, :FeatureHeader);
|
429
429
|
end_rule(context, :Feature);
|
@@ -445,7 +445,7 @@ module Gherkin
|
|
445
445
|
return 6
|
446
446
|
end
|
447
447
|
if match_TagLine(context, token)
|
448
|
-
if
|
448
|
+
if lookahead0(context, token)
|
449
449
|
end_rule(context, :FeatureHeader);
|
450
450
|
start_rule(context, :ScenarioDefinition);
|
451
451
|
start_rule(context, :Tags);
|
@@ -490,7 +490,7 @@ module Gherkin
|
|
490
490
|
return 3
|
491
491
|
end
|
492
492
|
# GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0
|
493
|
-
def
|
493
|
+
def match_token_at_state4(token, context)
|
494
494
|
if match_EOF(context, token)
|
495
495
|
end_rule(context, :Description);
|
496
496
|
end_rule(context, :FeatureHeader);
|
@@ -511,7 +511,7 @@ module Gherkin
|
|
511
511
|
return 6
|
512
512
|
end
|
513
513
|
if match_TagLine(context, token)
|
514
|
-
if
|
514
|
+
if lookahead0(context, token)
|
515
515
|
end_rule(context, :Description);
|
516
516
|
end_rule(context, :FeatureHeader);
|
517
517
|
start_rule(context, :ScenarioDefinition);
|
@@ -559,7 +559,7 @@ module Gherkin
|
|
559
559
|
return 4
|
560
560
|
end
|
561
561
|
# GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0
|
562
|
-
def
|
562
|
+
def match_token_at_state5(token, context)
|
563
563
|
if match_EOF(context, token)
|
564
564
|
end_rule(context, :FeatureHeader);
|
565
565
|
end_rule(context, :Feature);
|
@@ -577,7 +577,7 @@ module Gherkin
|
|
577
577
|
return 6
|
578
578
|
end
|
579
579
|
if match_TagLine(context, token)
|
580
|
-
if
|
580
|
+
if lookahead0(context, token)
|
581
581
|
end_rule(context, :FeatureHeader);
|
582
582
|
start_rule(context, :ScenarioDefinition);
|
583
583
|
start_rule(context, :Tags);
|
@@ -621,7 +621,7 @@ module Gherkin
|
|
621
621
|
return 5
|
622
622
|
end
|
623
623
|
# GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0
|
624
|
-
def
|
624
|
+
def match_token_at_state6(token, context)
|
625
625
|
if match_EOF(context, token)
|
626
626
|
end_rule(context, :Background);
|
627
627
|
end_rule(context, :Feature);
|
@@ -642,7 +642,7 @@ module Gherkin
|
|
642
642
|
return 9
|
643
643
|
end
|
644
644
|
if match_TagLine(context, token)
|
645
|
-
if
|
645
|
+
if lookahead0(context, token)
|
646
646
|
end_rule(context, :Background);
|
647
647
|
start_rule(context, :ScenarioDefinition);
|
648
648
|
start_rule(context, :Tags);
|
@@ -687,7 +687,7 @@ module Gherkin
|
|
687
687
|
return 6
|
688
688
|
end
|
689
689
|
# GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0
|
690
|
-
def
|
690
|
+
def match_token_at_state7(token, context)
|
691
691
|
if match_EOF(context, token)
|
692
692
|
end_rule(context, :Description);
|
693
693
|
end_rule(context, :Background);
|
@@ -707,7 +707,7 @@ module Gherkin
|
|
707
707
|
return 9
|
708
708
|
end
|
709
709
|
if match_TagLine(context, token)
|
710
|
-
if
|
710
|
+
if lookahead0(context, token)
|
711
711
|
end_rule(context, :Description);
|
712
712
|
end_rule(context, :Background);
|
713
713
|
start_rule(context, :ScenarioDefinition);
|
@@ -755,7 +755,7 @@ module Gherkin
|
|
755
755
|
return 7
|
756
756
|
end
|
757
757
|
# GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0
|
758
|
-
def
|
758
|
+
def match_token_at_state8(token, context)
|
759
759
|
if match_EOF(context, token)
|
760
760
|
end_rule(context, :Background);
|
761
761
|
end_rule(context, :Feature);
|
@@ -772,7 +772,7 @@ module Gherkin
|
|
772
772
|
return 9
|
773
773
|
end
|
774
774
|
if match_TagLine(context, token)
|
775
|
-
if
|
775
|
+
if lookahead0(context, token)
|
776
776
|
end_rule(context, :Background);
|
777
777
|
start_rule(context, :ScenarioDefinition);
|
778
778
|
start_rule(context, :Tags);
|
@@ -816,7 +816,7 @@ module Gherkin
|
|
816
816
|
return 8
|
817
817
|
end
|
818
818
|
# GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0
|
819
|
-
def
|
819
|
+
def match_token_at_state9(token, context)
|
820
820
|
if match_EOF(context, token)
|
821
821
|
end_rule(context, :Step);
|
822
822
|
end_rule(context, :Background);
|
@@ -841,7 +841,7 @@ module Gherkin
|
|
841
841
|
return 9
|
842
842
|
end
|
843
843
|
if match_TagLine(context, token)
|
844
|
-
if
|
844
|
+
if lookahead0(context, token)
|
845
845
|
end_rule(context, :Step);
|
846
846
|
end_rule(context, :Background);
|
847
847
|
start_rule(context, :ScenarioDefinition);
|
@@ -893,7 +893,7 @@ module Gherkin
|
|
893
893
|
return 9
|
894
894
|
end
|
895
895
|
# GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
|
896
|
-
def
|
896
|
+
def match_token_at_state10(token, context)
|
897
897
|
if match_EOF(context, token)
|
898
898
|
end_rule(context, :DataTable);
|
899
899
|
end_rule(context, :Step);
|
@@ -914,7 +914,7 @@ module Gherkin
|
|
914
914
|
return 9
|
915
915
|
end
|
916
916
|
if match_TagLine(context, token)
|
917
|
-
if
|
917
|
+
if lookahead0(context, token)
|
918
918
|
end_rule(context, :DataTable);
|
919
919
|
end_rule(context, :Step);
|
920
920
|
end_rule(context, :Background);
|
@@ -970,7 +970,7 @@ module Gherkin
|
|
970
970
|
return 10
|
971
971
|
end
|
972
972
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0
|
973
|
-
def
|
973
|
+
def match_token_at_state11(token, context)
|
974
974
|
if match_TagLine(context, token)
|
975
975
|
build(context, token);
|
976
976
|
return 11
|
@@ -999,7 +999,7 @@ module Gherkin
|
|
999
999
|
return 11
|
1000
1000
|
end
|
1001
1001
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0
|
1002
|
-
def
|
1002
|
+
def match_token_at_state12(token, context)
|
1003
1003
|
if match_EOF(context, token)
|
1004
1004
|
end_rule(context, :Scenario);
|
1005
1005
|
end_rule(context, :ScenarioDefinition);
|
@@ -1021,7 +1021,7 @@ module Gherkin
|
|
1021
1021
|
return 15
|
1022
1022
|
end
|
1023
1023
|
if match_TagLine(context, token)
|
1024
|
-
if
|
1024
|
+
if lookahead1(context, token)
|
1025
1025
|
start_rule(context, :ExamplesDefinition);
|
1026
1026
|
start_rule(context, :Tags);
|
1027
1027
|
build(context, token);
|
@@ -1029,7 +1029,7 @@ module Gherkin
|
|
1029
1029
|
end
|
1030
1030
|
end
|
1031
1031
|
if match_TagLine(context, token)
|
1032
|
-
if
|
1032
|
+
if lookahead0(context, token)
|
1033
1033
|
end_rule(context, :Scenario);
|
1034
1034
|
end_rule(context, :ScenarioDefinition);
|
1035
1035
|
start_rule(context, :ScenarioDefinition);
|
@@ -1084,7 +1084,7 @@ module Gherkin
|
|
1084
1084
|
return 12
|
1085
1085
|
end
|
1086
1086
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0
|
1087
|
-
def
|
1087
|
+
def match_token_at_state13(token, context)
|
1088
1088
|
if match_EOF(context, token)
|
1089
1089
|
end_rule(context, :Description);
|
1090
1090
|
end_rule(context, :Scenario);
|
@@ -1105,7 +1105,7 @@ module Gherkin
|
|
1105
1105
|
return 15
|
1106
1106
|
end
|
1107
1107
|
if match_TagLine(context, token)
|
1108
|
-
if
|
1108
|
+
if lookahead1(context, token)
|
1109
1109
|
end_rule(context, :Description);
|
1110
1110
|
start_rule(context, :ExamplesDefinition);
|
1111
1111
|
start_rule(context, :Tags);
|
@@ -1114,7 +1114,7 @@ module Gherkin
|
|
1114
1114
|
end
|
1115
1115
|
end
|
1116
1116
|
if match_TagLine(context, token)
|
1117
|
-
if
|
1117
|
+
if lookahead0(context, token)
|
1118
1118
|
end_rule(context, :Description);
|
1119
1119
|
end_rule(context, :Scenario);
|
1120
1120
|
end_rule(context, :ScenarioDefinition);
|
@@ -1173,7 +1173,7 @@ module Gherkin
|
|
1173
1173
|
return 13
|
1174
1174
|
end
|
1175
1175
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0
|
1176
|
-
def
|
1176
|
+
def match_token_at_state14(token, context)
|
1177
1177
|
if match_EOF(context, token)
|
1178
1178
|
end_rule(context, :Scenario);
|
1179
1179
|
end_rule(context, :ScenarioDefinition);
|
@@ -1191,7 +1191,7 @@ module Gherkin
|
|
1191
1191
|
return 15
|
1192
1192
|
end
|
1193
1193
|
if match_TagLine(context, token)
|
1194
|
-
if
|
1194
|
+
if lookahead1(context, token)
|
1195
1195
|
start_rule(context, :ExamplesDefinition);
|
1196
1196
|
start_rule(context, :Tags);
|
1197
1197
|
build(context, token);
|
@@ -1199,7 +1199,7 @@ module Gherkin
|
|
1199
1199
|
end
|
1200
1200
|
end
|
1201
1201
|
if match_TagLine(context, token)
|
1202
|
-
if
|
1202
|
+
if lookahead0(context, token)
|
1203
1203
|
end_rule(context, :Scenario);
|
1204
1204
|
end_rule(context, :ScenarioDefinition);
|
1205
1205
|
start_rule(context, :ScenarioDefinition);
|
@@ -1253,7 +1253,7 @@ module Gherkin
|
|
1253
1253
|
return 14
|
1254
1254
|
end
|
1255
1255
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0
|
1256
|
-
def
|
1256
|
+
def match_token_at_state15(token, context)
|
1257
1257
|
if match_EOF(context, token)
|
1258
1258
|
end_rule(context, :Step);
|
1259
1259
|
end_rule(context, :Scenario);
|
@@ -1279,7 +1279,7 @@ module Gherkin
|
|
1279
1279
|
return 15
|
1280
1280
|
end
|
1281
1281
|
if match_TagLine(context, token)
|
1282
|
-
if
|
1282
|
+
if lookahead1(context, token)
|
1283
1283
|
end_rule(context, :Step);
|
1284
1284
|
start_rule(context, :ExamplesDefinition);
|
1285
1285
|
start_rule(context, :Tags);
|
@@ -1288,7 +1288,7 @@ module Gherkin
|
|
1288
1288
|
end
|
1289
1289
|
end
|
1290
1290
|
if match_TagLine(context, token)
|
1291
|
-
if
|
1291
|
+
if lookahead0(context, token)
|
1292
1292
|
end_rule(context, :Step);
|
1293
1293
|
end_rule(context, :Scenario);
|
1294
1294
|
end_rule(context, :ScenarioDefinition);
|
@@ -1351,7 +1351,7 @@ module Gherkin
|
|
1351
1351
|
return 15
|
1352
1352
|
end
|
1353
1353
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
|
1354
|
-
def
|
1354
|
+
def match_token_at_state16(token, context)
|
1355
1355
|
if match_EOF(context, token)
|
1356
1356
|
end_rule(context, :DataTable);
|
1357
1357
|
end_rule(context, :Step);
|
@@ -1373,7 +1373,7 @@ module Gherkin
|
|
1373
1373
|
return 15
|
1374
1374
|
end
|
1375
1375
|
if match_TagLine(context, token)
|
1376
|
-
if
|
1376
|
+
if lookahead1(context, token)
|
1377
1377
|
end_rule(context, :DataTable);
|
1378
1378
|
end_rule(context, :Step);
|
1379
1379
|
start_rule(context, :ExamplesDefinition);
|
@@ -1383,7 +1383,7 @@ module Gherkin
|
|
1383
1383
|
end
|
1384
1384
|
end
|
1385
1385
|
if match_TagLine(context, token)
|
1386
|
-
if
|
1386
|
+
if lookahead0(context, token)
|
1387
1387
|
end_rule(context, :DataTable);
|
1388
1388
|
end_rule(context, :Step);
|
1389
1389
|
end_rule(context, :Scenario);
|
@@ -1451,7 +1451,7 @@ module Gherkin
|
|
1451
1451
|
return 16
|
1452
1452
|
end
|
1453
1453
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0
|
1454
|
-
def
|
1454
|
+
def match_token_at_state17(token, context)
|
1455
1455
|
if match_TagLine(context, token)
|
1456
1456
|
build(context, token);
|
1457
1457
|
return 17
|
@@ -1480,7 +1480,7 @@ module Gherkin
|
|
1480
1480
|
return 17
|
1481
1481
|
end
|
1482
1482
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0
|
1483
|
-
def
|
1483
|
+
def match_token_at_state18(token, context)
|
1484
1484
|
if match_EOF(context, token)
|
1485
1485
|
end_rule(context, :Examples);
|
1486
1486
|
end_rule(context, :ExamplesDefinition);
|
@@ -1504,7 +1504,7 @@ module Gherkin
|
|
1504
1504
|
return 21
|
1505
1505
|
end
|
1506
1506
|
if match_TagLine(context, token)
|
1507
|
-
if
|
1507
|
+
if lookahead1(context, token)
|
1508
1508
|
end_rule(context, :Examples);
|
1509
1509
|
end_rule(context, :ExamplesDefinition);
|
1510
1510
|
start_rule(context, :ExamplesDefinition);
|
@@ -1514,7 +1514,7 @@ module Gherkin
|
|
1514
1514
|
end
|
1515
1515
|
end
|
1516
1516
|
if match_TagLine(context, token)
|
1517
|
-
if
|
1517
|
+
if lookahead0(context, token)
|
1518
1518
|
end_rule(context, :Examples);
|
1519
1519
|
end_rule(context, :ExamplesDefinition);
|
1520
1520
|
end_rule(context, :Scenario);
|
@@ -1579,7 +1579,7 @@ module Gherkin
|
|
1579
1579
|
return 18
|
1580
1580
|
end
|
1581
1581
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0
|
1582
|
-
def
|
1582
|
+
def match_token_at_state19(token, context)
|
1583
1583
|
if match_EOF(context, token)
|
1584
1584
|
end_rule(context, :Description);
|
1585
1585
|
end_rule(context, :Examples);
|
@@ -1602,7 +1602,7 @@ module Gherkin
|
|
1602
1602
|
return 21
|
1603
1603
|
end
|
1604
1604
|
if match_TagLine(context, token)
|
1605
|
-
if
|
1605
|
+
if lookahead1(context, token)
|
1606
1606
|
end_rule(context, :Description);
|
1607
1607
|
end_rule(context, :Examples);
|
1608
1608
|
end_rule(context, :ExamplesDefinition);
|
@@ -1613,7 +1613,7 @@ module Gherkin
|
|
1613
1613
|
end
|
1614
1614
|
end
|
1615
1615
|
if match_TagLine(context, token)
|
1616
|
-
if
|
1616
|
+
if lookahead0(context, token)
|
1617
1617
|
end_rule(context, :Description);
|
1618
1618
|
end_rule(context, :Examples);
|
1619
1619
|
end_rule(context, :ExamplesDefinition);
|
@@ -1682,7 +1682,7 @@ module Gherkin
|
|
1682
1682
|
return 19
|
1683
1683
|
end
|
1684
1684
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0
|
1685
|
-
def
|
1685
|
+
def match_token_at_state20(token, context)
|
1686
1686
|
if match_EOF(context, token)
|
1687
1687
|
end_rule(context, :Examples);
|
1688
1688
|
end_rule(context, :ExamplesDefinition);
|
@@ -1702,7 +1702,7 @@ module Gherkin
|
|
1702
1702
|
return 21
|
1703
1703
|
end
|
1704
1704
|
if match_TagLine(context, token)
|
1705
|
-
if
|
1705
|
+
if lookahead1(context, token)
|
1706
1706
|
end_rule(context, :Examples);
|
1707
1707
|
end_rule(context, :ExamplesDefinition);
|
1708
1708
|
start_rule(context, :ExamplesDefinition);
|
@@ -1712,7 +1712,7 @@ module Gherkin
|
|
1712
1712
|
end
|
1713
1713
|
end
|
1714
1714
|
if match_TagLine(context, token)
|
1715
|
-
if
|
1715
|
+
if lookahead0(context, token)
|
1716
1716
|
end_rule(context, :Examples);
|
1717
1717
|
end_rule(context, :ExamplesDefinition);
|
1718
1718
|
end_rule(context, :Scenario);
|
@@ -1776,7 +1776,7 @@ module Gherkin
|
|
1776
1776
|
return 20
|
1777
1777
|
end
|
1778
1778
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0
|
1779
|
-
def
|
1779
|
+
def match_token_at_state21(token, context)
|
1780
1780
|
if match_EOF(context, token)
|
1781
1781
|
end_rule(context, :ExamplesTable);
|
1782
1782
|
end_rule(context, :Examples);
|
@@ -1792,7 +1792,7 @@ module Gherkin
|
|
1792
1792
|
return 21
|
1793
1793
|
end
|
1794
1794
|
if match_TagLine(context, token)
|
1795
|
-
if
|
1795
|
+
if lookahead1(context, token)
|
1796
1796
|
end_rule(context, :ExamplesTable);
|
1797
1797
|
end_rule(context, :Examples);
|
1798
1798
|
end_rule(context, :ExamplesDefinition);
|
@@ -1803,7 +1803,7 @@ module Gherkin
|
|
1803
1803
|
end
|
1804
1804
|
end
|
1805
1805
|
if match_TagLine(context, token)
|
1806
|
-
if
|
1806
|
+
if lookahead0(context, token)
|
1807
1807
|
end_rule(context, :ExamplesTable);
|
1808
1808
|
end_rule(context, :Examples);
|
1809
1809
|
end_rule(context, :ExamplesDefinition);
|
@@ -1876,7 +1876,7 @@ module Gherkin
|
|
1876
1876
|
return 21
|
1877
1877
|
end
|
1878
1878
|
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:0
|
1879
|
-
def
|
1879
|
+
def match_token_at_state22(token, context)
|
1880
1880
|
if match_TagLine(context, token)
|
1881
1881
|
build(context, token);
|
1882
1882
|
return 22
|
@@ -1904,7 +1904,7 @@ module Gherkin
|
|
1904
1904
|
return 22
|
1905
1905
|
end
|
1906
1906
|
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:0
|
1907
|
-
def
|
1907
|
+
def match_token_at_state23(token, context)
|
1908
1908
|
if match_EOF(context, token)
|
1909
1909
|
end_rule(context, :RuleHeader);
|
1910
1910
|
end_rule(context, :Rule);
|
@@ -1927,7 +1927,7 @@ module Gherkin
|
|
1927
1927
|
return 26
|
1928
1928
|
end
|
1929
1929
|
if match_TagLine(context, token)
|
1930
|
-
if
|
1930
|
+
if lookahead0(context, token)
|
1931
1931
|
end_rule(context, :RuleHeader);
|
1932
1932
|
start_rule(context, :ScenarioDefinition);
|
1933
1933
|
start_rule(context, :Tags);
|
@@ -1974,7 +1974,7 @@ module Gherkin
|
|
1974
1974
|
return 23
|
1975
1975
|
end
|
1976
1976
|
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>#Other:0
|
1977
|
-
def
|
1977
|
+
def match_token_at_state24(token, context)
|
1978
1978
|
if match_EOF(context, token)
|
1979
1979
|
end_rule(context, :Description);
|
1980
1980
|
end_rule(context, :RuleHeader);
|
@@ -1996,7 +1996,7 @@ module Gherkin
|
|
1996
1996
|
return 26
|
1997
1997
|
end
|
1998
1998
|
if match_TagLine(context, token)
|
1999
|
-
if
|
1999
|
+
if lookahead0(context, token)
|
2000
2000
|
end_rule(context, :Description);
|
2001
2001
|
end_rule(context, :RuleHeader);
|
2002
2002
|
start_rule(context, :ScenarioDefinition);
|
@@ -2046,7 +2046,7 @@ module Gherkin
|
|
2046
2046
|
return 24
|
2047
2047
|
end
|
2048
2048
|
# GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:2>#Comment:0
|
2049
|
-
def
|
2049
|
+
def match_token_at_state25(token, context)
|
2050
2050
|
if match_EOF(context, token)
|
2051
2051
|
end_rule(context, :RuleHeader);
|
2052
2052
|
end_rule(context, :Rule);
|
@@ -2065,7 +2065,7 @@ module Gherkin
|
|
2065
2065
|
return 26
|
2066
2066
|
end
|
2067
2067
|
if match_TagLine(context, token)
|
2068
|
-
if
|
2068
|
+
if lookahead0(context, token)
|
2069
2069
|
end_rule(context, :RuleHeader);
|
2070
2070
|
start_rule(context, :ScenarioDefinition);
|
2071
2071
|
start_rule(context, :Tags);
|
@@ -2111,7 +2111,7 @@ module Gherkin
|
|
2111
2111
|
return 25
|
2112
2112
|
end
|
2113
2113
|
# GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0
|
2114
|
-
def
|
2114
|
+
def match_token_at_state26(token, context)
|
2115
2115
|
if match_EOF(context, token)
|
2116
2116
|
end_rule(context, :Background);
|
2117
2117
|
end_rule(context, :Rule);
|
@@ -2133,7 +2133,7 @@ module Gherkin
|
|
2133
2133
|
return 29
|
2134
2134
|
end
|
2135
2135
|
if match_TagLine(context, token)
|
2136
|
-
if
|
2136
|
+
if lookahead0(context, token)
|
2137
2137
|
end_rule(context, :Background);
|
2138
2138
|
start_rule(context, :ScenarioDefinition);
|
2139
2139
|
start_rule(context, :Tags);
|
@@ -2180,7 +2180,7 @@ module Gherkin
|
|
2180
2180
|
return 26
|
2181
2181
|
end
|
2182
2182
|
# GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:0
|
2183
|
-
def
|
2183
|
+
def match_token_at_state27(token, context)
|
2184
2184
|
if match_EOF(context, token)
|
2185
2185
|
end_rule(context, :Description);
|
2186
2186
|
end_rule(context, :Background);
|
@@ -2201,7 +2201,7 @@ module Gherkin
|
|
2201
2201
|
return 29
|
2202
2202
|
end
|
2203
2203
|
if match_TagLine(context, token)
|
2204
|
-
if
|
2204
|
+
if lookahead0(context, token)
|
2205
2205
|
end_rule(context, :Description);
|
2206
2206
|
end_rule(context, :Background);
|
2207
2207
|
start_rule(context, :ScenarioDefinition);
|
@@ -2251,7 +2251,7 @@ module Gherkin
|
|
2251
2251
|
return 27
|
2252
2252
|
end
|
2253
2253
|
# GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:0
|
2254
|
-
def
|
2254
|
+
def match_token_at_state28(token, context)
|
2255
2255
|
if match_EOF(context, token)
|
2256
2256
|
end_rule(context, :Background);
|
2257
2257
|
end_rule(context, :Rule);
|
@@ -2269,7 +2269,7 @@ module Gherkin
|
|
2269
2269
|
return 29
|
2270
2270
|
end
|
2271
2271
|
if match_TagLine(context, token)
|
2272
|
-
if
|
2272
|
+
if lookahead0(context, token)
|
2273
2273
|
end_rule(context, :Background);
|
2274
2274
|
start_rule(context, :ScenarioDefinition);
|
2275
2275
|
start_rule(context, :Tags);
|
@@ -2315,7 +2315,7 @@ module Gherkin
|
|
2315
2315
|
return 28
|
2316
2316
|
end
|
2317
2317
|
# GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0
|
2318
|
-
def
|
2318
|
+
def match_token_at_state29(token, context)
|
2319
2319
|
if match_EOF(context, token)
|
2320
2320
|
end_rule(context, :Step);
|
2321
2321
|
end_rule(context, :Background);
|
@@ -2341,7 +2341,7 @@ module Gherkin
|
|
2341
2341
|
return 29
|
2342
2342
|
end
|
2343
2343
|
if match_TagLine(context, token)
|
2344
|
-
if
|
2344
|
+
if lookahead0(context, token)
|
2345
2345
|
end_rule(context, :Step);
|
2346
2346
|
end_rule(context, :Background);
|
2347
2347
|
start_rule(context, :ScenarioDefinition);
|
@@ -2395,7 +2395,7 @@ module Gherkin
|
|
2395
2395
|
return 29
|
2396
2396
|
end
|
2397
2397
|
# GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
|
2398
|
-
def
|
2398
|
+
def match_token_at_state30(token, context)
|
2399
2399
|
if match_EOF(context, token)
|
2400
2400
|
end_rule(context, :DataTable);
|
2401
2401
|
end_rule(context, :Step);
|
@@ -2417,7 +2417,7 @@ module Gherkin
|
|
2417
2417
|
return 29
|
2418
2418
|
end
|
2419
2419
|
if match_TagLine(context, token)
|
2420
|
-
if
|
2420
|
+
if lookahead0(context, token)
|
2421
2421
|
end_rule(context, :DataTable);
|
2422
2422
|
end_rule(context, :Step);
|
2423
2423
|
end_rule(context, :Background);
|
@@ -2475,7 +2475,7 @@ module Gherkin
|
|
2475
2475
|
return 30
|
2476
2476
|
end
|
2477
2477
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0
|
2478
|
-
def
|
2478
|
+
def match_token_at_state31(token, context)
|
2479
2479
|
if match_TagLine(context, token)
|
2480
2480
|
build(context, token);
|
2481
2481
|
return 31
|
@@ -2504,7 +2504,7 @@ module Gherkin
|
|
2504
2504
|
return 31
|
2505
2505
|
end
|
2506
2506
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0
|
2507
|
-
def
|
2507
|
+
def match_token_at_state32(token, context)
|
2508
2508
|
if match_EOF(context, token)
|
2509
2509
|
end_rule(context, :Scenario);
|
2510
2510
|
end_rule(context, :ScenarioDefinition);
|
@@ -2527,7 +2527,7 @@ module Gherkin
|
|
2527
2527
|
return 35
|
2528
2528
|
end
|
2529
2529
|
if match_TagLine(context, token)
|
2530
|
-
if
|
2530
|
+
if lookahead1(context, token)
|
2531
2531
|
start_rule(context, :ExamplesDefinition);
|
2532
2532
|
start_rule(context, :Tags);
|
2533
2533
|
build(context, token);
|
@@ -2535,7 +2535,7 @@ module Gherkin
|
|
2535
2535
|
end
|
2536
2536
|
end
|
2537
2537
|
if match_TagLine(context, token)
|
2538
|
-
if
|
2538
|
+
if lookahead0(context, token)
|
2539
2539
|
end_rule(context, :Scenario);
|
2540
2540
|
end_rule(context, :ScenarioDefinition);
|
2541
2541
|
start_rule(context, :ScenarioDefinition);
|
@@ -2592,7 +2592,7 @@ module Gherkin
|
|
2592
2592
|
return 32
|
2593
2593
|
end
|
2594
2594
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0
|
2595
|
-
def
|
2595
|
+
def match_token_at_state33(token, context)
|
2596
2596
|
if match_EOF(context, token)
|
2597
2597
|
end_rule(context, :Description);
|
2598
2598
|
end_rule(context, :Scenario);
|
@@ -2614,7 +2614,7 @@ module Gherkin
|
|
2614
2614
|
return 35
|
2615
2615
|
end
|
2616
2616
|
if match_TagLine(context, token)
|
2617
|
-
if
|
2617
|
+
if lookahead1(context, token)
|
2618
2618
|
end_rule(context, :Description);
|
2619
2619
|
start_rule(context, :ExamplesDefinition);
|
2620
2620
|
start_rule(context, :Tags);
|
@@ -2623,7 +2623,7 @@ module Gherkin
|
|
2623
2623
|
end
|
2624
2624
|
end
|
2625
2625
|
if match_TagLine(context, token)
|
2626
|
-
if
|
2626
|
+
if lookahead0(context, token)
|
2627
2627
|
end_rule(context, :Description);
|
2628
2628
|
end_rule(context, :Scenario);
|
2629
2629
|
end_rule(context, :ScenarioDefinition);
|
@@ -2684,7 +2684,7 @@ module Gherkin
|
|
2684
2684
|
return 33
|
2685
2685
|
end
|
2686
2686
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0
|
2687
|
-
def
|
2687
|
+
def match_token_at_state34(token, context)
|
2688
2688
|
if match_EOF(context, token)
|
2689
2689
|
end_rule(context, :Scenario);
|
2690
2690
|
end_rule(context, :ScenarioDefinition);
|
@@ -2703,7 +2703,7 @@ module Gherkin
|
|
2703
2703
|
return 35
|
2704
2704
|
end
|
2705
2705
|
if match_TagLine(context, token)
|
2706
|
-
if
|
2706
|
+
if lookahead1(context, token)
|
2707
2707
|
start_rule(context, :ExamplesDefinition);
|
2708
2708
|
start_rule(context, :Tags);
|
2709
2709
|
build(context, token);
|
@@ -2711,7 +2711,7 @@ module Gherkin
|
|
2711
2711
|
end
|
2712
2712
|
end
|
2713
2713
|
if match_TagLine(context, token)
|
2714
|
-
if
|
2714
|
+
if lookahead0(context, token)
|
2715
2715
|
end_rule(context, :Scenario);
|
2716
2716
|
end_rule(context, :ScenarioDefinition);
|
2717
2717
|
start_rule(context, :ScenarioDefinition);
|
@@ -2767,7 +2767,7 @@ module Gherkin
|
|
2767
2767
|
return 34
|
2768
2768
|
end
|
2769
2769
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0
|
2770
|
-
def
|
2770
|
+
def match_token_at_state35(token, context)
|
2771
2771
|
if match_EOF(context, token)
|
2772
2772
|
end_rule(context, :Step);
|
2773
2773
|
end_rule(context, :Scenario);
|
@@ -2794,7 +2794,7 @@ module Gherkin
|
|
2794
2794
|
return 35
|
2795
2795
|
end
|
2796
2796
|
if match_TagLine(context, token)
|
2797
|
-
if
|
2797
|
+
if lookahead1(context, token)
|
2798
2798
|
end_rule(context, :Step);
|
2799
2799
|
start_rule(context, :ExamplesDefinition);
|
2800
2800
|
start_rule(context, :Tags);
|
@@ -2803,7 +2803,7 @@ module Gherkin
|
|
2803
2803
|
end
|
2804
2804
|
end
|
2805
2805
|
if match_TagLine(context, token)
|
2806
|
-
if
|
2806
|
+
if lookahead0(context, token)
|
2807
2807
|
end_rule(context, :Step);
|
2808
2808
|
end_rule(context, :Scenario);
|
2809
2809
|
end_rule(context, :ScenarioDefinition);
|
@@ -2868,7 +2868,7 @@ module Gherkin
|
|
2868
2868
|
return 35
|
2869
2869
|
end
|
2870
2870
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
|
2871
|
-
def
|
2871
|
+
def match_token_at_state36(token, context)
|
2872
2872
|
if match_EOF(context, token)
|
2873
2873
|
end_rule(context, :DataTable);
|
2874
2874
|
end_rule(context, :Step);
|
@@ -2891,7 +2891,7 @@ module Gherkin
|
|
2891
2891
|
return 35
|
2892
2892
|
end
|
2893
2893
|
if match_TagLine(context, token)
|
2894
|
-
if
|
2894
|
+
if lookahead1(context, token)
|
2895
2895
|
end_rule(context, :DataTable);
|
2896
2896
|
end_rule(context, :Step);
|
2897
2897
|
start_rule(context, :ExamplesDefinition);
|
@@ -2901,7 +2901,7 @@ module Gherkin
|
|
2901
2901
|
end
|
2902
2902
|
end
|
2903
2903
|
if match_TagLine(context, token)
|
2904
|
-
if
|
2904
|
+
if lookahead0(context, token)
|
2905
2905
|
end_rule(context, :DataTable);
|
2906
2906
|
end_rule(context, :Step);
|
2907
2907
|
end_rule(context, :Scenario);
|
@@ -2971,7 +2971,7 @@ module Gherkin
|
|
2971
2971
|
return 36
|
2972
2972
|
end
|
2973
2973
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0
|
2974
|
-
def
|
2974
|
+
def match_token_at_state37(token, context)
|
2975
2975
|
if match_TagLine(context, token)
|
2976
2976
|
build(context, token);
|
2977
2977
|
return 37
|
@@ -3000,7 +3000,7 @@ module Gherkin
|
|
3000
3000
|
return 37
|
3001
3001
|
end
|
3002
3002
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0
|
3003
|
-
def
|
3003
|
+
def match_token_at_state38(token, context)
|
3004
3004
|
if match_EOF(context, token)
|
3005
3005
|
end_rule(context, :Examples);
|
3006
3006
|
end_rule(context, :ExamplesDefinition);
|
@@ -3025,7 +3025,7 @@ module Gherkin
|
|
3025
3025
|
return 41
|
3026
3026
|
end
|
3027
3027
|
if match_TagLine(context, token)
|
3028
|
-
if
|
3028
|
+
if lookahead1(context, token)
|
3029
3029
|
end_rule(context, :Examples);
|
3030
3030
|
end_rule(context, :ExamplesDefinition);
|
3031
3031
|
start_rule(context, :ExamplesDefinition);
|
@@ -3035,7 +3035,7 @@ module Gherkin
|
|
3035
3035
|
end
|
3036
3036
|
end
|
3037
3037
|
if match_TagLine(context, token)
|
3038
|
-
if
|
3038
|
+
if lookahead0(context, token)
|
3039
3039
|
end_rule(context, :Examples);
|
3040
3040
|
end_rule(context, :ExamplesDefinition);
|
3041
3041
|
end_rule(context, :Scenario);
|
@@ -3102,7 +3102,7 @@ module Gherkin
|
|
3102
3102
|
return 38
|
3103
3103
|
end
|
3104
3104
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0
|
3105
|
-
def
|
3105
|
+
def match_token_at_state39(token, context)
|
3106
3106
|
if match_EOF(context, token)
|
3107
3107
|
end_rule(context, :Description);
|
3108
3108
|
end_rule(context, :Examples);
|
@@ -3126,7 +3126,7 @@ module Gherkin
|
|
3126
3126
|
return 41
|
3127
3127
|
end
|
3128
3128
|
if match_TagLine(context, token)
|
3129
|
-
if
|
3129
|
+
if lookahead1(context, token)
|
3130
3130
|
end_rule(context, :Description);
|
3131
3131
|
end_rule(context, :Examples);
|
3132
3132
|
end_rule(context, :ExamplesDefinition);
|
@@ -3137,7 +3137,7 @@ module Gherkin
|
|
3137
3137
|
end
|
3138
3138
|
end
|
3139
3139
|
if match_TagLine(context, token)
|
3140
|
-
if
|
3140
|
+
if lookahead0(context, token)
|
3141
3141
|
end_rule(context, :Description);
|
3142
3142
|
end_rule(context, :Examples);
|
3143
3143
|
end_rule(context, :ExamplesDefinition);
|
@@ -3208,7 +3208,7 @@ module Gherkin
|
|
3208
3208
|
return 39
|
3209
3209
|
end
|
3210
3210
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0
|
3211
|
-
def
|
3211
|
+
def match_token_at_state40(token, context)
|
3212
3212
|
if match_EOF(context, token)
|
3213
3213
|
end_rule(context, :Examples);
|
3214
3214
|
end_rule(context, :ExamplesDefinition);
|
@@ -3229,7 +3229,7 @@ module Gherkin
|
|
3229
3229
|
return 41
|
3230
3230
|
end
|
3231
3231
|
if match_TagLine(context, token)
|
3232
|
-
if
|
3232
|
+
if lookahead1(context, token)
|
3233
3233
|
end_rule(context, :Examples);
|
3234
3234
|
end_rule(context, :ExamplesDefinition);
|
3235
3235
|
start_rule(context, :ExamplesDefinition);
|
@@ -3239,7 +3239,7 @@ module Gherkin
|
|
3239
3239
|
end
|
3240
3240
|
end
|
3241
3241
|
if match_TagLine(context, token)
|
3242
|
-
if
|
3242
|
+
if lookahead0(context, token)
|
3243
3243
|
end_rule(context, :Examples);
|
3244
3244
|
end_rule(context, :ExamplesDefinition);
|
3245
3245
|
end_rule(context, :Scenario);
|
@@ -3305,7 +3305,7 @@ module Gherkin
|
|
3305
3305
|
return 40
|
3306
3306
|
end
|
3307
3307
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0
|
3308
|
-
def
|
3308
|
+
def match_token_at_state41(token, context)
|
3309
3309
|
if match_EOF(context, token)
|
3310
3310
|
end_rule(context, :ExamplesTable);
|
3311
3311
|
end_rule(context, :Examples);
|
@@ -3322,7 +3322,7 @@ module Gherkin
|
|
3322
3322
|
return 41
|
3323
3323
|
end
|
3324
3324
|
if match_TagLine(context, token)
|
3325
|
-
if
|
3325
|
+
if lookahead1(context, token)
|
3326
3326
|
end_rule(context, :ExamplesTable);
|
3327
3327
|
end_rule(context, :Examples);
|
3328
3328
|
end_rule(context, :ExamplesDefinition);
|
@@ -3333,7 +3333,7 @@ module Gherkin
|
|
3333
3333
|
end
|
3334
3334
|
end
|
3335
3335
|
if match_TagLine(context, token)
|
3336
|
-
if
|
3336
|
+
if lookahead0(context, token)
|
3337
3337
|
end_rule(context, :ExamplesTable);
|
3338
3338
|
end_rule(context, :Examples);
|
3339
3339
|
end_rule(context, :ExamplesDefinition);
|
@@ -3408,7 +3408,7 @@ module Gherkin
|
|
3408
3408
|
return 41
|
3409
3409
|
end
|
3410
3410
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
|
3411
|
-
def
|
3411
|
+
def match_token_at_state43(token, context)
|
3412
3412
|
if match_DocStringSeparator(context, token)
|
3413
3413
|
build(context, token);
|
3414
3414
|
return 44
|
@@ -3427,7 +3427,7 @@ module Gherkin
|
|
3427
3427
|
return 43
|
3428
3428
|
end
|
3429
3429
|
# GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
|
3430
|
-
def
|
3430
|
+
def match_token_at_state44(token, context)
|
3431
3431
|
if match_EOF(context, token)
|
3432
3432
|
end_rule(context, :DocString);
|
3433
3433
|
end_rule(context, :Step);
|
@@ -3446,7 +3446,7 @@ module Gherkin
|
|
3446
3446
|
return 35
|
3447
3447
|
end
|
3448
3448
|
if match_TagLine(context, token)
|
3449
|
-
if
|
3449
|
+
if lookahead1(context, token)
|
3450
3450
|
end_rule(context, :DocString);
|
3451
3451
|
end_rule(context, :Step);
|
3452
3452
|
start_rule(context, :ExamplesDefinition);
|
@@ -3456,7 +3456,7 @@ module Gherkin
|
|
3456
3456
|
end
|
3457
3457
|
end
|
3458
3458
|
if match_TagLine(context, token)
|
3459
|
-
if
|
3459
|
+
if lookahead0(context, token)
|
3460
3460
|
end_rule(context, :DocString);
|
3461
3461
|
end_rule(context, :Step);
|
3462
3462
|
end_rule(context, :Scenario);
|
@@ -3526,7 +3526,7 @@ module Gherkin
|
|
3526
3526
|
return 44
|
3527
3527
|
end
|
3528
3528
|
# GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
|
3529
|
-
def
|
3529
|
+
def match_token_at_state45(token, context)
|
3530
3530
|
if match_DocStringSeparator(context, token)
|
3531
3531
|
build(context, token);
|
3532
3532
|
return 46
|
@@ -3545,7 +3545,7 @@ module Gherkin
|
|
3545
3545
|
return 45
|
3546
3546
|
end
|
3547
3547
|
# GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
|
3548
|
-
def
|
3548
|
+
def match_token_at_state46(token, context)
|
3549
3549
|
if match_EOF(context, token)
|
3550
3550
|
end_rule(context, :DocString);
|
3551
3551
|
end_rule(context, :Step);
|
@@ -3563,7 +3563,7 @@ module Gherkin
|
|
3563
3563
|
return 29
|
3564
3564
|
end
|
3565
3565
|
if match_TagLine(context, token)
|
3566
|
-
if
|
3566
|
+
if lookahead0(context, token)
|
3567
3567
|
end_rule(context, :DocString);
|
3568
3568
|
end_rule(context, :Step);
|
3569
3569
|
end_rule(context, :Background);
|
@@ -3621,7 +3621,7 @@ module Gherkin
|
|
3621
3621
|
return 46
|
3622
3622
|
end
|
3623
3623
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
|
3624
|
-
def
|
3624
|
+
def match_token_at_state47(token, context)
|
3625
3625
|
if match_DocStringSeparator(context, token)
|
3626
3626
|
build(context, token);
|
3627
3627
|
return 48
|
@@ -3640,7 +3640,7 @@ module Gherkin
|
|
3640
3640
|
return 47
|
3641
3641
|
end
|
3642
3642
|
# GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
|
3643
|
-
def
|
3643
|
+
def match_token_at_state48(token, context)
|
3644
3644
|
if match_EOF(context, token)
|
3645
3645
|
end_rule(context, :DocString);
|
3646
3646
|
end_rule(context, :Step);
|
@@ -3658,7 +3658,7 @@ module Gherkin
|
|
3658
3658
|
return 15
|
3659
3659
|
end
|
3660
3660
|
if match_TagLine(context, token)
|
3661
|
-
if
|
3661
|
+
if lookahead1(context, token)
|
3662
3662
|
end_rule(context, :DocString);
|
3663
3663
|
end_rule(context, :Step);
|
3664
3664
|
start_rule(context, :ExamplesDefinition);
|
@@ -3668,7 +3668,7 @@ module Gherkin
|
|
3668
3668
|
end
|
3669
3669
|
end
|
3670
3670
|
if match_TagLine(context, token)
|
3671
|
-
if
|
3671
|
+
if lookahead0(context, token)
|
3672
3672
|
end_rule(context, :DocString);
|
3673
3673
|
end_rule(context, :Step);
|
3674
3674
|
end_rule(context, :Scenario);
|
@@ -3736,7 +3736,7 @@ module Gherkin
|
|
3736
3736
|
return 48
|
3737
3737
|
end
|
3738
3738
|
# GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
|
3739
|
-
def
|
3739
|
+
def match_token_at_state49(token, context)
|
3740
3740
|
if match_DocStringSeparator(context, token)
|
3741
3741
|
build(context, token);
|
3742
3742
|
return 50
|
@@ -3755,7 +3755,7 @@ module Gherkin
|
|
3755
3755
|
return 49
|
3756
3756
|
end
|
3757
3757
|
# GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
|
3758
|
-
def
|
3758
|
+
def match_token_at_state50(token, context)
|
3759
3759
|
if match_EOF(context, token)
|
3760
3760
|
end_rule(context, :DocString);
|
3761
3761
|
end_rule(context, :Step);
|
@@ -3772,7 +3772,7 @@ module Gherkin
|
|
3772
3772
|
return 9
|
3773
3773
|
end
|
3774
3774
|
if match_TagLine(context, token)
|
3775
|
-
if
|
3775
|
+
if lookahead0(context, token)
|
3776
3776
|
end_rule(context, :DocString);
|
3777
3777
|
end_rule(context, :Step);
|
3778
3778
|
end_rule(context, :Background);
|
@@ -3828,8 +3828,8 @@ module Gherkin
|
|
3828
3828
|
return 50
|
3829
3829
|
end
|
3830
3830
|
|
3831
|
-
def
|
3832
|
-
|
3831
|
+
def lookahead0(context, current_token)
|
3832
|
+
current_token.detach
|
3833
3833
|
token = nil
|
3834
3834
|
queue = []
|
3835
3835
|
match = false
|
@@ -3851,8 +3851,8 @@ module Gherkin
|
|
3851
3851
|
return match
|
3852
3852
|
end
|
3853
3853
|
|
3854
|
-
def
|
3855
|
-
|
3854
|
+
def lookahead1(context, current_token)
|
3855
|
+
current_token.detach
|
3856
3856
|
token = nil
|
3857
3857
|
queue = []
|
3858
3858
|
match = false
|