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