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