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