gherkin 2.11.1 → 2.11.2

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