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