gherkin 2.4.18 → 2.4.20
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +6 -7
- data/History.md +9 -0
- data/README.md +2 -2
- data/ext/gherkin_lexer_ar/extconf.rb +6 -0
- data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +1428 -0
- data/ext/gherkin_lexer_bg/extconf.rb +6 -0
- data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +1654 -0
- data/ext/gherkin_lexer_ca/extconf.rb +6 -0
- data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +1580 -0
- data/ext/gherkin_lexer_cs/extconf.rb +6 -0
- data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +1426 -0
- data/ext/gherkin_lexer_cy_gb/extconf.rb +6 -0
- data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +1281 -0
- data/ext/gherkin_lexer_da/extconf.rb +6 -0
- data/ext/gherkin_lexer_da/gherkin_lexer_da.c +1297 -0
- data/ext/gherkin_lexer_de/extconf.rb +6 -0
- data/ext/gherkin_lexer_de/gherkin_lexer_de.c +1414 -0
- data/ext/gherkin_lexer_en/extconf.rb +6 -0
- data/ext/gherkin_lexer_en/gherkin_lexer_en.c +1264 -0
- data/ext/gherkin_lexer_en_au/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +1225 -0
- data/ext/gherkin_lexer_en_lol/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +1174 -0
- data/ext/gherkin_lexer_en_pirate/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +1470 -0
- data/ext/gherkin_lexer_en_scouse/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +1631 -0
- data/ext/gherkin_lexer_en_tx/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +1264 -0
- data/ext/gherkin_lexer_eo/extconf.rb +6 -0
- data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +1240 -0
- data/ext/gherkin_lexer_es/extconf.rb +6 -0
- data/ext/gherkin_lexer_es/gherkin_lexer_es.c +1379 -0
- data/ext/gherkin_lexer_et/extconf.rb +6 -0
- data/ext/gherkin_lexer_et/gherkin_lexer_et.c +1235 -0
- data/ext/gherkin_lexer_fi/extconf.rb +6 -0
- data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +1214 -0
- data/ext/gherkin_lexer_fr/extconf.rb +6 -0
- data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +1450 -0
- data/ext/gherkin_lexer_he/extconf.rb +6 -0
- data/ext/gherkin_lexer_he/gherkin_lexer_he.c +1373 -0
- data/ext/gherkin_lexer_hr/extconf.rb +6 -0
- data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +1322 -0
- data/ext/gherkin_lexer_hu/extconf.rb +6 -0
- data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +1373 -0
- data/ext/gherkin_lexer_id/extconf.rb +6 -0
- data/ext/gherkin_lexer_id/gherkin_lexer_id.c +1207 -0
- data/ext/gherkin_lexer_is/extconf.rb +6 -0
- data/ext/gherkin_lexer_is/gherkin_lexer_is.c +1375 -0
- data/ext/gherkin_lexer_it/extconf.rb +6 -0
- data/ext/gherkin_lexer_it/gherkin_lexer_it.c +1331 -0
- data/ext/gherkin_lexer_ja/extconf.rb +6 -0
- data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +1698 -0
- data/ext/gherkin_lexer_ko/extconf.rb +6 -0
- data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +1359 -0
- data/ext/gherkin_lexer_lt/extconf.rb +6 -0
- data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +1294 -0
- data/ext/gherkin_lexer_lu/extconf.rb +6 -0
- data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +1388 -0
- data/ext/gherkin_lexer_lv/extconf.rb +6 -0
- data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +1424 -0
- data/ext/gherkin_lexer_nl/extconf.rb +6 -0
- data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +1367 -0
- data/ext/gherkin_lexer_no/extconf.rb +6 -0
- data/ext/gherkin_lexer_no/gherkin_lexer_no.c +1310 -0
- data/ext/gherkin_lexer_pl/extconf.rb +6 -0
- data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +1476 -0
- data/ext/gherkin_lexer_pt/extconf.rb +6 -0
- data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +1326 -0
- data/ext/gherkin_lexer_ro/extconf.rb +6 -0
- data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +1424 -0
- data/ext/gherkin_lexer_ru/extconf.rb +6 -0
- data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +2056 -0
- data/ext/gherkin_lexer_sk/extconf.rb +6 -0
- data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +1297 -0
- data/ext/gherkin_lexer_sr_cyrl/extconf.rb +6 -0
- data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +2111 -0
- data/ext/gherkin_lexer_sr_latn/extconf.rb +6 -0
- data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +1566 -0
- data/ext/gherkin_lexer_sv/extconf.rb +6 -0
- data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +1323 -0
- data/ext/gherkin_lexer_tr/extconf.rb +6 -0
- data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +1346 -0
- data/ext/gherkin_lexer_uk/extconf.rb +6 -0
- data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +1940 -0
- data/ext/gherkin_lexer_uz/extconf.rb +6 -0
- data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +1650 -0
- data/ext/gherkin_lexer_vi/extconf.rb +6 -0
- data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +1457 -0
- data/ext/gherkin_lexer_zh_cn/extconf.rb +6 -0
- data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +1222 -0
- data/ext/gherkin_lexer_zh_tw/extconf.rb +6 -0
- data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +1264 -0
- data/gherkin.gemspec +9 -3
- data/lib/gherkin/formatter/filter_formatter.rb +6 -1
- data/lib/gherkin/rb_lexer/ar.rb +1162 -0
- data/lib/gherkin/rb_lexer/bg.rb +1374 -0
- data/lib/gherkin/rb_lexer/ca.rb +1304 -0
- data/lib/gherkin/rb_lexer/cs.rb +1156 -0
- data/lib/gherkin/rb_lexer/cy_gb.rb +1026 -0
- data/lib/gherkin/rb_lexer/da.rb +1040 -0
- data/lib/gherkin/rb_lexer/de.rb +1150 -0
- data/lib/gherkin/rb_lexer/en.rb +1008 -0
- data/lib/gherkin/rb_lexer/en_au.rb +972 -0
- data/lib/gherkin/rb_lexer/en_lol.rb +927 -0
- data/lib/gherkin/rb_lexer/en_pirate.rb +1204 -0
- data/lib/gherkin/rb_lexer/en_scouse.rb +1355 -0
- data/lib/gherkin/rb_lexer/en_tx.rb +1010 -0
- data/lib/gherkin/rb_lexer/eo.rb +989 -0
- data/lib/gherkin/rb_lexer/es.rb +1116 -0
- data/lib/gherkin/rb_lexer/et.rb +982 -0
- data/lib/gherkin/rb_lexer/fi.rb +963 -0
- data/lib/gherkin/rb_lexer/fr.rb +1184 -0
- data/lib/gherkin/rb_lexer/he.rb +1110 -0
- data/lib/gherkin/rb_lexer/hr.rb +1060 -0
- data/lib/gherkin/rb_lexer/hu.rb +1111 -0
- data/lib/gherkin/rb_lexer/id.rb +957 -0
- data/lib/gherkin/rb_lexer/is.rb +1114 -0
- data/lib/gherkin/rb_lexer/it.rb +1075 -0
- data/lib/gherkin/rb_lexer/ja.rb +1412 -0
- data/lib/gherkin/rb_lexer/ko.rb +1096 -0
- data/lib/gherkin/rb_lexer/lt.rb +1038 -0
- data/lib/gherkin/rb_lexer/lu.rb +1126 -0
- data/lib/gherkin/rb_lexer/lv.rb +1158 -0
- data/lib/gherkin/rb_lexer/nl.rb +1109 -0
- data/lib/gherkin/rb_lexer/no.rb +1052 -0
- data/lib/gherkin/rb_lexer/pl.rb +1208 -0
- data/lib/gherkin/rb_lexer/pt.rb +1066 -0
- data/lib/gherkin/rb_lexer/ro.rb +1155 -0
- data/lib/gherkin/rb_lexer/ru.rb +1747 -0
- data/lib/gherkin/rb_lexer/sk.rb +1040 -0
- data/lib/gherkin/rb_lexer/sr_cyrl.rb +1797 -0
- data/lib/gherkin/rb_lexer/sr_latn.rb +1288 -0
- data/lib/gherkin/rb_lexer/sv.rb +1064 -0
- data/lib/gherkin/rb_lexer/tr.rb +1086 -0
- data/lib/gherkin/rb_lexer/uk.rb +1640 -0
- data/lib/gherkin/rb_lexer/uz.rb +1370 -0
- data/lib/gherkin/rb_lexer/vi.rb +1190 -0
- data/lib/gherkin/rb_lexer/zh_cn.rb +968 -0
- data/lib/gherkin/rb_lexer/zh_tw.rb +1006 -0
- data/spec/gherkin/fixtures/examples_with_only_header.feature +14 -0
- data/spec/gherkin/formatter/filter_formatter_spec.rb +21 -0
- data/tasks/gems.rake +9 -1
- metadata +30 -39
- data/.gitignore +0 -13
- data/ikvm/.gitignore +0 -3
- data/java/.gitignore +0 -5
- data/java/src/main/java/gherkin/lexer/i18n/.gitignore +0 -1
- data/java/src/main/resources/gherkin/.gitignore +0 -1
- data/js/.gitignore +0 -1
- data/js/lib/gherkin/lexer/.gitignore +0 -1
- data/lib/.gitignore +0 -4
- data/lib/gherkin/rb_lexer/.gitignore +0 -1
- data/ragel/i18n/.gitignore +0 -1
- data/tasks/bench/generated/.gitignore +0 -1
@@ -0,0 +1,1654 @@
|
|
1
|
+
|
2
|
+
#line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
3
|
+
#include <assert.h>
|
4
|
+
#include <ruby.h>
|
5
|
+
|
6
|
+
#if defined(_WIN32)
|
7
|
+
#include <stddef.h>
|
8
|
+
#endif
|
9
|
+
|
10
|
+
#ifdef HAVE_RUBY_RE_H
|
11
|
+
#include <ruby/re.h>
|
12
|
+
#else
|
13
|
+
#include <re.h>
|
14
|
+
#endif
|
15
|
+
|
16
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
17
|
+
#include <ruby/encoding.h>
|
18
|
+
#define ENCODED_STR_NEW(ptr, len) \
|
19
|
+
rb_enc_str_new(ptr, len, rb_utf8_encoding())
|
20
|
+
#else
|
21
|
+
#define ENCODED_STR_NEW(ptr, len) \
|
22
|
+
rb_str_new(ptr, len)
|
23
|
+
#endif
|
24
|
+
|
25
|
+
#ifndef RSTRING_PTR
|
26
|
+
#define RSTRING_PTR(s) (RSTRING(s)->ptr)
|
27
|
+
#endif
|
28
|
+
|
29
|
+
#ifndef RSTRING_LEN
|
30
|
+
#define RSTRING_LEN(s) (RSTRING(s)->len)
|
31
|
+
#endif
|
32
|
+
|
33
|
+
#define DATA_GET(FROM, TYPE, NAME) \
|
34
|
+
Data_Get_Struct(FROM, TYPE, NAME); \
|
35
|
+
if (NAME == NULL) { \
|
36
|
+
rb_raise(rb_eArgError, "NULL found for " # NAME " when it shouldn't be."); \
|
37
|
+
}
|
38
|
+
|
39
|
+
typedef struct lexer_state {
|
40
|
+
int content_len;
|
41
|
+
int line_number;
|
42
|
+
int current_line;
|
43
|
+
int start_col;
|
44
|
+
size_t mark;
|
45
|
+
size_t keyword_start;
|
46
|
+
size_t keyword_end;
|
47
|
+
size_t next_keyword_start;
|
48
|
+
size_t content_start;
|
49
|
+
size_t content_end;
|
50
|
+
size_t docstring_content_type_start;
|
51
|
+
size_t docstring_content_type_end;
|
52
|
+
size_t query_start;
|
53
|
+
size_t last_newline;
|
54
|
+
size_t final_newline;
|
55
|
+
} lexer_state;
|
56
|
+
|
57
|
+
static VALUE mGherkin;
|
58
|
+
static VALUE mGherkinLexer;
|
59
|
+
static VALUE mCLexer;
|
60
|
+
static VALUE cI18nLexer;
|
61
|
+
static VALUE rb_eGherkinLexingError;
|
62
|
+
|
63
|
+
#define LEN(AT, P) (P - data - lexer->AT)
|
64
|
+
#define MARK(M, P) (lexer->M = (P) - data)
|
65
|
+
#define PTR_TO(P) (data + lexer->P)
|
66
|
+
|
67
|
+
#define STORE_KW_END_CON(EVENT) \
|
68
|
+
store_multiline_kw_con(listener, # EVENT, \
|
69
|
+
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end - 1)), \
|
70
|
+
PTR_TO(content_start), LEN(content_start, PTR_TO(content_end)), \
|
71
|
+
lexer->current_line, lexer->start_col); \
|
72
|
+
if (lexer->content_end != 0) { \
|
73
|
+
p = PTR_TO(content_end - 1); \
|
74
|
+
} \
|
75
|
+
lexer->content_end = 0
|
76
|
+
|
77
|
+
#define STORE_ATTR(ATTR) \
|
78
|
+
store_attr(listener, # ATTR, \
|
79
|
+
PTR_TO(content_start), LEN(content_start, p), \
|
80
|
+
lexer->line_number)
|
81
|
+
|
82
|
+
|
83
|
+
#line 254 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
84
|
+
|
85
|
+
|
86
|
+
/** Data **/
|
87
|
+
|
88
|
+
#line 89 "ext/gherkin_lexer_bg/gherkin_lexer_bg.c"
|
89
|
+
static const char _lexer_actions[] = {
|
90
|
+
0, 1, 0, 1, 1, 1, 2, 1,
|
91
|
+
3, 1, 4, 1, 5, 1, 6, 1,
|
92
|
+
7, 1, 8, 1, 9, 1, 10, 1,
|
93
|
+
11, 1, 12, 1, 13, 1, 16, 1,
|
94
|
+
17, 1, 18, 1, 19, 1, 20, 1,
|
95
|
+
21, 1, 22, 1, 23, 2, 1, 18,
|
96
|
+
2, 4, 5, 2, 13, 0, 2, 14,
|
97
|
+
15, 2, 17, 0, 2, 17, 2, 2,
|
98
|
+
17, 16, 2, 17, 19, 2, 18, 6,
|
99
|
+
2, 18, 7, 2, 18, 8, 2, 18,
|
100
|
+
9, 2, 18, 10, 2, 18, 16, 2,
|
101
|
+
20, 21, 2, 22, 0, 2, 22, 2,
|
102
|
+
2, 22, 16, 2, 22, 19, 3, 3,
|
103
|
+
14, 15, 3, 5, 14, 15, 3, 11,
|
104
|
+
14, 15, 3, 12, 14, 15, 3, 13,
|
105
|
+
14, 15, 3, 14, 15, 18, 3, 17,
|
106
|
+
14, 15, 4, 1, 14, 15, 18, 4,
|
107
|
+
4, 5, 14, 15, 4, 17, 0, 14,
|
108
|
+
15
|
109
|
+
};
|
110
|
+
|
111
|
+
static const short _lexer_key_offsets[] = {
|
112
|
+
0, 0, 12, 21, 22, 23, 24, 25,
|
113
|
+
26, 27, 28, 29, 30, 31, 32, 33,
|
114
|
+
35, 46, 47, 48, 50, 52, 57, 62,
|
115
|
+
67, 72, 76, 80, 82, 83, 84, 85,
|
116
|
+
86, 87, 88, 89, 90, 91, 92, 93,
|
117
|
+
94, 95, 96, 97, 102, 109, 114, 118,
|
118
|
+
124, 127, 129, 135, 146, 147, 148, 149,
|
119
|
+
150, 151, 152, 153, 154, 155, 156, 157,
|
120
|
+
159, 160, 161, 162, 163, 164, 165, 166,
|
121
|
+
167, 168, 169, 170, 171, 172, 173, 174,
|
122
|
+
175, 176, 177, 178, 187, 196, 198, 200,
|
123
|
+
202, 204, 206, 208, 210, 212, 214, 216,
|
124
|
+
218, 229, 231, 233, 235, 237, 239, 241,
|
125
|
+
243, 245, 247, 249, 251, 253, 255, 257,
|
126
|
+
259, 261, 263, 265, 267, 269, 271, 273,
|
127
|
+
275, 277, 279, 281, 283, 285, 287, 289,
|
128
|
+
291, 293, 295, 297, 299, 301, 303, 305,
|
129
|
+
307, 309, 311, 313, 315, 317, 319, 321,
|
130
|
+
323, 325, 327, 329, 331, 333, 335, 337,
|
131
|
+
339, 341, 343, 345, 347, 349, 351, 353,
|
132
|
+
355, 357, 359, 361, 363, 365, 367, 369,
|
133
|
+
371, 373, 375, 377, 379, 381, 383, 385,
|
134
|
+
387, 388, 389, 390, 391, 392, 393, 394,
|
135
|
+
395, 396, 397, 398, 405, 407, 409, 411,
|
136
|
+
413, 415, 417, 419, 421, 423, 425, 427,
|
137
|
+
429, 431, 433, 435, 437, 439, 441, 443,
|
138
|
+
445, 447, 449, 451, 453, 455, 457, 459,
|
139
|
+
461, 462, 463, 464, 465, 466, 467, 468,
|
140
|
+
469, 470, 471, 472, 473, 474, 475, 476,
|
141
|
+
477, 478, 479, 480, 481, 482, 483, 484,
|
142
|
+
485, 486, 487, 488, 489, 490, 491, 492,
|
143
|
+
493, 494, 503, 511, 513, 515, 517, 519,
|
144
|
+
521, 523, 525, 527, 529, 531, 533, 535,
|
145
|
+
537, 539, 541, 543, 545, 547, 549, 551,
|
146
|
+
553, 555, 557, 559, 561, 563, 565, 567,
|
147
|
+
569, 571, 573, 575, 577, 579, 581, 583,
|
148
|
+
585, 587, 589, 591, 593, 595, 597, 599,
|
149
|
+
601, 603, 605, 607, 609, 611, 613, 615,
|
150
|
+
617, 619, 621, 623, 625, 627, 629, 631,
|
151
|
+
633, 635, 637, 639, 641, 643, 645, 647,
|
152
|
+
649, 651, 653, 655, 657, 659, 660, 661,
|
153
|
+
662, 663, 664, 665, 666, 667, 668, 669,
|
154
|
+
670, 671, 672, 673, 674, 675, 676, 685,
|
155
|
+
695, 697, 699, 701, 703, 705, 707, 709,
|
156
|
+
711, 713, 715, 717, 719, 721, 723, 725,
|
157
|
+
727, 729, 731, 733, 735, 737, 739, 741,
|
158
|
+
743, 745, 747, 749, 751, 753, 755, 757,
|
159
|
+
759, 761, 763, 765, 767, 769, 771, 773,
|
160
|
+
775, 777, 779, 781, 783, 785, 787, 789,
|
161
|
+
791, 793, 795, 797, 799, 801, 803, 805,
|
162
|
+
807, 809, 811, 813, 815, 817, 819, 821,
|
163
|
+
823, 825, 827, 829, 831, 833, 835, 837,
|
164
|
+
839, 841, 843, 845, 847, 849, 851, 853,
|
165
|
+
855, 857, 859, 861, 863, 865, 867, 869,
|
166
|
+
871, 873, 875, 877, 879, 881, 883, 885,
|
167
|
+
887, 889, 891, 893, 895, 897, 899, 901,
|
168
|
+
903, 905, 907, 909, 911, 913, 915, 916,
|
169
|
+
917, 918, 919, 920, 921, 922, 923, 924,
|
170
|
+
925, 926, 927, 928, 929, 930, 931, 932,
|
171
|
+
933, 934, 935, 936, 937, 938, 939, 940,
|
172
|
+
941, 942, 943, 944, 952, 957, 959, 961,
|
173
|
+
963, 966, 968, 970, 972, 974, 976, 978,
|
174
|
+
980, 982, 984, 986, 988, 990, 992, 994,
|
175
|
+
996, 998, 1000, 1002, 1004, 1006, 1008, 1010,
|
176
|
+
1012, 1014, 1016, 1018, 1020, 1022, 1024, 1026,
|
177
|
+
1028, 1030, 1032, 1034, 1036, 1038, 1040, 1042,
|
178
|
+
1044, 1046, 1048, 1050, 1052, 1054, 1056, 1058,
|
179
|
+
1060, 1062, 1064, 1066, 1068, 1070, 1072, 1074,
|
180
|
+
1076, 1078, 1080, 1082, 1084, 1086, 1088, 1090,
|
181
|
+
1092, 1094, 1096, 1098, 1100, 1102, 1104, 1106,
|
182
|
+
1108, 1110, 1112, 1114, 1116, 1118, 1120, 1122,
|
183
|
+
1124, 1126, 1128, 1130, 1132, 1134, 1136, 1138,
|
184
|
+
1140, 1142, 1144, 1146, 1148, 1150, 1152, 1154,
|
185
|
+
1156, 1157, 1158
|
186
|
+
};
|
187
|
+
|
188
|
+
static const char _lexer_trans_keys[] = {
|
189
|
+
-48, -17, 10, 32, 34, 35, 37, 42,
|
190
|
+
64, 124, 9, 13, -108, -104, -102, -99,
|
191
|
+
-97, -96, -95, -94, -92, -48, -80, -48,
|
192
|
+
-76, -48, -75, -48, -67, -48, -66, 32,
|
193
|
+
10, 10, 13, -48, 10, 32, 34, 35,
|
194
|
+
37, 42, 64, 124, 9, 13, 34, 34,
|
195
|
+
10, 13, 10, 13, 10, 32, 34, 9,
|
196
|
+
13, 10, 32, 34, 9, 13, 10, 32,
|
197
|
+
34, 9, 13, 10, 32, 34, 9, 13,
|
198
|
+
10, 32, 9, 13, 10, 32, 9, 13,
|
199
|
+
10, 13, 10, 95, 70, 69, 65, 84,
|
200
|
+
85, 82, 69, 95, 69, 78, 68, 95,
|
201
|
+
37, 13, 32, 64, 9, 10, 9, 10,
|
202
|
+
13, 32, 64, 11, 12, 10, 32, 64,
|
203
|
+
9, 13, 32, 124, 9, 13, 10, 32,
|
204
|
+
92, 124, 9, 13, 10, 92, 124, 10,
|
205
|
+
92, 10, 32, 92, 124, 9, 13, -48,
|
206
|
+
10, 32, 34, 35, 37, 42, 64, 124,
|
207
|
+
9, 13, -48, -66, -48, -77, -48, -80,
|
208
|
+
-47, -126, -47, -128, -48, -75, -72, -48,
|
209
|
+
-76, -48, -72, -47, -127, -47, -126, -48,
|
210
|
+
-66, -47, -128, -48, -72, -47, -113, 58,
|
211
|
+
10, 10, -48, 10, 32, 35, 37, 42,
|
212
|
+
64, 9, 13, -108, -104, -102, -99, -96,
|
213
|
+
-95, -94, -92, 10, -48, 10, -80, 10,
|
214
|
+
-48, 10, -76, 10, -48, 10, -75, 10,
|
215
|
+
-48, 10, -67, 10, -48, 10, -66, 10,
|
216
|
+
10, 32, -48, 10, 32, 34, 35, 37,
|
217
|
+
42, 64, 124, 9, 13, -48, 10, -66,
|
218
|
+
10, -48, 10, -77, 10, -48, 10, -80,
|
219
|
+
10, -47, 10, -126, 10, -48, 10, -80,
|
220
|
+
10, -48, 10, -68, 10, -48, 10, -70,
|
221
|
+
10, -48, 10, -80, 10, 10, 32, -48,
|
222
|
+
10, -67, 10, -48, 10, -80, 10, 10,
|
223
|
+
32, -47, 10, -127, 10, -47, 10, -122,
|
224
|
+
10, -48, 10, -75, 10, -48, 10, -67,
|
225
|
+
10, -48, 10, -80, 10, -47, 10, -128,
|
226
|
+
10, -48, 10, -72, 10, -48, 10, -71,
|
227
|
+
10, 10, 58, -47, 10, -125, 10, -48,
|
228
|
+
10, -67, 10, -48, 10, -70, 10, -47,
|
229
|
+
10, -122, 10, -48, 10, -72, 10, -48,
|
230
|
+
10, -66, 10, -48, 10, -67, 10, -48,
|
231
|
+
10, -80, 10, -48, 10, -69, 10, -48,
|
232
|
+
10, -67, 10, -48, 10, -66, 10, -47,
|
233
|
+
10, -127, 10, -47, 10, -126, 10, 10,
|
234
|
+
95, 10, 70, 10, 69, 10, 65, 10,
|
235
|
+
84, 10, 85, 10, 82, 10, 69, 10,
|
236
|
+
95, 10, 69, 10, 78, 10, 68, 10,
|
237
|
+
95, 10, 37, -48, -68, -48, -75, -47,
|
238
|
+
-128, -48, -72, 58, 10, 10, -48, 10,
|
239
|
+
32, 35, 124, 9, 13, -92, 10, -47,
|
240
|
+
10, -125, 10, -48, 10, -67, 10, -48,
|
241
|
+
10, -70, 10, -47, 10, -122, 10, -48,
|
242
|
+
10, -72, 10, -48, 10, -66, 10, -48,
|
243
|
+
10, -67, 10, -48, 10, -80, 10, -48,
|
244
|
+
10, -69, 10, -48, 10, -67, 10, -48,
|
245
|
+
10, -66, 10, -47, 10, -127, 10, -47,
|
246
|
+
10, -126, 10, 10, 58, -48, -80, -48,
|
247
|
+
-68, -48, -70, -48, -80, 32, -48, -67,
|
248
|
+
-48, -80, 32, -47, -127, -47, -122, -48,
|
249
|
+
-75, -48, -67, -48, -80, -47, -128, -48,
|
250
|
+
-72, -48, -71, 58, 10, 10, -48, 10,
|
251
|
+
32, 35, 37, 42, 64, 9, 13, -108,
|
252
|
+
-104, -102, -99, -95, -94, -92, 10, -48,
|
253
|
+
10, -80, 10, -48, 10, -76, 10, -48,
|
254
|
+
10, -75, 10, -48, 10, -67, 10, -48,
|
255
|
+
10, -66, 10, 10, 32, -48, 10, -66,
|
256
|
+
10, -48, 10, -77, 10, -48, 10, -80,
|
257
|
+
10, -47, 10, -126, 10, -47, 10, -122,
|
258
|
+
10, -48, 10, -75, 10, -48, 10, -67,
|
259
|
+
10, -48, 10, -80, 10, -47, 10, -128,
|
260
|
+
10, -48, 10, -72, 10, -48, 10, -71,
|
261
|
+
10, 10, 58, -47, 10, -125, 10, -48,
|
262
|
+
10, -67, 10, -48, 10, -70, 10, -47,
|
263
|
+
10, -122, 10, -48, 10, -72, 10, -48,
|
264
|
+
10, -66, 10, -48, 10, -67, 10, -48,
|
265
|
+
10, -80, 10, -48, 10, -69, 10, -48,
|
266
|
+
10, -67, 10, -48, 10, -66, 10, -47,
|
267
|
+
10, -127, 10, -47, 10, -126, 10, 10,
|
268
|
+
95, 10, 70, 10, 69, 10, 65, 10,
|
269
|
+
84, 10, 85, 10, 82, 10, 69, 10,
|
270
|
+
95, 10, 69, 10, 78, 10, 68, 10,
|
271
|
+
95, 10, 37, -47, -122, -48, -75, -48,
|
272
|
+
-67, -48, -80, -47, -128, -48, -72, -48,
|
273
|
+
-71, 58, 10, 10, -48, 10, 32, 35,
|
274
|
+
37, 42, 64, 9, 13, -108, -104, -102,
|
275
|
+
-99, -97, -96, -95, -94, -92, 10, -48,
|
276
|
+
10, -80, 10, -48, 10, -76, 10, -48,
|
277
|
+
10, -75, 10, -48, 10, -67, 10, -48,
|
278
|
+
10, -66, 10, 10, 32, -48, 10, -66,
|
279
|
+
10, -48, 10, -77, 10, -48, 10, -80,
|
280
|
+
10, -47, 10, -126, 10, -47, 10, -128,
|
281
|
+
10, -48, 10, -75, 10, -48, 10, -76,
|
282
|
+
10, -48, 10, -72, 10, -47, 10, -127,
|
283
|
+
10, -47, 10, -126, 10, -48, 10, -66,
|
284
|
+
10, -47, 10, -128, 10, -48, 10, -72,
|
285
|
+
10, -47, 10, -113, 10, 10, 58, -48,
|
286
|
+
10, -80, 10, -48, 10, -68, 10, -48,
|
287
|
+
10, -70, 10, -48, 10, -80, 10, 10,
|
288
|
+
32, -48, 10, -67, 10, -48, 10, -80,
|
289
|
+
10, 10, 32, -47, 10, -127, 10, -47,
|
290
|
+
10, -122, 10, -48, 10, -75, 10, -48,
|
291
|
+
10, -67, 10, -48, 10, -80, 10, -47,
|
292
|
+
10, -128, 10, -48, 10, -72, 10, -48,
|
293
|
+
10, -71, 10, -47, 10, -125, 10, -48,
|
294
|
+
10, -67, 10, -48, 10, -70, 10, -47,
|
295
|
+
10, -122, 10, -48, 10, -72, 10, -48,
|
296
|
+
10, -66, 10, -48, 10, -67, 10, -48,
|
297
|
+
10, -80, 10, -48, 10, -69, 10, -48,
|
298
|
+
10, -67, 10, -48, 10, -66, 10, -47,
|
299
|
+
10, -127, 10, -47, 10, -126, 10, 10,
|
300
|
+
95, 10, 70, 10, 69, 10, 65, 10,
|
301
|
+
84, 10, 85, 10, 82, 10, 69, 10,
|
302
|
+
95, 10, 69, 10, 78, 10, 68, 10,
|
303
|
+
95, 10, 37, -47, -125, -48, -67, -48,
|
304
|
+
-70, -47, -122, -48, -72, -48, -66, -48,
|
305
|
+
-67, -48, -80, -48, -69, -48, -67, -48,
|
306
|
+
-66, -47, -127, -47, -126, 58, 10, 10,
|
307
|
+
-48, 10, 32, 35, 37, 64, 9, 13,
|
308
|
+
-97, -96, -95, -92, 10, -47, 10, -128,
|
309
|
+
10, -48, 10, -75, -72, 10, -48, 10,
|
310
|
+
-76, 10, -48, 10, -72, 10, -47, 10,
|
311
|
+
-127, 10, -47, 10, -126, 10, -48, 10,
|
312
|
+
-66, 10, -47, 10, -128, 10, -48, 10,
|
313
|
+
-72, 10, -47, 10, -113, 10, 10, 58,
|
314
|
+
-48, 10, -68, 10, -48, 10, -75, 10,
|
315
|
+
-47, 10, -128, 10, -48, 10, -72, 10,
|
316
|
+
-48, 10, -80, 10, -48, 10, -68, 10,
|
317
|
+
-48, 10, -70, 10, -48, 10, -80, 10,
|
318
|
+
10, 32, -48, 10, -67, 10, -48, 10,
|
319
|
+
-80, 10, 10, 32, -47, 10, -127, 10,
|
320
|
+
-47, 10, -122, 10, -48, 10, -75, 10,
|
321
|
+
-48, 10, -67, 10, -48, 10, -80, 10,
|
322
|
+
-47, 10, -128, 10, -48, 10, -72, 10,
|
323
|
+
-48, 10, -71, 10, -47, 10, -125, 10,
|
324
|
+
-48, 10, -67, 10, -48, 10, -70, 10,
|
325
|
+
-47, 10, -122, 10, -48, 10, -72, 10,
|
326
|
+
-48, 10, -66, 10, -48, 10, -67, 10,
|
327
|
+
-48, 10, -80, 10, -48, 10, -69, 10,
|
328
|
+
-48, 10, -67, 10, -48, 10, -66, 10,
|
329
|
+
-47, 10, -127, 10, -47, 10, -126, 10,
|
330
|
+
10, 95, 10, 70, 10, 69, 10, 65,
|
331
|
+
10, 84, 10, 85, 10, 82, 10, 69,
|
332
|
+
10, 95, 10, 69, 10, 78, 10, 68,
|
333
|
+
10, 95, 10, 37, -69, -65, 0
|
334
|
+
};
|
335
|
+
|
336
|
+
static const char _lexer_single_lengths[] = {
|
337
|
+
0, 10, 9, 1, 1, 1, 1, 1,
|
338
|
+
1, 1, 1, 1, 1, 1, 1, 2,
|
339
|
+
9, 1, 1, 2, 2, 3, 3, 3,
|
340
|
+
3, 2, 2, 2, 1, 1, 1, 1,
|
341
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
342
|
+
1, 1, 1, 3, 5, 3, 2, 4,
|
343
|
+
3, 2, 4, 9, 1, 1, 1, 1,
|
344
|
+
1, 1, 1, 1, 1, 1, 1, 2,
|
345
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
346
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
347
|
+
1, 1, 1, 7, 9, 2, 2, 2,
|
348
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
349
|
+
9, 2, 2, 2, 2, 2, 2, 2,
|
350
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
351
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
352
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
353
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
354
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
355
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
356
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
357
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
358
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
359
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
360
|
+
1, 1, 1, 5, 2, 2, 2, 2,
|
361
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
362
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
363
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
364
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
365
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
366
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
367
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
368
|
+
1, 7, 8, 2, 2, 2, 2, 2,
|
369
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
370
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
371
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
372
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
373
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
374
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
375
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
376
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
377
|
+
2, 2, 2, 2, 2, 1, 1, 1,
|
378
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
379
|
+
1, 1, 1, 1, 1, 1, 7, 10,
|
380
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
381
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
382
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
383
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
384
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
385
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
386
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
387
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
388
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
389
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
390
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
391
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
392
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
393
|
+
2, 2, 2, 2, 2, 2, 1, 1,
|
394
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
395
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
396
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
397
|
+
1, 1, 1, 6, 5, 2, 2, 2,
|
398
|
+
3, 2, 2, 2, 2, 2, 2, 2,
|
399
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
400
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
401
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
402
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
403
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
404
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
405
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
406
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
407
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
408
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
409
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
410
|
+
1, 1, 0
|
411
|
+
};
|
412
|
+
|
413
|
+
static const char _lexer_range_lengths[] = {
|
414
|
+
0, 1, 0, 0, 0, 0, 0, 0,
|
415
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
416
|
+
1, 0, 0, 0, 0, 1, 1, 1,
|
417
|
+
1, 1, 1, 0, 0, 0, 0, 0,
|
418
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
419
|
+
0, 0, 0, 1, 1, 1, 1, 1,
|
420
|
+
0, 0, 1, 1, 0, 0, 0, 0,
|
421
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
422
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
423
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
424
|
+
0, 0, 0, 1, 0, 0, 0, 0,
|
425
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
426
|
+
1, 0, 0, 0, 0, 0, 0, 0,
|
427
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
428
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
429
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
430
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
431
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
432
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
433
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
434
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
435
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
436
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
437
|
+
0, 0, 0, 1, 0, 0, 0, 0,
|
438
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
439
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
440
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
441
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
442
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
443
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
444
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
445
|
+
0, 1, 0, 0, 0, 0, 0, 0,
|
446
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
447
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
448
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
449
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
450
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
451
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
452
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
453
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
454
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
455
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
456
|
+
0, 0, 0, 0, 0, 0, 1, 0,
|
457
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
458
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
459
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
460
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
461
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
462
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
463
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
464
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
465
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
466
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
467
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
468
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
469
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
470
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
471
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
472
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
473
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
474
|
+
0, 0, 0, 1, 0, 0, 0, 0,
|
475
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
476
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
477
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
478
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
479
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
480
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
481
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
482
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
483
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
484
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
485
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
486
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
487
|
+
0, 0, 0
|
488
|
+
};
|
489
|
+
|
490
|
+
static const short _lexer_index_offsets[] = {
|
491
|
+
0, 0, 12, 22, 24, 26, 28, 30,
|
492
|
+
32, 34, 36, 38, 40, 42, 44, 46,
|
493
|
+
49, 60, 62, 64, 67, 70, 75, 80,
|
494
|
+
85, 90, 94, 98, 101, 103, 105, 107,
|
495
|
+
109, 111, 113, 115, 117, 119, 121, 123,
|
496
|
+
125, 127, 129, 131, 136, 143, 148, 152,
|
497
|
+
158, 162, 165, 171, 182, 184, 186, 188,
|
498
|
+
190, 192, 194, 196, 198, 200, 202, 204,
|
499
|
+
207, 209, 211, 213, 215, 217, 219, 221,
|
500
|
+
223, 225, 227, 229, 231, 233, 235, 237,
|
501
|
+
239, 241, 243, 245, 254, 264, 267, 270,
|
502
|
+
273, 276, 279, 282, 285, 288, 291, 294,
|
503
|
+
297, 308, 311, 314, 317, 320, 323, 326,
|
504
|
+
329, 332, 335, 338, 341, 344, 347, 350,
|
505
|
+
353, 356, 359, 362, 365, 368, 371, 374,
|
506
|
+
377, 380, 383, 386, 389, 392, 395, 398,
|
507
|
+
401, 404, 407, 410, 413, 416, 419, 422,
|
508
|
+
425, 428, 431, 434, 437, 440, 443, 446,
|
509
|
+
449, 452, 455, 458, 461, 464, 467, 470,
|
510
|
+
473, 476, 479, 482, 485, 488, 491, 494,
|
511
|
+
497, 500, 503, 506, 509, 512, 515, 518,
|
512
|
+
521, 524, 527, 530, 533, 536, 539, 542,
|
513
|
+
545, 547, 549, 551, 553, 555, 557, 559,
|
514
|
+
561, 563, 565, 567, 574, 577, 580, 583,
|
515
|
+
586, 589, 592, 595, 598, 601, 604, 607,
|
516
|
+
610, 613, 616, 619, 622, 625, 628, 631,
|
517
|
+
634, 637, 640, 643, 646, 649, 652, 655,
|
518
|
+
658, 660, 662, 664, 666, 668, 670, 672,
|
519
|
+
674, 676, 678, 680, 682, 684, 686, 688,
|
520
|
+
690, 692, 694, 696, 698, 700, 702, 704,
|
521
|
+
706, 708, 710, 712, 714, 716, 718, 720,
|
522
|
+
722, 724, 733, 742, 745, 748, 751, 754,
|
523
|
+
757, 760, 763, 766, 769, 772, 775, 778,
|
524
|
+
781, 784, 787, 790, 793, 796, 799, 802,
|
525
|
+
805, 808, 811, 814, 817, 820, 823, 826,
|
526
|
+
829, 832, 835, 838, 841, 844, 847, 850,
|
527
|
+
853, 856, 859, 862, 865, 868, 871, 874,
|
528
|
+
877, 880, 883, 886, 889, 892, 895, 898,
|
529
|
+
901, 904, 907, 910, 913, 916, 919, 922,
|
530
|
+
925, 928, 931, 934, 937, 940, 943, 946,
|
531
|
+
949, 952, 955, 958, 961, 964, 966, 968,
|
532
|
+
970, 972, 974, 976, 978, 980, 982, 984,
|
533
|
+
986, 988, 990, 992, 994, 996, 998, 1007,
|
534
|
+
1018, 1021, 1024, 1027, 1030, 1033, 1036, 1039,
|
535
|
+
1042, 1045, 1048, 1051, 1054, 1057, 1060, 1063,
|
536
|
+
1066, 1069, 1072, 1075, 1078, 1081, 1084, 1087,
|
537
|
+
1090, 1093, 1096, 1099, 1102, 1105, 1108, 1111,
|
538
|
+
1114, 1117, 1120, 1123, 1126, 1129, 1132, 1135,
|
539
|
+
1138, 1141, 1144, 1147, 1150, 1153, 1156, 1159,
|
540
|
+
1162, 1165, 1168, 1171, 1174, 1177, 1180, 1183,
|
541
|
+
1186, 1189, 1192, 1195, 1198, 1201, 1204, 1207,
|
542
|
+
1210, 1213, 1216, 1219, 1222, 1225, 1228, 1231,
|
543
|
+
1234, 1237, 1240, 1243, 1246, 1249, 1252, 1255,
|
544
|
+
1258, 1261, 1264, 1267, 1270, 1273, 1276, 1279,
|
545
|
+
1282, 1285, 1288, 1291, 1294, 1297, 1300, 1303,
|
546
|
+
1306, 1309, 1312, 1315, 1318, 1321, 1324, 1327,
|
547
|
+
1330, 1333, 1336, 1339, 1342, 1345, 1348, 1350,
|
548
|
+
1352, 1354, 1356, 1358, 1360, 1362, 1364, 1366,
|
549
|
+
1368, 1370, 1372, 1374, 1376, 1378, 1380, 1382,
|
550
|
+
1384, 1386, 1388, 1390, 1392, 1394, 1396, 1398,
|
551
|
+
1400, 1402, 1404, 1406, 1414, 1420, 1423, 1426,
|
552
|
+
1429, 1433, 1436, 1439, 1442, 1445, 1448, 1451,
|
553
|
+
1454, 1457, 1460, 1463, 1466, 1469, 1472, 1475,
|
554
|
+
1478, 1481, 1484, 1487, 1490, 1493, 1496, 1499,
|
555
|
+
1502, 1505, 1508, 1511, 1514, 1517, 1520, 1523,
|
556
|
+
1526, 1529, 1532, 1535, 1538, 1541, 1544, 1547,
|
557
|
+
1550, 1553, 1556, 1559, 1562, 1565, 1568, 1571,
|
558
|
+
1574, 1577, 1580, 1583, 1586, 1589, 1592, 1595,
|
559
|
+
1598, 1601, 1604, 1607, 1610, 1613, 1616, 1619,
|
560
|
+
1622, 1625, 1628, 1631, 1634, 1637, 1640, 1643,
|
561
|
+
1646, 1649, 1652, 1655, 1658, 1661, 1664, 1667,
|
562
|
+
1670, 1673, 1676, 1679, 1682, 1685, 1688, 1691,
|
563
|
+
1694, 1697, 1700, 1703, 1706, 1709, 1712, 1715,
|
564
|
+
1718, 1720, 1722
|
565
|
+
};
|
566
|
+
|
567
|
+
static const short _lexer_trans_targs[] = {
|
568
|
+
2, 584, 16, 16, 17, 27, 29, 13,
|
569
|
+
43, 46, 16, 0, 3, 13, 52, 11,
|
570
|
+
60, 216, 325, 11, 454, 0, 4, 0,
|
571
|
+
5, 0, 6, 0, 7, 0, 8, 0,
|
572
|
+
9, 0, 10, 0, 11, 0, 12, 0,
|
573
|
+
13, 0, 14, 0, 0, 15, 16, 28,
|
574
|
+
15, 2, 16, 16, 17, 27, 29, 13,
|
575
|
+
43, 46, 16, 0, 18, 0, 19, 0,
|
576
|
+
21, 20, 20, 21, 20, 20, 22, 22,
|
577
|
+
23, 22, 22, 22, 22, 23, 22, 22,
|
578
|
+
22, 22, 24, 22, 22, 22, 22, 25,
|
579
|
+
22, 22, 16, 26, 26, 0, 16, 26,
|
580
|
+
26, 0, 16, 28, 27, 16, 0, 30,
|
581
|
+
0, 31, 0, 32, 0, 33, 0, 34,
|
582
|
+
0, 35, 0, 36, 0, 37, 0, 38,
|
583
|
+
0, 39, 0, 40, 0, 41, 0, 42,
|
584
|
+
0, 586, 0, 0, 0, 0, 0, 44,
|
585
|
+
45, 16, 45, 45, 43, 44, 44, 16,
|
586
|
+
45, 43, 45, 0, 46, 47, 46, 0,
|
587
|
+
51, 50, 49, 47, 50, 48, 0, 49,
|
588
|
+
47, 48, 0, 49, 48, 51, 50, 49,
|
589
|
+
47, 50, 48, 2, 51, 51, 17, 27,
|
590
|
+
29, 13, 43, 46, 51, 0, 53, 0,
|
591
|
+
54, 0, 55, 0, 56, 0, 57, 0,
|
592
|
+
58, 0, 59, 0, 11, 0, 61, 0,
|
593
|
+
62, 0, 63, 0, 64, 176, 0, 65,
|
594
|
+
0, 66, 0, 67, 0, 68, 0, 69,
|
595
|
+
0, 70, 0, 71, 0, 72, 0, 73,
|
596
|
+
0, 74, 0, 75, 0, 76, 0, 77,
|
597
|
+
0, 78, 0, 79, 0, 80, 0, 81,
|
598
|
+
0, 83, 82, 83, 82, 84, 83, 83,
|
599
|
+
16, 162, 95, 16, 83, 82, 85, 95,
|
600
|
+
97, 93, 105, 121, 93, 136, 83, 82,
|
601
|
+
86, 83, 82, 87, 83, 82, 88, 83,
|
602
|
+
82, 89, 83, 82, 90, 83, 82, 91,
|
603
|
+
83, 82, 92, 83, 82, 93, 83, 82,
|
604
|
+
94, 83, 82, 95, 83, 82, 83, 96,
|
605
|
+
82, 2, 16, 16, 17, 27, 29, 13,
|
606
|
+
43, 46, 16, 0, 98, 83, 82, 99,
|
607
|
+
83, 82, 100, 83, 82, 101, 83, 82,
|
608
|
+
102, 83, 82, 103, 83, 82, 104, 83,
|
609
|
+
82, 93, 83, 82, 106, 83, 82, 107,
|
610
|
+
83, 82, 108, 83, 82, 109, 83, 82,
|
611
|
+
110, 83, 82, 111, 83, 82, 112, 83,
|
612
|
+
82, 113, 83, 82, 83, 114, 82, 115,
|
613
|
+
83, 82, 116, 83, 82, 117, 83, 82,
|
614
|
+
118, 83, 82, 83, 119, 82, 120, 83,
|
615
|
+
82, 121, 83, 82, 122, 83, 82, 123,
|
616
|
+
83, 82, 124, 83, 82, 125, 83, 82,
|
617
|
+
126, 83, 82, 127, 83, 82, 128, 83,
|
618
|
+
82, 129, 83, 82, 130, 83, 82, 131,
|
619
|
+
83, 82, 132, 83, 82, 133, 83, 82,
|
620
|
+
134, 83, 82, 135, 83, 82, 83, 96,
|
621
|
+
82, 137, 83, 82, 138, 83, 82, 139,
|
622
|
+
83, 82, 140, 83, 82, 141, 83, 82,
|
623
|
+
142, 83, 82, 143, 83, 82, 144, 83,
|
624
|
+
82, 145, 83, 82, 146, 83, 82, 147,
|
625
|
+
83, 82, 148, 83, 82, 149, 83, 82,
|
626
|
+
150, 83, 82, 151, 83, 82, 152, 83,
|
627
|
+
82, 153, 83, 82, 154, 83, 82, 155,
|
628
|
+
83, 82, 156, 83, 82, 157, 83, 82,
|
629
|
+
158, 83, 82, 159, 83, 82, 160, 83,
|
630
|
+
82, 161, 83, 82, 135, 83, 82, 83,
|
631
|
+
163, 82, 83, 164, 82, 83, 165, 82,
|
632
|
+
83, 166, 82, 83, 167, 82, 83, 168,
|
633
|
+
82, 83, 169, 82, 83, 170, 82, 83,
|
634
|
+
171, 82, 83, 172, 82, 83, 173, 82,
|
635
|
+
83, 174, 82, 83, 175, 82, 83, 16,
|
636
|
+
82, 177, 0, 178, 0, 179, 0, 180,
|
637
|
+
0, 181, 0, 182, 0, 183, 0, 184,
|
638
|
+
0, 185, 0, 187, 186, 187, 186, 188,
|
639
|
+
187, 187, 16, 16, 187, 186, 189, 187,
|
640
|
+
186, 190, 187, 186, 191, 187, 186, 192,
|
641
|
+
187, 186, 193, 187, 186, 194, 187, 186,
|
642
|
+
195, 187, 186, 196, 187, 186, 197, 187,
|
643
|
+
186, 198, 187, 186, 199, 187, 186, 200,
|
644
|
+
187, 186, 201, 187, 186, 202, 187, 186,
|
645
|
+
203, 187, 186, 204, 187, 186, 205, 187,
|
646
|
+
186, 206, 187, 186, 207, 187, 186, 208,
|
647
|
+
187, 186, 209, 187, 186, 210, 187, 186,
|
648
|
+
211, 187, 186, 212, 187, 186, 213, 187,
|
649
|
+
186, 214, 187, 186, 215, 187, 186, 187,
|
650
|
+
96, 186, 217, 0, 218, 0, 219, 0,
|
651
|
+
220, 0, 221, 0, 222, 0, 223, 0,
|
652
|
+
224, 0, 225, 0, 226, 0, 227, 0,
|
653
|
+
228, 0, 229, 0, 230, 0, 231, 0,
|
654
|
+
232, 0, 233, 0, 234, 0, 235, 0,
|
655
|
+
236, 0, 237, 0, 238, 0, 239, 0,
|
656
|
+
240, 0, 241, 0, 242, 0, 243, 0,
|
657
|
+
244, 0, 245, 0, 246, 0, 247, 0,
|
658
|
+
249, 248, 249, 248, 250, 249, 249, 16,
|
659
|
+
311, 261, 16, 249, 248, 251, 261, 262,
|
660
|
+
259, 270, 259, 285, 249, 248, 252, 249,
|
661
|
+
248, 253, 249, 248, 254, 249, 248, 255,
|
662
|
+
249, 248, 256, 249, 248, 257, 249, 248,
|
663
|
+
258, 249, 248, 259, 249, 248, 260, 249,
|
664
|
+
248, 261, 249, 248, 249, 96, 248, 263,
|
665
|
+
249, 248, 264, 249, 248, 265, 249, 248,
|
666
|
+
266, 249, 248, 267, 249, 248, 268, 249,
|
667
|
+
248, 269, 249, 248, 259, 249, 248, 271,
|
668
|
+
249, 248, 272, 249, 248, 273, 249, 248,
|
669
|
+
274, 249, 248, 275, 249, 248, 276, 249,
|
670
|
+
248, 277, 249, 248, 278, 249, 248, 279,
|
671
|
+
249, 248, 280, 249, 248, 281, 249, 248,
|
672
|
+
282, 249, 248, 283, 249, 248, 284, 249,
|
673
|
+
248, 249, 96, 248, 286, 249, 248, 287,
|
674
|
+
249, 248, 288, 249, 248, 289, 249, 248,
|
675
|
+
290, 249, 248, 291, 249, 248, 292, 249,
|
676
|
+
248, 293, 249, 248, 294, 249, 248, 295,
|
677
|
+
249, 248, 296, 249, 248, 297, 249, 248,
|
678
|
+
298, 249, 248, 299, 249, 248, 300, 249,
|
679
|
+
248, 301, 249, 248, 302, 249, 248, 303,
|
680
|
+
249, 248, 304, 249, 248, 305, 249, 248,
|
681
|
+
306, 249, 248, 307, 249, 248, 308, 249,
|
682
|
+
248, 309, 249, 248, 310, 249, 248, 284,
|
683
|
+
249, 248, 249, 312, 248, 249, 313, 248,
|
684
|
+
249, 314, 248, 249, 315, 248, 249, 316,
|
685
|
+
248, 249, 317, 248, 249, 318, 248, 249,
|
686
|
+
319, 248, 249, 320, 248, 249, 321, 248,
|
687
|
+
249, 322, 248, 249, 323, 248, 249, 324,
|
688
|
+
248, 249, 16, 248, 326, 0, 327, 0,
|
689
|
+
328, 0, 329, 0, 330, 0, 331, 0,
|
690
|
+
332, 0, 333, 0, 334, 0, 335, 0,
|
691
|
+
336, 0, 337, 0, 338, 0, 339, 0,
|
692
|
+
340, 0, 342, 341, 342, 341, 343, 342,
|
693
|
+
342, 16, 440, 354, 16, 342, 341, 344,
|
694
|
+
354, 355, 352, 363, 384, 400, 352, 414,
|
695
|
+
342, 341, 345, 342, 341, 346, 342, 341,
|
696
|
+
347, 342, 341, 348, 342, 341, 349, 342,
|
697
|
+
341, 350, 342, 341, 351, 342, 341, 352,
|
698
|
+
342, 341, 353, 342, 341, 354, 342, 341,
|
699
|
+
342, 96, 341, 356, 342, 341, 357, 342,
|
700
|
+
341, 358, 342, 341, 359, 342, 341, 360,
|
701
|
+
342, 341, 361, 342, 341, 362, 342, 341,
|
702
|
+
352, 342, 341, 364, 342, 341, 365, 342,
|
703
|
+
341, 366, 342, 341, 367, 342, 341, 368,
|
704
|
+
342, 341, 369, 342, 341, 370, 342, 341,
|
705
|
+
371, 342, 341, 372, 342, 341, 373, 342,
|
706
|
+
341, 374, 342, 341, 375, 342, 341, 376,
|
707
|
+
342, 341, 377, 342, 341, 378, 342, 341,
|
708
|
+
379, 342, 341, 380, 342, 341, 381, 342,
|
709
|
+
341, 382, 342, 341, 383, 342, 341, 342,
|
710
|
+
96, 341, 385, 342, 341, 386, 342, 341,
|
711
|
+
387, 342, 341, 388, 342, 341, 389, 342,
|
712
|
+
341, 390, 342, 341, 391, 342, 341, 392,
|
713
|
+
342, 341, 342, 393, 341, 394, 342, 341,
|
714
|
+
395, 342, 341, 396, 342, 341, 397, 342,
|
715
|
+
341, 342, 398, 341, 399, 342, 341, 400,
|
716
|
+
342, 341, 401, 342, 341, 402, 342, 341,
|
717
|
+
403, 342, 341, 404, 342, 341, 405, 342,
|
718
|
+
341, 406, 342, 341, 407, 342, 341, 408,
|
719
|
+
342, 341, 409, 342, 341, 410, 342, 341,
|
720
|
+
411, 342, 341, 412, 342, 341, 413, 342,
|
721
|
+
341, 383, 342, 341, 415, 342, 341, 416,
|
722
|
+
342, 341, 417, 342, 341, 418, 342, 341,
|
723
|
+
419, 342, 341, 420, 342, 341, 421, 342,
|
724
|
+
341, 422, 342, 341, 423, 342, 341, 424,
|
725
|
+
342, 341, 425, 342, 341, 426, 342, 341,
|
726
|
+
427, 342, 341, 428, 342, 341, 429, 342,
|
727
|
+
341, 430, 342, 341, 431, 342, 341, 432,
|
728
|
+
342, 341, 433, 342, 341, 434, 342, 341,
|
729
|
+
435, 342, 341, 436, 342, 341, 437, 342,
|
730
|
+
341, 438, 342, 341, 439, 342, 341, 383,
|
731
|
+
342, 341, 342, 441, 341, 342, 442, 341,
|
732
|
+
342, 443, 341, 342, 444, 341, 342, 445,
|
733
|
+
341, 342, 446, 341, 342, 447, 341, 342,
|
734
|
+
448, 341, 342, 449, 341, 342, 450, 341,
|
735
|
+
342, 451, 341, 342, 452, 341, 342, 453,
|
736
|
+
341, 342, 16, 341, 455, 0, 456, 0,
|
737
|
+
457, 0, 458, 0, 459, 0, 460, 0,
|
738
|
+
461, 0, 462, 0, 463, 0, 464, 0,
|
739
|
+
465, 0, 466, 0, 467, 0, 468, 0,
|
740
|
+
469, 0, 470, 0, 471, 0, 472, 0,
|
741
|
+
473, 0, 474, 0, 475, 0, 476, 0,
|
742
|
+
477, 0, 478, 0, 479, 0, 480, 0,
|
743
|
+
481, 0, 483, 482, 483, 482, 484, 483,
|
744
|
+
483, 16, 570, 16, 483, 482, 485, 514,
|
745
|
+
530, 544, 483, 482, 486, 483, 482, 487,
|
746
|
+
483, 482, 488, 483, 482, 489, 506, 483,
|
747
|
+
482, 490, 483, 482, 491, 483, 482, 492,
|
748
|
+
483, 482, 493, 483, 482, 494, 483, 482,
|
749
|
+
495, 483, 482, 496, 483, 482, 497, 483,
|
750
|
+
482, 498, 483, 482, 499, 483, 482, 500,
|
751
|
+
483, 482, 501, 483, 482, 502, 483, 482,
|
752
|
+
503, 483, 482, 504, 483, 482, 505, 483,
|
753
|
+
482, 483, 96, 482, 507, 483, 482, 508,
|
754
|
+
483, 482, 509, 483, 482, 510, 483, 482,
|
755
|
+
511, 483, 482, 512, 483, 482, 513, 483,
|
756
|
+
482, 505, 483, 482, 515, 483, 482, 516,
|
757
|
+
483, 482, 517, 483, 482, 518, 483, 482,
|
758
|
+
519, 483, 482, 520, 483, 482, 521, 483,
|
759
|
+
482, 522, 483, 482, 483, 523, 482, 524,
|
760
|
+
483, 482, 525, 483, 482, 526, 483, 482,
|
761
|
+
527, 483, 482, 483, 528, 482, 529, 483,
|
762
|
+
482, 530, 483, 482, 531, 483, 482, 532,
|
763
|
+
483, 482, 533, 483, 482, 534, 483, 482,
|
764
|
+
535, 483, 482, 536, 483, 482, 537, 483,
|
765
|
+
482, 538, 483, 482, 539, 483, 482, 540,
|
766
|
+
483, 482, 541, 483, 482, 542, 483, 482,
|
767
|
+
543, 483, 482, 505, 483, 482, 545, 483,
|
768
|
+
482, 546, 483, 482, 547, 483, 482, 548,
|
769
|
+
483, 482, 549, 483, 482, 550, 483, 482,
|
770
|
+
551, 483, 482, 552, 483, 482, 553, 483,
|
771
|
+
482, 554, 483, 482, 555, 483, 482, 556,
|
772
|
+
483, 482, 557, 483, 482, 558, 483, 482,
|
773
|
+
559, 483, 482, 560, 483, 482, 561, 483,
|
774
|
+
482, 562, 483, 482, 563, 483, 482, 564,
|
775
|
+
483, 482, 565, 483, 482, 566, 483, 482,
|
776
|
+
567, 483, 482, 568, 483, 482, 569, 483,
|
777
|
+
482, 505, 483, 482, 483, 571, 482, 483,
|
778
|
+
572, 482, 483, 573, 482, 483, 574, 482,
|
779
|
+
483, 575, 482, 483, 576, 482, 483, 577,
|
780
|
+
482, 483, 578, 482, 483, 579, 482, 483,
|
781
|
+
580, 482, 483, 581, 482, 483, 582, 482,
|
782
|
+
483, 583, 482, 483, 16, 482, 585, 0,
|
783
|
+
16, 0, 0, 0
|
784
|
+
};
|
785
|
+
|
786
|
+
static const unsigned char _lexer_trans_actions[] = {
|
787
|
+
29, 0, 54, 0, 5, 1, 0, 29,
|
788
|
+
1, 35, 0, 43, 0, 0, 0, 0,
|
789
|
+
0, 0, 0, 0, 0, 43, 0, 43,
|
790
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
791
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
792
|
+
0, 43, 0, 43, 43, 57, 110, 23,
|
793
|
+
0, 29, 54, 0, 5, 1, 0, 29,
|
794
|
+
1, 35, 0, 43, 0, 43, 0, 43,
|
795
|
+
135, 48, 9, 106, 11, 0, 130, 45,
|
796
|
+
45, 45, 3, 122, 33, 33, 33, 0,
|
797
|
+
122, 33, 33, 33, 0, 122, 33, 0,
|
798
|
+
33, 0, 102, 7, 7, 43, 54, 0,
|
799
|
+
0, 43, 114, 25, 0, 54, 43, 0,
|
800
|
+
43, 0, 43, 0, 43, 0, 43, 0,
|
801
|
+
43, 0, 43, 0, 43, 0, 43, 0,
|
802
|
+
43, 0, 43, 0, 43, 0, 43, 0,
|
803
|
+
43, 0, 43, 43, 43, 43, 43, 0,
|
804
|
+
27, 118, 27, 27, 51, 27, 0, 54,
|
805
|
+
0, 1, 0, 43, 0, 0, 0, 43,
|
806
|
+
54, 37, 37, 87, 37, 37, 43, 0,
|
807
|
+
39, 0, 43, 0, 0, 54, 0, 0,
|
808
|
+
39, 0, 0, 96, 54, 0, 93, 90,
|
809
|
+
41, 96, 90, 99, 0, 43, 0, 43,
|
810
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
811
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
812
|
+
0, 43, 0, 43, 0, 0, 43, 0,
|
813
|
+
43, 0, 43, 0, 43, 0, 43, 0,
|
814
|
+
43, 0, 43, 0, 43, 0, 43, 0,
|
815
|
+
43, 0, 43, 0, 43, 0, 43, 0,
|
816
|
+
43, 0, 43, 0, 43, 0, 43, 0,
|
817
|
+
43, 140, 57, 54, 0, 84, 54, 0,
|
818
|
+
72, 33, 84, 72, 0, 0, 0, 0,
|
819
|
+
0, 0, 0, 0, 0, 0, 54, 0,
|
820
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
821
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
822
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
823
|
+
0, 54, 0, 0, 54, 0, 54, 15,
|
824
|
+
0, 63, 126, 31, 60, 57, 31, 63,
|
825
|
+
57, 66, 31, 43, 0, 54, 0, 0,
|
826
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
827
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
828
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
829
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
830
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
831
|
+
0, 0, 54, 0, 54, 0, 0, 0,
|
832
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
833
|
+
0, 54, 0, 54, 0, 0, 0, 54,
|
834
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
835
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
836
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
837
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
838
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
839
|
+
0, 54, 0, 0, 54, 0, 54, 15,
|
840
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
841
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
842
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
843
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
844
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
845
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
846
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
847
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
848
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
849
|
+
0, 0, 54, 0, 0, 54, 0, 54,
|
850
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
851
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
852
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
853
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
854
|
+
54, 0, 0, 54, 0, 0, 54, 15,
|
855
|
+
0, 0, 43, 0, 43, 0, 43, 0,
|
856
|
+
43, 0, 43, 0, 43, 0, 43, 0,
|
857
|
+
43, 0, 43, 140, 57, 54, 0, 84,
|
858
|
+
54, 0, 81, 81, 0, 0, 0, 54,
|
859
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
860
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
861
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
862
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
863
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
864
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
865
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
866
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
867
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
868
|
+
0, 0, 54, 0, 0, 54, 0, 54,
|
869
|
+
21, 0, 0, 43, 0, 43, 0, 43,
|
870
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
871
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
872
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
873
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
874
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
875
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
876
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
877
|
+
140, 57, 54, 0, 84, 54, 0, 78,
|
878
|
+
33, 84, 78, 0, 0, 0, 0, 0,
|
879
|
+
0, 0, 0, 0, 54, 0, 0, 54,
|
880
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
881
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
882
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
883
|
+
0, 0, 54, 0, 54, 19, 0, 0,
|
884
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
885
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
886
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
887
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
888
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
889
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
890
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
891
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
892
|
+
0, 54, 19, 0, 0, 54, 0, 0,
|
893
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
894
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
895
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
896
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
897
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
898
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
899
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
900
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
901
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
902
|
+
54, 0, 54, 0, 0, 54, 0, 0,
|
903
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
904
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
905
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
906
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
907
|
+
0, 54, 19, 0, 0, 43, 0, 43,
|
908
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
909
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
910
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
911
|
+
0, 43, 140, 57, 54, 0, 84, 54,
|
912
|
+
0, 75, 33, 84, 75, 0, 0, 0,
|
913
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
914
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
915
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
916
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
917
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
918
|
+
54, 17, 0, 0, 54, 0, 0, 54,
|
919
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
920
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
921
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
922
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
923
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
924
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
925
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
926
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
927
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
928
|
+
0, 0, 54, 0, 0, 54, 0, 54,
|
929
|
+
17, 0, 0, 54, 0, 0, 54, 0,
|
930
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
931
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
932
|
+
54, 0, 54, 0, 0, 0, 54, 0,
|
933
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
934
|
+
0, 54, 0, 0, 0, 54, 0, 0,
|
935
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
936
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
937
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
938
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
939
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
940
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
941
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
942
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
943
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
944
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
945
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
946
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
947
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
948
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
949
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
950
|
+
54, 0, 54, 0, 0, 54, 0, 0,
|
951
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
952
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
953
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
954
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
955
|
+
0, 54, 17, 0, 0, 43, 0, 43,
|
956
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
957
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
958
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
959
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
960
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
961
|
+
0, 43, 0, 43, 0, 43, 0, 43,
|
962
|
+
0, 43, 140, 57, 54, 0, 84, 54,
|
963
|
+
0, 69, 33, 69, 0, 0, 0, 0,
|
964
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
965
|
+
54, 0, 0, 54, 0, 0, 0, 54,
|
966
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
967
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
968
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
969
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
970
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
971
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
972
|
+
0, 54, 13, 0, 0, 54, 0, 0,
|
973
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
974
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
975
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
976
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
977
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
978
|
+
0, 0, 54, 0, 54, 0, 0, 0,
|
979
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
980
|
+
0, 54, 0, 54, 0, 0, 0, 54,
|
981
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
982
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
983
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
984
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
985
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
986
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
987
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
988
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
989
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
990
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
991
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
992
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
993
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
994
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
995
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
996
|
+
0, 0, 54, 0, 54, 0, 0, 54,
|
997
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
998
|
+
54, 0, 0, 54, 0, 0, 54, 0,
|
999
|
+
0, 54, 0, 0, 54, 0, 0, 54,
|
1000
|
+
0, 0, 54, 0, 0, 54, 0, 0,
|
1001
|
+
54, 0, 0, 54, 13, 0, 0, 43,
|
1002
|
+
0, 43, 0, 0
|
1003
|
+
};
|
1004
|
+
|
1005
|
+
static const unsigned char _lexer_eof_actions[] = {
|
1006
|
+
0, 43, 43, 43, 43, 43, 43, 43,
|
1007
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1008
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1009
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1010
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1011
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1012
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1013
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1014
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1015
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1016
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1017
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1018
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1019
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1020
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1021
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1022
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1023
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1024
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1025
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1026
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1027
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1028
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1029
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1030
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1031
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1032
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1033
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1034
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1035
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1036
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1037
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1038
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1039
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1040
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1041
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1042
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1043
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1044
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1045
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1046
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1047
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1048
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1049
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1050
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1051
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1052
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1053
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1054
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1055
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1056
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1057
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1058
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1059
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1060
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1061
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1062
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1063
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1064
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1065
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1066
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1067
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1068
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1069
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1070
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1071
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1072
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1073
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1074
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1075
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1076
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1077
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1078
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1079
|
+
43, 43, 43
|
1080
|
+
};
|
1081
|
+
|
1082
|
+
static const int lexer_start = 1;
|
1083
|
+
static const int lexer_first_final = 586;
|
1084
|
+
static const int lexer_error = 0;
|
1085
|
+
|
1086
|
+
static const int lexer_en_main = 1;
|
1087
|
+
|
1088
|
+
|
1089
|
+
#line 258 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1090
|
+
|
1091
|
+
static VALUE
|
1092
|
+
unindent(VALUE con, int start_col)
|
1093
|
+
{
|
1094
|
+
VALUE re;
|
1095
|
+
// Gherkin will crash gracefully if the string representation of start_col pushes the pattern past 32 characters
|
1096
|
+
char pat[32];
|
1097
|
+
snprintf(pat, 32, "^[\t ]{0,%d}", start_col);
|
1098
|
+
re = rb_reg_regcomp(rb_str_new2(pat));
|
1099
|
+
rb_funcall(con, rb_intern("gsub!"), 2, re, rb_str_new2(""));
|
1100
|
+
|
1101
|
+
return Qnil;
|
1102
|
+
|
1103
|
+
}
|
1104
|
+
|
1105
|
+
static void
|
1106
|
+
store_kw_con(VALUE listener, const char * event_name,
|
1107
|
+
const char * keyword_at, size_t keyword_length,
|
1108
|
+
const char * at, size_t length,
|
1109
|
+
int current_line)
|
1110
|
+
{
|
1111
|
+
VALUE con = Qnil, kw = Qnil;
|
1112
|
+
kw = ENCODED_STR_NEW(keyword_at, keyword_length);
|
1113
|
+
con = ENCODED_STR_NEW(at, length);
|
1114
|
+
rb_funcall(con, rb_intern("strip!"), 0);
|
1115
|
+
rb_funcall(listener, rb_intern(event_name), 3, kw, con, INT2FIX(current_line));
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
static void
|
1119
|
+
store_multiline_kw_con(VALUE listener, const char * event_name,
|
1120
|
+
const char * keyword_at, size_t keyword_length,
|
1121
|
+
const char * at, size_t length,
|
1122
|
+
int current_line, int start_col)
|
1123
|
+
{
|
1124
|
+
VALUE split;
|
1125
|
+
VALUE con = Qnil, kw = Qnil, name = Qnil, desc = Qnil;
|
1126
|
+
|
1127
|
+
kw = ENCODED_STR_NEW(keyword_at, keyword_length);
|
1128
|
+
con = ENCODED_STR_NEW(at, length);
|
1129
|
+
|
1130
|
+
unindent(con, start_col);
|
1131
|
+
|
1132
|
+
split = rb_str_split(con, "\n");
|
1133
|
+
|
1134
|
+
name = rb_funcall(split, rb_intern("shift"), 0);
|
1135
|
+
desc = rb_ary_join(split, rb_str_new2( "\n" ));
|
1136
|
+
|
1137
|
+
if( name == Qnil )
|
1138
|
+
{
|
1139
|
+
name = rb_str_new2("");
|
1140
|
+
}
|
1141
|
+
if( rb_funcall(desc, rb_intern("size"), 0) == 0)
|
1142
|
+
{
|
1143
|
+
desc = rb_str_new2("");
|
1144
|
+
}
|
1145
|
+
rb_funcall(name, rb_intern("strip!"), 0);
|
1146
|
+
rb_funcall(desc, rb_intern("rstrip!"), 0);
|
1147
|
+
rb_funcall(listener, rb_intern(event_name), 4, kw, name, desc, INT2FIX(current_line));
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
static void
|
1151
|
+
store_attr(VALUE listener, const char * attr_type,
|
1152
|
+
const char * at, size_t length,
|
1153
|
+
int line)
|
1154
|
+
{
|
1155
|
+
VALUE val = ENCODED_STR_NEW(at, length);
|
1156
|
+
rb_funcall(listener, rb_intern(attr_type), 2, val, INT2FIX(line));
|
1157
|
+
}
|
1158
|
+
static void
|
1159
|
+
store_docstring_content(VALUE listener,
|
1160
|
+
int start_col,
|
1161
|
+
const char *type_at, size_t type_length,
|
1162
|
+
const char *at, size_t length,
|
1163
|
+
int current_line)
|
1164
|
+
{
|
1165
|
+
VALUE re2;
|
1166
|
+
VALUE unescape_escaped_quotes;
|
1167
|
+
VALUE con = ENCODED_STR_NEW(at, length);
|
1168
|
+
VALUE con_type = ENCODED_STR_NEW(type_at, type_length);
|
1169
|
+
|
1170
|
+
unindent(con, start_col);
|
1171
|
+
|
1172
|
+
re2 = rb_reg_regcomp(rb_str_new2("\r\\Z"));
|
1173
|
+
unescape_escaped_quotes = rb_reg_regcomp(rb_str_new2("\\\\\"\\\\\"\\\\\""));
|
1174
|
+
rb_funcall(con, rb_intern("sub!"), 2, re2, rb_str_new2(""));
|
1175
|
+
rb_funcall(con_type, rb_intern("strip!"), 0);
|
1176
|
+
rb_funcall(con, rb_intern("gsub!"), 2, unescape_escaped_quotes, rb_str_new2("\"\"\""));
|
1177
|
+
rb_funcall(listener, rb_intern("doc_string"), 3, con_type, con, INT2FIX(current_line));
|
1178
|
+
}
|
1179
|
+
static void
|
1180
|
+
raise_lexer_error(const char * at, int line)
|
1181
|
+
{
|
1182
|
+
rb_raise(rb_eGherkinLexingError, "Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.", line, at);
|
1183
|
+
}
|
1184
|
+
|
1185
|
+
static void lexer_init(lexer_state *lexer) {
|
1186
|
+
lexer->content_start = 0;
|
1187
|
+
lexer->content_end = 0;
|
1188
|
+
lexer->content_len = 0;
|
1189
|
+
lexer->docstring_content_type_start = 0;
|
1190
|
+
lexer->docstring_content_type_end = 0;
|
1191
|
+
lexer->mark = 0;
|
1192
|
+
lexer->keyword_start = 0;
|
1193
|
+
lexer->keyword_end = 0;
|
1194
|
+
lexer->next_keyword_start = 0;
|
1195
|
+
lexer->line_number = 1;
|
1196
|
+
lexer->last_newline = 0;
|
1197
|
+
lexer->final_newline = 0;
|
1198
|
+
lexer->start_col = 0;
|
1199
|
+
}
|
1200
|
+
|
1201
|
+
static VALUE CLexer_alloc(VALUE klass)
|
1202
|
+
{
|
1203
|
+
VALUE obj;
|
1204
|
+
lexer_state *lxr = ALLOC(lexer_state);
|
1205
|
+
lexer_init(lxr);
|
1206
|
+
|
1207
|
+
obj = Data_Wrap_Struct(klass, NULL, -1, lxr);
|
1208
|
+
|
1209
|
+
return obj;
|
1210
|
+
}
|
1211
|
+
|
1212
|
+
static VALUE CLexer_init(VALUE self, VALUE listener)
|
1213
|
+
{
|
1214
|
+
lexer_state *lxr;
|
1215
|
+
rb_iv_set(self, "@listener", listener);
|
1216
|
+
|
1217
|
+
lxr = NULL;
|
1218
|
+
DATA_GET(self, lexer_state, lxr);
|
1219
|
+
lexer_init(lxr);
|
1220
|
+
|
1221
|
+
return self;
|
1222
|
+
}
|
1223
|
+
|
1224
|
+
static VALUE CLexer_scan(VALUE self, VALUE input)
|
1225
|
+
{
|
1226
|
+
VALUE input_copy;
|
1227
|
+
char *data;
|
1228
|
+
size_t len;
|
1229
|
+
VALUE listener = rb_iv_get(self, "@listener");
|
1230
|
+
|
1231
|
+
lexer_state *lexer;
|
1232
|
+
lexer = NULL;
|
1233
|
+
DATA_GET(self, lexer_state, lexer);
|
1234
|
+
|
1235
|
+
input_copy = rb_str_dup(input);
|
1236
|
+
|
1237
|
+
rb_str_append(input_copy, rb_str_new2("\n%_FEATURE_END_%"));
|
1238
|
+
data = RSTRING_PTR(input_copy);
|
1239
|
+
len = RSTRING_LEN(input_copy);
|
1240
|
+
|
1241
|
+
if (len == 0) {
|
1242
|
+
rb_raise(rb_eGherkinLexingError, "No content to lex.");
|
1243
|
+
} else {
|
1244
|
+
|
1245
|
+
const char *p, *pe, *eof;
|
1246
|
+
int cs = 0;
|
1247
|
+
|
1248
|
+
VALUE current_row = Qnil;
|
1249
|
+
|
1250
|
+
p = data;
|
1251
|
+
pe = data + len;
|
1252
|
+
eof = pe;
|
1253
|
+
|
1254
|
+
assert(*pe == '\0' && "pointer does not end on NULL");
|
1255
|
+
|
1256
|
+
|
1257
|
+
#line 1258 "ext/gherkin_lexer_bg/gherkin_lexer_bg.c"
|
1258
|
+
{
|
1259
|
+
cs = lexer_start;
|
1260
|
+
}
|
1261
|
+
|
1262
|
+
#line 425 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1263
|
+
|
1264
|
+
#line 1265 "ext/gherkin_lexer_bg/gherkin_lexer_bg.c"
|
1265
|
+
{
|
1266
|
+
int _klen;
|
1267
|
+
unsigned int _trans;
|
1268
|
+
const char *_acts;
|
1269
|
+
unsigned int _nacts;
|
1270
|
+
const char *_keys;
|
1271
|
+
|
1272
|
+
if ( p == pe )
|
1273
|
+
goto _test_eof;
|
1274
|
+
if ( cs == 0 )
|
1275
|
+
goto _out;
|
1276
|
+
_resume:
|
1277
|
+
_keys = _lexer_trans_keys + _lexer_key_offsets[cs];
|
1278
|
+
_trans = _lexer_index_offsets[cs];
|
1279
|
+
|
1280
|
+
_klen = _lexer_single_lengths[cs];
|
1281
|
+
if ( _klen > 0 ) {
|
1282
|
+
const char *_lower = _keys;
|
1283
|
+
const char *_mid;
|
1284
|
+
const char *_upper = _keys + _klen - 1;
|
1285
|
+
while (1) {
|
1286
|
+
if ( _upper < _lower )
|
1287
|
+
break;
|
1288
|
+
|
1289
|
+
_mid = _lower + ((_upper-_lower) >> 1);
|
1290
|
+
if ( (*p) < *_mid )
|
1291
|
+
_upper = _mid - 1;
|
1292
|
+
else if ( (*p) > *_mid )
|
1293
|
+
_lower = _mid + 1;
|
1294
|
+
else {
|
1295
|
+
_trans += (_mid - _keys);
|
1296
|
+
goto _match;
|
1297
|
+
}
|
1298
|
+
}
|
1299
|
+
_keys += _klen;
|
1300
|
+
_trans += _klen;
|
1301
|
+
}
|
1302
|
+
|
1303
|
+
_klen = _lexer_range_lengths[cs];
|
1304
|
+
if ( _klen > 0 ) {
|
1305
|
+
const char *_lower = _keys;
|
1306
|
+
const char *_mid;
|
1307
|
+
const char *_upper = _keys + (_klen<<1) - 2;
|
1308
|
+
while (1) {
|
1309
|
+
if ( _upper < _lower )
|
1310
|
+
break;
|
1311
|
+
|
1312
|
+
_mid = _lower + (((_upper-_lower) >> 1) & ~1);
|
1313
|
+
if ( (*p) < _mid[0] )
|
1314
|
+
_upper = _mid - 2;
|
1315
|
+
else if ( (*p) > _mid[1] )
|
1316
|
+
_lower = _mid + 2;
|
1317
|
+
else {
|
1318
|
+
_trans += ((_mid - _keys)>>1);
|
1319
|
+
goto _match;
|
1320
|
+
}
|
1321
|
+
}
|
1322
|
+
_trans += _klen;
|
1323
|
+
}
|
1324
|
+
|
1325
|
+
_match:
|
1326
|
+
cs = _lexer_trans_targs[_trans];
|
1327
|
+
|
1328
|
+
if ( _lexer_trans_actions[_trans] == 0 )
|
1329
|
+
goto _again;
|
1330
|
+
|
1331
|
+
_acts = _lexer_actions + _lexer_trans_actions[_trans];
|
1332
|
+
_nacts = (unsigned int) *_acts++;
|
1333
|
+
while ( _nacts-- > 0 )
|
1334
|
+
{
|
1335
|
+
switch ( *_acts++ )
|
1336
|
+
{
|
1337
|
+
case 0:
|
1338
|
+
#line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1339
|
+
{
|
1340
|
+
MARK(content_start, p);
|
1341
|
+
lexer->current_line = lexer->line_number;
|
1342
|
+
lexer->start_col = lexer->content_start - lexer->last_newline - (lexer->keyword_end - lexer->keyword_start) + 2;
|
1343
|
+
}
|
1344
|
+
break;
|
1345
|
+
case 1:
|
1346
|
+
#line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1347
|
+
{
|
1348
|
+
MARK(content_start, p);
|
1349
|
+
}
|
1350
|
+
break;
|
1351
|
+
case 2:
|
1352
|
+
#line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1353
|
+
{
|
1354
|
+
lexer->current_line = lexer->line_number;
|
1355
|
+
lexer->start_col = p - data - lexer->last_newline;
|
1356
|
+
}
|
1357
|
+
break;
|
1358
|
+
case 3:
|
1359
|
+
#line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1360
|
+
{
|
1361
|
+
int len = LEN(content_start, PTR_TO(final_newline));
|
1362
|
+
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
1363
|
+
|
1364
|
+
if (len < 0) len = 0;
|
1365
|
+
if (type_len < 0) len = 0;
|
1366
|
+
|
1367
|
+
store_docstring_content(listener, lexer->start_col, PTR_TO(docstring_content_type_start), type_len, PTR_TO(content_start), len, lexer->current_line);
|
1368
|
+
}
|
1369
|
+
break;
|
1370
|
+
case 4:
|
1371
|
+
#line 108 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1372
|
+
{
|
1373
|
+
MARK(docstring_content_type_start, p);
|
1374
|
+
}
|
1375
|
+
break;
|
1376
|
+
case 5:
|
1377
|
+
#line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1378
|
+
{
|
1379
|
+
MARK(docstring_content_type_end, p);
|
1380
|
+
}
|
1381
|
+
break;
|
1382
|
+
case 6:
|
1383
|
+
#line 116 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1384
|
+
{
|
1385
|
+
STORE_KW_END_CON(feature);
|
1386
|
+
}
|
1387
|
+
break;
|
1388
|
+
case 7:
|
1389
|
+
#line 120 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1390
|
+
{
|
1391
|
+
STORE_KW_END_CON(background);
|
1392
|
+
}
|
1393
|
+
break;
|
1394
|
+
case 8:
|
1395
|
+
#line 124 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1396
|
+
{
|
1397
|
+
STORE_KW_END_CON(scenario);
|
1398
|
+
}
|
1399
|
+
break;
|
1400
|
+
case 9:
|
1401
|
+
#line 128 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1402
|
+
{
|
1403
|
+
STORE_KW_END_CON(scenario_outline);
|
1404
|
+
}
|
1405
|
+
break;
|
1406
|
+
case 10:
|
1407
|
+
#line 132 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1408
|
+
{
|
1409
|
+
STORE_KW_END_CON(examples);
|
1410
|
+
}
|
1411
|
+
break;
|
1412
|
+
case 11:
|
1413
|
+
#line 136 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1414
|
+
{
|
1415
|
+
store_kw_con(listener, "step",
|
1416
|
+
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
1417
|
+
PTR_TO(content_start), LEN(content_start, p),
|
1418
|
+
lexer->current_line);
|
1419
|
+
}
|
1420
|
+
break;
|
1421
|
+
case 12:
|
1422
|
+
#line 143 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1423
|
+
{
|
1424
|
+
STORE_ATTR(comment);
|
1425
|
+
lexer->mark = 0;
|
1426
|
+
}
|
1427
|
+
break;
|
1428
|
+
case 13:
|
1429
|
+
#line 148 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1430
|
+
{
|
1431
|
+
STORE_ATTR(tag);
|
1432
|
+
lexer->mark = 0;
|
1433
|
+
}
|
1434
|
+
break;
|
1435
|
+
case 14:
|
1436
|
+
#line 153 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1437
|
+
{
|
1438
|
+
lexer->line_number += 1;
|
1439
|
+
MARK(final_newline, p);
|
1440
|
+
}
|
1441
|
+
break;
|
1442
|
+
case 15:
|
1443
|
+
#line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1444
|
+
{
|
1445
|
+
MARK(last_newline, p + 1);
|
1446
|
+
}
|
1447
|
+
break;
|
1448
|
+
case 16:
|
1449
|
+
#line 162 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1450
|
+
{
|
1451
|
+
if (lexer->mark == 0) {
|
1452
|
+
MARK(mark, p);
|
1453
|
+
}
|
1454
|
+
}
|
1455
|
+
break;
|
1456
|
+
case 17:
|
1457
|
+
#line 168 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1458
|
+
{
|
1459
|
+
MARK(keyword_end, p);
|
1460
|
+
MARK(keyword_start, PTR_TO(mark));
|
1461
|
+
MARK(content_start, p + 1);
|
1462
|
+
lexer->mark = 0;
|
1463
|
+
}
|
1464
|
+
break;
|
1465
|
+
case 18:
|
1466
|
+
#line 175 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1467
|
+
{
|
1468
|
+
MARK(content_end, p);
|
1469
|
+
}
|
1470
|
+
break;
|
1471
|
+
case 19:
|
1472
|
+
#line 179 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1473
|
+
{
|
1474
|
+
p = p - 1;
|
1475
|
+
lexer->current_line = lexer->line_number;
|
1476
|
+
current_row = rb_ary_new();
|
1477
|
+
}
|
1478
|
+
break;
|
1479
|
+
case 20:
|
1480
|
+
#line 185 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1481
|
+
{
|
1482
|
+
MARK(content_start, p);
|
1483
|
+
}
|
1484
|
+
break;
|
1485
|
+
case 21:
|
1486
|
+
#line 189 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1487
|
+
{
|
1488
|
+
VALUE re_pipe, re_newline, re_backslash;
|
1489
|
+
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
1490
|
+
rb_funcall(con, rb_intern("strip!"), 0);
|
1491
|
+
re_pipe = rb_reg_regcomp(rb_str_new2("\\\\\\|"));
|
1492
|
+
re_newline = rb_reg_regcomp(rb_str_new2("\\\\n"));
|
1493
|
+
re_backslash = rb_reg_regcomp(rb_str_new2("\\\\\\\\"));
|
1494
|
+
rb_funcall(con, rb_intern("gsub!"), 2, re_pipe, rb_str_new2("|"));
|
1495
|
+
rb_funcall(con, rb_intern("gsub!"), 2, re_newline, rb_str_new2("\n"));
|
1496
|
+
rb_funcall(con, rb_intern("gsub!"), 2, re_backslash, rb_str_new2("\\"));
|
1497
|
+
|
1498
|
+
rb_ary_push(current_row, con);
|
1499
|
+
}
|
1500
|
+
break;
|
1501
|
+
case 22:
|
1502
|
+
#line 203 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1503
|
+
{
|
1504
|
+
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1505
|
+
}
|
1506
|
+
break;
|
1507
|
+
case 23:
|
1508
|
+
#line 207 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1509
|
+
{
|
1510
|
+
int line;
|
1511
|
+
if (cs < lexer_first_final) {
|
1512
|
+
size_t count = 0;
|
1513
|
+
VALUE newstr_val;
|
1514
|
+
char *newstr;
|
1515
|
+
int newstr_count = 0;
|
1516
|
+
size_t len;
|
1517
|
+
const char *buff;
|
1518
|
+
if (lexer->last_newline != 0) {
|
1519
|
+
len = LEN(last_newline, eof);
|
1520
|
+
buff = PTR_TO(last_newline);
|
1521
|
+
} else {
|
1522
|
+
len = strlen(data);
|
1523
|
+
buff = data;
|
1524
|
+
}
|
1525
|
+
|
1526
|
+
// Allocate as a ruby string so that it gets cleaned up by GC
|
1527
|
+
newstr_val = rb_str_new(buff, len);
|
1528
|
+
newstr = RSTRING_PTR(newstr_val);
|
1529
|
+
|
1530
|
+
|
1531
|
+
for (count = 0; count < len; count++) {
|
1532
|
+
if(buff[count] == 10) {
|
1533
|
+
newstr[newstr_count] = '\0'; // terminate new string at first newline found
|
1534
|
+
break;
|
1535
|
+
} else {
|
1536
|
+
if (buff[count] == '%') {
|
1537
|
+
newstr[newstr_count++] = buff[count];
|
1538
|
+
newstr[newstr_count] = buff[count];
|
1539
|
+
} else {
|
1540
|
+
newstr[newstr_count] = buff[count];
|
1541
|
+
}
|
1542
|
+
}
|
1543
|
+
newstr_count++;
|
1544
|
+
}
|
1545
|
+
|
1546
|
+
line = lexer->line_number;
|
1547
|
+
lexer_init(lexer); // Re-initialize so we can scan again with the same lexer
|
1548
|
+
raise_lexer_error(newstr, line);
|
1549
|
+
} else {
|
1550
|
+
rb_funcall(listener, rb_intern("eof"), 0);
|
1551
|
+
}
|
1552
|
+
}
|
1553
|
+
break;
|
1554
|
+
#line 1555 "ext/gherkin_lexer_bg/gherkin_lexer_bg.c"
|
1555
|
+
}
|
1556
|
+
}
|
1557
|
+
|
1558
|
+
_again:
|
1559
|
+
if ( cs == 0 )
|
1560
|
+
goto _out;
|
1561
|
+
if ( ++p != pe )
|
1562
|
+
goto _resume;
|
1563
|
+
_test_eof: {}
|
1564
|
+
if ( p == eof )
|
1565
|
+
{
|
1566
|
+
const char *__acts = _lexer_actions + _lexer_eof_actions[cs];
|
1567
|
+
unsigned int __nacts = (unsigned int) *__acts++;
|
1568
|
+
while ( __nacts-- > 0 ) {
|
1569
|
+
switch ( *__acts++ ) {
|
1570
|
+
case 23:
|
1571
|
+
#line 207 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1572
|
+
{
|
1573
|
+
int line;
|
1574
|
+
if (cs < lexer_first_final) {
|
1575
|
+
size_t count = 0;
|
1576
|
+
VALUE newstr_val;
|
1577
|
+
char *newstr;
|
1578
|
+
int newstr_count = 0;
|
1579
|
+
size_t len;
|
1580
|
+
const char *buff;
|
1581
|
+
if (lexer->last_newline != 0) {
|
1582
|
+
len = LEN(last_newline, eof);
|
1583
|
+
buff = PTR_TO(last_newline);
|
1584
|
+
} else {
|
1585
|
+
len = strlen(data);
|
1586
|
+
buff = data;
|
1587
|
+
}
|
1588
|
+
|
1589
|
+
// Allocate as a ruby string so that it gets cleaned up by GC
|
1590
|
+
newstr_val = rb_str_new(buff, len);
|
1591
|
+
newstr = RSTRING_PTR(newstr_val);
|
1592
|
+
|
1593
|
+
|
1594
|
+
for (count = 0; count < len; count++) {
|
1595
|
+
if(buff[count] == 10) {
|
1596
|
+
newstr[newstr_count] = '\0'; // terminate new string at first newline found
|
1597
|
+
break;
|
1598
|
+
} else {
|
1599
|
+
if (buff[count] == '%') {
|
1600
|
+
newstr[newstr_count++] = buff[count];
|
1601
|
+
newstr[newstr_count] = buff[count];
|
1602
|
+
} else {
|
1603
|
+
newstr[newstr_count] = buff[count];
|
1604
|
+
}
|
1605
|
+
}
|
1606
|
+
newstr_count++;
|
1607
|
+
}
|
1608
|
+
|
1609
|
+
line = lexer->line_number;
|
1610
|
+
lexer_init(lexer); // Re-initialize so we can scan again with the same lexer
|
1611
|
+
raise_lexer_error(newstr, line);
|
1612
|
+
} else {
|
1613
|
+
rb_funcall(listener, rb_intern("eof"), 0);
|
1614
|
+
}
|
1615
|
+
}
|
1616
|
+
break;
|
1617
|
+
#line 1618 "ext/gherkin_lexer_bg/gherkin_lexer_bg.c"
|
1618
|
+
}
|
1619
|
+
}
|
1620
|
+
}
|
1621
|
+
|
1622
|
+
_out: {}
|
1623
|
+
}
|
1624
|
+
|
1625
|
+
#line 426 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/bg.c.rl"
|
1626
|
+
|
1627
|
+
assert(p <= pe && "data overflow after parsing execute");
|
1628
|
+
assert(lexer->content_start <= len && "content starts after data end");
|
1629
|
+
assert(lexer->mark < len && "mark is after data end");
|
1630
|
+
|
1631
|
+
// Reset lexer by re-initializing the whole thing
|
1632
|
+
lexer_init(lexer);
|
1633
|
+
|
1634
|
+
if (cs == lexer_error) {
|
1635
|
+
rb_raise(rb_eGherkinLexingError, "Invalid format, lexing fails.");
|
1636
|
+
} else {
|
1637
|
+
return Qtrue;
|
1638
|
+
}
|
1639
|
+
}
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
void Init_gherkin_lexer_bg()
|
1643
|
+
{
|
1644
|
+
mGherkin = rb_define_module("Gherkin");
|
1645
|
+
mGherkinLexer = rb_define_module_under(mGherkin, "Lexer");
|
1646
|
+
rb_eGherkinLexingError = rb_const_get(mGherkinLexer, rb_intern("LexingError"));
|
1647
|
+
|
1648
|
+
mCLexer = rb_define_module_under(mGherkin, "CLexer");
|
1649
|
+
cI18nLexer = rb_define_class_under(mCLexer, "Bg", rb_cObject);
|
1650
|
+
rb_define_alloc_func(cI18nLexer, CLexer_alloc);
|
1651
|
+
rb_define_method(cI18nLexer, "initialize", CLexer_init, 1);
|
1652
|
+
rb_define_method(cI18nLexer, "scan", CLexer_scan, 1);
|
1653
|
+
}
|
1654
|
+
|