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