gherkin 2.11.1 → 2.11.2

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