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