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