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