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