gherkin 2.11.5 → 2.11.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ require 'mkmf'
2
+ CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags']
3
+ $CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/
4
+ dir_config("gherkin_lexer_tt")
5
+ have_library("c", "main")
6
+ create_makefile("gherkin_lexer_tt")
@@ -0,0 +1,1936 @@
1
+
2
+ #line 1 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.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/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
84
+
85
+
86
+ /** Data **/
87
+
88
+ #line 89 "ext/gherkin_lexer_tt/gherkin_lexer_tt.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
+ 0, 11, 3, 17, 14, 15, 4, 1,
107
+ 14, 15, 18, 4, 4, 5, 14, 15,
108
+ 4, 17, 0, 14, 15, 5, 17, 0,
109
+ 11, 14, 15
110
+ };
111
+
112
+ static const short _lexer_key_offsets[] = {
113
+ 0, 0, 14, 20, 21, 22, 23, 25,
114
+ 27, 40, 42, 44, 45, 46, 47, 48,
115
+ 49, 50, 51, 52, 53, 54, 55, 56,
116
+ 57, 58, 59, 60, 61, 62, 63, 64,
117
+ 65, 66, 67, 68, 69, 70, 71, 72,
118
+ 81, 85, 87, 89, 91, 93, 95, 97,
119
+ 99, 101, 103, 116, 117, 118, 121, 122,
120
+ 123, 124, 125, 126, 127, 128, 129, 130,
121
+ 131, 132, 133, 134, 135, 136, 137, 139,
122
+ 141, 146, 151, 156, 161, 165, 169, 171,
123
+ 172, 173, 174, 175, 176, 177, 178, 179,
124
+ 180, 181, 182, 183, 184, 185, 186, 191,
125
+ 198, 203, 207, 213, 216, 218, 224, 237,
126
+ 240, 242, 244, 246, 248, 250, 252, 254,
127
+ 256, 258, 260, 262, 264, 266, 268, 270,
128
+ 272, 274, 276, 278, 280, 282, 284, 286,
129
+ 288, 290, 292, 294, 296, 298, 300, 302,
130
+ 304, 306, 308, 310, 312, 314, 316, 318,
131
+ 320, 322, 324, 327, 329, 331, 333, 335,
132
+ 337, 339, 341, 343, 345, 347, 349, 351,
133
+ 353, 355, 357, 359, 361, 363, 365, 367,
134
+ 369, 371, 373, 376, 378, 380, 382, 384,
135
+ 386, 388, 390, 392, 394, 396, 398, 400,
136
+ 402, 404, 406, 408, 410, 412, 414, 416,
137
+ 418, 420, 422, 424, 426, 428, 430, 432,
138
+ 434, 436, 438, 440, 442, 444, 446, 448,
139
+ 450, 452, 454, 456, 458, 460, 462, 464,
140
+ 465, 466, 467, 468, 469, 470, 471, 472,
141
+ 473, 474, 475, 476, 477, 478, 479, 480,
142
+ 488, 490, 492, 494, 496, 498, 500, 502,
143
+ 504, 506, 508, 510, 512, 514, 516, 518,
144
+ 520, 522, 524, 526, 528, 530, 532, 534,
145
+ 536, 538, 540, 542, 544, 546, 548, 550,
146
+ 552, 554, 556, 558, 560, 562, 564, 566,
147
+ 567, 568, 569, 570, 571, 572, 573, 574,
148
+ 575, 576, 577, 578, 579, 580, 581, 592,
149
+ 598, 600, 602, 604, 606, 608, 610, 612,
150
+ 614, 616, 618, 620, 622, 624, 626, 628,
151
+ 630, 632, 634, 636, 638, 640, 642, 644,
152
+ 646, 648, 650, 652, 654, 656, 658, 660,
153
+ 662, 664, 666, 668, 670, 672, 674, 676,
154
+ 678, 680, 682, 684, 686, 688, 690, 692,
155
+ 694, 696, 698, 700, 702, 704, 706, 709,
156
+ 711, 713, 715, 717, 719, 721, 723, 725,
157
+ 727, 729, 731, 733, 735, 737, 739, 741,
158
+ 743, 745, 747, 749, 751, 753, 756, 758,
159
+ 760, 762, 764, 766, 768, 770, 772, 774,
160
+ 776, 778, 780, 782, 784, 786, 788, 790,
161
+ 792, 794, 796, 798, 800, 802, 804, 806,
162
+ 808, 812, 814, 816, 818, 820, 822, 824,
163
+ 826, 828, 830, 832, 834, 836, 838, 840,
164
+ 842, 844, 846, 848, 850, 852, 854, 856,
165
+ 858, 860, 862, 864, 866, 868, 869, 870,
166
+ 871, 872, 873, 874, 875, 876, 878, 879,
167
+ 880, 881, 882, 883, 884, 885, 886, 887,
168
+ 888, 889, 890, 891, 892, 893, 894, 895,
169
+ 896, 897, 898, 899, 900, 901, 902, 903,
170
+ 904, 905, 906, 907, 908, 909, 910, 911,
171
+ 912, 913, 914, 915, 916, 917, 918, 919,
172
+ 920, 921, 922, 923, 924, 926, 927, 928,
173
+ 929, 930, 931, 932, 933, 934, 935, 936,
174
+ 937, 938, 939, 940, 941, 942, 943, 944,
175
+ 945, 946, 947, 948, 949, 950, 951, 962,
176
+ 968, 970, 972, 974, 976, 978, 980, 982,
177
+ 984, 986, 988, 990, 992, 994, 996, 998,
178
+ 1000, 1002, 1004, 1006, 1008, 1010, 1012, 1014,
179
+ 1016, 1018, 1020, 1022, 1024, 1026, 1028, 1030,
180
+ 1032, 1034, 1036, 1038, 1040, 1042, 1044, 1046,
181
+ 1048, 1050, 1052, 1054, 1056, 1058, 1060, 1062,
182
+ 1064, 1066, 1068, 1070, 1072, 1074, 1076, 1079,
183
+ 1081, 1083, 1085, 1087, 1089, 1091, 1093, 1095,
184
+ 1097, 1099, 1101, 1103, 1105, 1107, 1109, 1111,
185
+ 1113, 1115, 1117, 1119, 1121, 1123, 1125, 1127,
186
+ 1129, 1131, 1135, 1137, 1139, 1141, 1143, 1145,
187
+ 1147, 1149, 1151, 1153, 1155, 1157, 1159, 1161,
188
+ 1163, 1165, 1167, 1169, 1171, 1173, 1175, 1177,
189
+ 1179, 1181, 1183, 1185, 1187, 1189, 1191, 1192,
190
+ 1193, 1204, 1211, 1213, 1215, 1217, 1219, 1221,
191
+ 1223, 1225, 1227, 1229, 1231, 1233, 1235, 1237,
192
+ 1239, 1241, 1243, 1245, 1247, 1249, 1251, 1253,
193
+ 1255, 1257, 1259, 1261, 1263, 1265, 1267, 1269,
194
+ 1271, 1273, 1275, 1277, 1279, 1281, 1283, 1285,
195
+ 1287, 1289, 1291, 1293, 1295, 1297, 1299, 1301,
196
+ 1303, 1305, 1307, 1309, 1311, 1313, 1315, 1317,
197
+ 1319, 1321, 1323, 1325, 1327, 1329, 1331, 1333,
198
+ 1335, 1338, 1340, 1342, 1344, 1346, 1348, 1350,
199
+ 1352, 1354, 1356, 1358, 1360, 1362, 1364, 1366,
200
+ 1368, 1370, 1372, 1374, 1376, 1378, 1380, 1382,
201
+ 1385, 1387, 1389, 1391, 1393, 1395, 1397, 1399,
202
+ 1401, 1403, 1405, 1407, 1409, 1411, 1413, 1415,
203
+ 1417, 1419, 1421, 1423, 1425, 1427, 1429, 1431,
204
+ 1433, 1435, 1437, 1441, 1443, 1445, 1447, 1449,
205
+ 1451, 1453, 1455, 1457, 1459, 1461, 1463, 1465,
206
+ 1467, 1469, 1471, 1473, 1475, 1477, 1479, 1481,
207
+ 1483, 1485, 1487, 1489, 1491, 1493, 1495, 1497,
208
+ 1498, 1499
209
+ };
210
+
211
+ static const char _lexer_trans_keys[] = {
212
+ -48, -46, -45, -17, 10, 32, 34, 35,
213
+ 37, 42, 64, 124, 9, 13, -110, -102,
214
+ -101, -100, -99, -95, -45, -103, 32, 10,
215
+ 13, 10, 13, -48, -46, -45, 10, 32,
216
+ 34, 35, 37, 42, 64, 124, 9, 13,
217
+ -82, -70, -48, -47, -73, -48, -75, -48,
218
+ -67, -47, -121, -45, -103, -48, -69, -48,
219
+ -75, -48, -70, -48, -69, -48, -75, -48,
220
+ -69, -48, -75, -48, -70, 58, 10, 10,
221
+ -48, -46, 10, 32, 35, 37, 64, 9,
222
+ 13, -102, -100, -95, 10, -48, 10, -75,
223
+ 10, -47, 10, -128, 10, -48, 10, -75,
224
+ 10, -47, 10, -120, 10, 10, 58, -48,
225
+ -46, -45, 10, 32, 34, 35, 37, 42,
226
+ 64, 124, 9, 13, -104, -48, -77, -71,
227
+ -68, -45, -103, -47, -128, -47, -126, -48,
228
+ -72, -48, -70, -48, -68, -48, -80, 34,
229
+ 34, 10, 13, 10, 13, 10, 32, 34,
230
+ 9, 13, 10, 32, 34, 9, 13, 10,
231
+ 32, 34, 9, 13, 10, 32, 34, 9,
232
+ 13, 10, 32, 9, 13, 10, 32, 9,
233
+ 13, 10, 13, 10, 95, 70, 69, 65,
234
+ 84, 85, 82, 69, 95, 69, 78, 68,
235
+ 95, 37, 13, 32, 64, 9, 10, 9,
236
+ 10, 13, 32, 64, 11, 12, 10, 32,
237
+ 64, 9, 13, 32, 124, 9, 13, 10,
238
+ 32, 92, 124, 9, 13, 10, 92, 124,
239
+ 10, 92, 10, 32, 92, 124, 9, 13,
240
+ -48, -46, -45, 10, 32, 34, 35, 37,
241
+ 42, 64, 124, 9, 13, -48, -45, 10,
242
+ -72, 10, -47, 10, -127, 10, -48, 10,
243
+ -80, 10, -48, 10, -69, 10, -48, 10,
244
+ -69, 10, -48, 10, -80, 10, -47, 10,
245
+ -128, 10, -87, 10, -48, 10, -68, 10,
246
+ -48, 10, -70, 10, -48, 10, -72, 10,
247
+ -48, 10, -67, 10, -48, 10, -69, 10,
248
+ -48, 10, -75, 10, -48, 10, -70, 10,
249
+ -47, 10, -122, 10, -48, 10, -75, 10,
250
+ -48, 10, -67, 10, -48, 10, -80, 10,
251
+ -47, 10, -128, 10, -48, 10, -72, 10,
252
+ -48, 10, -71, 10, -48, 10, 58, -67,
253
+ 10, -47, 10, -117, 10, -46, 10, -93,
254
+ 10, 10, 32, -47, 10, -126, 10, -45,
255
+ 10, -87, 10, -48, 10, -73, 10, -48,
256
+ 10, -75, 10, -48, 10, -69, 10, -48,
257
+ 10, -75, 10, -47, 10, -120, 10, -48,
258
+ 10, -75, 10, -82, 10, -48, -47, 10,
259
+ -73, 10, -48, 10, -75, 10, -48, 10,
260
+ -67, 10, -47, 10, -121, 10, -45, 10,
261
+ -103, 10, -48, 10, -69, 10, -48, 10,
262
+ -75, 10, -48, 10, -70, 10, -48, 10,
263
+ -69, 10, -48, 10, -75, 10, -128, 10,
264
+ -48, 10, -67, 10, -45, 10, -103, 10,
265
+ -48, 10, -70, 10, -48, 10, -69, 10,
266
+ -45, 10, -103, 10, 10, 95, 10, 70,
267
+ 10, 69, 10, 65, 10, 84, 10, 85,
268
+ 10, 82, 10, 69, 10, 95, 10, 69,
269
+ 10, 78, 10, 68, 10, 95, 10, 37,
270
+ -128, -48, -67, -45, -103, -48, -70, -48,
271
+ -69, -45, -103, -47, -128, 58, 10, 10,
272
+ -48, -46, 10, 32, 35, 124, 9, 13,
273
+ -100, 10, -45, 10, -87, 10, -48, 10,
274
+ -68, 10, -48, 10, -70, 10, -48, 10,
275
+ -72, 10, -48, 10, -67, 10, -48, 10,
276
+ -69, 10, -48, 10, -75, 10, -48, 10,
277
+ -70, 10, 10, 58, -82, 10, -48, 10,
278
+ -73, 10, -48, 10, -75, 10, -48, 10,
279
+ -67, 10, -47, 10, -121, 10, -45, 10,
280
+ -103, 10, -48, 10, -69, 10, -48, 10,
281
+ -75, 10, -48, 10, -70, 10, -48, 10,
282
+ -69, 10, -48, 10, -75, 10, -45, -103,
283
+ -48, -68, -48, -75, -47, -128, -48, -75,
284
+ -47, -120, 58, 10, 10, -48, -46, -45,
285
+ 10, 32, 35, 37, 42, 64, 9, 13,
286
+ -110, -101, -100, -99, -95, 10, -45, 10,
287
+ -103, 10, 10, 32, -45, 10, -103, 10,
288
+ -48, 10, -70, 10, -48, 10, -72, 10,
289
+ -48, 10, -67, 10, -45, 10, -87, 10,
290
+ -48, 10, -68, 10, -48, 10, -70, 10,
291
+ -48, 10, -72, 10, -48, 10, -67, 10,
292
+ -48, 10, -69, 10, -48, 10, -75, 10,
293
+ -48, 10, -70, 10, 10, 58, -45, 10,
294
+ -103, 10, -47, 10, -126, 10, -48, 10,
295
+ -72, 10, -46, 10, -105, 10, -45, 10,
296
+ -103, 10, -48, 10, -76, 10, -47, 10,
297
+ -122, 10, -48, 10, -75, 10, -48, 10,
298
+ -67, 10, -48, 10, -80, 10, -47, 10,
299
+ -128, 10, -48, 10, -72, 10, -48, 10,
300
+ -71, 10, -48, 10, 58, -67, 10, -47,
301
+ 10, -117, 10, -46, 10, -93, 10, 10,
302
+ 32, -47, 10, -126, 10, -45, 10, -87,
303
+ 10, -48, 10, -73, 10, -48, 10, -75,
304
+ 10, -48, 10, -69, 10, -48, 10, -75,
305
+ 10, -47, 10, -120, 10, -48, 10, -75,
306
+ 10, -82, -70, 10, -48, 10, -73, 10,
307
+ -48, 10, -75, 10, -48, 10, -67, 10,
308
+ -47, 10, -121, 10, -45, 10, -103, 10,
309
+ -48, 10, -69, 10, -48, 10, -75, 10,
310
+ -48, 10, -70, 10, -48, 10, -69, 10,
311
+ -48, 10, -75, 10, -45, 10, -103, 10,
312
+ -48, 10, -68, 10, -104, 10, -48, 10,
313
+ -77, -71, -68, 10, -45, 10, -103, 10,
314
+ -47, 10, -128, 10, -47, 10, -126, 10,
315
+ -48, 10, -72, 10, -48, 10, -70, 10,
316
+ -48, 10, -68, 10, -48, 10, -80, 10,
317
+ 10, 95, 10, 70, 10, 69, 10, 65,
318
+ 10, 84, 10, 85, 10, 82, 10, 69,
319
+ 10, 95, 10, 69, 10, 78, 10, 68,
320
+ 10, 95, 10, 37, -45, -103, -48, -70,
321
+ -48, -72, -48, -67, -48, -45, -72, -47,
322
+ -127, -48, -80, -48, -69, -48, -69, -48,
323
+ -80, -87, -48, -68, -48, -70, -48, -72,
324
+ -48, -67, -45, -103, -47, -126, -48, -72,
325
+ -46, -105, -45, -103, -48, -76, -47, -122,
326
+ -48, -75, -48, -67, -48, -80, -47, -128,
327
+ -48, -72, -48, -71, -48, 58, -67, -47,
328
+ -117, -46, -93, 32, -47, -126, -45, -87,
329
+ -48, -73, -48, -75, -48, -69, -48, -75,
330
+ -47, -120, -48, -75, 58, 10, 10, -48,
331
+ -46, -45, 10, 32, 35, 37, 42, 64,
332
+ 9, 13, -110, -101, -100, -99, -95, 10,
333
+ -45, 10, -103, 10, 10, 32, -45, 10,
334
+ -103, 10, -48, 10, -70, 10, -48, 10,
335
+ -72, 10, -48, 10, -67, 10, -45, 10,
336
+ -87, 10, -48, 10, -68, 10, -48, 10,
337
+ -70, 10, -48, 10, -72, 10, -48, 10,
338
+ -67, 10, -48, 10, -69, 10, -48, 10,
339
+ -75, 10, -48, 10, -70, 10, 10, 58,
340
+ -45, 10, -103, 10, -47, 10, -126, 10,
341
+ -48, 10, -72, 10, -46, 10, -105, 10,
342
+ -45, 10, -103, 10, -48, 10, -76, 10,
343
+ -47, 10, -122, 10, -48, 10, -75, 10,
344
+ -48, 10, -67, 10, -48, 10, -80, 10,
345
+ -47, 10, -128, 10, -48, 10, -72, 10,
346
+ -48, 10, -71, 10, -82, -70, 10, -48,
347
+ 10, -73, 10, -48, 10, -75, 10, -48,
348
+ 10, -67, 10, -47, 10, -121, 10, -45,
349
+ 10, -103, 10, -48, 10, -69, 10, -48,
350
+ 10, -75, 10, -48, 10, -70, 10, -48,
351
+ 10, -69, 10, -48, 10, -75, 10, -45,
352
+ 10, -103, 10, -48, 10, -68, 10, -104,
353
+ 10, -48, 10, -77, -71, -68, 10, -45,
354
+ 10, -103, 10, -47, 10, -128, 10, -47,
355
+ 10, -126, 10, -48, 10, -72, 10, -48,
356
+ 10, -70, 10, -48, 10, -68, 10, -48,
357
+ 10, -80, 10, 10, 95, 10, 70, 10,
358
+ 69, 10, 65, 10, 84, 10, 85, 10,
359
+ 82, 10, 69, 10, 95, 10, 69, 10,
360
+ 78, 10, 68, 10, 95, 10, 37, 10,
361
+ 10, -48, -46, -45, 10, 32, 35, 37,
362
+ 42, 64, 9, 13, -110, -102, -101, -100,
363
+ -99, -95, 10, -45, 10, -103, 10, 10,
364
+ 32, -48, 10, -75, 10, -47, 10, -128,
365
+ 10, -48, 10, -75, 10, -47, 10, -120,
366
+ 10, 10, 58, -45, 10, -103, 10, -48,
367
+ 10, -70, 10, -48, 10, -72, 10, -48,
368
+ 10, -67, 10, -45, 10, -87, 10, -48,
369
+ 10, -68, 10, -48, 10, -70, 10, -48,
370
+ 10, -72, 10, -48, 10, -67, 10, -48,
371
+ 10, -69, 10, -48, 10, -75, 10, -48,
372
+ 10, -70, 10, -45, 10, -103, 10, -47,
373
+ 10, -126, 10, -48, 10, -72, 10, -46,
374
+ 10, -105, 10, -45, 10, -103, 10, -48,
375
+ 10, -76, 10, -47, 10, -122, 10, -48,
376
+ 10, -75, 10, -48, 10, -67, 10, -48,
377
+ 10, -80, 10, -47, 10, -128, 10, -48,
378
+ 10, -72, 10, -48, 10, -71, 10, -48,
379
+ 10, 58, -67, 10, -47, 10, -117, 10,
380
+ -46, 10, -93, 10, 10, 32, -47, 10,
381
+ -126, 10, -45, 10, -87, 10, -48, 10,
382
+ -73, 10, -48, 10, -75, 10, -48, 10,
383
+ -69, 10, -48, 10, -75, 10, -47, 10,
384
+ -120, 10, -48, 10, -75, 10, -82, -70,
385
+ 10, -48, 10, -73, 10, -48, 10, -75,
386
+ 10, -48, 10, -67, 10, -47, 10, -121,
387
+ 10, -45, 10, -103, 10, -48, 10, -69,
388
+ 10, -48, 10, -75, 10, -48, 10, -70,
389
+ 10, -48, 10, -69, 10, -48, 10, -75,
390
+ 10, -45, 10, -103, 10, -48, 10, -68,
391
+ 10, -104, 10, -48, 10, -77, -71, -68,
392
+ 10, -45, 10, -103, 10, -47, 10, -128,
393
+ 10, -47, 10, -126, 10, -48, 10, -72,
394
+ 10, -48, 10, -70, 10, -48, 10, -68,
395
+ 10, -48, 10, -80, 10, 10, 95, 10,
396
+ 70, 10, 69, 10, 65, 10, 84, 10,
397
+ 85, 10, 82, 10, 69, 10, 95, 10,
398
+ 69, 10, 78, 10, 68, 10, 95, 10,
399
+ 37, -69, -65, 0
400
+ };
401
+
402
+ static const char _lexer_single_lengths[] = {
403
+ 0, 12, 6, 1, 1, 1, 2, 2,
404
+ 11, 2, 2, 1, 1, 1, 1, 1,
405
+ 1, 1, 1, 1, 1, 1, 1, 1,
406
+ 1, 1, 1, 1, 1, 1, 1, 1,
407
+ 1, 1, 1, 1, 1, 1, 1, 7,
408
+ 4, 2, 2, 2, 2, 2, 2, 2,
409
+ 2, 2, 11, 1, 1, 3, 1, 1,
410
+ 1, 1, 1, 1, 1, 1, 1, 1,
411
+ 1, 1, 1, 1, 1, 1, 2, 2,
412
+ 3, 3, 3, 3, 2, 2, 2, 1,
413
+ 1, 1, 1, 1, 1, 1, 1, 1,
414
+ 1, 1, 1, 1, 1, 1, 3, 5,
415
+ 3, 2, 4, 3, 2, 4, 11, 3,
416
+ 2, 2, 2, 2, 2, 2, 2, 2,
417
+ 2, 2, 2, 2, 2, 2, 2, 2,
418
+ 2, 2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+ };
599
+
600
+ static const short _lexer_index_offsets[] = {
601
+ 0, 0, 14, 21, 23, 25, 27, 30,
602
+ 33, 46, 49, 52, 54, 56, 58, 60,
603
+ 62, 64, 66, 68, 70, 72, 74, 76,
604
+ 78, 80, 82, 84, 86, 88, 90, 92,
605
+ 94, 96, 98, 100, 102, 104, 106, 108,
606
+ 117, 122, 125, 128, 131, 134, 137, 140,
607
+ 143, 146, 149, 162, 164, 166, 170, 172,
608
+ 174, 176, 178, 180, 182, 184, 186, 188,
609
+ 190, 192, 194, 196, 198, 200, 202, 205,
610
+ 208, 213, 218, 223, 228, 232, 236, 239,
611
+ 241, 243, 245, 247, 249, 251, 253, 255,
612
+ 257, 259, 261, 263, 265, 267, 269, 274,
613
+ 281, 286, 290, 296, 300, 303, 309, 322,
614
+ 326, 329, 332, 335, 338, 341, 344, 347,
615
+ 350, 353, 356, 359, 362, 365, 368, 371,
616
+ 374, 377, 380, 383, 386, 389, 392, 395,
617
+ 398, 401, 404, 407, 410, 413, 416, 419,
618
+ 422, 425, 428, 431, 434, 437, 440, 443,
619
+ 446, 449, 452, 456, 459, 462, 465, 468,
620
+ 471, 474, 477, 480, 483, 486, 489, 492,
621
+ 495, 498, 501, 504, 507, 510, 513, 516,
622
+ 519, 522, 525, 529, 532, 535, 538, 541,
623
+ 544, 547, 550, 553, 556, 559, 562, 565,
624
+ 568, 571, 574, 577, 580, 583, 586, 589,
625
+ 592, 595, 598, 601, 604, 607, 610, 613,
626
+ 616, 619, 622, 625, 628, 631, 634, 637,
627
+ 640, 643, 646, 649, 652, 655, 658, 661,
628
+ 663, 665, 667, 669, 671, 673, 675, 677,
629
+ 679, 681, 683, 685, 687, 689, 691, 693,
630
+ 701, 704, 707, 710, 713, 716, 719, 722,
631
+ 725, 728, 731, 734, 737, 740, 743, 746,
632
+ 749, 752, 755, 758, 761, 764, 767, 770,
633
+ 773, 776, 779, 782, 785, 788, 791, 794,
634
+ 797, 800, 803, 806, 809, 812, 815, 818,
635
+ 820, 822, 824, 826, 828, 830, 832, 834,
636
+ 836, 838, 840, 842, 844, 846, 848, 859,
637
+ 866, 869, 872, 875, 878, 881, 884, 887,
638
+ 890, 893, 896, 899, 902, 905, 908, 911,
639
+ 914, 917, 920, 923, 926, 929, 932, 935,
640
+ 938, 941, 944, 947, 950, 953, 956, 959,
641
+ 962, 965, 968, 971, 974, 977, 980, 983,
642
+ 986, 989, 992, 995, 998, 1001, 1004, 1007,
643
+ 1010, 1013, 1016, 1019, 1022, 1025, 1028, 1032,
644
+ 1035, 1038, 1041, 1044, 1047, 1050, 1053, 1056,
645
+ 1059, 1062, 1065, 1068, 1071, 1074, 1077, 1080,
646
+ 1083, 1086, 1089, 1092, 1095, 1098, 1102, 1105,
647
+ 1108, 1111, 1114, 1117, 1120, 1123, 1126, 1129,
648
+ 1132, 1135, 1138, 1141, 1144, 1147, 1150, 1153,
649
+ 1156, 1159, 1162, 1165, 1168, 1171, 1174, 1177,
650
+ 1180, 1185, 1188, 1191, 1194, 1197, 1200, 1203,
651
+ 1206, 1209, 1212, 1215, 1218, 1221, 1224, 1227,
652
+ 1230, 1233, 1236, 1239, 1242, 1245, 1248, 1251,
653
+ 1254, 1257, 1260, 1263, 1266, 1269, 1271, 1273,
654
+ 1275, 1277, 1279, 1281, 1283, 1285, 1288, 1290,
655
+ 1292, 1294, 1296, 1298, 1300, 1302, 1304, 1306,
656
+ 1308, 1310, 1312, 1314, 1316, 1318, 1320, 1322,
657
+ 1324, 1326, 1328, 1330, 1332, 1334, 1336, 1338,
658
+ 1340, 1342, 1344, 1346, 1348, 1350, 1352, 1354,
659
+ 1356, 1358, 1360, 1362, 1364, 1366, 1368, 1370,
660
+ 1372, 1374, 1376, 1378, 1380, 1383, 1385, 1387,
661
+ 1389, 1391, 1393, 1395, 1397, 1399, 1401, 1403,
662
+ 1405, 1407, 1409, 1411, 1413, 1415, 1417, 1419,
663
+ 1421, 1423, 1425, 1427, 1429, 1431, 1433, 1444,
664
+ 1451, 1454, 1457, 1460, 1463, 1466, 1469, 1472,
665
+ 1475, 1478, 1481, 1484, 1487, 1490, 1493, 1496,
666
+ 1499, 1502, 1505, 1508, 1511, 1514, 1517, 1520,
667
+ 1523, 1526, 1529, 1532, 1535, 1538, 1541, 1544,
668
+ 1547, 1550, 1553, 1556, 1559, 1562, 1565, 1568,
669
+ 1571, 1574, 1577, 1580, 1583, 1586, 1589, 1592,
670
+ 1595, 1598, 1601, 1604, 1607, 1610, 1613, 1617,
671
+ 1620, 1623, 1626, 1629, 1632, 1635, 1638, 1641,
672
+ 1644, 1647, 1650, 1653, 1656, 1659, 1662, 1665,
673
+ 1668, 1671, 1674, 1677, 1680, 1683, 1686, 1689,
674
+ 1692, 1695, 1700, 1703, 1706, 1709, 1712, 1715,
675
+ 1718, 1721, 1724, 1727, 1730, 1733, 1736, 1739,
676
+ 1742, 1745, 1748, 1751, 1754, 1757, 1760, 1763,
677
+ 1766, 1769, 1772, 1775, 1778, 1781, 1784, 1786,
678
+ 1788, 1799, 1807, 1810, 1813, 1816, 1819, 1822,
679
+ 1825, 1828, 1831, 1834, 1837, 1840, 1843, 1846,
680
+ 1849, 1852, 1855, 1858, 1861, 1864, 1867, 1870,
681
+ 1873, 1876, 1879, 1882, 1885, 1888, 1891, 1894,
682
+ 1897, 1900, 1903, 1906, 1909, 1912, 1915, 1918,
683
+ 1921, 1924, 1927, 1930, 1933, 1936, 1939, 1942,
684
+ 1945, 1948, 1951, 1954, 1957, 1960, 1963, 1966,
685
+ 1969, 1972, 1975, 1978, 1981, 1984, 1987, 1990,
686
+ 1993, 1997, 2000, 2003, 2006, 2009, 2012, 2015,
687
+ 2018, 2021, 2024, 2027, 2030, 2033, 2036, 2039,
688
+ 2042, 2045, 2048, 2051, 2054, 2057, 2060, 2063,
689
+ 2067, 2070, 2073, 2076, 2079, 2082, 2085, 2088,
690
+ 2091, 2094, 2097, 2100, 2103, 2106, 2109, 2112,
691
+ 2115, 2118, 2121, 2124, 2127, 2130, 2133, 2136,
692
+ 2139, 2142, 2145, 2150, 2153, 2156, 2159, 2162,
693
+ 2165, 2168, 2171, 2174, 2177, 2180, 2183, 2186,
694
+ 2189, 2192, 2195, 2198, 2201, 2204, 2207, 2210,
695
+ 2213, 2216, 2219, 2222, 2225, 2228, 2231, 2234,
696
+ 2236, 2238
697
+ };
698
+
699
+ static const short _lexer_trans_targs[] = {
700
+ 2, 9, 51, 759, 8, 8, 68, 78,
701
+ 80, 5, 94, 97, 8, 0, 3, 275,
702
+ 421, 429, 450, 462, 0, 4, 0, 5,
703
+ 0, 6, 0, 8, 79, 7, 8, 79,
704
+ 7, 2, 9, 51, 8, 8, 68, 78,
705
+ 80, 5, 94, 97, 8, 0, 10, 271,
706
+ 0, 11, 215, 0, 12, 0, 13, 0,
707
+ 14, 0, 15, 0, 16, 0, 17, 0,
708
+ 18, 0, 19, 0, 20, 0, 21, 0,
709
+ 22, 0, 23, 0, 24, 0, 25, 0,
710
+ 26, 0, 27, 0, 28, 0, 29, 0,
711
+ 30, 0, 31, 0, 32, 0, 33, 0,
712
+ 34, 0, 35, 0, 36, 0, 37, 0,
713
+ 39, 38, 39, 38, 40, 169, 39, 39,
714
+ 8, 201, 8, 39, 38, 41, 103, 132,
715
+ 39, 38, 42, 39, 38, 43, 39, 38,
716
+ 44, 39, 38, 45, 39, 38, 46, 39,
717
+ 38, 47, 39, 38, 48, 39, 38, 49,
718
+ 39, 38, 39, 50, 38, 2, 9, 51,
719
+ 8, 8, 68, 78, 80, 5, 94, 97,
720
+ 8, 0, 52, 0, 53, 0, 54, 58,
721
+ 64, 0, 55, 0, 56, 0, 57, 0,
722
+ 5, 0, 59, 0, 60, 0, 61, 0,
723
+ 62, 0, 63, 0, 5, 0, 65, 0,
724
+ 66, 0, 67, 0, 5, 0, 69, 0,
725
+ 70, 0, 72, 71, 71, 72, 71, 71,
726
+ 73, 73, 74, 73, 73, 73, 73, 74,
727
+ 73, 73, 73, 73, 75, 73, 73, 73,
728
+ 73, 76, 73, 73, 8, 77, 77, 0,
729
+ 8, 77, 77, 0, 8, 79, 78, 8,
730
+ 0, 81, 0, 82, 0, 83, 0, 84,
731
+ 0, 85, 0, 86, 0, 87, 0, 88,
732
+ 0, 89, 0, 90, 0, 91, 0, 92,
733
+ 0, 93, 0, 761, 0, 0, 0, 0,
734
+ 0, 95, 96, 8, 96, 96, 94, 95,
735
+ 95, 8, 96, 94, 96, 0, 97, 98,
736
+ 97, 0, 102, 101, 100, 98, 101, 99,
737
+ 0, 100, 98, 99, 0, 100, 99, 102,
738
+ 101, 100, 98, 101, 99, 2, 9, 51,
739
+ 102, 102, 68, 78, 80, 5, 94, 97,
740
+ 102, 0, 104, 117, 39, 38, 105, 39,
741
+ 38, 106, 39, 38, 107, 39, 38, 108,
742
+ 39, 38, 109, 39, 38, 110, 39, 38,
743
+ 111, 39, 38, 112, 39, 38, 113, 39,
744
+ 38, 114, 39, 38, 115, 39, 38, 116,
745
+ 39, 38, 49, 39, 38, 118, 39, 38,
746
+ 119, 39, 38, 120, 39, 38, 121, 39,
747
+ 38, 122, 39, 38, 123, 39, 38, 124,
748
+ 39, 38, 125, 39, 38, 126, 39, 38,
749
+ 127, 39, 38, 128, 39, 38, 129, 39,
750
+ 38, 130, 39, 38, 131, 39, 38, 49,
751
+ 39, 38, 133, 39, 38, 134, 39, 38,
752
+ 135, 39, 38, 136, 39, 38, 137, 39,
753
+ 38, 138, 39, 38, 139, 39, 38, 140,
754
+ 39, 38, 141, 39, 38, 142, 39, 38,
755
+ 143, 39, 38, 144, 39, 38, 145, 39,
756
+ 38, 146, 39, 38, 147, 39, 50, 38,
757
+ 148, 39, 38, 149, 39, 38, 150, 39,
758
+ 38, 151, 39, 38, 152, 39, 38, 39,
759
+ 153, 38, 154, 39, 38, 155, 39, 38,
760
+ 156, 39, 38, 157, 39, 38, 158, 39,
761
+ 38, 159, 39, 38, 160, 39, 38, 161,
762
+ 39, 38, 162, 39, 38, 163, 39, 38,
763
+ 164, 39, 38, 165, 39, 38, 166, 39,
764
+ 38, 167, 39, 38, 168, 39, 38, 49,
765
+ 39, 38, 170, 39, 38, 171, 190, 39,
766
+ 38, 172, 39, 38, 173, 39, 38, 174,
767
+ 39, 38, 175, 39, 38, 176, 39, 38,
768
+ 177, 39, 38, 178, 39, 38, 179, 39,
769
+ 38, 180, 39, 38, 181, 39, 38, 182,
770
+ 39, 38, 183, 39, 38, 184, 39, 38,
771
+ 185, 39, 38, 186, 39, 38, 187, 39,
772
+ 38, 188, 39, 38, 189, 39, 38, 126,
773
+ 39, 38, 191, 39, 38, 192, 39, 38,
774
+ 193, 39, 38, 194, 39, 38, 195, 39,
775
+ 38, 196, 39, 38, 197, 39, 38, 198,
776
+ 39, 38, 199, 39, 38, 200, 39, 38,
777
+ 115, 39, 38, 39, 202, 38, 39, 203,
778
+ 38, 39, 204, 38, 39, 205, 38, 39,
779
+ 206, 38, 39, 207, 38, 39, 208, 38,
780
+ 39, 209, 38, 39, 210, 38, 39, 211,
781
+ 38, 39, 212, 38, 39, 213, 38, 39,
782
+ 214, 38, 39, 8, 38, 216, 0, 217,
783
+ 0, 218, 0, 219, 0, 220, 0, 221,
784
+ 0, 222, 0, 223, 0, 224, 0, 225,
785
+ 0, 226, 0, 227, 0, 228, 0, 229,
786
+ 0, 231, 230, 231, 230, 232, 250, 231,
787
+ 231, 8, 8, 231, 230, 233, 231, 230,
788
+ 234, 231, 230, 235, 231, 230, 236, 231,
789
+ 230, 237, 231, 230, 238, 231, 230, 239,
790
+ 231, 230, 240, 231, 230, 241, 231, 230,
791
+ 242, 231, 230, 243, 231, 230, 244, 231,
792
+ 230, 245, 231, 230, 246, 231, 230, 247,
793
+ 231, 230, 248, 231, 230, 249, 231, 230,
794
+ 231, 50, 230, 251, 231, 230, 252, 231,
795
+ 230, 253, 231, 230, 254, 231, 230, 255,
796
+ 231, 230, 256, 231, 230, 257, 231, 230,
797
+ 258, 231, 230, 259, 231, 230, 260, 231,
798
+ 230, 261, 231, 230, 262, 231, 230, 263,
799
+ 231, 230, 264, 231, 230, 265, 231, 230,
800
+ 266, 231, 230, 267, 231, 230, 268, 231,
801
+ 230, 269, 231, 230, 270, 231, 230, 243,
802
+ 231, 230, 272, 0, 273, 0, 274, 0,
803
+ 5, 0, 276, 0, 277, 0, 278, 0,
804
+ 279, 0, 280, 0, 281, 0, 282, 0,
805
+ 283, 0, 284, 0, 286, 285, 286, 285,
806
+ 287, 365, 390, 286, 286, 8, 407, 290,
807
+ 8, 286, 285, 288, 291, 299, 316, 328,
808
+ 286, 285, 289, 286, 285, 290, 286, 285,
809
+ 286, 50, 285, 292, 286, 285, 293, 286,
810
+ 285, 294, 286, 285, 295, 286, 285, 296,
811
+ 286, 285, 297, 286, 285, 298, 286, 285,
812
+ 290, 286, 285, 300, 286, 285, 301, 286,
813
+ 285, 302, 286, 285, 303, 286, 285, 304,
814
+ 286, 285, 305, 286, 285, 306, 286, 285,
815
+ 307, 286, 285, 308, 286, 285, 309, 286,
816
+ 285, 310, 286, 285, 311, 286, 285, 312,
817
+ 286, 285, 313, 286, 285, 314, 286, 285,
818
+ 315, 286, 285, 286, 50, 285, 317, 286,
819
+ 285, 318, 286, 285, 319, 286, 285, 320,
820
+ 286, 285, 321, 286, 285, 322, 286, 285,
821
+ 323, 286, 285, 324, 286, 285, 325, 286,
822
+ 285, 326, 286, 285, 327, 286, 285, 288,
823
+ 286, 285, 329, 286, 285, 330, 286, 285,
824
+ 331, 286, 285, 332, 286, 285, 333, 286,
825
+ 285, 334, 286, 285, 335, 286, 285, 336,
826
+ 286, 285, 337, 286, 285, 338, 286, 285,
827
+ 339, 286, 285, 340, 286, 285, 341, 286,
828
+ 285, 342, 286, 285, 343, 286, 50, 285,
829
+ 344, 286, 285, 345, 286, 285, 346, 286,
830
+ 285, 347, 286, 285, 348, 286, 285, 286,
831
+ 349, 285, 350, 286, 285, 351, 286, 285,
832
+ 352, 286, 285, 353, 286, 285, 354, 286,
833
+ 285, 355, 286, 285, 356, 286, 285, 357,
834
+ 286, 285, 358, 286, 285, 359, 286, 285,
835
+ 360, 286, 285, 361, 286, 285, 362, 286,
836
+ 285, 363, 286, 285, 364, 286, 285, 315,
837
+ 286, 285, 366, 386, 286, 285, 367, 286,
838
+ 285, 368, 286, 285, 369, 286, 285, 370,
839
+ 286, 285, 371, 286, 285, 372, 286, 285,
840
+ 373, 286, 285, 374, 286, 285, 375, 286,
841
+ 285, 376, 286, 285, 377, 286, 285, 378,
842
+ 286, 285, 379, 286, 285, 380, 286, 285,
843
+ 381, 286, 285, 382, 286, 285, 383, 286,
844
+ 285, 384, 286, 285, 385, 286, 285, 309,
845
+ 286, 285, 387, 286, 285, 388, 286, 285,
846
+ 389, 286, 285, 290, 286, 285, 391, 286,
847
+ 285, 392, 286, 285, 393, 397, 403, 286,
848
+ 285, 394, 286, 285, 395, 286, 285, 396,
849
+ 286, 285, 290, 286, 285, 398, 286, 285,
850
+ 399, 286, 285, 400, 286, 285, 401, 286,
851
+ 285, 402, 286, 285, 290, 286, 285, 404,
852
+ 286, 285, 405, 286, 285, 406, 286, 285,
853
+ 290, 286, 285, 286, 408, 285, 286, 409,
854
+ 285, 286, 410, 285, 286, 411, 285, 286,
855
+ 412, 285, 286, 413, 285, 286, 414, 285,
856
+ 286, 415, 285, 286, 416, 285, 286, 417,
857
+ 285, 286, 418, 285, 286, 419, 285, 286,
858
+ 420, 285, 286, 8, 285, 422, 0, 423,
859
+ 0, 424, 0, 425, 0, 426, 0, 427,
860
+ 0, 428, 0, 5, 0, 430, 441, 0,
861
+ 431, 0, 432, 0, 433, 0, 434, 0,
862
+ 435, 0, 436, 0, 437, 0, 438, 0,
863
+ 439, 0, 440, 0, 226, 0, 442, 0,
864
+ 443, 0, 444, 0, 445, 0, 446, 0,
865
+ 447, 0, 448, 0, 449, 0, 30, 0,
866
+ 451, 0, 452, 0, 453, 0, 454, 0,
867
+ 455, 0, 456, 0, 457, 0, 458, 0,
868
+ 459, 0, 460, 0, 461, 0, 3, 0,
869
+ 463, 0, 464, 0, 465, 0, 466, 0,
870
+ 467, 0, 468, 0, 469, 0, 470, 0,
871
+ 471, 0, 472, 0, 473, 0, 474, 0,
872
+ 475, 0, 476, 0, 477, 614, 0, 478,
873
+ 0, 479, 0, 480, 0, 481, 0, 482,
874
+ 0, 483, 0, 484, 0, 485, 0, 486,
875
+ 0, 487, 0, 488, 0, 489, 0, 490,
876
+ 0, 491, 0, 492, 0, 493, 0, 494,
877
+ 0, 495, 0, 496, 0, 497, 0, 498,
878
+ 0, 499, 0, 500, 0, 502, 501, 502,
879
+ 501, 503, 558, 583, 502, 502, 8, 600,
880
+ 506, 8, 502, 501, 504, 507, 515, 532,
881
+ 544, 502, 501, 505, 502, 501, 506, 502,
882
+ 501, 502, 50, 501, 508, 502, 501, 509,
883
+ 502, 501, 510, 502, 501, 511, 502, 501,
884
+ 512, 502, 501, 513, 502, 501, 514, 502,
885
+ 501, 506, 502, 501, 516, 502, 501, 517,
886
+ 502, 501, 518, 502, 501, 519, 502, 501,
887
+ 520, 502, 501, 521, 502, 501, 522, 502,
888
+ 501, 523, 502, 501, 524, 502, 501, 525,
889
+ 502, 501, 526, 502, 501, 527, 502, 501,
890
+ 528, 502, 501, 529, 502, 501, 530, 502,
891
+ 501, 531, 502, 501, 502, 50, 501, 533,
892
+ 502, 501, 534, 502, 501, 535, 502, 501,
893
+ 536, 502, 501, 537, 502, 501, 538, 502,
894
+ 501, 539, 502, 501, 540, 502, 501, 541,
895
+ 502, 501, 542, 502, 501, 543, 502, 501,
896
+ 504, 502, 501, 545, 502, 501, 546, 502,
897
+ 501, 547, 502, 501, 548, 502, 501, 549,
898
+ 502, 501, 550, 502, 501, 551, 502, 501,
899
+ 552, 502, 501, 553, 502, 501, 554, 502,
900
+ 501, 555, 502, 501, 556, 502, 501, 557,
901
+ 502, 501, 531, 502, 501, 559, 579, 502,
902
+ 501, 560, 502, 501, 561, 502, 501, 562,
903
+ 502, 501, 563, 502, 501, 564, 502, 501,
904
+ 565, 502, 501, 566, 502, 501, 567, 502,
905
+ 501, 568, 502, 501, 569, 502, 501, 570,
906
+ 502, 501, 571, 502, 501, 572, 502, 501,
907
+ 573, 502, 501, 574, 502, 501, 575, 502,
908
+ 501, 576, 502, 501, 577, 502, 501, 578,
909
+ 502, 501, 525, 502, 501, 580, 502, 501,
910
+ 581, 502, 501, 582, 502, 501, 506, 502,
911
+ 501, 584, 502, 501, 585, 502, 501, 586,
912
+ 590, 596, 502, 501, 587, 502, 501, 588,
913
+ 502, 501, 589, 502, 501, 506, 502, 501,
914
+ 591, 502, 501, 592, 502, 501, 593, 502,
915
+ 501, 594, 502, 501, 595, 502, 501, 506,
916
+ 502, 501, 597, 502, 501, 598, 502, 501,
917
+ 599, 502, 501, 506, 502, 501, 502, 601,
918
+ 501, 502, 602, 501, 502, 603, 501, 502,
919
+ 604, 501, 502, 605, 501, 502, 606, 501,
920
+ 502, 607, 501, 502, 608, 501, 502, 609,
921
+ 501, 502, 610, 501, 502, 611, 501, 502,
922
+ 612, 501, 502, 613, 501, 502, 8, 501,
923
+ 616, 615, 616, 615, 617, 703, 728, 616,
924
+ 616, 8, 745, 620, 8, 616, 615, 618,
925
+ 621, 630, 638, 654, 666, 616, 615, 619,
926
+ 616, 615, 620, 616, 615, 616, 50, 615,
927
+ 622, 616, 615, 623, 616, 615, 624, 616,
928
+ 615, 625, 616, 615, 626, 616, 615, 627,
929
+ 616, 615, 628, 616, 615, 629, 616, 615,
930
+ 616, 50, 615, 631, 616, 615, 632, 616,
931
+ 615, 633, 616, 615, 634, 616, 615, 635,
932
+ 616, 615, 636, 616, 615, 637, 616, 615,
933
+ 620, 616, 615, 639, 616, 615, 640, 616,
934
+ 615, 641, 616, 615, 642, 616, 615, 643,
935
+ 616, 615, 644, 616, 615, 645, 616, 615,
936
+ 646, 616, 615, 647, 616, 615, 648, 616,
937
+ 615, 649, 616, 615, 650, 616, 615, 651,
938
+ 616, 615, 652, 616, 615, 653, 616, 615,
939
+ 629, 616, 615, 655, 616, 615, 656, 616,
940
+ 615, 657, 616, 615, 658, 616, 615, 659,
941
+ 616, 615, 660, 616, 615, 661, 616, 615,
942
+ 662, 616, 615, 663, 616, 615, 664, 616,
943
+ 615, 665, 616, 615, 618, 616, 615, 667,
944
+ 616, 615, 668, 616, 615, 669, 616, 615,
945
+ 670, 616, 615, 671, 616, 615, 672, 616,
946
+ 615, 673, 616, 615, 674, 616, 615, 675,
947
+ 616, 615, 676, 616, 615, 677, 616, 615,
948
+ 678, 616, 615, 679, 616, 615, 680, 616,
949
+ 615, 681, 616, 50, 615, 682, 616, 615,
950
+ 683, 616, 615, 684, 616, 615, 685, 616,
951
+ 615, 686, 616, 615, 616, 687, 615, 688,
952
+ 616, 615, 689, 616, 615, 690, 616, 615,
953
+ 691, 616, 615, 692, 616, 615, 693, 616,
954
+ 615, 694, 616, 615, 695, 616, 615, 696,
955
+ 616, 615, 697, 616, 615, 698, 616, 615,
956
+ 699, 616, 615, 700, 616, 615, 701, 616,
957
+ 615, 702, 616, 615, 629, 616, 615, 704,
958
+ 724, 616, 615, 705, 616, 615, 706, 616,
959
+ 615, 707, 616, 615, 708, 616, 615, 709,
960
+ 616, 615, 710, 616, 615, 711, 616, 615,
961
+ 712, 616, 615, 713, 616, 615, 714, 616,
962
+ 615, 715, 616, 615, 716, 616, 615, 717,
963
+ 616, 615, 718, 616, 615, 719, 616, 615,
964
+ 720, 616, 615, 721, 616, 615, 722, 616,
965
+ 615, 723, 616, 615, 648, 616, 615, 725,
966
+ 616, 615, 726, 616, 615, 727, 616, 615,
967
+ 620, 616, 615, 729, 616, 615, 730, 616,
968
+ 615, 731, 735, 741, 616, 615, 732, 616,
969
+ 615, 733, 616, 615, 734, 616, 615, 620,
970
+ 616, 615, 736, 616, 615, 737, 616, 615,
971
+ 738, 616, 615, 739, 616, 615, 740, 616,
972
+ 615, 620, 616, 615, 742, 616, 615, 743,
973
+ 616, 615, 744, 616, 615, 620, 616, 615,
974
+ 616, 746, 615, 616, 747, 615, 616, 748,
975
+ 615, 616, 749, 615, 616, 750, 615, 616,
976
+ 751, 615, 616, 752, 615, 616, 753, 615,
977
+ 616, 754, 615, 616, 755, 615, 616, 756,
978
+ 615, 616, 757, 615, 616, 758, 615, 616,
979
+ 8, 615, 760, 0, 8, 0, 0, 0
980
+ };
981
+
982
+ static const unsigned char _lexer_trans_actions[] = {
983
+ 29, 29, 29, 0, 54, 0, 5, 1,
984
+ 0, 29, 1, 35, 0, 43, 0, 0,
985
+ 0, 0, 0, 0, 43, 0, 43, 0,
986
+ 43, 0, 43, 149, 126, 57, 110, 23,
987
+ 0, 29, 29, 29, 54, 0, 5, 1,
988
+ 0, 29, 1, 35, 0, 43, 0, 0,
989
+ 43, 0, 0, 43, 0, 43, 0, 43,
990
+ 0, 43, 0, 43, 0, 43, 0, 43,
991
+ 0, 43, 0, 43, 0, 43, 0, 43,
992
+ 0, 43, 0, 43, 0, 43, 0, 43,
993
+ 0, 43, 0, 43, 0, 43, 0, 43,
994
+ 0, 43, 0, 43, 0, 43, 0, 43,
995
+ 0, 43, 0, 43, 0, 43, 0, 43,
996
+ 144, 57, 54, 0, 84, 84, 54, 0,
997
+ 69, 33, 69, 0, 0, 0, 0, 0,
998
+ 54, 0, 0, 54, 0, 0, 54, 0,
999
+ 0, 54, 0, 0, 54, 0, 0, 54,
1000
+ 0, 0, 54, 0, 0, 54, 0, 0,
1001
+ 54, 0, 54, 13, 0, 63, 63, 63,
1002
+ 130, 31, 60, 57, 31, 63, 57, 66,
1003
+ 31, 43, 0, 43, 0, 43, 0, 0,
1004
+ 0, 43, 0, 43, 0, 43, 0, 43,
1005
+ 0, 43, 0, 43, 0, 43, 0, 43,
1006
+ 0, 43, 0, 43, 0, 43, 0, 43,
1007
+ 0, 43, 0, 43, 0, 43, 0, 43,
1008
+ 0, 43, 139, 48, 9, 106, 11, 0,
1009
+ 134, 45, 45, 45, 3, 122, 33, 33,
1010
+ 33, 0, 122, 33, 33, 33, 0, 122,
1011
+ 33, 0, 33, 0, 102, 7, 7, 43,
1012
+ 54, 0, 0, 43, 114, 25, 0, 54,
1013
+ 43, 0, 43, 0, 43, 0, 43, 0,
1014
+ 43, 0, 43, 0, 43, 0, 43, 0,
1015
+ 43, 0, 43, 0, 43, 0, 43, 0,
1016
+ 43, 0, 43, 0, 43, 43, 43, 43,
1017
+ 43, 0, 27, 118, 27, 27, 51, 27,
1018
+ 0, 54, 0, 1, 0, 43, 0, 0,
1019
+ 0, 43, 54, 37, 37, 87, 37, 37,
1020
+ 43, 0, 39, 0, 43, 0, 0, 54,
1021
+ 0, 0, 39, 0, 0, 96, 96, 96,
1022
+ 54, 0, 93, 90, 41, 96, 90, 99,
1023
+ 0, 43, 0, 0, 54, 0, 0, 54,
1024
+ 0, 0, 54, 0, 0, 54, 0, 0,
1025
+ 54, 0, 0, 54, 0, 0, 54, 0,
1026
+ 0, 54, 0, 0, 54, 0, 0, 54,
1027
+ 0, 0, 54, 0, 0, 54, 0, 0,
1028
+ 54, 0, 0, 54, 0, 0, 54, 0,
1029
+ 0, 54, 0, 0, 54, 0, 0, 54,
1030
+ 0, 0, 54, 0, 0, 54, 0, 0,
1031
+ 54, 0, 0, 54, 0, 0, 54, 0,
1032
+ 0, 54, 0, 0, 54, 0, 0, 54,
1033
+ 0, 0, 54, 0, 0, 54, 0, 0,
1034
+ 54, 0, 0, 54, 0, 0, 54, 0,
1035
+ 0, 54, 0, 0, 54, 0, 0, 54,
1036
+ 0, 0, 54, 0, 0, 54, 0, 0,
1037
+ 54, 0, 0, 54, 0, 0, 54, 0,
1038
+ 0, 54, 0, 0, 54, 0, 0, 54,
1039
+ 0, 0, 54, 0, 0, 54, 13, 0,
1040
+ 0, 54, 0, 0, 54, 0, 0, 54,
1041
+ 0, 0, 54, 0, 0, 54, 0, 54,
1042
+ 0, 0, 0, 54, 0, 0, 54, 0,
1043
+ 0, 54, 0, 0, 54, 0, 0, 54,
1044
+ 0, 0, 54, 0, 0, 54, 0, 0,
1045
+ 54, 0, 0, 54, 0, 0, 54, 0,
1046
+ 0, 54, 0, 0, 54, 0, 0, 54,
1047
+ 0, 0, 54, 0, 0, 54, 0, 0,
1048
+ 54, 0, 0, 54, 0, 0, 0, 54,
1049
+ 0, 0, 54, 0, 0, 54, 0, 0,
1050
+ 54, 0, 0, 54, 0, 0, 54, 0,
1051
+ 0, 54, 0, 0, 54, 0, 0, 54,
1052
+ 0, 0, 54, 0, 0, 54, 0, 0,
1053
+ 54, 0, 0, 54, 0, 0, 54, 0,
1054
+ 0, 54, 0, 0, 54, 0, 0, 54,
1055
+ 0, 0, 54, 0, 0, 54, 0, 0,
1056
+ 54, 0, 0, 54, 0, 0, 54, 0,
1057
+ 0, 54, 0, 0, 54, 0, 0, 54,
1058
+ 0, 0, 54, 0, 0, 54, 0, 0,
1059
+ 54, 0, 0, 54, 0, 0, 54, 0,
1060
+ 0, 54, 0, 54, 0, 0, 54, 0,
1061
+ 0, 54, 0, 0, 54, 0, 0, 54,
1062
+ 0, 0, 54, 0, 0, 54, 0, 0,
1063
+ 54, 0, 0, 54, 0, 0, 54, 0,
1064
+ 0, 54, 0, 0, 54, 0, 0, 54,
1065
+ 0, 0, 54, 13, 0, 0, 43, 0,
1066
+ 43, 0, 43, 0, 43, 0, 43, 0,
1067
+ 43, 0, 43, 0, 43, 0, 43, 0,
1068
+ 43, 0, 43, 0, 43, 0, 43, 0,
1069
+ 43, 144, 57, 54, 0, 84, 84, 54,
1070
+ 0, 81, 81, 0, 0, 0, 54, 0,
1071
+ 0, 54, 0, 0, 54, 0, 0, 54,
1072
+ 0, 0, 54, 0, 0, 54, 0, 0,
1073
+ 54, 0, 0, 54, 0, 0, 54, 0,
1074
+ 0, 54, 0, 0, 54, 0, 0, 54,
1075
+ 0, 0, 54, 0, 0, 54, 0, 0,
1076
+ 54, 0, 0, 54, 0, 0, 54, 0,
1077
+ 54, 21, 0, 0, 54, 0, 0, 54,
1078
+ 0, 0, 54, 0, 0, 54, 0, 0,
1079
+ 54, 0, 0, 54, 0, 0, 54, 0,
1080
+ 0, 54, 0, 0, 54, 0, 0, 54,
1081
+ 0, 0, 54, 0, 0, 54, 0, 0,
1082
+ 54, 0, 0, 54, 0, 0, 54, 0,
1083
+ 0, 54, 0, 0, 54, 0, 0, 54,
1084
+ 0, 0, 54, 0, 0, 54, 0, 0,
1085
+ 54, 0, 0, 43, 0, 43, 0, 43,
1086
+ 0, 43, 0, 43, 0, 43, 0, 43,
1087
+ 0, 43, 0, 43, 0, 43, 0, 43,
1088
+ 0, 43, 0, 43, 144, 57, 54, 0,
1089
+ 84, 84, 84, 54, 0, 72, 33, 84,
1090
+ 72, 0, 0, 0, 0, 0, 0, 0,
1091
+ 54, 0, 0, 54, 0, 0, 54, 0,
1092
+ 54, 15, 0, 0, 54, 0, 0, 54,
1093
+ 0, 0, 54, 0, 0, 54, 0, 0,
1094
+ 54, 0, 0, 54, 0, 0, 54, 0,
1095
+ 0, 54, 0, 0, 54, 0, 0, 54,
1096
+ 0, 0, 54, 0, 0, 54, 0, 0,
1097
+ 54, 0, 0, 54, 0, 0, 54, 0,
1098
+ 0, 54, 0, 0, 54, 0, 0, 54,
1099
+ 0, 0, 54, 0, 0, 54, 0, 0,
1100
+ 54, 0, 0, 54, 0, 0, 54, 0,
1101
+ 0, 54, 0, 54, 15, 0, 0, 54,
1102
+ 0, 0, 54, 0, 0, 54, 0, 0,
1103
+ 54, 0, 0, 54, 0, 0, 54, 0,
1104
+ 0, 54, 0, 0, 54, 0, 0, 54,
1105
+ 0, 0, 54, 0, 0, 54, 0, 0,
1106
+ 54, 0, 0, 54, 0, 0, 54, 0,
1107
+ 0, 54, 0, 0, 54, 0, 0, 54,
1108
+ 0, 0, 54, 0, 0, 54, 0, 0,
1109
+ 54, 0, 0, 54, 0, 0, 54, 0,
1110
+ 0, 54, 0, 0, 54, 0, 0, 54,
1111
+ 0, 0, 54, 0, 0, 54, 15, 0,
1112
+ 0, 54, 0, 0, 54, 0, 0, 54,
1113
+ 0, 0, 54, 0, 0, 54, 0, 54,
1114
+ 0, 0, 0, 54, 0, 0, 54, 0,
1115
+ 0, 54, 0, 0, 54, 0, 0, 54,
1116
+ 0, 0, 54, 0, 0, 54, 0, 0,
1117
+ 54, 0, 0, 54, 0, 0, 54, 0,
1118
+ 0, 54, 0, 0, 54, 0, 0, 54,
1119
+ 0, 0, 54, 0, 0, 54, 0, 0,
1120
+ 54, 0, 0, 0, 54, 0, 0, 54,
1121
+ 0, 0, 54, 0, 0, 54, 0, 0,
1122
+ 54, 0, 0, 54, 0, 0, 54, 0,
1123
+ 0, 54, 0, 0, 54, 0, 0, 54,
1124
+ 0, 0, 54, 0, 0, 54, 0, 0,
1125
+ 54, 0, 0, 54, 0, 0, 54, 0,
1126
+ 0, 54, 0, 0, 54, 0, 0, 54,
1127
+ 0, 0, 54, 0, 0, 54, 0, 0,
1128
+ 54, 0, 0, 54, 0, 0, 54, 0,
1129
+ 0, 54, 0, 0, 54, 0, 0, 54,
1130
+ 0, 0, 54, 0, 0, 0, 0, 54,
1131
+ 0, 0, 54, 0, 0, 54, 0, 0,
1132
+ 54, 0, 0, 54, 0, 0, 54, 0,
1133
+ 0, 54, 0, 0, 54, 0, 0, 54,
1134
+ 0, 0, 54, 0, 0, 54, 0, 0,
1135
+ 54, 0, 0, 54, 0, 0, 54, 0,
1136
+ 0, 54, 0, 54, 0, 0, 54, 0,
1137
+ 0, 54, 0, 0, 54, 0, 0, 54,
1138
+ 0, 0, 54, 0, 0, 54, 0, 0,
1139
+ 54, 0, 0, 54, 0, 0, 54, 0,
1140
+ 0, 54, 0, 0, 54, 0, 0, 54,
1141
+ 0, 0, 54, 15, 0, 0, 43, 0,
1142
+ 43, 0, 43, 0, 43, 0, 43, 0,
1143
+ 43, 0, 43, 0, 43, 0, 0, 43,
1144
+ 0, 43, 0, 43, 0, 43, 0, 43,
1145
+ 0, 43, 0, 43, 0, 43, 0, 43,
1146
+ 0, 43, 0, 43, 0, 43, 0, 43,
1147
+ 0, 43, 0, 43, 0, 43, 0, 43,
1148
+ 0, 43, 0, 43, 0, 43, 0, 43,
1149
+ 0, 43, 0, 43, 0, 43, 0, 43,
1150
+ 0, 43, 0, 43, 0, 43, 0, 43,
1151
+ 0, 43, 0, 43, 0, 43, 0, 43,
1152
+ 0, 43, 0, 43, 0, 43, 0, 43,
1153
+ 0, 43, 0, 43, 0, 43, 0, 43,
1154
+ 0, 43, 0, 43, 0, 43, 0, 43,
1155
+ 0, 43, 0, 43, 0, 0, 43, 0,
1156
+ 43, 0, 43, 0, 43, 0, 43, 0,
1157
+ 43, 0, 43, 0, 43, 0, 43, 0,
1158
+ 43, 0, 43, 0, 43, 0, 43, 0,
1159
+ 43, 0, 43, 0, 43, 0, 43, 0,
1160
+ 43, 0, 43, 0, 43, 0, 43, 0,
1161
+ 43, 0, 43, 0, 43, 144, 57, 54,
1162
+ 0, 84, 84, 84, 54, 0, 78, 33,
1163
+ 84, 78, 0, 0, 0, 0, 0, 0,
1164
+ 0, 54, 0, 0, 54, 0, 0, 54,
1165
+ 0, 54, 19, 0, 0, 54, 0, 0,
1166
+ 54, 0, 0, 54, 0, 0, 54, 0,
1167
+ 0, 54, 0, 0, 54, 0, 0, 54,
1168
+ 0, 0, 54, 0, 0, 54, 0, 0,
1169
+ 54, 0, 0, 54, 0, 0, 54, 0,
1170
+ 0, 54, 0, 0, 54, 0, 0, 54,
1171
+ 0, 0, 54, 0, 0, 54, 0, 0,
1172
+ 54, 0, 0, 54, 0, 0, 54, 0,
1173
+ 0, 54, 0, 0, 54, 0, 0, 54,
1174
+ 0, 0, 54, 0, 54, 19, 0, 0,
1175
+ 54, 0, 0, 54, 0, 0, 54, 0,
1176
+ 0, 54, 0, 0, 54, 0, 0, 54,
1177
+ 0, 0, 54, 0, 0, 54, 0, 0,
1178
+ 54, 0, 0, 54, 0, 0, 54, 0,
1179
+ 0, 54, 0, 0, 54, 0, 0, 54,
1180
+ 0, 0, 54, 0, 0, 54, 0, 0,
1181
+ 54, 0, 0, 54, 0, 0, 54, 0,
1182
+ 0, 54, 0, 0, 54, 0, 0, 54,
1183
+ 0, 0, 54, 0, 0, 54, 0, 0,
1184
+ 54, 0, 0, 54, 0, 0, 0, 54,
1185
+ 0, 0, 54, 0, 0, 54, 0, 0,
1186
+ 54, 0, 0, 54, 0, 0, 54, 0,
1187
+ 0, 54, 0, 0, 54, 0, 0, 54,
1188
+ 0, 0, 54, 0, 0, 54, 0, 0,
1189
+ 54, 0, 0, 54, 0, 0, 54, 0,
1190
+ 0, 54, 0, 0, 54, 0, 0, 54,
1191
+ 0, 0, 54, 0, 0, 54, 0, 0,
1192
+ 54, 0, 0, 54, 0, 0, 54, 0,
1193
+ 0, 54, 0, 0, 54, 0, 0, 54,
1194
+ 0, 0, 54, 0, 0, 54, 0, 0,
1195
+ 0, 0, 54, 0, 0, 54, 0, 0,
1196
+ 54, 0, 0, 54, 0, 0, 54, 0,
1197
+ 0, 54, 0, 0, 54, 0, 0, 54,
1198
+ 0, 0, 54, 0, 0, 54, 0, 0,
1199
+ 54, 0, 0, 54, 0, 0, 54, 0,
1200
+ 0, 54, 0, 0, 54, 0, 54, 0,
1201
+ 0, 54, 0, 0, 54, 0, 0, 54,
1202
+ 0, 0, 54, 0, 0, 54, 0, 0,
1203
+ 54, 0, 0, 54, 0, 0, 54, 0,
1204
+ 0, 54, 0, 0, 54, 0, 0, 54,
1205
+ 0, 0, 54, 0, 0, 54, 19, 0,
1206
+ 144, 57, 54, 0, 84, 84, 84, 54,
1207
+ 0, 75, 33, 84, 75, 0, 0, 0,
1208
+ 0, 0, 0, 0, 0, 54, 0, 0,
1209
+ 54, 0, 0, 54, 0, 54, 17, 0,
1210
+ 0, 54, 0, 0, 54, 0, 0, 54,
1211
+ 0, 0, 54, 0, 0, 54, 0, 0,
1212
+ 54, 0, 0, 54, 0, 0, 54, 0,
1213
+ 54, 17, 0, 0, 54, 0, 0, 54,
1214
+ 0, 0, 54, 0, 0, 54, 0, 0,
1215
+ 54, 0, 0, 54, 0, 0, 54, 0,
1216
+ 0, 54, 0, 0, 54, 0, 0, 54,
1217
+ 0, 0, 54, 0, 0, 54, 0, 0,
1218
+ 54, 0, 0, 54, 0, 0, 54, 0,
1219
+ 0, 54, 0, 0, 54, 0, 0, 54,
1220
+ 0, 0, 54, 0, 0, 54, 0, 0,
1221
+ 54, 0, 0, 54, 0, 0, 54, 0,
1222
+ 0, 54, 0, 0, 54, 0, 0, 54,
1223
+ 0, 0, 54, 0, 0, 54, 0, 0,
1224
+ 54, 0, 0, 54, 0, 0, 54, 0,
1225
+ 0, 54, 0, 0, 54, 0, 0, 54,
1226
+ 0, 0, 54, 0, 0, 54, 0, 0,
1227
+ 54, 0, 0, 54, 0, 0, 54, 0,
1228
+ 0, 54, 0, 0, 54, 0, 0, 54,
1229
+ 0, 0, 54, 0, 0, 54, 0, 0,
1230
+ 54, 0, 0, 54, 0, 0, 54, 0,
1231
+ 0, 54, 0, 0, 54, 0, 0, 54,
1232
+ 0, 0, 54, 17, 0, 0, 54, 0,
1233
+ 0, 54, 0, 0, 54, 0, 0, 54,
1234
+ 0, 0, 54, 0, 54, 0, 0, 0,
1235
+ 54, 0, 0, 54, 0, 0, 54, 0,
1236
+ 0, 54, 0, 0, 54, 0, 0, 54,
1237
+ 0, 0, 54, 0, 0, 54, 0, 0,
1238
+ 54, 0, 0, 54, 0, 0, 54, 0,
1239
+ 0, 54, 0, 0, 54, 0, 0, 54,
1240
+ 0, 0, 54, 0, 0, 54, 0, 0,
1241
+ 0, 54, 0, 0, 54, 0, 0, 54,
1242
+ 0, 0, 54, 0, 0, 54, 0, 0,
1243
+ 54, 0, 0, 54, 0, 0, 54, 0,
1244
+ 0, 54, 0, 0, 54, 0, 0, 54,
1245
+ 0, 0, 54, 0, 0, 54, 0, 0,
1246
+ 54, 0, 0, 54, 0, 0, 54, 0,
1247
+ 0, 54, 0, 0, 54, 0, 0, 54,
1248
+ 0, 0, 54, 0, 0, 54, 0, 0,
1249
+ 54, 0, 0, 54, 0, 0, 54, 0,
1250
+ 0, 54, 0, 0, 54, 0, 0, 54,
1251
+ 0, 0, 0, 0, 54, 0, 0, 54,
1252
+ 0, 0, 54, 0, 0, 54, 0, 0,
1253
+ 54, 0, 0, 54, 0, 0, 54, 0,
1254
+ 0, 54, 0, 0, 54, 0, 0, 54,
1255
+ 0, 0, 54, 0, 0, 54, 0, 0,
1256
+ 54, 0, 0, 54, 0, 0, 54, 0,
1257
+ 54, 0, 0, 54, 0, 0, 54, 0,
1258
+ 0, 54, 0, 0, 54, 0, 0, 54,
1259
+ 0, 0, 54, 0, 0, 54, 0, 0,
1260
+ 54, 0, 0, 54, 0, 0, 54, 0,
1261
+ 0, 54, 0, 0, 54, 0, 0, 54,
1262
+ 17, 0, 0, 43, 0, 43, 0, 0
1263
+ };
1264
+
1265
+ static const unsigned char _lexer_eof_actions[] = {
1266
+ 0, 43, 43, 43, 43, 43, 43, 43,
1267
+ 43, 43, 43, 43, 43, 43, 43, 43,
1268
+ 43, 43, 43, 43, 43, 43, 43, 43,
1269
+ 43, 43, 43, 43, 43, 43, 43, 43,
1270
+ 43, 43, 43, 43, 43, 43, 43, 43,
1271
+ 43, 43, 43, 43, 43, 43, 43, 43,
1272
+ 43, 43, 43, 43, 43, 43, 43, 43,
1273
+ 43, 43, 43, 43, 43, 43, 43, 43,
1274
+ 43, 43, 43, 43, 43, 43, 43, 43,
1275
+ 43, 43, 43, 43, 43, 43, 43, 43,
1276
+ 43, 43, 43, 43, 43, 43, 43, 43,
1277
+ 43, 43, 43, 43, 43, 43, 43, 43,
1278
+ 43, 43, 43, 43, 43, 43, 43, 43,
1279
+ 43, 43, 43, 43, 43, 43, 43, 43,
1280
+ 43, 43, 43, 43, 43, 43, 43, 43,
1281
+ 43, 43, 43, 43, 43, 43, 43, 43,
1282
+ 43, 43, 43, 43, 43, 43, 43, 43,
1283
+ 43, 43, 43, 43, 43, 43, 43, 43,
1284
+ 43, 43, 43, 43, 43, 43, 43, 43,
1285
+ 43, 43, 43, 43, 43, 43, 43, 43,
1286
+ 43, 43, 43, 43, 43, 43, 43, 43,
1287
+ 43, 43, 43, 43, 43, 43, 43, 43,
1288
+ 43, 43, 43, 43, 43, 43, 43, 43,
1289
+ 43, 43, 43, 43, 43, 43, 43, 43,
1290
+ 43, 43, 43, 43, 43, 43, 43, 43,
1291
+ 43, 43, 43, 43, 43, 43, 43, 43,
1292
+ 43, 43, 43, 43, 43, 43, 43, 43,
1293
+ 43, 43, 43, 43, 43, 43, 43, 43,
1294
+ 43, 43, 43, 43, 43, 43, 43, 43,
1295
+ 43, 43, 43, 43, 43, 43, 43, 43,
1296
+ 43, 43, 43, 43, 43, 43, 43, 43,
1297
+ 43, 43, 43, 43, 43, 43, 43, 43,
1298
+ 43, 43, 43, 43, 43, 43, 43, 43,
1299
+ 43, 43, 43, 43, 43, 43, 43, 43,
1300
+ 43, 43, 43, 43, 43, 43, 43, 43,
1301
+ 43, 43, 43, 43, 43, 43, 43, 43,
1302
+ 43, 43, 43, 43, 43, 43, 43, 43,
1303
+ 43, 43, 43, 43, 43, 43, 43, 43,
1304
+ 43, 43, 43, 43, 43, 43, 43, 43,
1305
+ 43, 43, 43, 43, 43, 43, 43, 43,
1306
+ 43, 43, 43, 43, 43, 43, 43, 43,
1307
+ 43, 43, 43, 43, 43, 43, 43, 43,
1308
+ 43, 43, 43, 43, 43, 43, 43, 43,
1309
+ 43, 43, 43, 43, 43, 43, 43, 43,
1310
+ 43, 43, 43, 43, 43, 43, 43, 43,
1311
+ 43, 43, 43, 43, 43, 43, 43, 43,
1312
+ 43, 43, 43, 43, 43, 43, 43, 43,
1313
+ 43, 43, 43, 43, 43, 43, 43, 43,
1314
+ 43, 43, 43, 43, 43, 43, 43, 43,
1315
+ 43, 43, 43, 43, 43, 43, 43, 43,
1316
+ 43, 43, 43, 43, 43, 43, 43, 43,
1317
+ 43, 43, 43, 43, 43, 43, 43, 43,
1318
+ 43, 43, 43, 43, 43, 43, 43, 43,
1319
+ 43, 43, 43, 43, 43, 43, 43, 43,
1320
+ 43, 43, 43, 43, 43, 43, 43, 43,
1321
+ 43, 43, 43, 43, 43, 43, 43, 43,
1322
+ 43, 43, 43, 43, 43, 43, 43, 43,
1323
+ 43, 43, 43, 43, 43, 43, 43, 43,
1324
+ 43, 43, 43, 43, 43, 43, 43, 43,
1325
+ 43, 43, 43, 43, 43, 43, 43, 43,
1326
+ 43, 43, 43, 43, 43, 43, 43, 43,
1327
+ 43, 43, 43, 43, 43, 43, 43, 43,
1328
+ 43, 43, 43, 43, 43, 43, 43, 43,
1329
+ 43, 43, 43, 43, 43, 43, 43, 43,
1330
+ 43, 43, 43, 43, 43, 43, 43, 43,
1331
+ 43, 43, 43, 43, 43, 43, 43, 43,
1332
+ 43, 43, 43, 43, 43, 43, 43, 43,
1333
+ 43, 43, 43, 43, 43, 43, 43, 43,
1334
+ 43, 43, 43, 43, 43, 43, 43, 43,
1335
+ 43, 43, 43, 43, 43, 43, 43, 43,
1336
+ 43, 43, 43, 43, 43, 43, 43, 43,
1337
+ 43, 43, 43, 43, 43, 43, 43, 43,
1338
+ 43, 43, 43, 43, 43, 43, 43, 43,
1339
+ 43, 43, 43, 43, 43, 43, 43, 43,
1340
+ 43, 43, 43, 43, 43, 43, 43, 43,
1341
+ 43, 43, 43, 43, 43, 43, 43, 43,
1342
+ 43, 43, 43, 43, 43, 43, 43, 43,
1343
+ 43, 43, 43, 43, 43, 43, 43, 43,
1344
+ 43, 43, 43, 43, 43, 43, 43, 43,
1345
+ 43, 43, 43, 43, 43, 43, 43, 43,
1346
+ 43, 43, 43, 43, 43, 43, 43, 43,
1347
+ 43, 43, 43, 43, 43, 43, 43, 43,
1348
+ 43, 43, 43, 43, 43, 43, 43, 43,
1349
+ 43, 43, 43, 43, 43, 43, 43, 43,
1350
+ 43, 43, 43, 43, 43, 43, 43, 43,
1351
+ 43, 43, 43, 43, 43, 43, 43, 43,
1352
+ 43, 43, 43, 43, 43, 43, 43, 43,
1353
+ 43, 43, 43, 43, 43, 43, 43, 43,
1354
+ 43, 43, 43, 43, 43, 43, 43, 43,
1355
+ 43, 43, 43, 43, 43, 43, 43, 43,
1356
+ 43, 43, 43, 43, 43, 43, 43, 43,
1357
+ 43, 43, 43, 43, 43, 43, 43, 43,
1358
+ 43, 43, 43, 43, 43, 43, 43, 43,
1359
+ 43, 43, 43, 43, 43, 43, 43, 43,
1360
+ 43, 43, 43, 43, 43, 43, 43, 43,
1361
+ 43, 43
1362
+ };
1363
+
1364
+ static const int lexer_start = 1;
1365
+ static const int lexer_first_final = 761;
1366
+ static const int lexer_error = 0;
1367
+
1368
+ static const int lexer_en_main = 1;
1369
+
1370
+
1371
+ #line 258 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1372
+
1373
+ static VALUE
1374
+ unindent(VALUE con, int start_col)
1375
+ {
1376
+ VALUE re;
1377
+ /* Gherkin will crash gracefully if the string representation of start_col pushes the pattern past 32 characters */
1378
+ char pat[32];
1379
+ snprintf(pat, 32, "^[\t ]{0,%d}", start_col);
1380
+ re = rb_reg_regcomp(rb_str_new2(pat));
1381
+ rb_funcall(con, rb_intern("gsub!"), 2, re, rb_str_new2(""));
1382
+
1383
+ return Qnil;
1384
+
1385
+ }
1386
+
1387
+ static void
1388
+ store_kw_con(VALUE listener, const char * event_name,
1389
+ const char * keyword_at, size_t keyword_length,
1390
+ const char * at, size_t length,
1391
+ int current_line)
1392
+ {
1393
+ VALUE con = Qnil, kw = Qnil;
1394
+ kw = ENCODED_STR_NEW(keyword_at, keyword_length);
1395
+ con = ENCODED_STR_NEW(at, length);
1396
+ rb_funcall(con, rb_intern("strip!"), 0);
1397
+ rb_funcall(listener, rb_intern(event_name), 3, kw, con, INT2FIX(current_line));
1398
+ }
1399
+
1400
+ static void
1401
+ store_multiline_kw_con(VALUE listener, const char * event_name,
1402
+ const char * keyword_at, size_t keyword_length,
1403
+ const char * at, size_t length,
1404
+ int current_line, int start_col)
1405
+ {
1406
+ VALUE split;
1407
+ VALUE con = Qnil, kw = Qnil, name = Qnil, desc = Qnil;
1408
+
1409
+ kw = ENCODED_STR_NEW(keyword_at, keyword_length);
1410
+ con = ENCODED_STR_NEW(at, length);
1411
+
1412
+ unindent(con, start_col);
1413
+
1414
+ split = rb_str_split(con, "\n");
1415
+
1416
+ name = rb_funcall(split, rb_intern("shift"), 0);
1417
+ desc = rb_ary_join(split, rb_str_new2( "\n" ));
1418
+
1419
+ if( name == Qnil )
1420
+ {
1421
+ name = rb_str_new2("");
1422
+ }
1423
+ if( rb_funcall(desc, rb_intern("size"), 0) == 0)
1424
+ {
1425
+ desc = rb_str_new2("");
1426
+ }
1427
+ rb_funcall(name, rb_intern("strip!"), 0);
1428
+ rb_funcall(desc, rb_intern("rstrip!"), 0);
1429
+ rb_funcall(listener, rb_intern(event_name), 4, kw, name, desc, INT2FIX(current_line));
1430
+ }
1431
+
1432
+ static void
1433
+ store_attr(VALUE listener, const char * attr_type,
1434
+ const char * at, size_t length,
1435
+ int line)
1436
+ {
1437
+ VALUE val = ENCODED_STR_NEW(at, length);
1438
+ rb_funcall(listener, rb_intern(attr_type), 2, val, INT2FIX(line));
1439
+ }
1440
+ static void
1441
+ store_docstring_content(VALUE listener,
1442
+ int start_col,
1443
+ const char *type_at, size_t type_length,
1444
+ const char *at, size_t length,
1445
+ int current_line)
1446
+ {
1447
+ VALUE re2;
1448
+ VALUE unescape_escaped_quotes;
1449
+ VALUE con = ENCODED_STR_NEW(at, length);
1450
+ VALUE con_type = ENCODED_STR_NEW(type_at, type_length);
1451
+
1452
+ unindent(con, start_col);
1453
+
1454
+ re2 = rb_reg_regcomp(rb_str_new2("\r\\Z"));
1455
+ unescape_escaped_quotes = rb_reg_regcomp(rb_str_new2("\\\\\"\\\\\"\\\\\""));
1456
+ rb_funcall(con, rb_intern("sub!"), 2, re2, rb_str_new2(""));
1457
+ rb_funcall(con_type, rb_intern("strip!"), 0);
1458
+ rb_funcall(con, rb_intern("gsub!"), 2, unescape_escaped_quotes, rb_str_new2("\"\"\""));
1459
+ rb_funcall(listener, rb_intern("doc_string"), 3, con_type, con, INT2FIX(current_line));
1460
+ }
1461
+ static void
1462
+ raise_lexer_error(const char * at, int line)
1463
+ {
1464
+ rb_raise(rb_eGherkinLexingError, "Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.", line, at);
1465
+ }
1466
+
1467
+ static void lexer_init(lexer_state *lexer) {
1468
+ lexer->content_start = 0;
1469
+ lexer->content_end = 0;
1470
+ lexer->content_len = 0;
1471
+ lexer->docstring_content_type_start = 0;
1472
+ lexer->docstring_content_type_end = 0;
1473
+ lexer->mark = 0;
1474
+ lexer->keyword_start = 0;
1475
+ lexer->keyword_end = 0;
1476
+ lexer->next_keyword_start = 0;
1477
+ lexer->line_number = 1;
1478
+ lexer->last_newline = 0;
1479
+ lexer->final_newline = 0;
1480
+ lexer->start_col = 0;
1481
+ }
1482
+
1483
+ static VALUE CLexer_alloc(VALUE klass)
1484
+ {
1485
+ VALUE obj;
1486
+ lexer_state *lxr = ALLOC(lexer_state);
1487
+ lexer_init(lxr);
1488
+
1489
+ obj = Data_Wrap_Struct(klass, NULL, -1, lxr);
1490
+
1491
+ return obj;
1492
+ }
1493
+
1494
+ static VALUE CLexer_init(VALUE self, VALUE listener)
1495
+ {
1496
+ lexer_state *lxr;
1497
+ rb_iv_set(self, "@listener", listener);
1498
+
1499
+ lxr = NULL;
1500
+ DATA_GET(self, lexer_state, lxr);
1501
+ lexer_init(lxr);
1502
+
1503
+ return self;
1504
+ }
1505
+
1506
+ static VALUE CLexer_scan(VALUE self, VALUE input)
1507
+ {
1508
+ VALUE input_copy;
1509
+ char *data;
1510
+ size_t len;
1511
+ VALUE listener = rb_iv_get(self, "@listener");
1512
+
1513
+ lexer_state *lexer;
1514
+ lexer = NULL;
1515
+ DATA_GET(self, lexer_state, lexer);
1516
+
1517
+ input_copy = rb_str_dup(input);
1518
+
1519
+ rb_str_append(input_copy, rb_str_new2("\n%_FEATURE_END_%"));
1520
+ data = RSTRING_PTR(input_copy);
1521
+ len = RSTRING_LEN(input_copy);
1522
+
1523
+ if (len == 0) {
1524
+ rb_raise(rb_eGherkinLexingError, "No content to lex.");
1525
+ } else {
1526
+
1527
+ const char *p, *pe, *eof;
1528
+ int cs = 0;
1529
+
1530
+ VALUE current_row = Qnil;
1531
+
1532
+ p = data;
1533
+ pe = data + len;
1534
+ eof = pe;
1535
+
1536
+ assert(*pe == '\0' && "pointer does not end on NULL");
1537
+
1538
+
1539
+ #line 1540 "ext/gherkin_lexer_tt/gherkin_lexer_tt.c"
1540
+ {
1541
+ cs = lexer_start;
1542
+ }
1543
+
1544
+ #line 425 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1545
+
1546
+ #line 1547 "ext/gherkin_lexer_tt/gherkin_lexer_tt.c"
1547
+ {
1548
+ int _klen;
1549
+ unsigned int _trans;
1550
+ const char *_acts;
1551
+ unsigned int _nacts;
1552
+ const char *_keys;
1553
+
1554
+ if ( p == pe )
1555
+ goto _test_eof;
1556
+ if ( cs == 0 )
1557
+ goto _out;
1558
+ _resume:
1559
+ _keys = _lexer_trans_keys + _lexer_key_offsets[cs];
1560
+ _trans = _lexer_index_offsets[cs];
1561
+
1562
+ _klen = _lexer_single_lengths[cs];
1563
+ if ( _klen > 0 ) {
1564
+ const char *_lower = _keys;
1565
+ const char *_mid;
1566
+ const char *_upper = _keys + _klen - 1;
1567
+ while (1) {
1568
+ if ( _upper < _lower )
1569
+ break;
1570
+
1571
+ _mid = _lower + ((_upper-_lower) >> 1);
1572
+ if ( (*p) < *_mid )
1573
+ _upper = _mid - 1;
1574
+ else if ( (*p) > *_mid )
1575
+ _lower = _mid + 1;
1576
+ else {
1577
+ _trans += (_mid - _keys);
1578
+ goto _match;
1579
+ }
1580
+ }
1581
+ _keys += _klen;
1582
+ _trans += _klen;
1583
+ }
1584
+
1585
+ _klen = _lexer_range_lengths[cs];
1586
+ if ( _klen > 0 ) {
1587
+ const char *_lower = _keys;
1588
+ const char *_mid;
1589
+ const char *_upper = _keys + (_klen<<1) - 2;
1590
+ while (1) {
1591
+ if ( _upper < _lower )
1592
+ break;
1593
+
1594
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
1595
+ if ( (*p) < _mid[0] )
1596
+ _upper = _mid - 2;
1597
+ else if ( (*p) > _mid[1] )
1598
+ _lower = _mid + 2;
1599
+ else {
1600
+ _trans += ((_mid - _keys)>>1);
1601
+ goto _match;
1602
+ }
1603
+ }
1604
+ _trans += _klen;
1605
+ }
1606
+
1607
+ _match:
1608
+ cs = _lexer_trans_targs[_trans];
1609
+
1610
+ if ( _lexer_trans_actions[_trans] == 0 )
1611
+ goto _again;
1612
+
1613
+ _acts = _lexer_actions + _lexer_trans_actions[_trans];
1614
+ _nacts = (unsigned int) *_acts++;
1615
+ while ( _nacts-- > 0 )
1616
+ {
1617
+ switch ( *_acts++ )
1618
+ {
1619
+ case 0:
1620
+ #line 83 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1621
+ {
1622
+ MARK(content_start, p);
1623
+ lexer->current_line = lexer->line_number;
1624
+ lexer->start_col = lexer->content_start - lexer->last_newline - (lexer->keyword_end - lexer->keyword_start) + 2;
1625
+ }
1626
+ break;
1627
+ case 1:
1628
+ #line 89 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1629
+ {
1630
+ MARK(content_start, p);
1631
+ }
1632
+ break;
1633
+ case 2:
1634
+ #line 93 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1635
+ {
1636
+ lexer->current_line = lexer->line_number;
1637
+ lexer->start_col = p - data - lexer->last_newline;
1638
+ }
1639
+ break;
1640
+ case 3:
1641
+ #line 98 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1642
+ {
1643
+ int len = LEN(content_start, PTR_TO(final_newline));
1644
+ int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
1645
+
1646
+ if (len < 0) len = 0;
1647
+ if (type_len < 0) len = 0;
1648
+
1649
+ store_docstring_content(listener, lexer->start_col, PTR_TO(docstring_content_type_start), type_len, PTR_TO(content_start), len, lexer->current_line);
1650
+ }
1651
+ break;
1652
+ case 4:
1653
+ #line 108 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1654
+ {
1655
+ MARK(docstring_content_type_start, p);
1656
+ }
1657
+ break;
1658
+ case 5:
1659
+ #line 112 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1660
+ {
1661
+ MARK(docstring_content_type_end, p);
1662
+ }
1663
+ break;
1664
+ case 6:
1665
+ #line 116 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1666
+ {
1667
+ STORE_KW_END_CON(feature);
1668
+ }
1669
+ break;
1670
+ case 7:
1671
+ #line 120 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1672
+ {
1673
+ STORE_KW_END_CON(background);
1674
+ }
1675
+ break;
1676
+ case 8:
1677
+ #line 124 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1678
+ {
1679
+ STORE_KW_END_CON(scenario);
1680
+ }
1681
+ break;
1682
+ case 9:
1683
+ #line 128 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1684
+ {
1685
+ STORE_KW_END_CON(scenario_outline);
1686
+ }
1687
+ break;
1688
+ case 10:
1689
+ #line 132 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1690
+ {
1691
+ STORE_KW_END_CON(examples);
1692
+ }
1693
+ break;
1694
+ case 11:
1695
+ #line 136 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1696
+ {
1697
+ store_kw_con(listener, "step",
1698
+ PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
1699
+ PTR_TO(content_start), LEN(content_start, p),
1700
+ lexer->current_line);
1701
+ }
1702
+ break;
1703
+ case 12:
1704
+ #line 143 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1705
+ {
1706
+ STORE_ATTR(comment);
1707
+ lexer->mark = 0;
1708
+ }
1709
+ break;
1710
+ case 13:
1711
+ #line 148 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1712
+ {
1713
+ STORE_ATTR(tag);
1714
+ lexer->mark = 0;
1715
+ }
1716
+ break;
1717
+ case 14:
1718
+ #line 153 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1719
+ {
1720
+ lexer->line_number += 1;
1721
+ MARK(final_newline, p);
1722
+ }
1723
+ break;
1724
+ case 15:
1725
+ #line 158 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1726
+ {
1727
+ MARK(last_newline, p + 1);
1728
+ }
1729
+ break;
1730
+ case 16:
1731
+ #line 162 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1732
+ {
1733
+ if (lexer->mark == 0) {
1734
+ MARK(mark, p);
1735
+ }
1736
+ }
1737
+ break;
1738
+ case 17:
1739
+ #line 168 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1740
+ {
1741
+ MARK(keyword_end, p);
1742
+ MARK(keyword_start, PTR_TO(mark));
1743
+ MARK(content_start, p + 1);
1744
+ lexer->mark = 0;
1745
+ }
1746
+ break;
1747
+ case 18:
1748
+ #line 175 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1749
+ {
1750
+ MARK(content_end, p);
1751
+ }
1752
+ break;
1753
+ case 19:
1754
+ #line 179 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1755
+ {
1756
+ p = p - 1;
1757
+ lexer->current_line = lexer->line_number;
1758
+ current_row = rb_ary_new();
1759
+ }
1760
+ break;
1761
+ case 20:
1762
+ #line 185 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1763
+ {
1764
+ MARK(content_start, p);
1765
+ }
1766
+ break;
1767
+ case 21:
1768
+ #line 189 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1769
+ {
1770
+ VALUE re_pipe, re_newline, re_backslash;
1771
+ VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
1772
+ rb_funcall(con, rb_intern("strip!"), 0);
1773
+ re_pipe = rb_reg_regcomp(rb_str_new2("\\\\\\|"));
1774
+ re_newline = rb_reg_regcomp(rb_str_new2("\\\\n"));
1775
+ re_backslash = rb_reg_regcomp(rb_str_new2("\\\\\\\\"));
1776
+ rb_funcall(con, rb_intern("gsub!"), 2, re_pipe, rb_str_new2("|"));
1777
+ rb_funcall(con, rb_intern("gsub!"), 2, re_newline, rb_str_new2("\n"));
1778
+ rb_funcall(con, rb_intern("gsub!"), 2, re_backslash, rb_str_new2("\\"));
1779
+
1780
+ rb_ary_push(current_row, con);
1781
+ }
1782
+ break;
1783
+ case 22:
1784
+ #line 203 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1785
+ {
1786
+ rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
1787
+ }
1788
+ break;
1789
+ case 23:
1790
+ #line 207 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1791
+ {
1792
+ int line;
1793
+ if (cs < lexer_first_final) {
1794
+ size_t count = 0;
1795
+ VALUE newstr_val;
1796
+ char *newstr;
1797
+ int newstr_count = 0;
1798
+ size_t len;
1799
+ const char *buff;
1800
+ if (lexer->last_newline != 0) {
1801
+ len = LEN(last_newline, eof);
1802
+ buff = PTR_TO(last_newline);
1803
+ } else {
1804
+ len = strlen(data);
1805
+ buff = data;
1806
+ }
1807
+
1808
+ /* Allocate as a ruby string so that it gets cleaned up by GC */
1809
+ newstr_val = rb_str_new(buff, len);
1810
+ newstr = RSTRING_PTR(newstr_val);
1811
+
1812
+
1813
+ for (count = 0; count < len; count++) {
1814
+ if(buff[count] == 10) {
1815
+ newstr[newstr_count] = '\0'; /* terminate new string at first newline found */
1816
+ break;
1817
+ } else {
1818
+ if (buff[count] == '%') {
1819
+ newstr[newstr_count++] = buff[count];
1820
+ newstr[newstr_count] = buff[count];
1821
+ } else {
1822
+ newstr[newstr_count] = buff[count];
1823
+ }
1824
+ }
1825
+ newstr_count++;
1826
+ }
1827
+
1828
+ line = lexer->line_number;
1829
+ lexer_init(lexer); /* Re-initialize so we can scan again with the same lexer */
1830
+ raise_lexer_error(newstr, line);
1831
+ } else {
1832
+ rb_funcall(listener, rb_intern("eof"), 0);
1833
+ }
1834
+ }
1835
+ break;
1836
+ #line 1837 "ext/gherkin_lexer_tt/gherkin_lexer_tt.c"
1837
+ }
1838
+ }
1839
+
1840
+ _again:
1841
+ if ( cs == 0 )
1842
+ goto _out;
1843
+ if ( ++p != pe )
1844
+ goto _resume;
1845
+ _test_eof: {}
1846
+ if ( p == eof )
1847
+ {
1848
+ const char *__acts = _lexer_actions + _lexer_eof_actions[cs];
1849
+ unsigned int __nacts = (unsigned int) *__acts++;
1850
+ while ( __nacts-- > 0 ) {
1851
+ switch ( *__acts++ ) {
1852
+ case 23:
1853
+ #line 207 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1854
+ {
1855
+ int line;
1856
+ if (cs < lexer_first_final) {
1857
+ size_t count = 0;
1858
+ VALUE newstr_val;
1859
+ char *newstr;
1860
+ int newstr_count = 0;
1861
+ size_t len;
1862
+ const char *buff;
1863
+ if (lexer->last_newline != 0) {
1864
+ len = LEN(last_newline, eof);
1865
+ buff = PTR_TO(last_newline);
1866
+ } else {
1867
+ len = strlen(data);
1868
+ buff = data;
1869
+ }
1870
+
1871
+ /* Allocate as a ruby string so that it gets cleaned up by GC */
1872
+ newstr_val = rb_str_new(buff, len);
1873
+ newstr = RSTRING_PTR(newstr_val);
1874
+
1875
+
1876
+ for (count = 0; count < len; count++) {
1877
+ if(buff[count] == 10) {
1878
+ newstr[newstr_count] = '\0'; /* terminate new string at first newline found */
1879
+ break;
1880
+ } else {
1881
+ if (buff[count] == '%') {
1882
+ newstr[newstr_count++] = buff[count];
1883
+ newstr[newstr_count] = buff[count];
1884
+ } else {
1885
+ newstr[newstr_count] = buff[count];
1886
+ }
1887
+ }
1888
+ newstr_count++;
1889
+ }
1890
+
1891
+ line = lexer->line_number;
1892
+ lexer_init(lexer); /* Re-initialize so we can scan again with the same lexer */
1893
+ raise_lexer_error(newstr, line);
1894
+ } else {
1895
+ rb_funcall(listener, rb_intern("eof"), 0);
1896
+ }
1897
+ }
1898
+ break;
1899
+ #line 1900 "ext/gherkin_lexer_tt/gherkin_lexer_tt.c"
1900
+ }
1901
+ }
1902
+ }
1903
+
1904
+ _out: {}
1905
+ }
1906
+
1907
+ #line 426 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tt.c.rl"
1908
+
1909
+ assert(p <= pe && "data overflow after parsing execute");
1910
+ assert(lexer->content_start <= len && "content starts after data end");
1911
+ assert(lexer->mark < len && "mark is after data end");
1912
+
1913
+ /* Reset lexer by re-initializing the whole thing */
1914
+ lexer_init(lexer);
1915
+
1916
+ if (cs == lexer_error) {
1917
+ rb_raise(rb_eGherkinLexingError, "Invalid format, lexing fails.");
1918
+ } else {
1919
+ return Qtrue;
1920
+ }
1921
+ }
1922
+ }
1923
+
1924
+ void Init_gherkin_lexer_tt()
1925
+ {
1926
+ mGherkin = rb_define_module("Gherkin");
1927
+ mGherkinLexer = rb_define_module_under(mGherkin, "Lexer");
1928
+ rb_eGherkinLexingError = rb_const_get(mGherkinLexer, rb_intern("LexingError"));
1929
+
1930
+ mCLexer = rb_define_module_under(mGherkin, "CLexer");
1931
+ cI18nLexer = rb_define_class_under(mCLexer, "Tt", rb_cObject);
1932
+ rb_define_alloc_func(cI18nLexer, CLexer_alloc);
1933
+ rb_define_method(cI18nLexer, "initialize", CLexer_init, 1);
1934
+ rb_define_method(cI18nLexer, "scan", CLexer_scan, 1);
1935
+ }
1936
+