gherkin 2.3.4 → 2.3.5

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