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