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