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