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