gherkin 2.4.18 → 2.4.20
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +6 -7
- data/History.md +9 -0
- data/README.md +2 -2
- data/ext/gherkin_lexer_ar/extconf.rb +6 -0
- data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +1428 -0
- data/ext/gherkin_lexer_bg/extconf.rb +6 -0
- data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +1654 -0
- data/ext/gherkin_lexer_ca/extconf.rb +6 -0
- data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +1580 -0
- data/ext/gherkin_lexer_cs/extconf.rb +6 -0
- data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +1426 -0
- data/ext/gherkin_lexer_cy_gb/extconf.rb +6 -0
- data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +1281 -0
- data/ext/gherkin_lexer_da/extconf.rb +6 -0
- data/ext/gherkin_lexer_da/gherkin_lexer_da.c +1297 -0
- data/ext/gherkin_lexer_de/extconf.rb +6 -0
- data/ext/gherkin_lexer_de/gherkin_lexer_de.c +1414 -0
- data/ext/gherkin_lexer_en/extconf.rb +6 -0
- data/ext/gherkin_lexer_en/gherkin_lexer_en.c +1264 -0
- data/ext/gherkin_lexer_en_au/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +1225 -0
- data/ext/gherkin_lexer_en_lol/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +1174 -0
- data/ext/gherkin_lexer_en_pirate/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +1470 -0
- data/ext/gherkin_lexer_en_scouse/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +1631 -0
- data/ext/gherkin_lexer_en_tx/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +1264 -0
- data/ext/gherkin_lexer_eo/extconf.rb +6 -0
- data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +1240 -0
- data/ext/gherkin_lexer_es/extconf.rb +6 -0
- data/ext/gherkin_lexer_es/gherkin_lexer_es.c +1379 -0
- data/ext/gherkin_lexer_et/extconf.rb +6 -0
- data/ext/gherkin_lexer_et/gherkin_lexer_et.c +1235 -0
- data/ext/gherkin_lexer_fi/extconf.rb +6 -0
- data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +1214 -0
- data/ext/gherkin_lexer_fr/extconf.rb +6 -0
- data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +1450 -0
- data/ext/gherkin_lexer_he/extconf.rb +6 -0
- data/ext/gherkin_lexer_he/gherkin_lexer_he.c +1373 -0
- data/ext/gherkin_lexer_hr/extconf.rb +6 -0
- data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +1322 -0
- data/ext/gherkin_lexer_hu/extconf.rb +6 -0
- data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +1373 -0
- data/ext/gherkin_lexer_id/extconf.rb +6 -0
- data/ext/gherkin_lexer_id/gherkin_lexer_id.c +1207 -0
- data/ext/gherkin_lexer_is/extconf.rb +6 -0
- data/ext/gherkin_lexer_is/gherkin_lexer_is.c +1375 -0
- data/ext/gherkin_lexer_it/extconf.rb +6 -0
- data/ext/gherkin_lexer_it/gherkin_lexer_it.c +1331 -0
- data/ext/gherkin_lexer_ja/extconf.rb +6 -0
- data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +1698 -0
- data/ext/gherkin_lexer_ko/extconf.rb +6 -0
- data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +1359 -0
- data/ext/gherkin_lexer_lt/extconf.rb +6 -0
- data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +1294 -0
- data/ext/gherkin_lexer_lu/extconf.rb +6 -0
- data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +1388 -0
- data/ext/gherkin_lexer_lv/extconf.rb +6 -0
- data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +1424 -0
- data/ext/gherkin_lexer_nl/extconf.rb +6 -0
- data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +1367 -0
- data/ext/gherkin_lexer_no/extconf.rb +6 -0
- data/ext/gherkin_lexer_no/gherkin_lexer_no.c +1310 -0
- data/ext/gherkin_lexer_pl/extconf.rb +6 -0
- data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +1476 -0
- data/ext/gherkin_lexer_pt/extconf.rb +6 -0
- data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +1326 -0
- data/ext/gherkin_lexer_ro/extconf.rb +6 -0
- data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +1424 -0
- data/ext/gherkin_lexer_ru/extconf.rb +6 -0
- data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +2056 -0
- data/ext/gherkin_lexer_sk/extconf.rb +6 -0
- data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +1297 -0
- data/ext/gherkin_lexer_sr_cyrl/extconf.rb +6 -0
- data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +2111 -0
- data/ext/gherkin_lexer_sr_latn/extconf.rb +6 -0
- data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +1566 -0
- data/ext/gherkin_lexer_sv/extconf.rb +6 -0
- data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +1323 -0
- data/ext/gherkin_lexer_tr/extconf.rb +6 -0
- data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +1346 -0
- data/ext/gherkin_lexer_uk/extconf.rb +6 -0
- data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +1940 -0
- data/ext/gherkin_lexer_uz/extconf.rb +6 -0
- data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +1650 -0
- data/ext/gherkin_lexer_vi/extconf.rb +6 -0
- data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +1457 -0
- data/ext/gherkin_lexer_zh_cn/extconf.rb +6 -0
- data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +1222 -0
- data/ext/gherkin_lexer_zh_tw/extconf.rb +6 -0
- data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +1264 -0
- data/gherkin.gemspec +9 -3
- data/lib/gherkin/formatter/filter_formatter.rb +6 -1
- data/lib/gherkin/rb_lexer/ar.rb +1162 -0
- data/lib/gherkin/rb_lexer/bg.rb +1374 -0
- data/lib/gherkin/rb_lexer/ca.rb +1304 -0
- data/lib/gherkin/rb_lexer/cs.rb +1156 -0
- data/lib/gherkin/rb_lexer/cy_gb.rb +1026 -0
- data/lib/gherkin/rb_lexer/da.rb +1040 -0
- data/lib/gherkin/rb_lexer/de.rb +1150 -0
- data/lib/gherkin/rb_lexer/en.rb +1008 -0
- data/lib/gherkin/rb_lexer/en_au.rb +972 -0
- data/lib/gherkin/rb_lexer/en_lol.rb +927 -0
- data/lib/gherkin/rb_lexer/en_pirate.rb +1204 -0
- data/lib/gherkin/rb_lexer/en_scouse.rb +1355 -0
- data/lib/gherkin/rb_lexer/en_tx.rb +1010 -0
- data/lib/gherkin/rb_lexer/eo.rb +989 -0
- data/lib/gherkin/rb_lexer/es.rb +1116 -0
- data/lib/gherkin/rb_lexer/et.rb +982 -0
- data/lib/gherkin/rb_lexer/fi.rb +963 -0
- data/lib/gherkin/rb_lexer/fr.rb +1184 -0
- data/lib/gherkin/rb_lexer/he.rb +1110 -0
- data/lib/gherkin/rb_lexer/hr.rb +1060 -0
- data/lib/gherkin/rb_lexer/hu.rb +1111 -0
- data/lib/gherkin/rb_lexer/id.rb +957 -0
- data/lib/gherkin/rb_lexer/is.rb +1114 -0
- data/lib/gherkin/rb_lexer/it.rb +1075 -0
- data/lib/gherkin/rb_lexer/ja.rb +1412 -0
- data/lib/gherkin/rb_lexer/ko.rb +1096 -0
- data/lib/gherkin/rb_lexer/lt.rb +1038 -0
- data/lib/gherkin/rb_lexer/lu.rb +1126 -0
- data/lib/gherkin/rb_lexer/lv.rb +1158 -0
- data/lib/gherkin/rb_lexer/nl.rb +1109 -0
- data/lib/gherkin/rb_lexer/no.rb +1052 -0
- data/lib/gherkin/rb_lexer/pl.rb +1208 -0
- data/lib/gherkin/rb_lexer/pt.rb +1066 -0
- data/lib/gherkin/rb_lexer/ro.rb +1155 -0
- data/lib/gherkin/rb_lexer/ru.rb +1747 -0
- data/lib/gherkin/rb_lexer/sk.rb +1040 -0
- data/lib/gherkin/rb_lexer/sr_cyrl.rb +1797 -0
- data/lib/gherkin/rb_lexer/sr_latn.rb +1288 -0
- data/lib/gherkin/rb_lexer/sv.rb +1064 -0
- data/lib/gherkin/rb_lexer/tr.rb +1086 -0
- data/lib/gherkin/rb_lexer/uk.rb +1640 -0
- data/lib/gherkin/rb_lexer/uz.rb +1370 -0
- data/lib/gherkin/rb_lexer/vi.rb +1190 -0
- data/lib/gherkin/rb_lexer/zh_cn.rb +968 -0
- data/lib/gherkin/rb_lexer/zh_tw.rb +1006 -0
- data/spec/gherkin/fixtures/examples_with_only_header.feature +14 -0
- data/spec/gherkin/formatter/filter_formatter_spec.rb +21 -0
- data/tasks/gems.rake +9 -1
- metadata +30 -39
- data/.gitignore +0 -13
- data/ikvm/.gitignore +0 -3
- data/java/.gitignore +0 -5
- data/java/src/main/java/gherkin/lexer/i18n/.gitignore +0 -1
- data/java/src/main/resources/gherkin/.gitignore +0 -1
- data/js/.gitignore +0 -1
- data/js/lib/gherkin/lexer/.gitignore +0 -1
- data/lib/.gitignore +0 -4
- data/lib/gherkin/rb_lexer/.gitignore +0 -1
- data/ragel/i18n/.gitignore +0 -1
- data/tasks/bench/generated/.gitignore +0 -1
@@ -0,0 +1,957 @@
|
|
1
|
+
|
2
|
+
# line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
3
|
+
require 'gherkin/lexer/i18n_lexer'
|
4
|
+
|
5
|
+
module Gherkin
|
6
|
+
module RbLexer
|
7
|
+
class Id #:nodoc:
|
8
|
+
|
9
|
+
# line 123 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
10
|
+
|
11
|
+
|
12
|
+
def initialize(listener)
|
13
|
+
@listener = listener
|
14
|
+
|
15
|
+
# line 16 "lib/gherkin/rb_lexer/id.rb"
|
16
|
+
class << self
|
17
|
+
attr_accessor :_lexer_actions
|
18
|
+
private :_lexer_actions, :_lexer_actions=
|
19
|
+
end
|
20
|
+
self._lexer_actions = [
|
21
|
+
0, 1, 0, 1, 1, 1, 2, 1,
|
22
|
+
3, 1, 4, 1, 5, 1, 6, 1,
|
23
|
+
7, 1, 8, 1, 9, 1, 10, 1,
|
24
|
+
11, 1, 12, 1, 13, 1, 16, 1,
|
25
|
+
17, 1, 18, 1, 19, 1, 20, 1,
|
26
|
+
21, 1, 22, 1, 23, 2, 2, 18,
|
27
|
+
2, 3, 4, 2, 13, 0, 2, 14,
|
28
|
+
15, 2, 17, 0, 2, 17, 1, 2,
|
29
|
+
17, 16, 2, 17, 19, 2, 18, 6,
|
30
|
+
2, 18, 7, 2, 18, 8, 2, 18,
|
31
|
+
9, 2, 18, 10, 2, 18, 16, 2,
|
32
|
+
20, 21, 2, 22, 0, 2, 22, 1,
|
33
|
+
2, 22, 16, 2, 22, 19, 3, 4,
|
34
|
+
14, 15, 3, 5, 14, 15, 3, 11,
|
35
|
+
14, 15, 3, 12, 14, 15, 3, 13,
|
36
|
+
14, 15, 3, 14, 15, 18, 3, 17,
|
37
|
+
14, 15, 4, 2, 14, 15, 18, 4,
|
38
|
+
3, 4, 14, 15, 4, 17, 0, 14,
|
39
|
+
15
|
40
|
+
]
|
41
|
+
|
42
|
+
class << self
|
43
|
+
attr_accessor :_lexer_key_offsets
|
44
|
+
private :_lexer_key_offsets, :_lexer_key_offsets=
|
45
|
+
end
|
46
|
+
self._lexer_key_offsets = [
|
47
|
+
0, 0, 18, 19, 20, 37, 38, 39,
|
48
|
+
41, 43, 48, 53, 58, 63, 67, 71,
|
49
|
+
73, 74, 75, 76, 77, 78, 79, 80,
|
50
|
+
81, 82, 83, 84, 85, 86, 87, 88,
|
51
|
+
89, 90, 92, 97, 104, 109, 110, 111,
|
52
|
+
112, 113, 114, 115, 116, 117, 124, 126,
|
53
|
+
128, 130, 132, 134, 151, 153, 155, 156,
|
54
|
+
157, 158, 159, 160, 174, 176, 178, 180,
|
55
|
+
182, 184, 186, 188, 190, 192, 194, 196,
|
56
|
+
198, 200, 202, 204, 207, 209, 211, 213,
|
57
|
+
215, 217, 219, 221, 223, 225, 227, 229,
|
58
|
+
231, 233, 235, 237, 239, 241, 243, 245,
|
59
|
+
247, 249, 251, 254, 256, 258, 260, 262,
|
60
|
+
264, 266, 268, 270, 272, 273, 274, 275,
|
61
|
+
276, 277, 278, 279, 280, 281, 282, 283,
|
62
|
+
294, 296, 298, 300, 302, 304, 306, 308,
|
63
|
+
310, 312, 314, 316, 318, 320, 322, 324,
|
64
|
+
326, 328, 330, 332, 334, 336, 338, 340,
|
65
|
+
342, 344, 346, 348, 350, 352, 354, 356,
|
66
|
+
358, 360, 362, 365, 367, 369, 371, 373,
|
67
|
+
375, 377, 378, 379, 380, 381, 382, 383,
|
68
|
+
384, 385, 386, 387, 388, 389, 390, 392,
|
69
|
+
393, 394, 395, 396, 397, 398, 399, 400,
|
70
|
+
401, 415, 417, 419, 421, 423, 425, 427,
|
71
|
+
429, 431, 433, 435, 437, 439, 441, 443,
|
72
|
+
445, 448, 450, 452, 454, 456, 458, 460,
|
73
|
+
462, 464, 466, 468, 470, 472, 474, 476,
|
74
|
+
478, 480, 482, 484, 486, 488, 490, 492,
|
75
|
+
494, 496, 498, 499, 500, 514, 516, 518,
|
76
|
+
520, 522, 524, 526, 528, 530, 532, 534,
|
77
|
+
536, 538, 540, 542, 544, 547, 550, 552,
|
78
|
+
554, 556, 558, 560, 562, 564, 566, 568,
|
79
|
+
570, 572, 574, 576, 578, 580, 582, 584,
|
80
|
+
586, 588, 590, 592, 594, 596, 599, 601,
|
81
|
+
603, 605, 607, 609, 611, 613, 615, 617,
|
82
|
+
618, 619, 620, 624, 630, 633, 635, 641,
|
83
|
+
658
|
84
|
+
]
|
85
|
+
|
86
|
+
class << self
|
87
|
+
attr_accessor :_lexer_trans_keys
|
88
|
+
private :_lexer_trans_keys, :_lexer_trans_keys=
|
89
|
+
end
|
90
|
+
self._lexer_trans_keys = [
|
91
|
+
-17, 10, 32, 34, 35, 37, 42, 64,
|
92
|
+
67, 68, 70, 75, 77, 83, 84, 124,
|
93
|
+
9, 13, -69, -65, 10, 32, 34, 35,
|
94
|
+
37, 42, 64, 67, 68, 70, 75, 77,
|
95
|
+
83, 84, 124, 9, 13, 34, 34, 10,
|
96
|
+
13, 10, 13, 10, 32, 34, 9, 13,
|
97
|
+
10, 32, 34, 9, 13, 10, 32, 34,
|
98
|
+
9, 13, 10, 32, 34, 9, 13, 10,
|
99
|
+
32, 9, 13, 10, 32, 9, 13, 10,
|
100
|
+
13, 10, 95, 70, 69, 65, 84, 85,
|
101
|
+
82, 69, 95, 69, 78, 68, 95, 37,
|
102
|
+
32, 10, 10, 13, 13, 32, 64, 9,
|
103
|
+
10, 9, 10, 13, 32, 64, 11, 12,
|
104
|
+
10, 32, 64, 9, 13, 111, 110, 116,
|
105
|
+
111, 104, 58, 10, 10, 10, 32, 35,
|
106
|
+
70, 124, 9, 13, 10, 105, 10, 116,
|
107
|
+
10, 117, 10, 114, 10, 58, 10, 32,
|
108
|
+
34, 35, 37, 42, 64, 67, 68, 70,
|
109
|
+
75, 77, 83, 84, 124, 9, 13, 97,
|
110
|
+
101, 110, 115, 97, 114, 58, 10, 10,
|
111
|
+
10, 32, 35, 37, 42, 64, 68, 70,
|
112
|
+
75, 77, 83, 84, 9, 13, 10, 95,
|
113
|
+
10, 70, 10, 69, 10, 65, 10, 84,
|
114
|
+
10, 85, 10, 82, 10, 69, 10, 95,
|
115
|
+
10, 69, 10, 78, 10, 68, 10, 95,
|
116
|
+
10, 37, 10, 32, 10, 97, 101, 10,
|
117
|
+
110, 10, 110, 10, 103, 10, 97, 10,
|
118
|
+
105, 10, 116, 10, 117, 10, 114, 10,
|
119
|
+
58, 10, 101, 10, 116, 10, 105, 10,
|
120
|
+
107, 10, 97, 10, 97, 10, 107, 10,
|
121
|
+
101, 10, 110, 10, 97, 10, 114, 10,
|
122
|
+
105, 10, 111, 10, 32, 58, 10, 107,
|
123
|
+
10, 111, 10, 110, 10, 115, 10, 101,
|
124
|
+
10, 112, 10, 97, 10, 112, 10, 105,
|
125
|
+
110, 103, 97, 110, 105, 116, 117, 114,
|
126
|
+
58, 10, 10, 10, 32, 35, 37, 64,
|
127
|
+
67, 68, 70, 83, 9, 13, 10, 95,
|
128
|
+
10, 70, 10, 69, 10, 65, 10, 84,
|
129
|
+
10, 85, 10, 82, 10, 69, 10, 95,
|
130
|
+
10, 69, 10, 78, 10, 68, 10, 95,
|
131
|
+
10, 37, 10, 111, 10, 110, 10, 116,
|
132
|
+
10, 111, 10, 104, 10, 58, 10, 97,
|
133
|
+
10, 115, 10, 97, 10, 114, 10, 105,
|
134
|
+
10, 116, 10, 117, 10, 107, 10, 101,
|
135
|
+
10, 110, 10, 97, 10, 114, 10, 105,
|
136
|
+
10, 111, 10, 32, 58, 10, 107, 10,
|
137
|
+
111, 10, 110, 10, 115, 10, 101, 10,
|
138
|
+
112, 101, 116, 105, 107, 97, 97, 107,
|
139
|
+
101, 110, 97, 114, 105, 111, 32, 58,
|
140
|
+
107, 111, 110, 115, 101, 112, 58, 10,
|
141
|
+
10, 10, 32, 35, 37, 42, 64, 68,
|
142
|
+
70, 75, 77, 83, 84, 9, 13, 10,
|
143
|
+
95, 10, 70, 10, 69, 10, 65, 10,
|
144
|
+
84, 10, 85, 10, 82, 10, 69, 10,
|
145
|
+
95, 10, 69, 10, 78, 10, 68, 10,
|
146
|
+
95, 10, 37, 10, 32, 10, 97, 101,
|
147
|
+
10, 110, 10, 110, 10, 103, 10, 97,
|
148
|
+
10, 105, 10, 116, 10, 117, 10, 114,
|
149
|
+
10, 58, 10, 101, 10, 116, 10, 105,
|
150
|
+
10, 107, 10, 97, 10, 97, 10, 107,
|
151
|
+
10, 101, 10, 110, 10, 97, 10, 114,
|
152
|
+
10, 105, 10, 111, 10, 97, 10, 112,
|
153
|
+
10, 105, 10, 10, 10, 32, 35, 37,
|
154
|
+
42, 64, 68, 70, 75, 77, 83, 84,
|
155
|
+
9, 13, 10, 95, 10, 70, 10, 69,
|
156
|
+
10, 65, 10, 84, 10, 85, 10, 82,
|
157
|
+
10, 69, 10, 95, 10, 69, 10, 78,
|
158
|
+
10, 68, 10, 95, 10, 37, 10, 32,
|
159
|
+
10, 97, 101, 10, 110, 115, 10, 97,
|
160
|
+
10, 114, 10, 58, 10, 110, 10, 103,
|
161
|
+
10, 97, 10, 110, 10, 105, 10, 116,
|
162
|
+
10, 117, 10, 101, 10, 116, 10, 105,
|
163
|
+
10, 107, 10, 97, 10, 97, 10, 107,
|
164
|
+
10, 101, 10, 110, 10, 97, 10, 114,
|
165
|
+
10, 105, 10, 111, 10, 32, 58, 10,
|
166
|
+
107, 10, 111, 10, 110, 10, 115, 10,
|
167
|
+
101, 10, 112, 10, 97, 10, 112, 10,
|
168
|
+
105, 97, 112, 105, 32, 124, 9, 13,
|
169
|
+
10, 32, 92, 124, 9, 13, 10, 92,
|
170
|
+
124, 10, 92, 10, 32, 92, 124, 9,
|
171
|
+
13, 10, 32, 34, 35, 37, 42, 64,
|
172
|
+
67, 68, 70, 75, 77, 83, 84, 124,
|
173
|
+
9, 13, 0
|
174
|
+
]
|
175
|
+
|
176
|
+
class << self
|
177
|
+
attr_accessor :_lexer_single_lengths
|
178
|
+
private :_lexer_single_lengths, :_lexer_single_lengths=
|
179
|
+
end
|
180
|
+
self._lexer_single_lengths = [
|
181
|
+
0, 16, 1, 1, 15, 1, 1, 2,
|
182
|
+
2, 3, 3, 3, 3, 2, 2, 2,
|
183
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
184
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
185
|
+
1, 2, 3, 5, 3, 1, 1, 1,
|
186
|
+
1, 1, 1, 1, 1, 5, 2, 2,
|
187
|
+
2, 2, 2, 15, 2, 2, 1, 1,
|
188
|
+
1, 1, 1, 12, 2, 2, 2, 2,
|
189
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
190
|
+
2, 2, 2, 3, 2, 2, 2, 2,
|
191
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
192
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
193
|
+
2, 2, 3, 2, 2, 2, 2, 2,
|
194
|
+
2, 2, 2, 2, 1, 1, 1, 1,
|
195
|
+
1, 1, 1, 1, 1, 1, 1, 9,
|
196
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
197
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
198
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
199
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
200
|
+
2, 2, 3, 2, 2, 2, 2, 2,
|
201
|
+
2, 1, 1, 1, 1, 1, 1, 1,
|
202
|
+
1, 1, 1, 1, 1, 1, 2, 1,
|
203
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
204
|
+
12, 2, 2, 2, 2, 2, 2, 2,
|
205
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
206
|
+
3, 2, 2, 2, 2, 2, 2, 2,
|
207
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
208
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
209
|
+
2, 2, 1, 1, 12, 2, 2, 2,
|
210
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
211
|
+
2, 2, 2, 2, 3, 3, 2, 2,
|
212
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
213
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
214
|
+
2, 2, 2, 2, 2, 3, 2, 2,
|
215
|
+
2, 2, 2, 2, 2, 2, 2, 1,
|
216
|
+
1, 1, 2, 4, 3, 2, 4, 15,
|
217
|
+
0
|
218
|
+
]
|
219
|
+
|
220
|
+
class << self
|
221
|
+
attr_accessor :_lexer_range_lengths
|
222
|
+
private :_lexer_range_lengths, :_lexer_range_lengths=
|
223
|
+
end
|
224
|
+
self._lexer_range_lengths = [
|
225
|
+
0, 1, 0, 0, 1, 0, 0, 0,
|
226
|
+
0, 1, 1, 1, 1, 1, 1, 0,
|
227
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
228
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
229
|
+
0, 0, 1, 1, 1, 0, 0, 0,
|
230
|
+
0, 0, 0, 0, 0, 1, 0, 0,
|
231
|
+
0, 0, 0, 1, 0, 0, 0, 0,
|
232
|
+
0, 0, 0, 1, 0, 0, 0, 0,
|
233
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
234
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
235
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
236
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
237
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
238
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
239
|
+
0, 0, 0, 0, 0, 0, 0, 1,
|
240
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
241
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
242
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
243
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
244
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
245
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
246
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
247
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
248
|
+
1, 0, 0, 0, 0, 0, 0, 0,
|
249
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
250
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
251
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
252
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
253
|
+
0, 0, 0, 0, 1, 0, 0, 0,
|
254
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
255
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
256
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
257
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
258
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
259
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
260
|
+
0, 0, 1, 1, 0, 0, 1, 1,
|
261
|
+
0
|
262
|
+
]
|
263
|
+
|
264
|
+
class << self
|
265
|
+
attr_accessor :_lexer_index_offsets
|
266
|
+
private :_lexer_index_offsets, :_lexer_index_offsets=
|
267
|
+
end
|
268
|
+
self._lexer_index_offsets = [
|
269
|
+
0, 0, 18, 20, 22, 39, 41, 43,
|
270
|
+
46, 49, 54, 59, 64, 69, 73, 77,
|
271
|
+
80, 82, 84, 86, 88, 90, 92, 94,
|
272
|
+
96, 98, 100, 102, 104, 106, 108, 110,
|
273
|
+
112, 114, 117, 122, 129, 134, 136, 138,
|
274
|
+
140, 142, 144, 146, 148, 150, 157, 160,
|
275
|
+
163, 166, 169, 172, 189, 192, 195, 197,
|
276
|
+
199, 201, 203, 205, 219, 222, 225, 228,
|
277
|
+
231, 234, 237, 240, 243, 246, 249, 252,
|
278
|
+
255, 258, 261, 264, 268, 271, 274, 277,
|
279
|
+
280, 283, 286, 289, 292, 295, 298, 301,
|
280
|
+
304, 307, 310, 313, 316, 319, 322, 325,
|
281
|
+
328, 331, 334, 338, 341, 344, 347, 350,
|
282
|
+
353, 356, 359, 362, 365, 367, 369, 371,
|
283
|
+
373, 375, 377, 379, 381, 383, 385, 387,
|
284
|
+
398, 401, 404, 407, 410, 413, 416, 419,
|
285
|
+
422, 425, 428, 431, 434, 437, 440, 443,
|
286
|
+
446, 449, 452, 455, 458, 461, 464, 467,
|
287
|
+
470, 473, 476, 479, 482, 485, 488, 491,
|
288
|
+
494, 497, 500, 504, 507, 510, 513, 516,
|
289
|
+
519, 522, 524, 526, 528, 530, 532, 534,
|
290
|
+
536, 538, 540, 542, 544, 546, 548, 551,
|
291
|
+
553, 555, 557, 559, 561, 563, 565, 567,
|
292
|
+
569, 583, 586, 589, 592, 595, 598, 601,
|
293
|
+
604, 607, 610, 613, 616, 619, 622, 625,
|
294
|
+
628, 632, 635, 638, 641, 644, 647, 650,
|
295
|
+
653, 656, 659, 662, 665, 668, 671, 674,
|
296
|
+
677, 680, 683, 686, 689, 692, 695, 698,
|
297
|
+
701, 704, 707, 709, 711, 725, 728, 731,
|
298
|
+
734, 737, 740, 743, 746, 749, 752, 755,
|
299
|
+
758, 761, 764, 767, 770, 774, 778, 781,
|
300
|
+
784, 787, 790, 793, 796, 799, 802, 805,
|
301
|
+
808, 811, 814, 817, 820, 823, 826, 829,
|
302
|
+
832, 835, 838, 841, 844, 847, 851, 854,
|
303
|
+
857, 860, 863, 866, 869, 872, 875, 878,
|
304
|
+
880, 882, 884, 888, 894, 898, 901, 907,
|
305
|
+
924
|
306
|
+
]
|
307
|
+
|
308
|
+
class << self
|
309
|
+
attr_accessor :_lexer_indicies
|
310
|
+
private :_lexer_indicies, :_lexer_indicies=
|
311
|
+
end
|
312
|
+
self._lexer_indicies = [
|
313
|
+
1, 3, 2, 4, 5, 6, 7, 8,
|
314
|
+
9, 10, 11, 12, 13, 14, 15, 16,
|
315
|
+
2, 0, 17, 0, 2, 0, 3, 2,
|
316
|
+
4, 5, 6, 7, 8, 9, 10, 11,
|
317
|
+
12, 13, 14, 15, 16, 2, 0, 18,
|
318
|
+
0, 19, 0, 21, 22, 20, 24, 25,
|
319
|
+
23, 28, 27, 29, 27, 26, 32, 31,
|
320
|
+
33, 31, 30, 32, 31, 34, 31, 30,
|
321
|
+
32, 31, 35, 31, 30, 37, 36, 36,
|
322
|
+
0, 3, 38, 38, 0, 40, 41, 39,
|
323
|
+
3, 0, 42, 0, 43, 0, 44, 0,
|
324
|
+
45, 0, 46, 0, 47, 0, 48, 0,
|
325
|
+
49, 0, 50, 0, 51, 0, 52, 0,
|
326
|
+
53, 0, 54, 0, 55, 0, 56, 0,
|
327
|
+
0, 57, 59, 60, 58, 0, 0, 0,
|
328
|
+
0, 61, 62, 63, 62, 62, 65, 64,
|
329
|
+
61, 3, 66, 8, 66, 0, 67, 0,
|
330
|
+
68, 0, 69, 0, 70, 0, 71, 0,
|
331
|
+
72, 0, 74, 73, 76, 75, 76, 77,
|
332
|
+
78, 79, 78, 77, 75, 76, 80, 75,
|
333
|
+
76, 81, 75, 76, 82, 75, 76, 83,
|
334
|
+
75, 76, 84, 75, 86, 85, 87, 88,
|
335
|
+
89, 90, 91, 92, 93, 94, 95, 96,
|
336
|
+
97, 98, 99, 85, 0, 100, 101, 0,
|
337
|
+
102, 103, 0, 104, 0, 105, 0, 106,
|
338
|
+
0, 108, 107, 110, 109, 110, 111, 112,
|
339
|
+
113, 114, 112, 115, 116, 117, 118, 119,
|
340
|
+
120, 111, 109, 110, 121, 109, 110, 122,
|
341
|
+
109, 110, 123, 109, 110, 124, 109, 110,
|
342
|
+
125, 109, 110, 126, 109, 110, 127, 109,
|
343
|
+
110, 128, 109, 110, 129, 109, 110, 130,
|
344
|
+
109, 110, 131, 109, 110, 132, 109, 110,
|
345
|
+
133, 109, 110, 134, 109, 110, 135, 109,
|
346
|
+
110, 136, 137, 109, 110, 138, 109, 110,
|
347
|
+
139, 109, 110, 140, 109, 110, 136, 109,
|
348
|
+
110, 141, 109, 110, 142, 109, 110, 143,
|
349
|
+
109, 110, 144, 109, 110, 135, 109, 110,
|
350
|
+
145, 109, 110, 146, 109, 110, 147, 109,
|
351
|
+
110, 148, 109, 110, 138, 109, 110, 147,
|
352
|
+
109, 110, 149, 109, 110, 150, 109, 110,
|
353
|
+
151, 109, 110, 152, 109, 110, 153, 109,
|
354
|
+
110, 154, 109, 110, 155, 109, 110, 156,
|
355
|
+
135, 109, 110, 157, 109, 110, 158, 109,
|
356
|
+
110, 159, 109, 110, 160, 109, 110, 161,
|
357
|
+
109, 110, 144, 109, 110, 162, 109, 110,
|
358
|
+
163, 109, 110, 138, 109, 164, 0, 165,
|
359
|
+
0, 166, 0, 102, 0, 167, 0, 168,
|
360
|
+
0, 169, 0, 170, 0, 171, 0, 173,
|
361
|
+
172, 175, 174, 175, 176, 177, 178, 177,
|
362
|
+
179, 180, 181, 182, 176, 174, 175, 183,
|
363
|
+
174, 175, 184, 174, 175, 185, 174, 175,
|
364
|
+
186, 174, 175, 187, 174, 175, 188, 174,
|
365
|
+
175, 189, 174, 175, 190, 174, 175, 191,
|
366
|
+
174, 175, 192, 174, 175, 193, 174, 175,
|
367
|
+
194, 174, 175, 195, 174, 175, 196, 174,
|
368
|
+
175, 197, 174, 175, 198, 174, 175, 199,
|
369
|
+
174, 175, 200, 174, 175, 201, 174, 175,
|
370
|
+
202, 174, 175, 203, 174, 175, 204, 174,
|
371
|
+
175, 205, 174, 175, 201, 174, 175, 206,
|
372
|
+
174, 175, 207, 174, 175, 205, 174, 175,
|
373
|
+
208, 174, 175, 209, 174, 175, 210, 174,
|
374
|
+
175, 211, 174, 175, 212, 174, 175, 213,
|
375
|
+
174, 175, 214, 174, 175, 215, 202, 174,
|
376
|
+
175, 216, 174, 175, 217, 174, 175, 218,
|
377
|
+
174, 175, 219, 174, 175, 220, 174, 175,
|
378
|
+
201, 174, 221, 0, 222, 0, 223, 0,
|
379
|
+
224, 0, 102, 0, 223, 0, 225, 0,
|
380
|
+
226, 0, 227, 0, 228, 0, 229, 0,
|
381
|
+
230, 0, 231, 0, 232, 233, 0, 234,
|
382
|
+
0, 235, 0, 236, 0, 237, 0, 238,
|
383
|
+
0, 239, 0, 240, 0, 242, 241, 244,
|
384
|
+
243, 244, 245, 246, 247, 248, 246, 249,
|
385
|
+
250, 251, 252, 253, 254, 245, 243, 244,
|
386
|
+
255, 243, 244, 256, 243, 244, 257, 243,
|
387
|
+
244, 258, 243, 244, 259, 243, 244, 260,
|
388
|
+
243, 244, 261, 243, 244, 262, 243, 244,
|
389
|
+
263, 243, 244, 264, 243, 244, 265, 243,
|
390
|
+
244, 266, 243, 244, 267, 243, 244, 268,
|
391
|
+
243, 244, 269, 243, 244, 270, 271, 243,
|
392
|
+
244, 272, 243, 244, 273, 243, 244, 274,
|
393
|
+
243, 244, 270, 243, 244, 275, 243, 244,
|
394
|
+
276, 243, 244, 277, 243, 244, 278, 243,
|
395
|
+
244, 269, 243, 244, 279, 243, 244, 280,
|
396
|
+
243, 244, 281, 243, 244, 282, 243, 244,
|
397
|
+
272, 243, 244, 281, 243, 244, 283, 243,
|
398
|
+
244, 284, 243, 244, 285, 243, 244, 286,
|
399
|
+
243, 244, 287, 243, 244, 288, 243, 244,
|
400
|
+
278, 243, 244, 289, 243, 244, 290, 243,
|
401
|
+
244, 272, 243, 292, 291, 294, 293, 294,
|
402
|
+
295, 296, 297, 298, 296, 299, 300, 301,
|
403
|
+
302, 303, 304, 295, 293, 294, 305, 293,
|
404
|
+
294, 306, 293, 294, 307, 293, 294, 308,
|
405
|
+
293, 294, 309, 293, 294, 310, 293, 294,
|
406
|
+
311, 293, 294, 312, 293, 294, 313, 293,
|
407
|
+
294, 314, 293, 294, 315, 293, 294, 316,
|
408
|
+
293, 294, 317, 293, 294, 318, 293, 294,
|
409
|
+
319, 293, 294, 320, 321, 293, 294, 322,
|
410
|
+
323, 293, 294, 324, 293, 294, 325, 293,
|
411
|
+
294, 319, 293, 294, 326, 293, 294, 327,
|
412
|
+
293, 294, 328, 293, 294, 322, 293, 294,
|
413
|
+
329, 293, 294, 330, 293, 294, 324, 293,
|
414
|
+
294, 331, 293, 294, 332, 293, 294, 333,
|
415
|
+
293, 294, 334, 293, 294, 322, 293, 294,
|
416
|
+
333, 293, 294, 335, 293, 294, 336, 293,
|
417
|
+
294, 337, 293, 294, 338, 293, 294, 339,
|
418
|
+
293, 294, 340, 293, 294, 341, 293, 294,
|
419
|
+
342, 319, 293, 294, 343, 293, 294, 344,
|
420
|
+
293, 294, 345, 293, 294, 346, 293, 294,
|
421
|
+
347, 293, 294, 325, 293, 294, 348, 293,
|
422
|
+
294, 349, 293, 294, 322, 293, 350, 0,
|
423
|
+
351, 0, 102, 0, 352, 353, 352, 0,
|
424
|
+
356, 355, 357, 358, 355, 354, 0, 360,
|
425
|
+
361, 359, 0, 360, 359, 356, 362, 360,
|
426
|
+
361, 362, 359, 356, 363, 364, 365, 366,
|
427
|
+
367, 368, 369, 370, 371, 372, 373, 374,
|
428
|
+
375, 376, 363, 0, 377, 0
|
429
|
+
]
|
430
|
+
|
431
|
+
class << self
|
432
|
+
attr_accessor :_lexer_trans_targs
|
433
|
+
private :_lexer_trans_targs, :_lexer_trans_targs=
|
434
|
+
end
|
435
|
+
self._lexer_trans_targs = [
|
436
|
+
0, 2, 4, 4, 5, 15, 17, 31,
|
437
|
+
34, 37, 52, 112, 161, 166, 167, 279,
|
438
|
+
282, 3, 6, 7, 8, 9, 8, 8,
|
439
|
+
9, 8, 10, 10, 10, 11, 10, 10,
|
440
|
+
10, 11, 12, 13, 14, 4, 14, 15,
|
441
|
+
4, 16, 18, 19, 20, 21, 22, 23,
|
442
|
+
24, 25, 26, 27, 28, 29, 30, 288,
|
443
|
+
32, 33, 33, 4, 16, 35, 36, 4,
|
444
|
+
35, 34, 36, 38, 39, 40, 41, 42,
|
445
|
+
43, 44, 45, 44, 45, 45, 4, 46,
|
446
|
+
47, 48, 49, 50, 51, 4, 4, 5,
|
447
|
+
15, 17, 31, 34, 37, 52, 112, 161,
|
448
|
+
166, 167, 279, 282, 53, 108, 31, 54,
|
449
|
+
55, 56, 57, 58, 59, 58, 59, 59,
|
450
|
+
4, 60, 74, 75, 80, 85, 90, 91,
|
451
|
+
105, 61, 62, 63, 64, 65, 66, 67,
|
452
|
+
68, 69, 70, 71, 72, 73, 4, 51,
|
453
|
+
76, 77, 74, 78, 79, 81, 82, 83,
|
454
|
+
84, 86, 87, 88, 89, 92, 93, 94,
|
455
|
+
95, 96, 97, 98, 99, 100, 101, 102,
|
456
|
+
103, 104, 106, 107, 109, 110, 111, 113,
|
457
|
+
114, 115, 116, 117, 118, 119, 118, 119,
|
458
|
+
119, 4, 120, 134, 140, 144, 147, 121,
|
459
|
+
122, 123, 124, 125, 126, 127, 128, 129,
|
460
|
+
130, 131, 132, 133, 4, 135, 136, 137,
|
461
|
+
138, 139, 51, 141, 142, 143, 145, 146,
|
462
|
+
148, 149, 150, 151, 152, 153, 154, 155,
|
463
|
+
156, 157, 158, 159, 160, 162, 163, 164,
|
464
|
+
165, 168, 169, 170, 171, 172, 173, 174,
|
465
|
+
175, 226, 176, 177, 178, 179, 180, 181,
|
466
|
+
182, 183, 184, 183, 184, 184, 4, 185,
|
467
|
+
199, 200, 205, 210, 215, 216, 223, 186,
|
468
|
+
187, 188, 189, 190, 191, 192, 193, 194,
|
469
|
+
195, 196, 197, 198, 4, 51, 201, 202,
|
470
|
+
199, 203, 204, 206, 207, 208, 209, 211,
|
471
|
+
212, 213, 214, 217, 218, 219, 220, 221,
|
472
|
+
222, 224, 225, 227, 228, 227, 228, 228,
|
473
|
+
4, 229, 243, 244, 253, 256, 261, 262,
|
474
|
+
276, 230, 231, 232, 233, 234, 235, 236,
|
475
|
+
237, 238, 239, 240, 241, 242, 4, 51,
|
476
|
+
245, 249, 243, 246, 247, 248, 250, 251,
|
477
|
+
252, 254, 255, 257, 258, 259, 260, 263,
|
478
|
+
264, 265, 266, 267, 268, 269, 270, 271,
|
479
|
+
272, 273, 274, 275, 277, 278, 280, 281,
|
480
|
+
282, 283, 284, 286, 287, 285, 283, 284,
|
481
|
+
285, 283, 286, 287, 5, 15, 17, 31,
|
482
|
+
34, 37, 52, 112, 161, 166, 167, 279,
|
483
|
+
282, 0
|
484
|
+
]
|
485
|
+
|
486
|
+
class << self
|
487
|
+
attr_accessor :_lexer_trans_actions
|
488
|
+
private :_lexer_trans_actions, :_lexer_trans_actions=
|
489
|
+
end
|
490
|
+
self._lexer_trans_actions = [
|
491
|
+
43, 0, 0, 54, 3, 1, 0, 29,
|
492
|
+
1, 29, 29, 29, 29, 29, 29, 29,
|
493
|
+
35, 0, 0, 0, 7, 135, 48, 0,
|
494
|
+
102, 9, 5, 45, 130, 45, 0, 33,
|
495
|
+
122, 33, 33, 0, 11, 106, 0, 0,
|
496
|
+
114, 25, 0, 0, 0, 0, 0, 0,
|
497
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
498
|
+
0, 57, 0, 110, 23, 0, 27, 118,
|
499
|
+
27, 51, 0, 0, 0, 0, 0, 0,
|
500
|
+
0, 57, 140, 0, 54, 0, 81, 84,
|
501
|
+
0, 0, 0, 0, 21, 31, 126, 60,
|
502
|
+
57, 31, 63, 57, 63, 63, 63, 63,
|
503
|
+
63, 63, 63, 66, 0, 0, 0, 0,
|
504
|
+
0, 0, 0, 57, 140, 0, 54, 0,
|
505
|
+
72, 33, 84, 84, 84, 84, 84, 84,
|
506
|
+
84, 0, 0, 0, 0, 0, 0, 0,
|
507
|
+
0, 0, 0, 0, 0, 0, 15, 15,
|
508
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
509
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
510
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
511
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
512
|
+
0, 0, 0, 0, 57, 140, 0, 54,
|
513
|
+
0, 69, 33, 84, 84, 84, 84, 0,
|
514
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
515
|
+
0, 0, 0, 0, 13, 0, 0, 0,
|
516
|
+
0, 0, 13, 0, 0, 0, 0, 0,
|
517
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
518
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
519
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
520
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
521
|
+
0, 57, 140, 0, 54, 0, 78, 33,
|
522
|
+
84, 84, 84, 84, 84, 84, 84, 0,
|
523
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
524
|
+
0, 0, 0, 0, 19, 19, 0, 0,
|
525
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
526
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
527
|
+
0, 0, 0, 57, 140, 0, 54, 0,
|
528
|
+
75, 33, 84, 84, 84, 84, 84, 84,
|
529
|
+
84, 0, 0, 0, 0, 0, 0, 0,
|
530
|
+
0, 0, 0, 0, 0, 0, 17, 17,
|
531
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
532
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
533
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
534
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
535
|
+
0, 0, 37, 37, 54, 37, 87, 0,
|
536
|
+
0, 39, 0, 0, 93, 90, 41, 96,
|
537
|
+
90, 96, 96, 96, 96, 96, 96, 96,
|
538
|
+
99, 0
|
539
|
+
]
|
540
|
+
|
541
|
+
class << self
|
542
|
+
attr_accessor :_lexer_eof_actions
|
543
|
+
private :_lexer_eof_actions, :_lexer_eof_actions=
|
544
|
+
end
|
545
|
+
self._lexer_eof_actions = [
|
546
|
+
0, 43, 43, 43, 43, 43, 43, 43,
|
547
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
548
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
549
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
550
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
551
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
552
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
553
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
554
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
555
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
556
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
557
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
558
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
559
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
560
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
561
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
562
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
563
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
564
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
565
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
566
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
567
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
568
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
569
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
570
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
571
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
572
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
573
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
574
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
575
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
576
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
577
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
578
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
579
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
580
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
581
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
582
|
+
43
|
583
|
+
]
|
584
|
+
|
585
|
+
class << self
|
586
|
+
attr_accessor :lexer_start
|
587
|
+
end
|
588
|
+
self.lexer_start = 1;
|
589
|
+
class << self
|
590
|
+
attr_accessor :lexer_first_final
|
591
|
+
end
|
592
|
+
self.lexer_first_final = 288;
|
593
|
+
class << self
|
594
|
+
attr_accessor :lexer_error
|
595
|
+
end
|
596
|
+
self.lexer_error = 0;
|
597
|
+
|
598
|
+
class << self
|
599
|
+
attr_accessor :lexer_en_main
|
600
|
+
end
|
601
|
+
self.lexer_en_main = 1;
|
602
|
+
|
603
|
+
|
604
|
+
# line 128 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
605
|
+
end
|
606
|
+
|
607
|
+
def scan(data)
|
608
|
+
data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
|
609
|
+
eof = pe = data.length
|
610
|
+
|
611
|
+
@line_number = 1
|
612
|
+
@last_newline = 0
|
613
|
+
|
614
|
+
|
615
|
+
# line 616 "lib/gherkin/rb_lexer/id.rb"
|
616
|
+
begin
|
617
|
+
p ||= 0
|
618
|
+
pe ||= data.length
|
619
|
+
cs = lexer_start
|
620
|
+
end
|
621
|
+
|
622
|
+
# line 138 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
623
|
+
|
624
|
+
# line 625 "lib/gherkin/rb_lexer/id.rb"
|
625
|
+
begin
|
626
|
+
_klen, _trans, _keys, _acts, _nacts = nil
|
627
|
+
_goto_level = 0
|
628
|
+
_resume = 10
|
629
|
+
_eof_trans = 15
|
630
|
+
_again = 20
|
631
|
+
_test_eof = 30
|
632
|
+
_out = 40
|
633
|
+
while true
|
634
|
+
_trigger_goto = false
|
635
|
+
if _goto_level <= 0
|
636
|
+
if p == pe
|
637
|
+
_goto_level = _test_eof
|
638
|
+
next
|
639
|
+
end
|
640
|
+
if cs == 0
|
641
|
+
_goto_level = _out
|
642
|
+
next
|
643
|
+
end
|
644
|
+
end
|
645
|
+
if _goto_level <= _resume
|
646
|
+
_keys = _lexer_key_offsets[cs]
|
647
|
+
_trans = _lexer_index_offsets[cs]
|
648
|
+
_klen = _lexer_single_lengths[cs]
|
649
|
+
_break_match = false
|
650
|
+
|
651
|
+
begin
|
652
|
+
if _klen > 0
|
653
|
+
_lower = _keys
|
654
|
+
_upper = _keys + _klen - 1
|
655
|
+
|
656
|
+
loop do
|
657
|
+
break if _upper < _lower
|
658
|
+
_mid = _lower + ( (_upper - _lower) >> 1 )
|
659
|
+
|
660
|
+
if data[p] < _lexer_trans_keys[_mid]
|
661
|
+
_upper = _mid - 1
|
662
|
+
elsif data[p] > _lexer_trans_keys[_mid]
|
663
|
+
_lower = _mid + 1
|
664
|
+
else
|
665
|
+
_trans += (_mid - _keys)
|
666
|
+
_break_match = true
|
667
|
+
break
|
668
|
+
end
|
669
|
+
end # loop
|
670
|
+
break if _break_match
|
671
|
+
_keys += _klen
|
672
|
+
_trans += _klen
|
673
|
+
end
|
674
|
+
_klen = _lexer_range_lengths[cs]
|
675
|
+
if _klen > 0
|
676
|
+
_lower = _keys
|
677
|
+
_upper = _keys + (_klen << 1) - 2
|
678
|
+
loop do
|
679
|
+
break if _upper < _lower
|
680
|
+
_mid = _lower + (((_upper-_lower) >> 1) & ~1)
|
681
|
+
if data[p] < _lexer_trans_keys[_mid]
|
682
|
+
_upper = _mid - 2
|
683
|
+
elsif data[p] > _lexer_trans_keys[_mid+1]
|
684
|
+
_lower = _mid + 2
|
685
|
+
else
|
686
|
+
_trans += ((_mid - _keys) >> 1)
|
687
|
+
_break_match = true
|
688
|
+
break
|
689
|
+
end
|
690
|
+
end # loop
|
691
|
+
break if _break_match
|
692
|
+
_trans += _klen
|
693
|
+
end
|
694
|
+
end while false
|
695
|
+
_trans = _lexer_indicies[_trans]
|
696
|
+
cs = _lexer_trans_targs[_trans]
|
697
|
+
if _lexer_trans_actions[_trans] != 0
|
698
|
+
_acts = _lexer_trans_actions[_trans]
|
699
|
+
_nacts = _lexer_actions[_acts]
|
700
|
+
_acts += 1
|
701
|
+
while _nacts > 0
|
702
|
+
_nacts -= 1
|
703
|
+
_acts += 1
|
704
|
+
case _lexer_actions[_acts - 1]
|
705
|
+
when 0 then
|
706
|
+
# line 9 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
707
|
+
begin
|
708
|
+
|
709
|
+
@content_start = p
|
710
|
+
@current_line = @line_number
|
711
|
+
@start_col = p - @last_newline - "#{@keyword}:".length
|
712
|
+
end
|
713
|
+
when 1 then
|
714
|
+
# line 15 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
715
|
+
begin
|
716
|
+
|
717
|
+
@current_line = @line_number
|
718
|
+
@start_col = p - @last_newline
|
719
|
+
end
|
720
|
+
when 2 then
|
721
|
+
# line 20 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
722
|
+
begin
|
723
|
+
|
724
|
+
@content_start = p
|
725
|
+
end
|
726
|
+
when 3 then
|
727
|
+
# line 24 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
728
|
+
begin
|
729
|
+
|
730
|
+
@docstring_content_type_start = p
|
731
|
+
end
|
732
|
+
when 4 then
|
733
|
+
# line 27 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
734
|
+
begin
|
735
|
+
|
736
|
+
@docstring_content_type_end = p
|
737
|
+
end
|
738
|
+
when 5 then
|
739
|
+
# line 31 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
740
|
+
begin
|
741
|
+
|
742
|
+
con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
|
743
|
+
con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
|
744
|
+
@listener.doc_string(con_type, con, @current_line)
|
745
|
+
end
|
746
|
+
when 6 then
|
747
|
+
# line 36 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
748
|
+
begin
|
749
|
+
|
750
|
+
p = store_keyword_content(:feature, data, p, eof)
|
751
|
+
end
|
752
|
+
when 7 then
|
753
|
+
# line 40 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
754
|
+
begin
|
755
|
+
|
756
|
+
p = store_keyword_content(:background, data, p, eof)
|
757
|
+
end
|
758
|
+
when 8 then
|
759
|
+
# line 44 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
760
|
+
begin
|
761
|
+
|
762
|
+
p = store_keyword_content(:scenario, data, p, eof)
|
763
|
+
end
|
764
|
+
when 9 then
|
765
|
+
# line 48 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
766
|
+
begin
|
767
|
+
|
768
|
+
p = store_keyword_content(:scenario_outline, data, p, eof)
|
769
|
+
end
|
770
|
+
when 10 then
|
771
|
+
# line 52 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
772
|
+
begin
|
773
|
+
|
774
|
+
p = store_keyword_content(:examples, data, p, eof)
|
775
|
+
end
|
776
|
+
when 11 then
|
777
|
+
# line 56 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
778
|
+
begin
|
779
|
+
|
780
|
+
con = utf8_pack(data[@content_start...p]).strip
|
781
|
+
@listener.step(@keyword, con, @current_line)
|
782
|
+
end
|
783
|
+
when 12 then
|
784
|
+
# line 61 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
785
|
+
begin
|
786
|
+
|
787
|
+
con = utf8_pack(data[@content_start...p]).strip
|
788
|
+
@listener.comment(con, @line_number)
|
789
|
+
@keyword_start = nil
|
790
|
+
end
|
791
|
+
when 13 then
|
792
|
+
# line 67 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
793
|
+
begin
|
794
|
+
|
795
|
+
con = utf8_pack(data[@content_start...p]).strip
|
796
|
+
@listener.tag(con, @current_line)
|
797
|
+
@keyword_start = nil
|
798
|
+
end
|
799
|
+
when 14 then
|
800
|
+
# line 73 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
801
|
+
begin
|
802
|
+
|
803
|
+
@line_number += 1
|
804
|
+
end
|
805
|
+
when 15 then
|
806
|
+
# line 77 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
807
|
+
begin
|
808
|
+
|
809
|
+
@last_newline = p + 1
|
810
|
+
end
|
811
|
+
when 16 then
|
812
|
+
# line 81 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
813
|
+
begin
|
814
|
+
|
815
|
+
@keyword_start ||= p
|
816
|
+
end
|
817
|
+
when 17 then
|
818
|
+
# line 85 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
819
|
+
begin
|
820
|
+
|
821
|
+
@keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
|
822
|
+
@keyword_start = nil
|
823
|
+
end
|
824
|
+
when 18 then
|
825
|
+
# line 90 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
826
|
+
begin
|
827
|
+
|
828
|
+
@next_keyword_start = p
|
829
|
+
end
|
830
|
+
when 19 then
|
831
|
+
# line 94 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
832
|
+
begin
|
833
|
+
|
834
|
+
p = p - 1
|
835
|
+
current_row = []
|
836
|
+
@current_line = @line_number
|
837
|
+
end
|
838
|
+
when 20 then
|
839
|
+
# line 100 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
840
|
+
begin
|
841
|
+
|
842
|
+
@content_start = p
|
843
|
+
end
|
844
|
+
when 21 then
|
845
|
+
# line 104 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
846
|
+
begin
|
847
|
+
|
848
|
+
con = utf8_pack(data[@content_start...p]).strip
|
849
|
+
current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
|
850
|
+
end
|
851
|
+
when 22 then
|
852
|
+
# line 109 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
853
|
+
begin
|
854
|
+
|
855
|
+
@listener.row(current_row, @current_line)
|
856
|
+
end
|
857
|
+
when 23 then
|
858
|
+
# line 113 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
859
|
+
begin
|
860
|
+
|
861
|
+
if cs < lexer_first_final
|
862
|
+
content = current_line_content(data, p)
|
863
|
+
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])
|
864
|
+
else
|
865
|
+
@listener.eof
|
866
|
+
end
|
867
|
+
end
|
868
|
+
# line 869 "lib/gherkin/rb_lexer/id.rb"
|
869
|
+
end # action switch
|
870
|
+
end
|
871
|
+
end
|
872
|
+
if _trigger_goto
|
873
|
+
next
|
874
|
+
end
|
875
|
+
end
|
876
|
+
if _goto_level <= _again
|
877
|
+
if cs == 0
|
878
|
+
_goto_level = _out
|
879
|
+
next
|
880
|
+
end
|
881
|
+
p += 1
|
882
|
+
if p != pe
|
883
|
+
_goto_level = _resume
|
884
|
+
next
|
885
|
+
end
|
886
|
+
end
|
887
|
+
if _goto_level <= _test_eof
|
888
|
+
if p == eof
|
889
|
+
__acts = _lexer_eof_actions[cs]
|
890
|
+
__nacts = _lexer_actions[__acts]
|
891
|
+
__acts += 1
|
892
|
+
while __nacts > 0
|
893
|
+
__nacts -= 1
|
894
|
+
__acts += 1
|
895
|
+
case _lexer_actions[__acts - 1]
|
896
|
+
when 23 then
|
897
|
+
# line 113 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
898
|
+
begin
|
899
|
+
|
900
|
+
if cs < lexer_first_final
|
901
|
+
content = current_line_content(data, p)
|
902
|
+
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])
|
903
|
+
else
|
904
|
+
@listener.eof
|
905
|
+
end
|
906
|
+
end
|
907
|
+
# line 908 "lib/gherkin/rb_lexer/id.rb"
|
908
|
+
end # eof action switch
|
909
|
+
end
|
910
|
+
if _trigger_goto
|
911
|
+
next
|
912
|
+
end
|
913
|
+
end
|
914
|
+
end
|
915
|
+
if _goto_level <= _out
|
916
|
+
break
|
917
|
+
end
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
921
|
+
# line 139 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/id.rb.rl"
|
922
|
+
end
|
923
|
+
|
924
|
+
def unindent(startcol, text)
|
925
|
+
text.gsub(/^[\t ]{0,#{startcol}}/, "")
|
926
|
+
end
|
927
|
+
|
928
|
+
def store_keyword_content(event, data, p, eof)
|
929
|
+
end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
|
930
|
+
content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
|
931
|
+
content_lines = content.split("\n")
|
932
|
+
name = content_lines.shift || ""
|
933
|
+
name.strip!
|
934
|
+
description = content_lines.join("\n")
|
935
|
+
@listener.__send__(event, @keyword, name, description, @current_line)
|
936
|
+
@next_keyword_start ? @next_keyword_start - 1 : p
|
937
|
+
ensure
|
938
|
+
@next_keyword_start = nil
|
939
|
+
end
|
940
|
+
|
941
|
+
def current_line_content(data, p)
|
942
|
+
rest = data[@last_newline..-1]
|
943
|
+
utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
|
944
|
+
end
|
945
|
+
|
946
|
+
if (RUBY_VERSION =~ /^1\.9/)
|
947
|
+
def utf8_pack(array)
|
948
|
+
array.pack("c*").force_encoding("UTF-8")
|
949
|
+
end
|
950
|
+
else
|
951
|
+
def utf8_pack(array)
|
952
|
+
array.pack("c*")
|
953
|
+
end
|
954
|
+
end
|
955
|
+
end
|
956
|
+
end
|
957
|
+
end
|