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