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