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