-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrammar.d.ts
101 lines (99 loc) · 1.85 KB
/
grammar.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/// <reference types="./dsl" />
interface GherkinGrammarStruct {
document: Rule;
// Feature
feature: Rule;
feature_header: Rule;
feature_line: Rule;
language: Rule;
// Background
background: Rule;
background_line: Rule;
// Scenario
scenario_definition: Rule;
scenario: Rule;
scenario_line: Rule;
scenario_outline_line: Rule;
// Exmaples
examples_definition: Rule;
examples: Rule;
examples_line: Rule;
examples_table: Rule;
// Rule
rule: Rule;
rule_header: Rule;
rule_line: Rule;
// Step
steps: Rule;
_alt_steps: Rule;
step_arg: Rule;
step_context: Rule;
step_param: Rule;
// Given
given_group: Rule;
given_step: Rule;
given_line: Rule;
// When
when_group: Rule;
when_step: Rule;
when_line: Rule;
// Then
then_group: Rule;
then_step: Rule;
then_line: Rule;
// And
and_step: Rule;
and_line: Rule;
// But
but_step: Rule;
but_line: Rule;
// Asterisk
asterisk_step: Rule;
asterisk_line: Rule;
// Description
description_helper: Rule;
description: Rule;
// Tags
tags: Rule;
tag: Rule;
// Table
table_row: Rule;
table_col: Rule;
table_cell: Rule;
// Doc String
doc_string: Rule;
// Misc
_ws: Rule;
comment: Rule;
context: Rule;
_other: Rule;
data_table: Rule;
}
interface GherkinGrammarExternalOrAliasStruct {
// External
and_kw: Rule;
background_kw: Rule;
but_kw: Rule;
examples_kw: Rule;
feature_kw: Rule;
given_kw: Rule;
rule_kw: Rule;
scenario_kw: Rule;
scenario_outline_kw: Rule;
then_kw: Rule;
when_kw: Rule;
_language_start: Rule;
language_name: Rule;
_eol: Rule;
error_sentinel: Rule;
// Alias
table_head_row: Rule;
table_trailing: Rule;
media_type: Rule;
doc_string_content: Rule;
invalid_language_name: Rule;
}
declare const grammar: GrammarFunc<
GherkinGrammarStruct,
GherkinGrammarExternalOrAliasStruct
>;