gherkin 2.11.1 → 2.11.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +7 -0
- data/README.md +1 -1
- data/ext/gherkin_lexer_bm/gherkin_lexer_bm.c +392 -353
- data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +684 -671
- data/gherkin.gemspec +7 -7
- data/lib/gherkin/README.md +7 -0
- data/lib/gherkin/i18n.json +646 -0
- data/lib/gherkin/i18n.rb +5 -10
- data/lib/gherkin/native/therubyracer.rb +3 -2
- data/lib/gherkin/parser/parser.rb +12 -11
- data/ragel/lexer.java.rl.erb +3 -3
- data/ragel/lexer.js.rl.erb +5 -5
- data/ragel/lexer.rb.rl.erb +4 -2
- data/spec/gherkin/native_lexer_spec.rb +29 -0
- data/tasks/compile.rake +2 -39
- data/tasks/ragel_task.rb +15 -3
- metadata +19 -69
- data/lib/gherkin/i18n.yml +0 -613
- data/lib/gherkin/js_lexer.rb +0 -20
- data/lib/gherkin/rb_lexer.rb +0 -8
- data/lib/gherkin/rb_lexer/README.rdoc +0 -8
- data/lib/gherkin/rb_lexer/ar.rb +0 -1165
- data/lib/gherkin/rb_lexer/bg.rb +0 -1377
- data/lib/gherkin/rb_lexer/bm.rb +0 -1081
- data/lib/gherkin/rb_lexer/ca.rb +0 -1305
- data/lib/gherkin/rb_lexer/cs.rb +0 -1157
- data/lib/gherkin/rb_lexer/cy_gb.rb +0 -1027
- data/lib/gherkin/rb_lexer/da.rb +0 -1043
- data/lib/gherkin/rb_lexer/de.rb +0 -1151
- data/lib/gherkin/rb_lexer/en.rb +0 -1151
- data/lib/gherkin/rb_lexer/en_au.rb +0 -971
- data/lib/gherkin/rb_lexer/en_lol.rb +0 -929
- data/lib/gherkin/rb_lexer/en_pirate.rb +0 -1205
- data/lib/gherkin/rb_lexer/en_scouse.rb +0 -1357
- data/lib/gherkin/rb_lexer/en_tx.rb +0 -1011
- data/lib/gherkin/rb_lexer/eo.rb +0 -990
- data/lib/gherkin/rb_lexer/es.rb +0 -1135
- data/lib/gherkin/rb_lexer/et.rb +0 -985
- data/lib/gherkin/rb_lexer/fi.rb +0 -964
- data/lib/gherkin/rb_lexer/fr.rb +0 -1223
- data/lib/gherkin/rb_lexer/he.rb +0 -1113
- data/lib/gherkin/rb_lexer/hr.rb +0 -1061
- data/lib/gherkin/rb_lexer/hu.rb +0 -1113
- data/lib/gherkin/rb_lexer/id.rb +0 -958
- data/lib/gherkin/rb_lexer/is.rb +0 -1115
- data/lib/gherkin/rb_lexer/it.rb +0 -1081
- data/lib/gherkin/rb_lexer/ja.rb +0 -1413
- data/lib/gherkin/rb_lexer/ko.rb +0 -1097
- data/lib/gherkin/rb_lexer/lt.rb +0 -1040
- data/lib/gherkin/rb_lexer/lu.rb +0 -1127
- data/lib/gherkin/rb_lexer/lv.rb +0 -1161
- data/lib/gherkin/rb_lexer/nl.rb +0 -1110
- data/lib/gherkin/rb_lexer/no.rb +0 -1055
- data/lib/gherkin/rb_lexer/pl.rb +0 -1452
- data/lib/gherkin/rb_lexer/pt.rb +0 -1425
- data/lib/gherkin/rb_lexer/ro.rb +0 -1159
- data/lib/gherkin/rb_lexer/ru.rb +0 -1749
- data/lib/gherkin/rb_lexer/sk.rb +0 -1041
- data/lib/gherkin/rb_lexer/sr_cyrl.rb +0 -1798
- data/lib/gherkin/rb_lexer/sr_latn.rb +0 -1289
- data/lib/gherkin/rb_lexer/sv.rb +0 -1065
- data/lib/gherkin/rb_lexer/tr.rb +0 -1087
- data/lib/gherkin/rb_lexer/uk.rb +0 -1641
- data/lib/gherkin/rb_lexer/uz.rb +0 -1371
- data/lib/gherkin/rb_lexer/vi.rb +0 -1193
- data/lib/gherkin/rb_lexer/zh_cn.rb +0 -1053
- data/lib/gherkin/rb_lexer/zh_tw.rb +0 -1047
- data/spec/gherkin/js_lexer_spec.rb +0 -23
- data/spec/gherkin/rb_lexer_spec.rb +0 -20
data/lib/gherkin/rb_lexer/hu.rb
DELETED
@@ -1,1113 +0,0 @@
|
|
1
|
-
|
2
|
-
# line 1 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/hu.rb.rl"
|
3
|
-
require 'gherkin/lexer/i18n_lexer'
|
4
|
-
|
5
|
-
module Gherkin
|
6
|
-
module RbLexer
|
7
|
-
class Hu #:nodoc:
|
8
|
-
|
9
|
-
# line 123 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/hu.rb.rl"
|
10
|
-
|
11
|
-
|
12
|
-
def initialize(listener)
|
13
|
-
@listener = listener
|
14
|
-
|
15
|
-
# line 16 "lib/gherkin/rb_lexer/hu.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, 22, 24, 26,
|
49
|
-
44, 45, 46, 48, 50, 55, 60, 65,
|
50
|
-
70, 74, 78, 80, 81, 82, 83, 84,
|
51
|
-
85, 86, 87, 88, 89, 90, 91, 92,
|
52
|
-
93, 94, 95, 100, 107, 112, 115, 116,
|
53
|
-
117, 118, 119, 120, 121, 123, 124, 125,
|
54
|
-
126, 127, 128, 129, 130, 131, 132, 133,
|
55
|
-
134, 135, 136, 137, 138, 139, 140, 141,
|
56
|
-
142, 143, 144, 146, 147, 148, 149, 150,
|
57
|
-
151, 152, 153, 154, 155, 156, 171, 173,
|
58
|
-
175, 177, 195, 197, 198, 199, 200, 201,
|
59
|
-
202, 203, 204, 205, 206, 221, 223, 225,
|
60
|
-
227, 229, 231, 233, 235, 237, 239, 241,
|
61
|
-
243, 245, 247, 249, 251, 253, 255, 259,
|
62
|
-
261, 263, 265, 267, 269, 271, 274, 276,
|
63
|
-
278, 280, 282, 284, 286, 288, 290, 292,
|
64
|
-
294, 296, 298, 300, 302, 304, 306, 308,
|
65
|
-
310, 312, 314, 316, 319, 321, 323, 325,
|
66
|
-
327, 329, 331, 333, 335, 337, 339, 341,
|
67
|
-
343, 345, 347, 349, 351, 353, 355, 357,
|
68
|
-
359, 360, 361, 362, 363, 364, 365, 366,
|
69
|
-
367, 368, 369, 370, 381, 383, 385, 387,
|
70
|
-
389, 391, 393, 395, 397, 399, 401, 403,
|
71
|
-
405, 407, 409, 411, 413, 415, 417, 419,
|
72
|
-
421, 423, 425, 427, 429, 431, 433, 435,
|
73
|
-
438, 440, 442, 444, 446, 448, 450, 452,
|
74
|
-
454, 456, 458, 460, 462, 464, 466, 468,
|
75
|
-
470, 472, 474, 476, 478, 480, 482, 484,
|
76
|
-
486, 488, 490, 492, 494, 496, 498, 499,
|
77
|
-
500, 501, 502, 503, 504, 505, 506, 507,
|
78
|
-
508, 509, 510, 511, 518, 520, 522, 524,
|
79
|
-
526, 528, 530, 532, 534, 536, 540, 546,
|
80
|
-
549, 551, 557, 575, 577, 579, 581, 583,
|
81
|
-
585, 587, 589, 591, 593, 595, 597, 599,
|
82
|
-
601, 603, 607, 609, 611, 613, 615, 617,
|
83
|
-
619, 622, 624, 626, 628, 630, 632, 634,
|
84
|
-
636, 638, 640, 642, 644, 646, 648, 650,
|
85
|
-
652, 654, 656, 658, 660, 662, 664, 666,
|
86
|
-
668, 670, 672, 674, 676, 678, 680, 682,
|
87
|
-
684, 686, 688, 690, 691, 692, 707, 709,
|
88
|
-
711, 713, 715, 717, 719, 721, 723, 725,
|
89
|
-
727, 729, 731, 733, 735, 737, 739, 741,
|
90
|
-
745, 747, 749, 751, 753, 755, 757, 760,
|
91
|
-
762, 764, 766, 768, 770, 772, 774, 776,
|
92
|
-
778, 780, 782, 784, 786, 788, 790, 792,
|
93
|
-
794, 796, 798, 800, 802, 805, 807, 809,
|
94
|
-
811, 813, 815, 817, 819, 821, 824, 826,
|
95
|
-
828, 830, 832, 834, 836, 838, 840, 842,
|
96
|
-
844, 846, 848, 850, 852, 854, 856, 858,
|
97
|
-
859, 860
|
98
|
-
]
|
99
|
-
|
100
|
-
class << self
|
101
|
-
attr_accessor :_lexer_trans_keys
|
102
|
-
private :_lexer_trans_keys, :_lexer_trans_keys=
|
103
|
-
end
|
104
|
-
self._lexer_trans_keys = [
|
105
|
-
-61, -17, 10, 32, 34, 35, 37, 42,
|
106
|
-
64, 65, 68, 70, 72, 74, 77, 80,
|
107
|
-
124, 9, 13, -119, 115, 32, 10, 13,
|
108
|
-
10, 13, -61, 10, 32, 34, 35, 37,
|
109
|
-
42, 64, 65, 68, 70, 72, 74, 77,
|
110
|
-
80, 124, 9, 13, 34, 34, 10, 13,
|
111
|
-
10, 13, 10, 32, 34, 9, 13, 10,
|
112
|
-
32, 34, 9, 13, 10, 32, 34, 9,
|
113
|
-
13, 10, 32, 34, 9, 13, 10, 32,
|
114
|
-
9, 13, 10, 32, 9, 13, 10, 13,
|
115
|
-
10, 95, 70, 69, 65, 84, 85, 82,
|
116
|
-
69, 95, 69, 78, 68, 95, 37, 13,
|
117
|
-
32, 64, 9, 10, 9, 10, 13, 32,
|
118
|
-
64, 11, 12, 10, 32, 64, 9, 13,
|
119
|
-
100, 107, 109, 111, 116, 116, 107, 111,
|
120
|
-
114, 101, 105, 110, 110, 121, 105, 98,
|
121
|
-
101, 110, 101, 111, 114, 103, 97, 116,
|
122
|
-
-61, -77, 107, -61, -74, 110, 121, 118,
|
123
|
-
32, 58, 118, -61, -95, 122, 108, 97,
|
124
|
-
116, 58, 10, 10, -61, 10, 32, 35,
|
125
|
-
37, 42, 64, 65, 68, 70, 72, 74,
|
126
|
-
77, 9, 13, -119, 10, 10, 115, 10,
|
127
|
-
32, -61, 10, 32, 34, 35, 37, 42,
|
128
|
-
64, 65, 68, 70, 72, 74, 77, 80,
|
129
|
-
124, 9, 13, -61, 97, -95, 116, 116,
|
130
|
-
-61, -87, 114, 58, 10, 10, -61, 10,
|
131
|
-
32, 35, 37, 42, 64, 65, 68, 70,
|
132
|
-
72, 74, 77, 9, 13, -119, 10, 10,
|
133
|
-
115, 10, 32, 10, 95, 10, 70, 10,
|
134
|
-
69, 10, 65, 10, 84, 10, 85, 10,
|
135
|
-
82, 10, 69, 10, 95, 10, 69, 10,
|
136
|
-
78, 10, 68, 10, 95, 10, 37, 10,
|
137
|
-
100, 107, 109, 10, 111, 10, 116, 10,
|
138
|
-
116, 10, 107, 10, 111, 10, 114, 10,
|
139
|
-
101, 105, 10, 110, 10, 110, 10, 121,
|
140
|
-
10, 105, 10, 98, 10, 101, 10, 110,
|
141
|
-
10, 101, 10, 111, 10, 114, 10, 103,
|
142
|
-
10, 97, 10, 116, -61, 10, -77, 10,
|
143
|
-
10, 107, -61, 10, -74, 10, 10, 110,
|
144
|
-
10, 121, 10, 118, 10, 32, 58, 10,
|
145
|
-
118, -61, 10, -95, 10, 10, 122, 10,
|
146
|
-
108, 10, 97, 10, 116, 10, 58, 10,
|
147
|
-
97, 10, 101, 10, 108, 10, 108, 10,
|
148
|
-
101, 10, 109, 10, 122, -59, 10, -111,
|
149
|
-
10, 10, 97, 10, 106, 10, 100, 101,
|
150
|
-
108, 108, 101, 109, 122, -59, -111, 58,
|
151
|
-
10, 10, 10, 32, 35, 37, 64, 70,
|
152
|
-
72, 74, 80, 9, 13, 10, 95, 10,
|
153
|
-
70, 10, 69, 10, 65, 10, 84, 10,
|
154
|
-
85, 10, 82, 10, 69, 10, 95, 10,
|
155
|
-
69, 10, 78, 10, 68, 10, 95, 10,
|
156
|
-
37, 10, 111, 10, 114, 10, 103, 10,
|
157
|
-
97, 10, 116, -61, 10, -77, 10, 10,
|
158
|
-
107, -61, 10, -74, 10, 10, 110, 10,
|
159
|
-
121, 10, 118, 10, 32, 58, 10, 118,
|
160
|
-
-61, 10, -95, 10, 10, 122, 10, 108,
|
161
|
-
10, 97, 10, 116, 10, 58, -61, 10,
|
162
|
-
-95, 10, 10, 116, 10, 116, -61, 10,
|
163
|
-
-87, 10, 10, 114, 10, 101, 10, 108,
|
164
|
-
10, 108, 10, 101, 10, 109, 10, 122,
|
165
|
-
-59, 10, -111, 10, -61, 10, -87, 10,
|
166
|
-
10, 108, 10, 100, -61, 10, -95, 10,
|
167
|
-
10, 107, 97, 106, 100, -61, -87, 108,
|
168
|
-
100, -61, -95, 107, 58, 10, 10, 10,
|
169
|
-
32, 35, 74, 124, 9, 13, 10, 101,
|
170
|
-
10, 108, 10, 108, 10, 101, 10, 109,
|
171
|
-
10, 122, -59, 10, -111, 10, 10, 58,
|
172
|
-
32, 124, 9, 13, 10, 32, 92, 124,
|
173
|
-
9, 13, 10, 92, 124, 10, 92, 10,
|
174
|
-
32, 92, 124, 9, 13, -61, 10, 32,
|
175
|
-
34, 35, 37, 42, 64, 65, 68, 70,
|
176
|
-
72, 74, 77, 80, 124, 9, 13, 10,
|
177
|
-
95, 10, 70, 10, 69, 10, 65, 10,
|
178
|
-
84, 10, 85, 10, 82, 10, 69, 10,
|
179
|
-
95, 10, 69, 10, 78, 10, 68, 10,
|
180
|
-
95, 10, 37, 10, 100, 107, 109, 10,
|
181
|
-
111, 10, 116, 10, 116, 10, 107, 10,
|
182
|
-
111, 10, 114, 10, 101, 105, 10, 110,
|
183
|
-
10, 110, 10, 121, 10, 105, 10, 98,
|
184
|
-
10, 101, 10, 110, 10, 101, 10, 111,
|
185
|
-
10, 114, 10, 103, 10, 97, 10, 116,
|
186
|
-
-61, 10, -77, 10, 10, 107, -61, 10,
|
187
|
-
-74, 10, 10, 110, 10, 121, 10, 118,
|
188
|
-
10, 58, 10, 97, 10, 101, 10, 108,
|
189
|
-
10, 108, 10, 101, 10, 109, 10, 122,
|
190
|
-
-59, 10, -111, 10, 10, 97, 10, 106,
|
191
|
-
10, 100, 10, 10, -61, 10, 32, 35,
|
192
|
-
37, 42, 64, 65, 68, 70, 72, 74,
|
193
|
-
77, 9, 13, -119, 10, 10, 115, 10,
|
194
|
-
32, 10, 95, 10, 70, 10, 69, 10,
|
195
|
-
65, 10, 84, 10, 85, 10, 82, 10,
|
196
|
-
69, 10, 95, 10, 69, 10, 78, 10,
|
197
|
-
68, 10, 95, 10, 37, 10, 100, 107,
|
198
|
-
109, 10, 111, 10, 116, 10, 116, 10,
|
199
|
-
107, 10, 111, 10, 114, 10, 101, 105,
|
200
|
-
10, 110, 10, 110, 10, 121, 10, 105,
|
201
|
-
10, 98, 10, 101, 10, 110, 10, 101,
|
202
|
-
10, 111, 10, 114, 10, 103, 10, 97,
|
203
|
-
10, 116, -61, 10, -77, 10, 10, 107,
|
204
|
-
-61, 10, -74, 10, 10, 110, 10, 121,
|
205
|
-
10, 118, 10, 32, 58, 10, 118, -61,
|
206
|
-
10, -95, 10, 10, 122, 10, 108, 10,
|
207
|
-
97, 10, 116, 10, 58, -61, 10, 97,
|
208
|
-
-95, 10, 10, 116, 10, 116, -61, 10,
|
209
|
-
-87, 10, 10, 114, 10, 101, 10, 108,
|
210
|
-
10, 108, 10, 101, 10, 109, 10, 122,
|
211
|
-
-59, 10, -111, 10, 10, 97, 10, 106,
|
212
|
-
10, 100, -69, -65, 0
|
213
|
-
]
|
214
|
-
|
215
|
-
class << self
|
216
|
-
attr_accessor :_lexer_single_lengths
|
217
|
-
private :_lexer_single_lengths, :_lexer_single_lengths=
|
218
|
-
end
|
219
|
-
self._lexer_single_lengths = [
|
220
|
-
0, 17, 1, 1, 1, 2, 2, 16,
|
221
|
-
1, 1, 2, 2, 3, 3, 3, 3,
|
222
|
-
2, 2, 2, 1, 1, 1, 1, 1,
|
223
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
224
|
-
1, 1, 3, 5, 3, 3, 1, 1,
|
225
|
-
1, 1, 1, 1, 2, 1, 1, 1,
|
226
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
227
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
228
|
-
1, 1, 2, 1, 1, 1, 1, 1,
|
229
|
-
1, 1, 1, 1, 1, 13, 2, 2,
|
230
|
-
2, 16, 2, 1, 1, 1, 1, 1,
|
231
|
-
1, 1, 1, 1, 13, 2, 2, 2,
|
232
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
233
|
-
2, 2, 2, 2, 2, 2, 4, 2,
|
234
|
-
2, 2, 2, 2, 2, 3, 2, 2,
|
235
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
236
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
237
|
-
2, 2, 2, 3, 2, 2, 2, 2,
|
238
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
239
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
240
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
241
|
-
1, 1, 1, 9, 2, 2, 2, 2,
|
242
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
243
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
244
|
-
2, 2, 2, 2, 2, 2, 2, 3,
|
245
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
246
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
247
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
248
|
-
2, 2, 2, 2, 2, 2, 1, 1,
|
249
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
250
|
-
1, 1, 1, 5, 2, 2, 2, 2,
|
251
|
-
2, 2, 2, 2, 2, 2, 4, 3,
|
252
|
-
2, 4, 16, 2, 2, 2, 2, 2,
|
253
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
254
|
-
2, 4, 2, 2, 2, 2, 2, 2,
|
255
|
-
3, 2, 2, 2, 2, 2, 2, 2,
|
256
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
257
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
258
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
259
|
-
2, 2, 2, 1, 1, 13, 2, 2,
|
260
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
261
|
-
2, 2, 2, 2, 2, 2, 2, 4,
|
262
|
-
2, 2, 2, 2, 2, 2, 3, 2,
|
263
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
264
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
265
|
-
2, 2, 2, 2, 3, 2, 2, 2,
|
266
|
-
2, 2, 2, 2, 2, 3, 2, 2,
|
267
|
-
2, 2, 2, 2, 2, 2, 2, 2,
|
268
|
-
2, 2, 2, 2, 2, 2, 2, 1,
|
269
|
-
1, 0
|
270
|
-
]
|
271
|
-
|
272
|
-
class << self
|
273
|
-
attr_accessor :_lexer_range_lengths
|
274
|
-
private :_lexer_range_lengths, :_lexer_range_lengths=
|
275
|
-
end
|
276
|
-
self._lexer_range_lengths = [
|
277
|
-
0, 1, 0, 0, 0, 0, 0, 1,
|
278
|
-
0, 0, 0, 0, 1, 1, 1, 1,
|
279
|
-
1, 1, 0, 0, 0, 0, 0, 0,
|
280
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
281
|
-
0, 0, 1, 1, 1, 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, 1, 0, 0,
|
287
|
-
0, 1, 0, 0, 0, 0, 0, 0,
|
288
|
-
0, 0, 0, 0, 1, 0, 0, 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, 1, 0, 0, 0, 0,
|
299
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
300
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
301
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
302
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
303
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
304
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
305
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
306
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
307
|
-
0, 0, 0, 1, 0, 0, 0, 0,
|
308
|
-
0, 0, 0, 0, 0, 1, 1, 0,
|
309
|
-
0, 1, 1, 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, 1, 0, 0,
|
317
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
318
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
319
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
320
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
321
|
-
0, 0, 0, 0, 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
|
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, 19, 21, 23, 25, 28, 31,
|
335
|
-
49, 51, 53, 56, 59, 64, 69, 74,
|
336
|
-
79, 83, 87, 90, 92, 94, 96, 98,
|
337
|
-
100, 102, 104, 106, 108, 110, 112, 114,
|
338
|
-
116, 118, 120, 125, 132, 137, 141, 143,
|
339
|
-
145, 147, 149, 151, 153, 156, 158, 160,
|
340
|
-
162, 164, 166, 168, 170, 172, 174, 176,
|
341
|
-
178, 180, 182, 184, 186, 188, 190, 192,
|
342
|
-
194, 196, 198, 201, 203, 205, 207, 209,
|
343
|
-
211, 213, 215, 217, 219, 221, 236, 239,
|
344
|
-
242, 245, 263, 266, 268, 270, 272, 274,
|
345
|
-
276, 278, 280, 282, 284, 299, 302, 305,
|
346
|
-
308, 311, 314, 317, 320, 323, 326, 329,
|
347
|
-
332, 335, 338, 341, 344, 347, 350, 355,
|
348
|
-
358, 361, 364, 367, 370, 373, 377, 380,
|
349
|
-
383, 386, 389, 392, 395, 398, 401, 404,
|
350
|
-
407, 410, 413, 416, 419, 422, 425, 428,
|
351
|
-
431, 434, 437, 440, 444, 447, 450, 453,
|
352
|
-
456, 459, 462, 465, 468, 471, 474, 477,
|
353
|
-
480, 483, 486, 489, 492, 495, 498, 501,
|
354
|
-
504, 506, 508, 510, 512, 514, 516, 518,
|
355
|
-
520, 522, 524, 526, 537, 540, 543, 546,
|
356
|
-
549, 552, 555, 558, 561, 564, 567, 570,
|
357
|
-
573, 576, 579, 582, 585, 588, 591, 594,
|
358
|
-
597, 600, 603, 606, 609, 612, 615, 618,
|
359
|
-
622, 625, 628, 631, 634, 637, 640, 643,
|
360
|
-
646, 649, 652, 655, 658, 661, 664, 667,
|
361
|
-
670, 673, 676, 679, 682, 685, 688, 691,
|
362
|
-
694, 697, 700, 703, 706, 709, 712, 714,
|
363
|
-
716, 718, 720, 722, 724, 726, 728, 730,
|
364
|
-
732, 734, 736, 738, 745, 748, 751, 754,
|
365
|
-
757, 760, 763, 766, 769, 772, 776, 782,
|
366
|
-
786, 789, 795, 813, 816, 819, 822, 825,
|
367
|
-
828, 831, 834, 837, 840, 843, 846, 849,
|
368
|
-
852, 855, 860, 863, 866, 869, 872, 875,
|
369
|
-
878, 882, 885, 888, 891, 894, 897, 900,
|
370
|
-
903, 906, 909, 912, 915, 918, 921, 924,
|
371
|
-
927, 930, 933, 936, 939, 942, 945, 948,
|
372
|
-
951, 954, 957, 960, 963, 966, 969, 972,
|
373
|
-
975, 978, 981, 984, 986, 988, 1003, 1006,
|
374
|
-
1009, 1012, 1015, 1018, 1021, 1024, 1027, 1030,
|
375
|
-
1033, 1036, 1039, 1042, 1045, 1048, 1051, 1054,
|
376
|
-
1059, 1062, 1065, 1068, 1071, 1074, 1077, 1081,
|
377
|
-
1084, 1087, 1090, 1093, 1096, 1099, 1102, 1105,
|
378
|
-
1108, 1111, 1114, 1117, 1120, 1123, 1126, 1129,
|
379
|
-
1132, 1135, 1138, 1141, 1144, 1148, 1151, 1154,
|
380
|
-
1157, 1160, 1163, 1166, 1169, 1172, 1176, 1179,
|
381
|
-
1182, 1185, 1188, 1191, 1194, 1197, 1200, 1203,
|
382
|
-
1206, 1209, 1212, 1215, 1218, 1221, 1224, 1227,
|
383
|
-
1229, 1231
|
384
|
-
]
|
385
|
-
|
386
|
-
class << self
|
387
|
-
attr_accessor :_lexer_indicies
|
388
|
-
private :_lexer_indicies, :_lexer_indicies=
|
389
|
-
end
|
390
|
-
self._lexer_indicies = [
|
391
|
-
1, 2, 4, 3, 5, 6, 7, 8,
|
392
|
-
9, 10, 11, 12, 13, 14, 15, 16,
|
393
|
-
17, 3, 0, 18, 0, 19, 0, 20,
|
394
|
-
0, 22, 23, 21, 25, 26, 24, 1,
|
395
|
-
4, 3, 5, 6, 7, 8, 9, 10,
|
396
|
-
11, 12, 13, 14, 15, 16, 17, 3,
|
397
|
-
0, 27, 0, 28, 0, 30, 31, 29,
|
398
|
-
33, 34, 32, 37, 36, 38, 36, 35,
|
399
|
-
41, 40, 42, 40, 39, 41, 40, 43,
|
400
|
-
40, 39, 41, 40, 44, 40, 39, 46,
|
401
|
-
45, 45, 0, 4, 47, 47, 0, 49,
|
402
|
-
50, 48, 4, 0, 51, 0, 52, 0,
|
403
|
-
53, 0, 54, 0, 55, 0, 56, 0,
|
404
|
-
57, 0, 58, 0, 59, 0, 60, 0,
|
405
|
-
61, 0, 62, 0, 63, 0, 64, 0,
|
406
|
-
0, 0, 0, 0, 65, 66, 67, 66,
|
407
|
-
66, 69, 68, 65, 4, 70, 9, 70,
|
408
|
-
0, 71, 72, 73, 0, 74, 0, 75,
|
409
|
-
0, 19, 0, 76, 0, 77, 0, 19,
|
410
|
-
0, 78, 72, 0, 79, 0, 80, 0,
|
411
|
-
81, 0, 82, 0, 83, 0, 84, 0,
|
412
|
-
19, 0, 19, 0, 85, 0, 86, 0,
|
413
|
-
87, 0, 88, 0, 89, 0, 90, 0,
|
414
|
-
91, 0, 92, 0, 93, 0, 94, 0,
|
415
|
-
95, 0, 96, 0, 97, 0, 98, 99,
|
416
|
-
0, 100, 0, 101, 0, 102, 0, 103,
|
417
|
-
0, 104, 0, 105, 0, 106, 0, 107,
|
418
|
-
0, 109, 108, 111, 110, 112, 111, 113,
|
419
|
-
114, 115, 116, 114, 117, 118, 119, 120,
|
420
|
-
121, 122, 113, 110, 123, 111, 110, 111,
|
421
|
-
124, 110, 111, 125, 110, 126, 128, 127,
|
422
|
-
129, 130, 131, 132, 133, 134, 135, 136,
|
423
|
-
137, 138, 139, 140, 141, 127, 0, 142,
|
424
|
-
19, 0, 143, 0, 144, 0, 145, 0,
|
425
|
-
146, 0, 147, 0, 148, 0, 149, 0,
|
426
|
-
151, 150, 153, 152, 154, 153, 155, 156,
|
427
|
-
157, 158, 156, 159, 160, 161, 162, 163,
|
428
|
-
164, 155, 152, 165, 153, 152, 153, 166,
|
429
|
-
152, 153, 167, 152, 153, 168, 152, 153,
|
430
|
-
169, 152, 153, 170, 152, 153, 171, 152,
|
431
|
-
153, 172, 152, 153, 173, 152, 153, 174,
|
432
|
-
152, 153, 175, 152, 153, 176, 152, 153,
|
433
|
-
177, 152, 153, 178, 152, 153, 179, 152,
|
434
|
-
153, 180, 152, 153, 181, 152, 153, 182,
|
435
|
-
183, 184, 152, 153, 185, 152, 153, 186,
|
436
|
-
152, 153, 166, 152, 153, 187, 152, 153,
|
437
|
-
188, 152, 153, 166, 152, 153, 189, 183,
|
438
|
-
152, 153, 190, 152, 153, 191, 152, 153,
|
439
|
-
192, 152, 153, 193, 152, 153, 194, 152,
|
440
|
-
153, 195, 152, 153, 166, 152, 153, 166,
|
441
|
-
152, 153, 196, 152, 153, 197, 152, 153,
|
442
|
-
198, 152, 153, 199, 152, 153, 200, 152,
|
443
|
-
201, 153, 152, 202, 153, 152, 153, 203,
|
444
|
-
152, 204, 153, 152, 205, 153, 152, 153,
|
445
|
-
206, 152, 153, 207, 152, 153, 208, 152,
|
446
|
-
153, 209, 167, 152, 153, 210, 152, 211,
|
447
|
-
153, 152, 212, 153, 152, 153, 213, 152,
|
448
|
-
153, 214, 152, 153, 215, 152, 153, 216,
|
449
|
-
152, 153, 167, 152, 153, 166, 152, 153,
|
450
|
-
217, 152, 153, 218, 152, 153, 219, 152,
|
451
|
-
153, 220, 152, 153, 221, 152, 153, 222,
|
452
|
-
152, 223, 153, 152, 216, 153, 152, 153,
|
453
|
-
224, 152, 153, 225, 152, 153, 166, 152,
|
454
|
-
226, 0, 227, 0, 228, 0, 229, 0,
|
455
|
-
230, 0, 231, 0, 232, 0, 233, 0,
|
456
|
-
234, 0, 236, 235, 238, 237, 238, 239,
|
457
|
-
240, 241, 240, 242, 243, 244, 245, 239,
|
458
|
-
237, 238, 246, 237, 238, 247, 237, 238,
|
459
|
-
248, 237, 238, 249, 237, 238, 250, 237,
|
460
|
-
238, 251, 237, 238, 252, 237, 238, 253,
|
461
|
-
237, 238, 254, 237, 238, 255, 237, 238,
|
462
|
-
256, 237, 238, 257, 237, 238, 258, 237,
|
463
|
-
238, 259, 237, 238, 260, 237, 238, 261,
|
464
|
-
237, 238, 262, 237, 238, 263, 237, 238,
|
465
|
-
264, 237, 265, 238, 237, 266, 238, 237,
|
466
|
-
238, 267, 237, 268, 238, 237, 269, 238,
|
467
|
-
237, 238, 270, 237, 238, 271, 237, 238,
|
468
|
-
272, 237, 238, 273, 274, 237, 238, 275,
|
469
|
-
237, 276, 238, 237, 277, 238, 237, 238,
|
470
|
-
278, 237, 238, 279, 237, 238, 280, 237,
|
471
|
-
238, 281, 237, 238, 274, 237, 282, 238,
|
472
|
-
237, 283, 238, 237, 238, 284, 237, 238,
|
473
|
-
285, 237, 286, 238, 237, 287, 238, 237,
|
474
|
-
238, 281, 237, 238, 288, 237, 238, 289,
|
475
|
-
237, 238, 290, 237, 238, 291, 237, 238,
|
476
|
-
292, 237, 238, 293, 237, 294, 238, 237,
|
477
|
-
281, 238, 237, 295, 238, 237, 296, 238,
|
478
|
-
237, 238, 297, 237, 238, 298, 237, 299,
|
479
|
-
238, 237, 300, 238, 237, 238, 281, 237,
|
480
|
-
301, 0, 302, 0, 19, 0, 303, 0,
|
481
|
-
304, 0, 305, 0, 306, 0, 307, 0,
|
482
|
-
308, 0, 309, 0, 310, 0, 312, 311,
|
483
|
-
314, 313, 314, 315, 316, 317, 316, 315,
|
484
|
-
313, 314, 318, 313, 314, 319, 313, 314,
|
485
|
-
320, 313, 314, 321, 313, 314, 322, 313,
|
486
|
-
314, 323, 313, 324, 314, 313, 325, 314,
|
487
|
-
313, 314, 326, 313, 327, 328, 327, 0,
|
488
|
-
331, 330, 332, 333, 330, 329, 0, 335,
|
489
|
-
336, 334, 0, 335, 334, 331, 337, 335,
|
490
|
-
336, 337, 334, 338, 331, 339, 340, 341,
|
491
|
-
342, 343, 344, 345, 346, 347, 348, 349,
|
492
|
-
350, 351, 352, 339, 0, 111, 353, 110,
|
493
|
-
111, 354, 110, 111, 355, 110, 111, 356,
|
494
|
-
110, 111, 357, 110, 111, 358, 110, 111,
|
495
|
-
359, 110, 111, 360, 110, 111, 361, 110,
|
496
|
-
111, 362, 110, 111, 363, 110, 111, 364,
|
497
|
-
110, 111, 365, 110, 111, 366, 110, 111,
|
498
|
-
367, 368, 369, 110, 111, 370, 110, 111,
|
499
|
-
371, 110, 111, 124, 110, 111, 372, 110,
|
500
|
-
111, 373, 110, 111, 124, 110, 111, 374,
|
501
|
-
368, 110, 111, 375, 110, 111, 376, 110,
|
502
|
-
111, 377, 110, 111, 378, 110, 111, 379,
|
503
|
-
110, 111, 380, 110, 111, 124, 110, 111,
|
504
|
-
124, 110, 111, 381, 110, 111, 382, 110,
|
505
|
-
111, 383, 110, 111, 384, 110, 111, 385,
|
506
|
-
110, 386, 111, 110, 387, 111, 110, 111,
|
507
|
-
388, 110, 389, 111, 110, 390, 111, 110,
|
508
|
-
111, 391, 110, 111, 392, 110, 111, 393,
|
509
|
-
110, 111, 125, 110, 111, 124, 110, 111,
|
510
|
-
394, 110, 111, 395, 110, 111, 396, 110,
|
511
|
-
111, 397, 110, 111, 398, 110, 111, 399,
|
512
|
-
110, 400, 111, 110, 393, 111, 110, 111,
|
513
|
-
401, 110, 111, 402, 110, 111, 124, 110,
|
514
|
-
404, 403, 406, 405, 407, 406, 408, 409,
|
515
|
-
410, 411, 409, 412, 413, 414, 415, 416,
|
516
|
-
417, 408, 405, 418, 406, 405, 406, 419,
|
517
|
-
405, 406, 420, 405, 406, 421, 405, 406,
|
518
|
-
422, 405, 406, 423, 405, 406, 424, 405,
|
519
|
-
406, 425, 405, 406, 426, 405, 406, 427,
|
520
|
-
405, 406, 428, 405, 406, 429, 405, 406,
|
521
|
-
430, 405, 406, 431, 405, 406, 432, 405,
|
522
|
-
406, 433, 405, 406, 434, 405, 406, 435,
|
523
|
-
436, 437, 405, 406, 438, 405, 406, 439,
|
524
|
-
405, 406, 419, 405, 406, 440, 405, 406,
|
525
|
-
441, 405, 406, 419, 405, 406, 442, 436,
|
526
|
-
405, 406, 443, 405, 406, 444, 405, 406,
|
527
|
-
445, 405, 406, 446, 405, 406, 447, 405,
|
528
|
-
406, 448, 405, 406, 419, 405, 406, 419,
|
529
|
-
405, 406, 449, 405, 406, 450, 405, 406,
|
530
|
-
451, 405, 406, 452, 405, 406, 453, 405,
|
531
|
-
454, 406, 405, 455, 406, 405, 406, 456,
|
532
|
-
405, 457, 406, 405, 458, 406, 405, 406,
|
533
|
-
459, 405, 406, 460, 405, 406, 461, 405,
|
534
|
-
406, 462, 420, 405, 406, 463, 405, 464,
|
535
|
-
406, 405, 465, 406, 405, 406, 466, 405,
|
536
|
-
406, 467, 405, 406, 468, 405, 406, 469,
|
537
|
-
405, 406, 420, 405, 470, 406, 419, 405,
|
538
|
-
471, 406, 405, 406, 472, 405, 406, 473,
|
539
|
-
405, 474, 406, 405, 475, 406, 405, 406,
|
540
|
-
469, 405, 406, 476, 405, 406, 477, 405,
|
541
|
-
406, 478, 405, 406, 479, 405, 406, 480,
|
542
|
-
405, 406, 481, 405, 482, 406, 405, 469,
|
543
|
-
406, 405, 406, 483, 405, 406, 484, 405,
|
544
|
-
406, 419, 405, 485, 0, 3, 0, 486,
|
545
|
-
0
|
546
|
-
]
|
547
|
-
|
548
|
-
class << self
|
549
|
-
attr_accessor :_lexer_trans_targs
|
550
|
-
private :_lexer_trans_targs, :_lexer_trans_targs=
|
551
|
-
end
|
552
|
-
self._lexer_trans_targs = [
|
553
|
-
0, 2, 391, 7, 7, 8, 18, 20,
|
554
|
-
4, 34, 37, 52, 53, 82, 160, 230,
|
555
|
-
233, 253, 3, 4, 5, 6, 7, 19,
|
556
|
-
6, 7, 19, 9, 10, 11, 12, 11,
|
557
|
-
11, 12, 11, 13, 13, 13, 14, 13,
|
558
|
-
13, 13, 14, 15, 16, 17, 7, 17,
|
559
|
-
18, 7, 19, 21, 22, 23, 24, 25,
|
560
|
-
26, 27, 28, 29, 30, 31, 32, 33,
|
561
|
-
393, 35, 36, 7, 35, 34, 36, 38,
|
562
|
-
41, 44, 39, 40, 42, 43, 45, 46,
|
563
|
-
47, 48, 49, 50, 51, 54, 55, 56,
|
564
|
-
57, 58, 59, 60, 61, 62, 63, 64,
|
565
|
-
65, 66, 67, 315, 68, 69, 70, 71,
|
566
|
-
72, 73, 74, 75, 76, 77, 76, 77,
|
567
|
-
78, 77, 7, 259, 80, 273, 288, 289,
|
568
|
-
303, 304, 312, 79, 80, 81, 2, 7,
|
569
|
-
7, 8, 18, 20, 4, 34, 37, 52,
|
570
|
-
53, 82, 160, 230, 233, 253, 83, 84,
|
571
|
-
85, 86, 87, 88, 89, 90, 91, 92,
|
572
|
-
91, 92, 93, 92, 7, 96, 95, 110,
|
573
|
-
125, 126, 148, 149, 157, 94, 95, 81,
|
574
|
-
97, 98, 99, 100, 101, 102, 103, 104,
|
575
|
-
105, 106, 107, 108, 109, 7, 111, 114,
|
576
|
-
117, 112, 113, 115, 116, 118, 119, 120,
|
577
|
-
121, 122, 123, 124, 127, 128, 129, 130,
|
578
|
-
131, 132, 133, 134, 135, 136, 137, 138,
|
579
|
-
139, 140, 141, 142, 143, 144, 145, 146,
|
580
|
-
147, 150, 151, 152, 153, 154, 155, 156,
|
581
|
-
158, 159, 161, 162, 163, 164, 165, 166,
|
582
|
-
167, 168, 169, 170, 171, 170, 171, 171,
|
583
|
-
7, 172, 186, 208, 215, 223, 173, 174,
|
584
|
-
175, 176, 177, 178, 179, 180, 181, 182,
|
585
|
-
183, 184, 185, 7, 187, 188, 189, 190,
|
586
|
-
191, 192, 193, 194, 195, 196, 197, 198,
|
587
|
-
199, 200, 81, 201, 202, 203, 204, 205,
|
588
|
-
206, 207, 209, 210, 211, 212, 213, 214,
|
589
|
-
216, 217, 218, 219, 220, 221, 222, 224,
|
590
|
-
225, 226, 227, 228, 229, 231, 232, 234,
|
591
|
-
235, 236, 237, 238, 239, 240, 241, 242,
|
592
|
-
243, 242, 243, 243, 7, 244, 245, 246,
|
593
|
-
247, 248, 249, 250, 251, 252, 81, 253,
|
594
|
-
254, 255, 257, 258, 256, 254, 255, 256,
|
595
|
-
254, 257, 2, 258, 8, 18, 20, 4,
|
596
|
-
34, 37, 52, 53, 82, 160, 230, 233,
|
597
|
-
253, 260, 261, 262, 263, 264, 265, 266,
|
598
|
-
267, 268, 269, 270, 271, 272, 7, 274,
|
599
|
-
277, 280, 275, 276, 278, 279, 281, 282,
|
600
|
-
283, 284, 285, 286, 287, 290, 291, 292,
|
601
|
-
293, 294, 295, 296, 297, 298, 299, 300,
|
602
|
-
301, 302, 305, 306, 307, 308, 309, 310,
|
603
|
-
311, 313, 314, 316, 317, 316, 317, 318,
|
604
|
-
317, 7, 321, 320, 335, 350, 351, 373,
|
605
|
-
380, 388, 319, 320, 81, 322, 323, 324,
|
606
|
-
325, 326, 327, 328, 329, 330, 331, 332,
|
607
|
-
333, 334, 7, 336, 339, 342, 337, 338,
|
608
|
-
340, 341, 343, 344, 345, 346, 347, 348,
|
609
|
-
349, 352, 353, 354, 355, 356, 357, 358,
|
610
|
-
359, 360, 361, 362, 363, 364, 365, 366,
|
611
|
-
367, 368, 369, 370, 371, 372, 374, 375,
|
612
|
-
376, 377, 378, 379, 381, 382, 383, 384,
|
613
|
-
385, 386, 387, 389, 390, 392, 0
|
614
|
-
]
|
615
|
-
|
616
|
-
class << self
|
617
|
-
attr_accessor :_lexer_trans_actions
|
618
|
-
private :_lexer_trans_actions, :_lexer_trans_actions=
|
619
|
-
end
|
620
|
-
self._lexer_trans_actions = [
|
621
|
-
43, 29, 0, 0, 54, 3, 1, 0,
|
622
|
-
29, 1, 29, 29, 29, 29, 29, 29,
|
623
|
-
29, 35, 0, 0, 0, 57, 149, 126,
|
624
|
-
0, 110, 23, 0, 0, 7, 139, 48,
|
625
|
-
0, 102, 9, 5, 45, 134, 45, 0,
|
626
|
-
33, 122, 33, 33, 0, 11, 106, 0,
|
627
|
-
0, 114, 25, 0, 0, 0, 0, 0,
|
628
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
629
|
-
0, 0, 27, 118, 27, 51, 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, 57, 144, 0, 54,
|
635
|
-
84, 0, 78, 33, 84, 84, 84, 84,
|
636
|
-
84, 84, 84, 0, 0, 19, 63, 31,
|
637
|
-
130, 60, 57, 31, 63, 57, 63, 63,
|
638
|
-
63, 63, 63, 63, 63, 66, 0, 0,
|
639
|
-
0, 0, 0, 0, 0, 0, 57, 144,
|
640
|
-
0, 54, 84, 0, 72, 33, 84, 84,
|
641
|
-
84, 84, 84, 84, 84, 0, 0, 15,
|
642
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
643
|
-
0, 0, 0, 0, 0, 15, 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, 0,
|
649
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
650
|
-
0, 0, 0, 57, 144, 0, 54, 0,
|
651
|
-
69, 33, 84, 84, 84, 84, 0, 0,
|
652
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
653
|
-
0, 0, 0, 13, 0, 0, 0, 0,
|
654
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
655
|
-
0, 0, 13, 0, 0, 0, 0, 0,
|
656
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
657
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
658
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
659
|
-
0, 0, 0, 0, 0, 0, 0, 57,
|
660
|
-
144, 0, 54, 0, 81, 84, 0, 0,
|
661
|
-
0, 0, 0, 0, 0, 0, 21, 0,
|
662
|
-
0, 37, 37, 54, 37, 87, 0, 0,
|
663
|
-
39, 0, 96, 0, 93, 90, 41, 96,
|
664
|
-
90, 96, 96, 96, 96, 96, 96, 96,
|
665
|
-
99, 0, 0, 0, 0, 0, 0, 0,
|
666
|
-
0, 0, 0, 0, 0, 0, 19, 0,
|
667
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
668
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
669
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
670
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
671
|
-
0, 0, 0, 57, 144, 0, 54, 84,
|
672
|
-
0, 75, 33, 84, 84, 84, 84, 84,
|
673
|
-
84, 84, 0, 0, 17, 0, 0, 0,
|
674
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
675
|
-
0, 0, 17, 0, 0, 0, 0, 0,
|
676
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
677
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
678
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
679
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
680
|
-
0, 0, 0, 0, 0, 0, 0, 0,
|
681
|
-
0, 0, 0, 0, 0, 0, 0
|
682
|
-
]
|
683
|
-
|
684
|
-
class << self
|
685
|
-
attr_accessor :_lexer_eof_actions
|
686
|
-
private :_lexer_eof_actions, :_lexer_eof_actions=
|
687
|
-
end
|
688
|
-
self._lexer_eof_actions = [
|
689
|
-
0, 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
|
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 = 393;
|
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/hu.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/hu.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/hu.rb.rl"
|
779
|
-
|
780
|
-
# line 781 "lib/gherkin/rb_lexer/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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/hu.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
|