gherkin 2.3.5-x86-mingw32 → 2.3.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitmodules +3 -0
- data/Gemfile +1 -1
- data/History.txt +9 -0
- data/README.rdoc +34 -2
- data/VERSION +1 -1
- data/features/step_definitions/pretty_formatter_steps.rb +1 -0
- data/gherkin.gemspec +4 -1
- data/js/.gitignore +1 -0
- data/js/.npmignore +1 -0
- data/js/lib/gherkin/lexer/.gitignore +1 -0
- data/lib/gherkin/i18n.rb +5 -0
- data/lib/gherkin/i18n.yml +3 -3
- data/lib/gherkin/js_lexer.rb +20 -0
- data/lib/gherkin/lexer/i18n_lexer.rb +1 -1
- data/lib/gherkin/rubify.rb +7 -0
- data/ragel/lexer.c.rl.erb +30 -32
- data/ragel/lexer.js.rl.erb +208 -0
- data/ragel/lexer.rb.rl.erb +1 -1
- data/spec/gherkin/c_lexer_spec.rb +1 -0
- data/spec/gherkin/js_lexer_spec.rb +23 -0
- data/spec/gherkin/rb_lexer_spec.rb +1 -0
- data/spec/gherkin/sexp_recorder.rb +14 -8
- data/spec/gherkin/shared/bom_group.rb +20 -0
- data/spec/gherkin/shared/lexer_group.rb +0 -10
- data/spec/spec_helper.rb +2 -0
- data/tasks/compile.rake +9 -0
- data/tasks/ikvm.rake +1 -0
- data/tasks/ragel_task.rb +8 -2
- data/tasks/release.rake +8 -1
- metadata +29 -52
- data/js/lib/gherkin/lexer/i18n/ar.js +0 -1094
- data/js/lib/gherkin/lexer/i18n/bg.js +0 -1308
- data/js/lib/gherkin/lexer/i18n/ca.js +0 -1236
- data/js/lib/gherkin/lexer/i18n/cs.js +0 -1090
- data/js/lib/gherkin/lexer/i18n/cy_gb.js +0 -958
- data/js/lib/gherkin/lexer/i18n/da.js +0 -974
- data/js/lib/gherkin/lexer/i18n/de.js +0 -1082
- data/js/lib/gherkin/lexer/i18n/en.js +0 -965
- data/js/lib/gherkin/lexer/i18n/en_au.js +0 -902
- data/js/lib/gherkin/lexer/i18n/en_lol.js +0 -859
- data/js/lib/gherkin/lexer/i18n/en_pirate.js +0 -1136
- data/js/lib/gherkin/lexer/i18n/en_scouse.js +0 -1289
- data/js/lib/gherkin/lexer/i18n/en_tx.js +0 -942
- data/js/lib/gherkin/lexer/i18n/eo.js +0 -916
- data/js/lib/gherkin/lexer/i18n/es.js +0 -1049
- data/js/lib/gherkin/lexer/i18n/et.js +0 -915
- data/js/lib/gherkin/lexer/i18n/fi.js +0 -894
- data/js/lib/gherkin/lexer/i18n/fr.js +0 -1116
- data/js/lib/gherkin/lexer/i18n/he.js +0 -1044
- data/js/lib/gherkin/lexer/i18n/hr.js +0 -994
- data/js/lib/gherkin/lexer/i18n/hu.js +0 -1043
- data/js/lib/gherkin/lexer/i18n/id.js +0 -884
- data/js/lib/gherkin/lexer/i18n/it.js +0 -1007
- data/js/lib/gherkin/lexer/i18n/ja.js +0 -1344
- data/js/lib/gherkin/lexer/i18n/ko.js +0 -1028
- data/js/lib/gherkin/lexer/i18n/lt.js +0 -972
- data/js/lib/gherkin/lexer/i18n/lu.js +0 -1057
- data/js/lib/gherkin/lexer/i18n/lv.js +0 -1092
- data/js/lib/gherkin/lexer/i18n/nl.js +0 -1036
- data/js/lib/gherkin/lexer/i18n/no.js +0 -986
- data/js/lib/gherkin/lexer/i18n/pl.js +0 -1140
- data/js/lib/gherkin/lexer/i18n/pt.js +0 -1000
- data/js/lib/gherkin/lexer/i18n/ro.js +0 -1089
- data/js/lib/gherkin/lexer/i18n/ru.js +0 -1560
- data/js/lib/gherkin/lexer/i18n/sk.js +0 -972
- data/js/lib/gherkin/lexer/i18n/sr_cyrl.js +0 -1728
- data/js/lib/gherkin/lexer/i18n/sr_latn.js +0 -1220
- data/js/lib/gherkin/lexer/i18n/sv.js +0 -997
- data/js/lib/gherkin/lexer/i18n/tr.js +0 -1014
- data/js/lib/gherkin/lexer/i18n/uk.js +0 -1572
- data/js/lib/gherkin/lexer/i18n/uz.js +0 -1302
- data/js/lib/gherkin/lexer/i18n/vi.js +0 -1124
- data/js/lib/gherkin/lexer/i18n/zh_cn.js +0 -902
- data/js/lib/gherkin/lexer/i18n/zh_tw.js +0 -940
@@ -1,942 +0,0 @@
|
|
1
|
-
|
2
|
-
/* line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
3
|
-
;(function() {
|
4
|
-
|
5
|
-
|
6
|
-
/* line 107 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
/* line 11 "js/lib/gherkin/lexer/i18n/en_tx.js" */
|
11
|
-
const _lexer_actions = [
|
12
|
-
0, 1, 0, 1, 1, 1, 2, 1,
|
13
|
-
3, 1, 4, 1, 5, 1, 6, 1,
|
14
|
-
7, 1, 8, 1, 9, 1, 10, 1,
|
15
|
-
11, 1, 14, 1, 15, 1, 16, 1,
|
16
|
-
17, 1, 18, 1, 19, 1, 20, 1,
|
17
|
-
21, 2, 2, 16, 2, 11, 0, 2,
|
18
|
-
12, 13, 2, 15, 0, 2, 15, 1,
|
19
|
-
2, 15, 14, 2, 15, 17, 2, 16,
|
20
|
-
4, 2, 16, 5, 2, 16, 6, 2,
|
21
|
-
16, 7, 2, 16, 8, 2, 16, 14,
|
22
|
-
2, 18, 19, 2, 20, 0, 2, 20,
|
23
|
-
1, 2, 20, 14, 2, 20, 17, 3,
|
24
|
-
3, 12, 13, 3, 9, 12, 13, 3,
|
25
|
-
10, 12, 13, 3, 11, 12, 13, 3,
|
26
|
-
12, 13, 16, 3, 15, 12, 13, 4,
|
27
|
-
2, 12, 13, 16, 4, 15, 0, 12,
|
28
|
-
13
|
29
|
-
];
|
30
|
-
|
31
|
-
const _lexer_key_offsets = [
|
32
|
-
0, 0, 19, 37, 38, 39, 43, 48,
|
33
|
-
53, 58, 63, 67, 71, 73, 74, 75,
|
34
|
-
76, 77, 78, 79, 80, 81, 82, 83,
|
35
|
-
84, 85, 86, 87, 88, 89, 90, 92,
|
36
|
-
97, 104, 109, 111, 112, 113, 114, 115,
|
37
|
-
116, 117, 118, 119, 120, 121, 136, 138,
|
38
|
-
140, 142, 144, 146, 148, 150, 152, 154,
|
39
|
-
156, 158, 160, 162, 164, 166, 184, 186,
|
40
|
-
187, 188, 189, 190, 191, 192, 193, 194,
|
41
|
-
195, 196, 197, 212, 214, 216, 218, 220,
|
42
|
-
222, 224, 226, 228, 230, 232, 234, 236,
|
43
|
-
238, 240, 242, 245, 247, 249, 251, 253,
|
44
|
-
255, 257, 259, 261, 263, 265, 267, 269,
|
45
|
-
271, 273, 275, 277, 279, 281, 283, 285,
|
46
|
-
287, 289, 291, 293, 295, 297, 299, 301,
|
47
|
-
303, 305, 307, 309, 311, 313, 315, 316,
|
48
|
-
317, 318, 319, 320, 321, 322, 323, 324,
|
49
|
-
325, 326, 327, 328, 329, 330, 331, 332,
|
50
|
-
339, 341, 343, 345, 347, 349, 351, 353,
|
51
|
-
354, 355, 356, 357, 358, 359, 360, 361,
|
52
|
-
362, 374, 376, 378, 380, 382, 384, 386,
|
53
|
-
388, 390, 392, 394, 396, 398, 400, 402,
|
54
|
-
404, 406, 408, 410, 412, 414, 416, 418,
|
55
|
-
420, 422, 424, 426, 428, 430, 432, 434,
|
56
|
-
436, 438, 440, 442, 444, 446, 448, 450,
|
57
|
-
452, 454, 456, 458, 460, 462, 464, 466,
|
58
|
-
468, 470, 472, 474, 476, 478, 479, 480,
|
59
|
-
481, 482, 483, 484, 485, 486, 487, 488,
|
60
|
-
489, 490, 491, 492, 507, 509, 511, 513,
|
61
|
-
515, 517, 519, 521, 523, 525, 527, 529,
|
62
|
-
531, 533, 535, 537, 540, 542, 544, 546,
|
63
|
-
548, 550, 552, 554, 556, 558, 560, 562,
|
64
|
-
564, 566, 568, 570, 573, 575, 577, 579,
|
65
|
-
581, 583, 585, 587, 589, 591, 593, 595,
|
66
|
-
597, 599, 601, 603, 605, 607, 609, 611,
|
67
|
-
613, 615, 617, 619, 621, 623, 625, 627,
|
68
|
-
628, 632, 638, 641, 643, 649, 667, 669,
|
69
|
-
671, 673, 675, 677, 679, 681, 683, 685,
|
70
|
-
687, 689, 691, 693, 695, 697, 699, 701,
|
71
|
-
703, 705, 707, 709, 711, 713, 715, 717,
|
72
|
-
719, 721, 723, 725, 726, 727, 728
|
73
|
-
];
|
74
|
-
|
75
|
-
const _lexer_trans_keys = [
|
76
|
-
10, 32, 34, 35, 37, 42, 64, 65,
|
77
|
-
66, 69, 70, 71, 83, 84, 87, 124,
|
78
|
-
239, 9, 13, 10, 32, 34, 35, 37,
|
79
|
-
42, 64, 65, 66, 69, 70, 71, 83,
|
80
|
-
84, 87, 124, 9, 13, 34, 34, 10,
|
81
|
-
32, 9, 13, 10, 32, 34, 9, 13,
|
82
|
-
10, 32, 34, 9, 13, 10, 32, 34,
|
83
|
-
9, 13, 10, 32, 34, 9, 13, 10,
|
84
|
-
32, 9, 13, 10, 32, 9, 13, 10,
|
85
|
-
13, 10, 95, 70, 69, 65, 84, 85,
|
86
|
-
82, 69, 95, 69, 78, 68, 95, 37,
|
87
|
-
32, 10, 10, 13, 13, 32, 64, 9,
|
88
|
-
10, 9, 10, 13, 32, 64, 11, 12,
|
89
|
-
10, 32, 64, 9, 13, 108, 110, 108,
|
90
|
-
32, 121, 39, 97, 108, 108, 58, 10,
|
91
|
-
10, 10, 32, 35, 37, 42, 64, 65,
|
92
|
-
66, 70, 71, 83, 84, 87, 9, 13,
|
93
|
-
10, 95, 10, 70, 10, 69, 10, 65,
|
94
|
-
10, 84, 10, 85, 10, 82, 10, 69,
|
95
|
-
10, 95, 10, 69, 10, 78, 10, 68,
|
96
|
-
10, 95, 10, 37, 10, 32, 10, 32,
|
97
|
-
34, 35, 37, 42, 64, 65, 66, 69,
|
98
|
-
70, 71, 83, 84, 87, 124, 9, 13,
|
99
|
-
97, 117, 99, 107, 103, 114, 111, 117,
|
100
|
-
110, 100, 58, 10, 10, 10, 32, 35,
|
101
|
-
37, 42, 64, 65, 66, 70, 71, 83,
|
102
|
-
84, 87, 9, 13, 10, 95, 10, 70,
|
103
|
-
10, 69, 10, 65, 10, 84, 10, 85,
|
104
|
-
10, 82, 10, 69, 10, 95, 10, 69,
|
105
|
-
10, 78, 10, 68, 10, 95, 10, 37,
|
106
|
-
10, 32, 10, 108, 110, 10, 108, 10,
|
107
|
-
32, 10, 121, 10, 39, 10, 97, 10,
|
108
|
-
108, 10, 108, 10, 58, 10, 100, 10,
|
109
|
-
32, 10, 121, 10, 39, 10, 97, 10,
|
110
|
-
108, 10, 108, 10, 117, 10, 116, 10,
|
111
|
-
101, 10, 97, 10, 116, 10, 117, 10,
|
112
|
-
114, 10, 101, 10, 105, 10, 118, 10,
|
113
|
-
101, 10, 110, 10, 99, 10, 101, 10,
|
114
|
-
110, 10, 97, 10, 114, 10, 105, 10,
|
115
|
-
111, 10, 104, 116, 32, 121, 39, 97,
|
116
|
-
108, 108, 120, 97, 109, 112, 108, 101,
|
117
|
-
115, 58, 10, 10, 10, 32, 35, 70,
|
118
|
-
124, 9, 13, 10, 101, 10, 97, 10,
|
119
|
-
116, 10, 117, 10, 114, 10, 101, 10,
|
120
|
-
58, 101, 97, 116, 117, 114, 101, 58,
|
121
|
-
10, 10, 10, 32, 35, 37, 64, 65,
|
122
|
-
66, 69, 70, 83, 9, 13, 10, 95,
|
123
|
-
10, 70, 10, 69, 10, 65, 10, 84,
|
124
|
-
10, 85, 10, 82, 10, 69, 10, 95,
|
125
|
-
10, 69, 10, 78, 10, 68, 10, 95,
|
126
|
-
10, 37, 10, 108, 10, 108, 10, 32,
|
127
|
-
10, 121, 10, 39, 10, 97, 10, 108,
|
128
|
-
10, 108, 10, 58, 10, 97, 10, 99,
|
129
|
-
10, 107, 10, 103, 10, 114, 10, 111,
|
130
|
-
10, 117, 10, 110, 10, 100, 10, 120,
|
131
|
-
10, 97, 10, 109, 10, 112, 10, 108,
|
132
|
-
10, 101, 10, 115, 10, 101, 10, 97,
|
133
|
-
10, 116, 10, 117, 10, 114, 10, 101,
|
134
|
-
10, 99, 10, 101, 10, 110, 10, 97,
|
135
|
-
10, 114, 10, 105, 10, 111, 105, 118,
|
136
|
-
101, 110, 99, 101, 110, 97, 114, 105,
|
137
|
-
111, 58, 10, 10, 10, 32, 35, 37,
|
138
|
-
42, 64, 65, 66, 70, 71, 83, 84,
|
139
|
-
87, 9, 13, 10, 95, 10, 70, 10,
|
140
|
-
69, 10, 65, 10, 84, 10, 85, 10,
|
141
|
-
82, 10, 69, 10, 95, 10, 69, 10,
|
142
|
-
78, 10, 68, 10, 95, 10, 37, 10,
|
143
|
-
32, 10, 108, 110, 10, 108, 10, 32,
|
144
|
-
10, 121, 10, 39, 10, 97, 10, 108,
|
145
|
-
10, 108, 10, 58, 10, 100, 10, 32,
|
146
|
-
10, 121, 10, 39, 10, 97, 10, 108,
|
147
|
-
10, 108, 10, 97, 117, 10, 99, 10,
|
148
|
-
107, 10, 103, 10, 114, 10, 111, 10,
|
149
|
-
117, 10, 110, 10, 100, 10, 116, 10,
|
150
|
-
101, 10, 97, 10, 116, 10, 117, 10,
|
151
|
-
114, 10, 101, 10, 105, 10, 118, 10,
|
152
|
-
101, 10, 110, 10, 99, 10, 101, 10,
|
153
|
-
110, 10, 97, 10, 114, 10, 105, 10,
|
154
|
-
111, 10, 104, 104, 32, 124, 9, 13,
|
155
|
-
10, 32, 92, 124, 9, 13, 10, 92,
|
156
|
-
124, 10, 92, 10, 32, 92, 124, 9,
|
157
|
-
13, 10, 32, 34, 35, 37, 42, 64,
|
158
|
-
65, 66, 69, 70, 71, 83, 84, 87,
|
159
|
-
124, 9, 13, 10, 110, 10, 100, 10,
|
160
|
-
32, 10, 121, 10, 39, 10, 97, 10,
|
161
|
-
108, 10, 108, 10, 117, 10, 116, 10,
|
162
|
-
101, 10, 97, 10, 116, 10, 117, 10,
|
163
|
-
114, 10, 101, 10, 58, 10, 105, 10,
|
164
|
-
118, 10, 101, 10, 110, 10, 99, 10,
|
165
|
-
101, 10, 110, 10, 97, 10, 114, 10,
|
166
|
-
105, 10, 111, 10, 104, 100, 187, 191,
|
167
|
-
0
|
168
|
-
];
|
169
|
-
|
170
|
-
const _lexer_single_lengths = [
|
171
|
-
0, 17, 16, 1, 1, 2, 3, 3,
|
172
|
-
3, 3, 2, 2, 2, 1, 1, 1,
|
173
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
174
|
-
1, 1, 1, 1, 1, 1, 2, 3,
|
175
|
-
5, 3, 2, 1, 1, 1, 1, 1,
|
176
|
-
1, 1, 1, 1, 1, 13, 2, 2,
|
177
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
178
|
-
2, 2, 2, 2, 2, 16, 2, 1,
|
179
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
180
|
-
1, 1, 13, 2, 2, 2, 2, 2,
|
181
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
182
|
-
2, 2, 3, 2, 2, 2, 2, 2,
|
183
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
184
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
185
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
186
|
-
2, 2, 2, 2, 2, 2, 1, 1,
|
187
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
188
|
-
1, 1, 1, 1, 1, 1, 1, 5,
|
189
|
-
2, 2, 2, 2, 2, 2, 2, 1,
|
190
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
191
|
-
10, 2, 2, 2, 2, 2, 2, 2,
|
192
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
193
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
194
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
195
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
196
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
197
|
-
2, 2, 2, 2, 2, 1, 1, 1,
|
198
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
199
|
-
1, 1, 1, 13, 2, 2, 2, 2,
|
200
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
201
|
-
2, 2, 2, 3, 2, 2, 2, 2,
|
202
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
203
|
-
2, 2, 2, 3, 2, 2, 2, 2,
|
204
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
205
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
206
|
-
2, 2, 2, 2, 2, 2, 2, 1,
|
207
|
-
2, 4, 3, 2, 4, 16, 2, 2,
|
208
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
209
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
210
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
211
|
-
2, 2, 2, 1, 1, 1, 0
|
212
|
-
];
|
213
|
-
|
214
|
-
const _lexer_range_lengths = [
|
215
|
-
0, 1, 1, 0, 0, 1, 1, 1,
|
216
|
-
1, 1, 1, 1, 0, 0, 0, 0,
|
217
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
218
|
-
0, 0, 0, 0, 0, 0, 0, 1,
|
219
|
-
1, 1, 0, 0, 0, 0, 0, 0,
|
220
|
-
0, 0, 0, 0, 0, 1, 0, 0,
|
221
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
222
|
-
0, 0, 0, 0, 0, 1, 0, 0,
|
223
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
224
|
-
0, 0, 1, 0, 0, 0, 0, 0,
|
225
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
226
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
227
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
228
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
229
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
230
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
231
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
232
|
-
0, 0, 0, 0, 0, 0, 0, 1,
|
233
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
234
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
235
|
-
1, 0, 0, 0, 0, 0, 0, 0,
|
236
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
237
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
238
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
239
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
240
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
241
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
242
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
243
|
-
0, 0, 0, 1, 0, 0, 0, 0,
|
244
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
245
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
246
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
247
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
248
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
249
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
250
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
251
|
-
1, 1, 0, 0, 1, 1, 0, 0,
|
252
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
253
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
254
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
255
|
-
0, 0, 0, 0, 0, 0, 0
|
256
|
-
];
|
257
|
-
|
258
|
-
const _lexer_index_offsets = [
|
259
|
-
0, 0, 19, 37, 39, 41, 45, 50,
|
260
|
-
55, 60, 65, 69, 73, 76, 78, 80,
|
261
|
-
82, 84, 86, 88, 90, 92, 94, 96,
|
262
|
-
98, 100, 102, 104, 106, 108, 110, 113,
|
263
|
-
118, 125, 130, 133, 135, 137, 139, 141,
|
264
|
-
143, 145, 147, 149, 151, 153, 168, 171,
|
265
|
-
174, 177, 180, 183, 186, 189, 192, 195,
|
266
|
-
198, 201, 204, 207, 210, 213, 231, 234,
|
267
|
-
236, 238, 240, 242, 244, 246, 248, 250,
|
268
|
-
252, 254, 256, 271, 274, 277, 280, 283,
|
269
|
-
286, 289, 292, 295, 298, 301, 304, 307,
|
270
|
-
310, 313, 316, 320, 323, 326, 329, 332,
|
271
|
-
335, 338, 341, 344, 347, 350, 353, 356,
|
272
|
-
359, 362, 365, 368, 371, 374, 377, 380,
|
273
|
-
383, 386, 389, 392, 395, 398, 401, 404,
|
274
|
-
407, 410, 413, 416, 419, 422, 425, 427,
|
275
|
-
429, 431, 433, 435, 437, 439, 441, 443,
|
276
|
-
445, 447, 449, 451, 453, 455, 457, 459,
|
277
|
-
466, 469, 472, 475, 478, 481, 484, 487,
|
278
|
-
489, 491, 493, 495, 497, 499, 501, 503,
|
279
|
-
505, 517, 520, 523, 526, 529, 532, 535,
|
280
|
-
538, 541, 544, 547, 550, 553, 556, 559,
|
281
|
-
562, 565, 568, 571, 574, 577, 580, 583,
|
282
|
-
586, 589, 592, 595, 598, 601, 604, 607,
|
283
|
-
610, 613, 616, 619, 622, 625, 628, 631,
|
284
|
-
634, 637, 640, 643, 646, 649, 652, 655,
|
285
|
-
658, 661, 664, 667, 670, 673, 675, 677,
|
286
|
-
679, 681, 683, 685, 687, 689, 691, 693,
|
287
|
-
695, 697, 699, 701, 716, 719, 722, 725,
|
288
|
-
728, 731, 734, 737, 740, 743, 746, 749,
|
289
|
-
752, 755, 758, 761, 765, 768, 771, 774,
|
290
|
-
777, 780, 783, 786, 789, 792, 795, 798,
|
291
|
-
801, 804, 807, 810, 814, 817, 820, 823,
|
292
|
-
826, 829, 832, 835, 838, 841, 844, 847,
|
293
|
-
850, 853, 856, 859, 862, 865, 868, 871,
|
294
|
-
874, 877, 880, 883, 886, 889, 892, 895,
|
295
|
-
897, 901, 907, 911, 914, 920, 938, 941,
|
296
|
-
944, 947, 950, 953, 956, 959, 962, 965,
|
297
|
-
968, 971, 974, 977, 980, 983, 986, 989,
|
298
|
-
992, 995, 998, 1001, 1004, 1007, 1010, 1013,
|
299
|
-
1016, 1019, 1022, 1025, 1027, 1029, 1031
|
300
|
-
];
|
301
|
-
|
302
|
-
const _lexer_indicies = [
|
303
|
-
2, 1, 3, 4, 5, 6, 7, 8,
|
304
|
-
9, 10, 11, 12, 13, 14, 14, 15,
|
305
|
-
16, 1, 0, 2, 1, 3, 4, 5,
|
306
|
-
6, 7, 8, 9, 10, 11, 12, 13,
|
307
|
-
14, 14, 15, 1, 0, 17, 0, 18,
|
308
|
-
0, 19, 18, 18, 0, 22, 21, 23,
|
309
|
-
21, 20, 26, 25, 27, 25, 24, 26,
|
310
|
-
25, 28, 25, 24, 26, 25, 29, 25,
|
311
|
-
24, 31, 30, 30, 0, 2, 32, 32,
|
312
|
-
0, 34, 35, 33, 2, 0, 36, 0,
|
313
|
-
37, 0, 38, 0, 39, 0, 40, 0,
|
314
|
-
41, 0, 42, 0, 43, 0, 44, 0,
|
315
|
-
45, 0, 46, 0, 47, 0, 48, 0,
|
316
|
-
49, 0, 50, 0, 0, 51, 53, 54,
|
317
|
-
52, 0, 0, 0, 0, 55, 56, 57,
|
318
|
-
56, 56, 59, 58, 55, 2, 60, 7,
|
319
|
-
60, 0, 61, 62, 0, 63, 0, 64,
|
320
|
-
0, 65, 0, 66, 0, 67, 0, 68,
|
321
|
-
0, 69, 0, 70, 0, 72, 71, 74,
|
322
|
-
73, 74, 75, 76, 77, 78, 76, 79,
|
323
|
-
80, 81, 82, 83, 84, 84, 75, 73,
|
324
|
-
74, 85, 73, 74, 86, 73, 74, 87,
|
325
|
-
73, 74, 88, 73, 74, 89, 73, 74,
|
326
|
-
90, 73, 74, 91, 73, 74, 92, 73,
|
327
|
-
74, 93, 73, 74, 94, 73, 74, 95,
|
328
|
-
73, 74, 96, 73, 74, 97, 73, 74,
|
329
|
-
98, 73, 74, 99, 73, 101, 100, 102,
|
330
|
-
103, 104, 105, 106, 107, 108, 109, 110,
|
331
|
-
111, 112, 113, 113, 114, 100, 0, 115,
|
332
|
-
116, 0, 117, 0, 118, 0, 119, 0,
|
333
|
-
120, 0, 121, 0, 122, 0, 123, 0,
|
334
|
-
124, 0, 125, 0, 127, 126, 129, 128,
|
335
|
-
129, 130, 131, 132, 133, 131, 134, 135,
|
336
|
-
136, 137, 138, 139, 139, 130, 128, 129,
|
337
|
-
140, 128, 129, 141, 128, 129, 142, 128,
|
338
|
-
129, 143, 128, 129, 144, 128, 129, 145,
|
339
|
-
128, 129, 146, 128, 129, 147, 128, 129,
|
340
|
-
148, 128, 129, 149, 128, 129, 150, 128,
|
341
|
-
129, 151, 128, 129, 152, 128, 129, 153,
|
342
|
-
128, 129, 154, 128, 129, 155, 156, 128,
|
343
|
-
129, 157, 128, 129, 158, 128, 129, 159,
|
344
|
-
128, 129, 160, 128, 129, 161, 128, 129,
|
345
|
-
162, 128, 129, 163, 128, 129, 154, 128,
|
346
|
-
129, 164, 128, 129, 165, 128, 129, 166,
|
347
|
-
128, 129, 167, 128, 129, 168, 128, 129,
|
348
|
-
169, 128, 129, 170, 128, 129, 171, 128,
|
349
|
-
129, 164, 128, 129, 172, 128, 129, 173,
|
350
|
-
128, 129, 174, 128, 129, 175, 128, 129,
|
351
|
-
176, 128, 129, 163, 128, 129, 177, 128,
|
352
|
-
129, 178, 128, 129, 179, 128, 129, 164,
|
353
|
-
128, 129, 180, 128, 129, 181, 128, 129,
|
354
|
-
182, 128, 129, 183, 128, 129, 184, 128,
|
355
|
-
129, 185, 128, 129, 163, 128, 129, 178,
|
356
|
-
128, 186, 0, 187, 0, 188, 0, 189,
|
357
|
-
0, 190, 0, 191, 0, 192, 0, 193,
|
358
|
-
0, 194, 0, 195, 0, 196, 0, 197,
|
359
|
-
0, 198, 0, 199, 0, 200, 0, 202,
|
360
|
-
201, 204, 203, 204, 205, 206, 207, 206,
|
361
|
-
205, 203, 204, 208, 203, 204, 209, 203,
|
362
|
-
204, 210, 203, 204, 211, 203, 204, 212,
|
363
|
-
203, 204, 213, 203, 204, 214, 203, 215,
|
364
|
-
0, 216, 0, 217, 0, 218, 0, 219,
|
365
|
-
0, 220, 0, 221, 0, 223, 222, 225,
|
366
|
-
224, 225, 226, 227, 228, 227, 229, 230,
|
367
|
-
231, 232, 233, 226, 224, 225, 234, 224,
|
368
|
-
225, 235, 224, 225, 236, 224, 225, 237,
|
369
|
-
224, 225, 238, 224, 225, 239, 224, 225,
|
370
|
-
240, 224, 225, 241, 224, 225, 242, 224,
|
371
|
-
225, 243, 224, 225, 244, 224, 225, 245,
|
372
|
-
224, 225, 246, 224, 225, 247, 224, 225,
|
373
|
-
248, 224, 225, 249, 224, 225, 250, 224,
|
374
|
-
225, 251, 224, 225, 252, 224, 225, 253,
|
375
|
-
224, 225, 254, 224, 225, 255, 224, 225,
|
376
|
-
256, 224, 225, 257, 224, 225, 258, 224,
|
377
|
-
225, 259, 224, 225, 260, 224, 225, 261,
|
378
|
-
224, 225, 262, 224, 225, 263, 224, 225,
|
379
|
-
264, 224, 225, 255, 224, 225, 265, 224,
|
380
|
-
225, 266, 224, 225, 267, 224, 225, 268,
|
381
|
-
224, 225, 269, 224, 225, 270, 224, 225,
|
382
|
-
255, 224, 225, 271, 224, 225, 272, 224,
|
383
|
-
225, 273, 224, 225, 274, 224, 225, 275,
|
384
|
-
224, 225, 255, 224, 225, 276, 224, 225,
|
385
|
-
277, 224, 225, 278, 224, 225, 279, 224,
|
386
|
-
225, 280, 224, 225, 281, 224, 225, 255,
|
387
|
-
224, 282, 0, 283, 0, 284, 0, 186,
|
388
|
-
0, 285, 0, 286, 0, 287, 0, 288,
|
389
|
-
0, 289, 0, 290, 0, 291, 0, 292,
|
390
|
-
0, 294, 293, 296, 295, 296, 297, 298,
|
391
|
-
299, 300, 298, 301, 302, 303, 304, 305,
|
392
|
-
306, 306, 297, 295, 296, 307, 295, 296,
|
393
|
-
308, 295, 296, 309, 295, 296, 310, 295,
|
394
|
-
296, 311, 295, 296, 312, 295, 296, 313,
|
395
|
-
295, 296, 314, 295, 296, 315, 295, 296,
|
396
|
-
316, 295, 296, 317, 295, 296, 318, 295,
|
397
|
-
296, 319, 295, 296, 320, 295, 296, 321,
|
398
|
-
295, 296, 322, 323, 295, 296, 324, 295,
|
399
|
-
296, 325, 295, 296, 326, 295, 296, 327,
|
400
|
-
295, 296, 328, 295, 296, 329, 295, 296,
|
401
|
-
330, 295, 296, 321, 295, 296, 331, 295,
|
402
|
-
296, 332, 295, 296, 333, 295, 296, 334,
|
403
|
-
295, 296, 335, 295, 296, 336, 295, 296,
|
404
|
-
337, 295, 296, 338, 339, 295, 296, 340,
|
405
|
-
295, 296, 341, 295, 296, 342, 295, 296,
|
406
|
-
343, 295, 296, 344, 295, 296, 345, 295,
|
407
|
-
296, 346, 295, 296, 330, 295, 296, 331,
|
408
|
-
295, 296, 347, 295, 296, 348, 295, 296,
|
409
|
-
349, 295, 296, 350, 295, 296, 351, 295,
|
410
|
-
296, 330, 295, 296, 352, 295, 296, 353,
|
411
|
-
295, 296, 354, 295, 296, 331, 295, 296,
|
412
|
-
355, 295, 296, 356, 295, 296, 357, 295,
|
413
|
-
296, 358, 295, 296, 359, 295, 296, 360,
|
414
|
-
295, 296, 330, 295, 296, 353, 295, 283,
|
415
|
-
0, 361, 362, 361, 0, 365, 364, 366,
|
416
|
-
367, 364, 363, 0, 369, 370, 368, 0,
|
417
|
-
369, 368, 365, 371, 369, 370, 371, 368,
|
418
|
-
365, 372, 373, 374, 375, 376, 377, 378,
|
419
|
-
379, 380, 381, 382, 383, 384, 384, 385,
|
420
|
-
372, 0, 74, 386, 73, 74, 387, 73,
|
421
|
-
74, 388, 73, 74, 389, 73, 74, 390,
|
422
|
-
73, 74, 391, 73, 74, 392, 73, 74,
|
423
|
-
393, 73, 74, 394, 73, 74, 387, 73,
|
424
|
-
74, 395, 73, 74, 396, 73, 74, 397,
|
425
|
-
73, 74, 398, 73, 74, 399, 73, 74,
|
426
|
-
400, 73, 74, 99, 73, 74, 401, 73,
|
427
|
-
74, 402, 73, 74, 403, 73, 74, 387,
|
428
|
-
73, 74, 404, 73, 74, 405, 73, 74,
|
429
|
-
406, 73, 74, 407, 73, 74, 408, 73,
|
430
|
-
74, 409, 73, 74, 400, 73, 74, 402,
|
431
|
-
73, 186, 0, 410, 0, 1, 0, 411,
|
432
|
-
0
|
433
|
-
];
|
434
|
-
|
435
|
-
const _lexer_trans_targs = [
|
436
|
-
0, 2, 2, 3, 12, 14, 28, 31,
|
437
|
-
34, 62, 133, 151, 213, 217, 287, 288,
|
438
|
-
324, 4, 5, 6, 7, 7, 7, 8,
|
439
|
-
7, 7, 7, 8, 9, 10, 11, 2,
|
440
|
-
11, 12, 2, 13, 15, 16, 17, 18,
|
441
|
-
19, 20, 21, 22, 23, 24, 25, 26,
|
442
|
-
27, 326, 29, 30, 30, 2, 13, 32,
|
443
|
-
33, 2, 32, 31, 33, 35, 323, 36,
|
444
|
-
37, 38, 39, 40, 41, 42, 43, 44,
|
445
|
-
45, 44, 45, 45, 2, 46, 60, 294,
|
446
|
-
302, 304, 311, 315, 322, 47, 48, 49,
|
447
|
-
50, 51, 52, 53, 54, 55, 56, 57,
|
448
|
-
58, 59, 2, 61, 2, 2, 3, 12,
|
449
|
-
14, 28, 31, 34, 62, 133, 151, 213,
|
450
|
-
217, 287, 288, 63, 126, 64, 65, 66,
|
451
|
-
67, 68, 69, 70, 71, 72, 73, 74,
|
452
|
-
73, 74, 74, 2, 75, 89, 90, 106,
|
453
|
-
108, 114, 118, 125, 76, 77, 78, 79,
|
454
|
-
80, 81, 82, 83, 84, 85, 86, 87,
|
455
|
-
88, 2, 61, 91, 99, 92, 93, 94,
|
456
|
-
95, 96, 97, 98, 100, 101, 102, 103,
|
457
|
-
104, 105, 89, 107, 109, 110, 111, 112,
|
458
|
-
113, 115, 116, 117, 119, 120, 121, 122,
|
459
|
-
123, 124, 127, 128, 129, 130, 131, 132,
|
460
|
-
28, 134, 135, 136, 137, 138, 139, 140,
|
461
|
-
141, 142, 143, 142, 143, 143, 2, 144,
|
462
|
-
145, 146, 147, 148, 149, 150, 61, 152,
|
463
|
-
153, 154, 155, 156, 157, 158, 159, 160,
|
464
|
-
159, 160, 160, 2, 161, 175, 184, 193,
|
465
|
-
200, 206, 162, 163, 164, 165, 166, 167,
|
466
|
-
168, 169, 170, 171, 172, 173, 174, 2,
|
467
|
-
176, 177, 178, 179, 180, 181, 182, 183,
|
468
|
-
61, 185, 186, 187, 188, 189, 190, 191,
|
469
|
-
192, 194, 195, 196, 197, 198, 199, 201,
|
470
|
-
202, 203, 204, 205, 207, 208, 209, 210,
|
471
|
-
211, 212, 214, 215, 216, 218, 219, 220,
|
472
|
-
221, 222, 223, 224, 225, 226, 227, 226,
|
473
|
-
227, 227, 2, 228, 242, 243, 259, 269,
|
474
|
-
275, 279, 286, 229, 230, 231, 232, 233,
|
475
|
-
234, 235, 236, 237, 238, 239, 240, 241,
|
476
|
-
2, 61, 244, 252, 245, 246, 247, 248,
|
477
|
-
249, 250, 251, 253, 254, 255, 256, 257,
|
478
|
-
258, 242, 260, 268, 261, 262, 263, 264,
|
479
|
-
265, 266, 267, 270, 271, 272, 273, 274,
|
480
|
-
276, 277, 278, 280, 281, 282, 283, 284,
|
481
|
-
285, 288, 289, 290, 292, 293, 291, 289,
|
482
|
-
290, 291, 289, 292, 293, 3, 12, 14,
|
483
|
-
28, 31, 34, 62, 133, 151, 213, 217,
|
484
|
-
287, 288, 295, 296, 297, 298, 299, 300,
|
485
|
-
301, 60, 303, 305, 306, 307, 308, 309,
|
486
|
-
310, 312, 313, 314, 316, 317, 318, 319,
|
487
|
-
320, 321, 325, 0
|
488
|
-
];
|
489
|
-
|
490
|
-
const _lexer_trans_actions = [
|
491
|
-
39, 0, 47, 3, 1, 0, 25, 1,
|
492
|
-
25, 25, 25, 25, 25, 25, 25, 31,
|
493
|
-
0, 0, 0, 47, 5, 41, 119, 41,
|
494
|
-
0, 29, 111, 29, 29, 0, 7, 95,
|
495
|
-
0, 0, 103, 21, 0, 0, 0, 0,
|
496
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
497
|
-
0, 0, 0, 50, 0, 99, 19, 0,
|
498
|
-
23, 107, 23, 44, 0, 0, 0, 0,
|
499
|
-
0, 0, 0, 0, 0, 0, 0, 50,
|
500
|
-
124, 0, 47, 0, 71, 29, 77, 77,
|
501
|
-
77, 77, 77, 77, 77, 0, 0, 0,
|
502
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
503
|
-
0, 0, 15, 15, 27, 115, 53, 50,
|
504
|
-
27, 56, 50, 56, 56, 56, 56, 56,
|
505
|
-
56, 56, 59, 0, 0, 0, 0, 0,
|
506
|
-
0, 0, 0, 0, 0, 0, 50, 124,
|
507
|
-
0, 47, 0, 65, 29, 77, 77, 77,
|
508
|
-
77, 77, 77, 77, 0, 0, 0, 0,
|
509
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
510
|
-
0, 11, 11, 0, 0, 0, 0, 0,
|
511
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
512
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
513
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
514
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
515
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
516
|
-
0, 50, 124, 0, 47, 0, 74, 77,
|
517
|
-
0, 0, 0, 0, 0, 0, 17, 0,
|
518
|
-
0, 0, 0, 0, 0, 0, 50, 124,
|
519
|
-
0, 47, 0, 62, 29, 77, 77, 77,
|
520
|
-
77, 77, 0, 0, 0, 0, 0, 0,
|
521
|
-
0, 0, 0, 0, 0, 0, 0, 9,
|
522
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
523
|
-
9, 0, 0, 0, 0, 0, 0, 0,
|
524
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
525
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
526
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
527
|
-
0, 0, 0, 0, 0, 50, 124, 0,
|
528
|
-
47, 0, 68, 29, 77, 77, 77, 77,
|
529
|
-
77, 77, 77, 0, 0, 0, 0, 0,
|
530
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
531
|
-
13, 13, 0, 0, 0, 0, 0, 0,
|
532
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
533
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
534
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
535
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
536
|
-
0, 0, 0, 33, 33, 47, 33, 80,
|
537
|
-
0, 0, 35, 0, 0, 86, 83, 37,
|
538
|
-
89, 83, 89, 89, 89, 89, 89, 89,
|
539
|
-
89, 92, 0, 0, 0, 0, 0, 0,
|
540
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
541
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
542
|
-
0, 0, 0, 0
|
543
|
-
];
|
544
|
-
|
545
|
-
const _lexer_eof_actions = [
|
546
|
-
0, 39, 39, 39, 39, 39, 39, 39,
|
547
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
548
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
549
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
550
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
551
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
552
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
553
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
554
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
555
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
556
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
557
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
558
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
559
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
560
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
561
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
562
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
563
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
564
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
565
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
566
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
567
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
568
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
569
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
570
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
571
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
572
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
573
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
574
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
575
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
576
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
577
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
578
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
579
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
580
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
581
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
582
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
583
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
584
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
585
|
-
39, 39, 39, 39, 39, 39, 39, 39,
|
586
|
-
39, 39, 39, 39, 39, 39, 39
|
587
|
-
];
|
588
|
-
|
589
|
-
const lexer_start = 1;
|
590
|
-
const lexer_first_final = 326;
|
591
|
-
const lexer_error = 0;
|
592
|
-
|
593
|
-
const lexer_en_main = 1;
|
594
|
-
|
595
|
-
|
596
|
-
/* line 110 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
597
|
-
|
598
|
-
/* line 111 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
599
|
-
|
600
|
-
/* line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
601
|
-
|
602
|
-
var Lexer = function(listeners) {
|
603
|
-
// check that we have an 'on' method (for registering event listeners - Node has that)
|
604
|
-
// If not, make a trivial implementation that can register one listener. -Enough for testing.
|
605
|
-
|
606
|
-
if(!this.on) {
|
607
|
-
this._listeners = {};
|
608
|
-
|
609
|
-
this.on = function(event, cb) {
|
610
|
-
this._listeners[event] = cb;
|
611
|
-
};
|
612
|
-
|
613
|
-
this.emit = function() {
|
614
|
-
var event = arguments[0];
|
615
|
-
var args = [];
|
616
|
-
for(var i = 1; i < arguments.length; i++) {
|
617
|
-
args.push(arguments[i]);
|
618
|
-
}
|
619
|
-
var cb = this._listeners[event];
|
620
|
-
cb.apply(listeners, args);
|
621
|
-
};
|
622
|
-
}
|
623
|
-
|
624
|
-
var events = ['feature', 'background', 'scenario', 'scenario_outline', 'examples', 'step', 'py_string', 'row', 'end'];
|
625
|
-
for(e in events) {
|
626
|
-
var event = events[e];
|
627
|
-
var listener = listeners[event];
|
628
|
-
// if(!listener) {
|
629
|
-
// throw "No listener for " + event;
|
630
|
-
// }
|
631
|
-
this.on(event, listener);
|
632
|
-
}
|
633
|
-
|
634
|
-
|
635
|
-
/* line 636 "js/lib/gherkin/lexer/i18n/en_tx.js" */
|
636
|
-
{
|
637
|
-
this.cs = lexer_start;
|
638
|
-
} /* JSCodeGen::writeInit */
|
639
|
-
|
640
|
-
/* line 146 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
641
|
-
};
|
642
|
-
|
643
|
-
if(typeof require == 'function') {
|
644
|
-
require('sys').inherits(Lexer, require('events').EventEmitter);
|
645
|
-
}
|
646
|
-
|
647
|
-
Lexer.prototype.scan = function(data) {
|
648
|
-
var p = 0;
|
649
|
-
var pe = data.length;
|
650
|
-
var eof = 0;
|
651
|
-
|
652
|
-
|
653
|
-
/* line 654 "js/lib/gherkin/lexer/i18n/en_tx.js" */
|
654
|
-
{
|
655
|
-
var _klen, _trans, _keys, _ps, _widec, _acts, _nacts;
|
656
|
-
var _goto_level, _resume, _eof_trans, _again, _test_eof;
|
657
|
-
var _out;
|
658
|
-
_klen = _trans = _keys = _acts = _nacts = null;
|
659
|
-
_goto_level = 0;
|
660
|
-
_resume = 10;
|
661
|
-
_eof_trans = 15;
|
662
|
-
_again = 20;
|
663
|
-
_test_eof = 30;
|
664
|
-
_out = 40;
|
665
|
-
while (true) {
|
666
|
-
_trigger_goto = false;
|
667
|
-
if (_goto_level <= 0) {
|
668
|
-
if (p == pe) {
|
669
|
-
_goto_level = _test_eof;
|
670
|
-
continue;
|
671
|
-
}
|
672
|
-
if ( this.cs == 0) {
|
673
|
-
_goto_level = _out;
|
674
|
-
continue;
|
675
|
-
}
|
676
|
-
}
|
677
|
-
if (_goto_level <= _resume) {
|
678
|
-
_keys = _lexer_key_offsets[ this.cs];
|
679
|
-
_trans = _lexer_index_offsets[ this.cs];
|
680
|
-
_klen = _lexer_single_lengths[ this.cs];
|
681
|
-
_break_match = false;
|
682
|
-
|
683
|
-
do {
|
684
|
-
if (_klen > 0) {
|
685
|
-
_lower = _keys;
|
686
|
-
_upper = _keys + _klen - 1;
|
687
|
-
|
688
|
-
while (true) {
|
689
|
-
if (_upper < _lower) { break; }
|
690
|
-
_mid = _lower + ( (_upper - _lower) >> 1 );
|
691
|
-
|
692
|
-
if ( data[p] < _lexer_trans_keys[_mid]) {
|
693
|
-
_upper = _mid - 1;
|
694
|
-
} else if ( data[p] > _lexer_trans_keys[_mid]) {
|
695
|
-
_lower = _mid + 1;
|
696
|
-
} else {
|
697
|
-
_trans += (_mid - _keys);
|
698
|
-
_break_match = true;
|
699
|
-
break;
|
700
|
-
};
|
701
|
-
} /* while */
|
702
|
-
if (_break_match) { break; }
|
703
|
-
_keys += _klen;
|
704
|
-
_trans += _klen;
|
705
|
-
}
|
706
|
-
_klen = _lexer_range_lengths[ this.cs];
|
707
|
-
if (_klen > 0) {
|
708
|
-
_lower = _keys;
|
709
|
-
_upper = _keys + (_klen << 1) - 2;
|
710
|
-
while (true) {
|
711
|
-
if (_upper < _lower) { break; }
|
712
|
-
_mid = _lower + (((_upper-_lower) >> 1) & ~1);
|
713
|
-
if ( data[p] < _lexer_trans_keys[_mid]) {
|
714
|
-
_upper = _mid - 2;
|
715
|
-
} else if ( data[p] > _lexer_trans_keys[_mid+1]) {
|
716
|
-
_lower = _mid + 2;
|
717
|
-
} else {
|
718
|
-
_trans += ((_mid - _keys) >> 1);
|
719
|
-
_break_match = true;
|
720
|
-
break;
|
721
|
-
}
|
722
|
-
} /* while */
|
723
|
-
if (_break_match) { break; }
|
724
|
-
_trans += _klen
|
725
|
-
}
|
726
|
-
} while (false);
|
727
|
-
_trans = _lexer_indicies[_trans];
|
728
|
-
this.cs = _lexer_trans_targs[_trans];
|
729
|
-
if (_lexer_trans_actions[_trans] != 0) {
|
730
|
-
_acts = _lexer_trans_actions[_trans];
|
731
|
-
_nacts = _lexer_actions[_acts];
|
732
|
-
_acts += 1;
|
733
|
-
while (_nacts > 0) {
|
734
|
-
_nacts -= 1;
|
735
|
-
_acts += 1;
|
736
|
-
switch (_lexer_actions[_acts - 1]) {
|
737
|
-
case 0:
|
738
|
-
/* line 6 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
739
|
-
|
740
|
-
this.content_start = p;
|
741
|
-
this.current_line = this.line_number;
|
742
|
-
this.start_col = p - this.last_newline - (this.keyword+':').length;
|
743
|
-
break;
|
744
|
-
case 1:
|
745
|
-
/* line 12 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
746
|
-
|
747
|
-
this.current_line = this.line_number;
|
748
|
-
this.start_col = p - this.last_newline;
|
749
|
-
break;
|
750
|
-
case 2:
|
751
|
-
/* line 17 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
752
|
-
|
753
|
-
this.content_start = p;
|
754
|
-
break;
|
755
|
-
case 3:
|
756
|
-
/* line 21 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
757
|
-
|
758
|
-
var con = this.unindent(
|
759
|
-
this.start_col,
|
760
|
-
this.bytesToString(data.slice(this.content_start, this.next_keyword_start-1)).replace(/(\r?\n)?([\t ])*\Z/, '') // TODO .replace(/\"\"\"/mg, '"""')
|
761
|
-
);
|
762
|
-
this.emit('py_string', con, this.current_line);
|
763
|
-
break;
|
764
|
-
case 4:
|
765
|
-
/* line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
766
|
-
|
767
|
-
p = this.store_keyword_content('feature', data, p, eof);
|
768
|
-
break;
|
769
|
-
case 5:
|
770
|
-
/* line 33 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
771
|
-
|
772
|
-
p = this.store_keyword_content('background', data, p, eof);
|
773
|
-
break;
|
774
|
-
case 6:
|
775
|
-
/* line 37 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
776
|
-
|
777
|
-
p = this.store_keyword_content('scenario', data, p, eof);
|
778
|
-
break;
|
779
|
-
case 7:
|
780
|
-
/* line 41 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
781
|
-
|
782
|
-
p = this.store_keyword_content('scenario_outline', data, p, eof);
|
783
|
-
break;
|
784
|
-
case 8:
|
785
|
-
/* line 45 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
786
|
-
|
787
|
-
p = this.store_keyword_content('examples', data, p, eof);
|
788
|
-
break;
|
789
|
-
case 9:
|
790
|
-
/* line 49 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
791
|
-
|
792
|
-
var con = this.bytesToString(data.slice(this.content_start, p)).trim();
|
793
|
-
this.emit('step', this.keyword, con, this.current_line);
|
794
|
-
break;
|
795
|
-
case 10:
|
796
|
-
/* line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
797
|
-
|
798
|
-
console.log('TODO: store_comment_content');
|
799
|
-
break;
|
800
|
-
case 11:
|
801
|
-
/* line 58 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
802
|
-
|
803
|
-
console.log('TODO: store_tag_content');
|
804
|
-
break;
|
805
|
-
case 12:
|
806
|
-
/* line 62 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
807
|
-
|
808
|
-
this.line_number++;
|
809
|
-
break;
|
810
|
-
case 13:
|
811
|
-
/* line 66 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
812
|
-
|
813
|
-
this.last_newline = p + 1;
|
814
|
-
break;
|
815
|
-
case 14:
|
816
|
-
/* line 70 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
817
|
-
|
818
|
-
this.keyword_start = this.keyword_start || p;
|
819
|
-
break;
|
820
|
-
case 15:
|
821
|
-
/* line 74 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
822
|
-
|
823
|
-
this.keyword = this.bytesToString(data.slice(this.keyword_start, p)).replace(/:$/, '');
|
824
|
-
this.keyword_start = null;
|
825
|
-
break;
|
826
|
-
case 16:
|
827
|
-
/* line 79 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
828
|
-
|
829
|
-
this.next_keyword_start = p;
|
830
|
-
break;
|
831
|
-
case 17:
|
832
|
-
/* line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
833
|
-
|
834
|
-
p = p - 1;
|
835
|
-
current_row = [];
|
836
|
-
this.current_line = this.line_number;
|
837
|
-
break;
|
838
|
-
case 18:
|
839
|
-
/* line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
840
|
-
|
841
|
-
this.content_start = p;
|
842
|
-
break;
|
843
|
-
case 19:
|
844
|
-
/* line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
845
|
-
|
846
|
-
var con = this.bytesToString(data.slice(this.content_start, p)).trim();
|
847
|
-
current_row.push(con.replace(/\\\|/, "|").replace(/\\n/, "\n").replace(/\\\\/, "\\"));
|
848
|
-
break;
|
849
|
-
case 20:
|
850
|
-
/* line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
851
|
-
|
852
|
-
this.emit('row', current_row, this.current_line);
|
853
|
-
break;
|
854
|
-
case 21:
|
855
|
-
/* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
856
|
-
|
857
|
-
console.log('TODO: end_feature');
|
858
|
-
break;
|
859
|
-
/* line 860 "js/lib/gherkin/lexer/i18n/en_tx.js" */
|
860
|
-
} /* action switch */
|
861
|
-
}
|
862
|
-
}
|
863
|
-
if (_trigger_goto) {
|
864
|
-
continue;
|
865
|
-
}
|
866
|
-
}
|
867
|
-
if (_goto_level <= _again) {
|
868
|
-
if ( this.cs == 0) {
|
869
|
-
_goto_level = _out;
|
870
|
-
continue;
|
871
|
-
}
|
872
|
-
p += 1;
|
873
|
-
if (p != pe) {
|
874
|
-
_goto_level = _resume;
|
875
|
-
continue;
|
876
|
-
}
|
877
|
-
}
|
878
|
-
if (_goto_level <= _test_eof) {
|
879
|
-
if (p == eof) {
|
880
|
-
__acts = _lexer_eof_actions[ this.cs];
|
881
|
-
__nacts = _lexer_actions[__acts];
|
882
|
-
__acts += 1;
|
883
|
-
while (__nacts > 0) {
|
884
|
-
__nacts -= 1;
|
885
|
-
__acts += 1;
|
886
|
-
switch (_lexer_actions[__acts - 1]) {
|
887
|
-
case 21:
|
888
|
-
/* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
889
|
-
|
890
|
-
console.log('TODO: end_feature');
|
891
|
-
break;
|
892
|
-
/* line 893 "js/lib/gherkin/lexer/i18n/en_tx.js" */
|
893
|
-
} /* eof action switch */
|
894
|
-
}
|
895
|
-
if (_trigger_goto) {
|
896
|
-
continue;
|
897
|
-
}
|
898
|
-
}
|
899
|
-
}
|
900
|
-
if (_goto_level <= _out) {
|
901
|
-
break;
|
902
|
-
}
|
903
|
-
}
|
904
|
-
}
|
905
|
-
|
906
|
-
/* line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_tx.js.rl" */
|
907
|
-
};
|
908
|
-
|
909
|
-
Lexer.prototype.bytesToString = function(bytes) {
|
910
|
-
if(typeof bytes.write == 'function') {
|
911
|
-
// Node.js
|
912
|
-
return bytes.toString('utf-8');
|
913
|
-
} else {
|
914
|
-
var result = "";
|
915
|
-
for(var b in bytes) {
|
916
|
-
result += String.fromCharCode(bytes[b]);
|
917
|
-
}
|
918
|
-
return result;
|
919
|
-
}
|
920
|
-
}
|
921
|
-
|
922
|
-
Lexer.prototype.unindent = function(startcol, text) {
|
923
|
-
startcol = startcol || 0;
|
924
|
-
return text.replace(new RegExp('^[\t ]{0,' + startcol + '}', 'gm'), '');
|
925
|
-
};
|
926
|
-
|
927
|
-
Lexer.prototype.store_keyword_content = function(event, data, p, eof) {
|
928
|
-
var end_point = (!this.next_keyword_start || (p == eof)) ? p : this.next_keyword_start;
|
929
|
-
var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).trimRight();
|
930
|
-
var content_lines = content.split("\n")
|
931
|
-
var name = content_lines.shift() || "";
|
932
|
-
name = name.trim();
|
933
|
-
var description = content_lines.join("\n");
|
934
|
-
this.emit(event, this.keyword, name, description, this.current_line);
|
935
|
-
var nks = this.next_keyword_start;
|
936
|
-
this.next_keyword_start = null;
|
937
|
-
return nks ? nks - 1 : p;
|
938
|
-
};
|
939
|
-
|
940
|
-
exports.Lexer = Lexer;
|
941
|
-
|
942
|
-
})();
|