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