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