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