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