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