1 /* Code generated from Flex source file: lexer.l */
3 /* A lexical scanner generated by flex */
5 /* Scanner skeleton version:
6 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
10 #define YY_FLEX_MAJOR_VERSION 2
11 #define YY_FLEX_MINOR_VERSION 5
16 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
29 /* Use prototypes in function declarations. */
32 /* The "const" storage-class-modifier is valid. */
35 #else /* ! __cplusplus */
43 #endif /* ! __cplusplus */
62 #define YY_PROTO(proto) proto
64 #define YY_PROTO(proto) ()
67 /* Returned upon end-of-file. */
70 /* Promotes a possibly negative, possibly signed char to an unsigned
71 * integer for use as an array index. If the signed char is negative,
72 * we want to instead treat it as an 8-bit unsigned char, hence the
75 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
77 /* Enter a start condition. This macro really ought to take a parameter,
78 * but we do it the disgusting crufty way forced on us by the ()-less
79 * definition of BEGIN.
81 #define BEGIN yy_start = 1 + 2 *
83 /* Translate the current start state into a value that can be later handed
84 * to BEGIN to return to the state. The YYSTATE alias is for lex
87 #define YY_START ((yy_start - 1) / 2)
88 #define YYSTATE YY_START
90 /* Action number for EOF rule of a given start state. */
91 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
93 /* Special action meaning "start processing a new file". */
94 #define YY_NEW_FILE yyrestart( yyin )
96 #define YY_END_OF_BUFFER_CHAR 0
98 /* Size of default input buffer. */
99 #define YY_BUF_SIZE 16384
101 typedef struct yy_buffer_state *YY_BUFFER_STATE;
104 extern FILE *yyin, *yyout;
106 #define EOB_ACT_CONTINUE_SCAN 0
107 #define EOB_ACT_END_OF_FILE 1
108 #define EOB_ACT_LAST_MATCH 2
110 /* The funky do-while in the following #define is used to turn the definition
111 * int a single C statement (which needs a semi-colon terminator). This
112 * avoids problems with code like:
114 * if ( condition_holds )
117 * do_something_else();
119 * Prior to using the do-while the compiler would get upset at the
120 * "else" because it interpreted the "if" statement as being all
121 * done when it reached the ';' after the yyless() call.
124 /* Return all but the first 'n' matched characters back to the input stream. */
129 /* Undo effects of setting up yytext. */ \
130 *yy_cp = yy_hold_char; \
131 YY_RESTORE_YY_MORE_OFFSET \
132 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
133 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
137 #define unput(c) yyunput( c, yytext_ptr )
139 /* The following is because we cannot portably get our hands on size_t
140 * (without autoconf's help, which isn't available because we want
141 * flex-generated scanners to compile on their own).
143 typedef unsigned int yy_size_t;
146 struct yy_buffer_state
150 char *yy_ch_buf; /* input buffer */
151 char *yy_buf_pos; /* current position in input buffer */
153 /* Size of input buffer in bytes, not including room for EOB
156 yy_size_t yy_buf_size;
158 /* Number of characters read into yy_ch_buf, not including EOB
163 /* Whether we "own" the buffer - i.e., we know we created it,
164 * and can realloc() it to grow it, and should free() it to
167 int yy_is_our_buffer;
169 /* Whether this is an "interactive" input source; if so, and
170 * if we're using stdio for input, then we want to use getc()
171 * instead of fread(), to make sure we stop fetching input after
174 int yy_is_interactive;
176 /* Whether we're considered to be at the beginning of a line.
177 * If so, '^' rules will be active on the next match, otherwise
182 /* Whether to try to fill the input buffer when we reach the
187 int yy_buffer_status;
188 #define YY_BUFFER_NEW 0
189 #define YY_BUFFER_NORMAL 1
190 /* When an EOF's been seen but there's still some text to process
191 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
192 * shouldn't try reading from the input source any more. We might
193 * still have a bunch of tokens to match, though, because of
194 * possible backing-up.
196 * When we actually see the EOF, we change the status to "new"
197 * (via yyrestart()), so that the user can continue scanning by
198 * just pointing yyin at a new input file.
200 #define YY_BUFFER_EOF_PENDING 2
203 static YY_BUFFER_STATE yy_current_buffer = 0;
205 /* We provide macros for accessing buffer states in case in the
206 * future we want to put the buffer states in a more general
209 #define YY_CURRENT_BUFFER yy_current_buffer
212 /* yy_hold_char holds the character lost when yytext is formed. */
213 static char yy_hold_char;
215 static int yy_n_chars; /* number of characters read into yy_ch_buf */
220 /* Points to current character in buffer. */
221 static char *yy_c_buf_p = (char *) 0;
222 static int yy_init = 1; /* whether we need to initialize */
223 static int yy_start = 0; /* start state number */
225 /* Flag which is used to allow yywrap()'s to do buffer switches
226 * instead of setting up a fresh yyin. A bit of a hack ...
228 static int yy_did_buffer_switch_on_eof;
230 void yyrestart YY_PROTO(( FILE *input_file ));
232 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
233 void yy_load_buffer_state YY_PROTO(( void ));
234 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
235 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
236 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
237 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
238 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
240 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
241 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
242 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
244 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
245 static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
246 static void yy_flex_free YY_PROTO(( void * ));
248 #define yy_new_buffer yy_create_buffer
250 #define yy_set_interactive(is_interactive) \
252 if ( ! yy_current_buffer ) \
253 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
254 yy_current_buffer->yy_is_interactive = is_interactive; \
257 #define yy_set_bol(at_bol) \
259 if ( ! yy_current_buffer ) \
260 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
261 yy_current_buffer->yy_at_bol = at_bol; \
264 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
266 typedef unsigned char YY_CHAR;
267 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
268 typedef int yy_state_type;
270 #define yytext_ptr yytext
272 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
273 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
274 static int yy_get_next_buffer YY_PROTO(( void ));
275 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
277 /* Done after the current pattern has been matched and before the
278 * corresponding action - sets up yytext.
280 #define YY_DO_BEFORE_ACTION \
281 yytext_ptr = yy_bp; \
282 yyleng = (int) (yy_cp - yy_bp); \
283 yy_hold_char = *yy_cp; \
287 #define YY_NUM_RULES 166
288 #define YY_END_OF_BUFFER 167
289 static yyconst short int yy_accept[661] =
291 106, 106, 167, 165, 164, 163, 162, 149, 165, 1,
292 161, 155, 148, 165, 143, 144, 153, 152, 140, 151,
293 147, 154, 109, 109, 141, 137, 156, 142, 157, 160,
294 106, 106, 145, 146, 158, 106, 106, 106, 106, 106,
295 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
296 106, 106, 106, 138, 159, 139, 150, 136, 0, 114,
297 0, 122, 139, 131, 123, 0, 0, 120, 128, 118,
298 129, 119, 130, 0, 112, 2, 3, 121, 113, 108,
299 0, 109, 0, 109, 106, 146, 138, 145, 127, 133,
300 135, 134, 126, 0, 106, 0, 0, 0, 124, 106,
302 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
303 106, 106, 106, 106, 106, 11, 106, 106, 106, 106,
304 106, 106, 106, 106, 19, 106, 106, 106, 106, 106,
305 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
306 106, 106, 106, 106, 106, 106, 106, 106, 125, 132,
307 110, 115, 0, 112, 112, 0, 113, 108, 0, 111,
308 107, 106, 117, 116, 106, 106, 106, 106, 106, 106,
309 106, 106, 106, 106, 106, 106, 106, 106, 106, 86,
310 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
311 106, 106, 106, 106, 106, 106, 106, 106, 106, 17,
313 44, 106, 106, 106, 106, 20, 106, 106, 106, 50,
314 106, 106, 106, 106, 106, 106, 43, 106, 106, 106,
315 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
316 106, 106, 106, 106, 106, 106, 0, 112, 0, 112,
317 0, 113, 111, 107, 106, 106, 106, 106, 106, 106,
318 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
319 106, 106, 106, 106, 4, 106, 6, 7, 106, 106,
320 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
321 106, 13, 14, 106, 106, 106, 18, 106, 106, 106,
322 106, 106, 22, 106, 51, 106, 106, 106, 106, 106,
324 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
325 106, 106, 21, 106, 106, 106, 37, 106, 106, 106,
326 0, 112, 106, 87, 106, 106, 106, 106, 106, 106,
327 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
328 106, 5, 46, 8, 106, 106, 106, 106, 106, 106,
329 106, 106, 106, 106, 106, 106, 106, 16, 106, 106,
330 106, 57, 45, 106, 106, 106, 106, 106, 52, 106,
331 25, 106, 106, 106, 106, 106, 106, 106, 106, 106,
332 106, 35, 106, 106, 106, 89, 41, 106, 106, 106,
333 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
335 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
336 106, 106, 106, 55, 49, 106, 106, 12, 15, 106,
337 54, 82, 66, 106, 106, 106, 78, 106, 53, 24,
338 26, 29, 31, 106, 106, 32, 106, 33, 106, 106,
339 106, 106, 106, 106, 106, 106, 85, 106, 106, 70,
340 76, 106, 106, 106, 56, 106, 106, 106, 106, 106,
341 106, 64, 106, 106, 106, 106, 106, 106, 106, 106,
342 103, 104, 102, 10, 106, 106, 106, 106, 79, 106,
343 106, 74, 106, 106, 106, 106, 34, 106, 48, 106,
344 106, 106, 106, 106, 106, 106, 65, 106, 27, 106,
346 88, 106, 106, 73, 106, 106, 106, 106, 106, 106,
347 9, 106, 106, 106, 106, 106, 42, 23, 106, 100,
348 106, 106, 36, 38, 106, 106, 106, 106, 106, 106,
349 106, 106, 106, 71, 106, 106, 106, 106, 106, 106,
350 106, 106, 106, 106, 68, 69, 106, 101, 106, 106,
351 47, 106, 92, 106, 106, 106, 106, 106, 63, 75,
352 28, 106, 40, 106, 81, 98, 106, 106, 106, 106,
353 106, 106, 106, 106, 106, 106, 30, 62, 106, 0,
354 106, 106, 72, 106, 84, 106, 106, 95, 106, 106,
355 106, 106, 106, 106, 106, 106, 106, 67, 0, 106,
357 77, 39, 106, 106, 106, 106, 106, 91, 106, 90,
358 80, 61, 106, 106, 83, 106, 106, 106, 106, 105,
359 106, 106, 106, 106, 106, 93, 106, 99, 106, 106,
360 106, 106, 106, 106, 106, 106, 59, 106, 106, 106,
361 106, 106, 58, 106, 106, 97, 106, 106, 94, 106,
362 106, 106, 106, 106, 106, 106, 96, 106, 60, 0
365 static yyconst int yy_ec[256] =
367 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
368 4, 4, 1, 1, 1, 1, 1, 1, 1, 1,
369 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
370 1, 4, 5, 6, 7, 8, 9, 10, 11, 12,
371 13, 14, 15, 16, 17, 18, 19, 20, 21, 21,
372 21, 22, 21, 23, 21, 21, 21, 24, 25, 26,
373 27, 28, 29, 1, 30, 30, 30, 30, 31, 32,
374 33, 33, 33, 33, 33, 34, 33, 33, 33, 33,
375 33, 33, 33, 33, 35, 33, 33, 36, 33, 33,
376 37, 38, 39, 40, 41, 1, 42, 43, 44, 45,
378 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
379 56, 57, 33, 58, 59, 60, 61, 62, 63, 64,
380 65, 66, 67, 68, 69, 70, 1, 1, 1, 1,
381 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
382 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
383 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
384 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
385 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
386 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
387 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
389 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
390 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
391 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
392 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
393 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
397 static yyconst int yy_meta[71] =
399 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
400 3, 1, 4, 1, 1, 1, 1, 1, 1, 5,
401 5, 5, 5, 2, 1, 1, 1, 1, 1, 6,
402 6, 6, 7, 7, 7, 7, 1, 1, 1, 1,
403 7, 6, 6, 6, 6, 6, 6, 7, 7, 7,
404 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
405 7, 7, 7, 7, 7, 7, 1, 1, 1, 1
408 static yyconst short int yy_base[669] =
410 0, 0, 216, 2195, 2195, 2195, 2195, 178, 65, 2195,
411 2195, 45, 64, 158, 2195, 2195, 160, 60, 2195, 61,
412 59, 71, 86, 133, 68, 2195, 75, 156, 66, 2195,
413 73, 104, 2195, 2195, 150, 102, 76, 101, 120, 139,
414 136, 148, 147, 160, 109, 164, 117, 156, 187, 189,
415 202, 199, 211, 2195, 68, 2195, 2195, 2195, 107, 2195,
416 139, 2195, 2195, 2195, 2195, 179, 113, 2195, 2195, 2195,
417 2195, 2195, 2195, 122, 241, 2195, 2195, 2195, 245, 281,
418 207, 236, 0, 0, 0, 2195, 2195, 2195, 111, 2195,
419 2195, 2195, 107, 105, 208, 99, 202, 80, 2195, 333,
421 210, 235, 259, 215, 232, 271, 272, 234, 290, 296,
422 297, 298, 299, 300, 301, 320, 326, 327, 338, 316,
423 331, 346, 356, 358, 362, 379, 384, 386, 387, 389,
424 390, 391, 395, 402, 396, 399, 411, 407, 415, 422,
425 424, 430, 451, 454, 456, 457, 458, 459, 2195, 2195,
426 2195, 2195, 469, 2195, 499, 478, 2195, 462, 504, 515,
427 505, 0, 2195, 2195, 0, 518, 492, 519, 524, 493,
428 531, 541, 549, 550, 557, 484, 559, 566, 569, 461,
429 570, 572, 574, 578, 579, 581, 582, 594, 597, 606,
430 607, 609, 613, 615, 618, 619, 622, 637, 643, 598,
432 641, 646, 650, 652, 662, 656, 665, 667, 668, 674,
433 671, 672, 677, 689, 680, 683, 693, 695, 699, 710,
434 698, 708, 711, 714, 717, 718, 721, 726, 727, 733,
435 736, 738, 739, 749, 755, 757, 772, 780, 796, 2195,
436 784, 800, 2195, 735, 0, 761, 805, 814, 766, 815,
437 818, 820, 825, 821, 826, 830, 836, 827, 833, 838,
438 842, 846, 849, 853, 773, 861, 868, 870, 873, 877,
439 888, 890, 893, 895, 892, 894, 896, 897, 898, 900,
440 905, 901, 917, 918, 920, 921, 924, 926, 936, 937,
441 942, 939, 943, 946, 949, 955, 961, 962, 964, 965,
443 967, 970, 980, 977, 985, 990, 986, 992, 993, 996,
444 998, 1003, 1005, 1014, 1027, 1021, 1029, 1031, 1034, 1033,
445 1039, 1064, 1040, 1053, 1042, 1044, 1046, 1057, 1068, 1079,
446 1083, 1085, 1089, 1091, 1094, 1095, 1100, 1096, 1102, 1112,
447 1104, 1113, 1119, 1120, 1121, 1124, 1129, 1140, 1145, 1146,
448 1148, 1149, 1151, 1153, 1155, 1157, 1161, 1164, 1168, 1173,
449 1180, 1181, 1183, 1190, 1192, 1199, 1201, 1203, 1209, 1207,
450 1208, 1211, 1212, 1214, 1220, 1224, 1227, 1229, 1230, 1231,
451 1236, 1240, 1251, 1257, 1259, 1262, 1264, 1266, 1270, 1268,
452 1279, 1281, 1283, 1286, 1291, 1292, 1290, 1298, 1303, 1309,
454 1307, 1313, 1316, 1314, 1318, 1326, 1331, 1320, 1338, 1342,
455 1343, 1344, 1348, 1355, 1359, 1360, 1370, 1372, 1375, 1379,
456 1381, 1382, 1385, 1388, 1390, 1391, 1394, 1400, 1401, 1403,
457 1407, 1409, 1410, 1411, 1413, 1418, 1419, 1428, 1430, 1431,
458 1434, 1437, 1435, 1438, 1439, 1443, 1446, 1447, 1450, 1455,
459 1456, 1465, 1474, 1482, 1483, 1484, 1485, 1486, 1491, 1487,
460 1492, 1493, 1494, 1495, 1502, 1503, 1511, 1519, 1522, 1526,
461 1521, 1530, 1539, 1541, 1542, 1545, 1546, 1547, 1549, 1550,
462 1551, 1552, 1554, 1569, 1570, 1571, 1572, 1573, 1575, 1577,
463 1578, 1595, 1582, 1597, 1598, 1600, 1606, 1601, 1610, 1602,
465 1603, 1622, 1625, 1629, 1630, 1638, 1646, 1647, 1648, 1653,
466 1649, 1654, 1655, 1656, 1658, 1666, 1659, 1675, 1677, 1678,
467 1682, 1684, 1686, 1693, 1694, 1703, 1704, 1709, 1710, 1712,
468 1714, 1713, 1715, 1719, 1721, 1722, 1737, 1738, 1739, 1741,
469 1742, 1747, 1748, 1759, 1760, 1765, 1766, 1768, 1772, 1775,
470 1776, 1777, 1784, 1785, 1793, 1794, 1809, 1796, 1800, 1803,
471 1804, 1812, 1819, 1821, 1822, 1824, 1825, 1828, 1830, 1831,
472 1837, 1840, 1847, 1848, 1849, 1855, 1853, 1857, 1858, 92,
473 1860, 1868, 1856, 1878, 1879, 1883, 1884, 1886, 1896, 1901,
474 1902, 1903, 1904, 1906, 1905, 1911, 1908, 2195, 63, 1914,
476 1907, 1913, 1923, 1933, 1934, 1936, 1951, 1953, 1956, 1957,
477 1958, 1960, 1961, 1962, 1963, 1964, 1968, 1979, 1984, 1985,
478 1987, 1988, 1989, 1990, 2000, 2006, 2007, 2008, 2009, 2012,
479 2013, 2015, 2017, 2018, 2019, 2034, 2028, 2036, 2038, 2043,
480 2040, 2045, 2049, 2061, 2062, 2066, 2068, 2069, 2071, 2073,
481 2074, 2077, 2078, 2090, 2096, 2098, 2097, 2101, 2102, 2195,
482 2161, 2168, 2174, 2177, 2178, 2181, 2183, 2187
485 static yyconst short int yy_def[669] =
487 660, 1, 660, 660, 660, 660, 660, 660, 661, 660,
488 660, 660, 660, 662, 660, 660, 660, 660, 660, 660,
489 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
490 663, 663, 660, 660, 660, 663, 663, 663, 663, 663,
491 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
492 663, 663, 663, 660, 660, 660, 660, 660, 661, 660,
493 661, 660, 660, 660, 660, 662, 662, 660, 660, 660,
494 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
495 660, 660, 664, 24, 665, 660, 660, 660, 660, 660,
496 660, 660, 660, 660, 663, 660, 661, 662, 660, 663,
498 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
499 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
500 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
501 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
502 663, 663, 663, 663, 663, 663, 663, 663, 660, 660,
503 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
504 664, 666, 660, 660, 667, 663, 663, 663, 663, 663,
505 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
506 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
507 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
509 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
510 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
511 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
512 663, 663, 663, 663, 663, 663, 660, 660, 660, 660,
513 660, 660, 660, 660, 666, 663, 663, 663, 663, 663,
514 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
515 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
516 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
517 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
518 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
520 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
521 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
522 660, 660, 663, 663, 663, 663, 663, 663, 663, 663,
523 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
524 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
525 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
526 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
527 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
528 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
529 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
531 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
532 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
533 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
534 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
535 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
536 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
537 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
538 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
539 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
540 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
542 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
543 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
544 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
545 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
546 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
547 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
548 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
549 663, 663, 663, 663, 663, 663, 663, 663, 663, 668,
550 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
551 663, 663, 663, 663, 663, 663, 663, 660, 668, 663,
553 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
554 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
555 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
556 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
557 663, 663, 663, 663, 663, 663, 663, 663, 663, 663,
558 663, 663, 663, 663, 663, 663, 663, 663, 663, 0,
559 660, 660, 660, 660, 660, 660, 660, 660
562 static yyconst short int yy_nxt[2266] =
564 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
565 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
566 24, 24, 24, 25, 26, 27, 28, 29, 30, 31,
567 31, 31, 31, 32, 31, 31, 33, 4, 34, 35,
568 36, 37, 38, 39, 40, 41, 42, 43, 31, 44,
569 31, 31, 45, 31, 46, 31, 47, 48, 49, 50,
570 51, 52, 53, 31, 31, 31, 54, 55, 56, 57,
571 60, 62, 63, 64, 69, 598, 74, 71, 75, 75,
572 75, 75, 94, 87, 76, 94, 70, 72, 73, 77,
573 65, 85, 92, 93, 149, 86, 96, 78, 88, 96,
575 89, 90, 61, 79, 598, 80, 80, 80, 80, 97,
576 94, 94, 60, 94, 98, 660, 81, 67, 94, 82,
577 82, 83, 165, 66, 96, 96, 94, 96, 96, 94,
578 104, 81, 96, 164, 105, 150, 106, 163, 82, 152,
579 96, 660, 100, 96, 61, 94, 82, 101, 94, 83,
580 79, 102, 84, 84, 84, 84, 94, 94, 107, 96,
581 103, 108, 96, 81, 129, 94, 82, 82, 109, 94,
582 96, 96, 110, 94, 132, 111, 99, 133, 81, 96,
583 112, 113, 91, 96, 114, 82, 68, 96, 117, 151,
584 118, 115, 123, 82, 116, 67, 94, 120, 94, 119,
586 121, 134, 124, 122, 58, 130, 125, 60, 94, 131,
587 96, 94, 96, 126, 127, 660, 67, 94, 128, 94,
588 94, 159, 96, 159, 94, 96, 160, 160, 160, 160,
589 660, 96, 135, 96, 96, 136, 137, 141, 96, 61,
590 660, 94, 660, 94, 94, 660, 138, 139, 145, 140,
591 660, 143, 147, 142, 146, 96, 144, 96, 96, 148,
592 75, 75, 75, 75, 155, 155, 155, 155, 94, 82,
593 82, 153, 154, 176, 154, 156, 157, 660, 157, 179,
594 94, 94, 96, 660, 660, 180, 153, 154, 82, 177,
595 156, 157, 183, 154, 96, 96, 82, 157, 79, 94,
597 80, 80, 80, 80, 660, 94, 94, 94, 94, 94,
598 94, 81, 660, 96, 158, 158, 660, 182, 178, 96,
599 96, 96, 96, 96, 96, 94, 81, 660, 660, 94,
600 181, 184, 660, 158, 660, 94, 94, 185, 660, 96,
601 94, 158, 94, 96, 660, 188, 191, 94, 189, 96,
602 96, 186, 192, 193, 96, 94, 96, 187, 190, 660,
603 660, 96, 660, 660, 660, 94, 660, 94, 660, 96,
604 660, 94, 660, 198, 166, 167, 168, 169, 170, 96,
605 194, 96, 171, 660, 195, 96, 199, 196, 94, 660,
606 172, 173, 174, 94, 175, 94, 94, 197, 94, 94,
608 94, 660, 96, 200, 94, 94, 660, 96, 94, 96,
609 96, 94, 96, 96, 96, 201, 94, 202, 96, 96,
610 94, 660, 96, 660, 94, 96, 660, 204, 660, 660,
611 96, 94, 660, 94, 96, 203, 205, 213, 96, 94,
612 211, 208, 209, 206, 207, 96, 212, 96, 221, 214,
613 660, 222, 210, 96, 218, 217, 215, 225, 219, 660,
614 94, 216, 223, 94, 224, 94, 94, 94, 94, 660,
615 94, 226, 660, 227, 96, 660, 220, 96, 660, 96,
616 96, 96, 96, 237, 96, 237, 228, 660, 238, 238,
617 238, 238, 241, 94, 241, 158, 158, 242, 242, 242,
619 242, 94, 94, 230, 660, 229, 233, 96, 236, 234,
620 660, 660, 231, 232, 158, 96, 96, 235, 155, 155,
621 155, 155, 158, 160, 160, 160, 160, 94, 94, 239,
622 240, 660, 240, 94, 160, 160, 160, 160, 244, 244,
623 94, 96, 96, 261, 239, 240, 243, 96, 243, 660,
624 94, 240, 250, 660, 96, 660, 254, 244, 94, 94,
625 660, 243, 660, 251, 96, 244, 94, 243, 94, 253,
626 247, 660, 96, 96, 252, 94, 248, 249, 94, 94,
627 96, 94, 96, 94, 660, 255, 256, 94, 94, 96,
628 94, 94, 96, 96, 660, 96, 660, 96, 257, 660,
630 660, 96, 96, 94, 96, 96, 94, 94, 258, 264,
631 263, 262, 260, 266, 259, 94, 94, 96, 94, 267,
632 96, 96, 94, 272, 94, 265, 660, 94, 94, 96,
633 96, 94, 96, 660, 660, 268, 96, 269, 96, 270,
634 271, 96, 96, 273, 660, 96, 94, 275, 276, 660,
635 94, 274, 94, 660, 278, 94, 277, 281, 279, 94,
636 96, 94, 280, 282, 96, 94, 96, 284, 660, 96,
637 660, 94, 283, 96, 94, 96, 94, 94, 291, 96,
638 94, 94, 285, 94, 286, 96, 94, 660, 96, 94,
639 96, 96, 94, 295, 96, 96, 660, 96, 94, 660,
641 96, 287, 94, 96, 94, 288, 96, 94, 94, 289,
642 292, 290, 96, 294, 293, 660, 96, 94, 96, 94,
643 94, 96, 96, 94, 660, 300, 94, 94, 297, 298,
644 94, 96, 296, 96, 96, 94, 94, 96, 299, 660,
645 96, 96, 94, 301, 96, 94, 660, 94, 94, 96,
646 96, 306, 302, 303, 660, 304, 96, 305, 94, 96,
647 309, 96, 96, 660, 94, 660, 94, 307, 244, 244,
648 94, 312, 96, 660, 308, 94, 660, 310, 96, 311,
649 96, 660, 94, 317, 96, 315, 313, 244, 314, 96,
650 318, 238, 238, 238, 238, 244, 96, 316, 319, 238,
652 238, 238, 238, 242, 242, 242, 242, 660, 660, 320,
653 321, 154, 321, 154, 94, 322, 322, 322, 322, 242,
654 242, 242, 242, 94, 94, 325, 154, 94, 96, 94,
655 94, 157, 154, 157, 94, 94, 94, 96, 96, 94,
656 660, 96, 94, 96, 96, 94, 157, 94, 96, 96,
657 96, 94, 157, 96, 323, 94, 96, 660, 94, 96,
658 660, 96, 94, 327, 326, 96, 660, 324, 329, 96,
659 94, 335, 96, 660, 328, 660, 96, 94, 331, 94,
660 330, 660, 94, 334, 96, 332, 94, 338, 333, 336,
661 337, 96, 340, 96, 660, 339, 96, 94, 660, 94,
663 96, 94, 94, 94, 94, 94, 94, 94, 341, 94,
664 94, 96, 342, 96, 94, 96, 96, 96, 96, 96,
665 96, 96, 660, 96, 96, 660, 94, 94, 96, 94,
666 94, 343, 346, 94, 349, 94, 344, 345, 347, 348,
667 96, 96, 660, 96, 96, 94, 94, 96, 94, 96,
668 351, 94, 94, 354, 350, 94, 352, 355, 94, 96,
669 96, 353, 96, 362, 94, 96, 96, 660, 660, 96,
670 94, 94, 96, 94, 94, 356, 94, 660, 96, 94,
671 358, 360, 357, 359, 96, 96, 94, 96, 96, 94,
672 96, 361, 660, 96, 94, 94, 365, 660, 363, 94,
674 96, 94, 94, 96, 364, 94, 366, 94, 96, 96,
675 660, 367, 94, 96, 94, 96, 96, 660, 660, 96,
676 660, 96, 368, 94, 370, 372, 96, 369, 96, 371,
677 94, 375, 373, 660, 374, 377, 94, 96, 94, 379,
678 94, 380, 94, 94, 96, 378, 660, 381, 376, 94,
679 96, 94, 96, 94, 96, 94, 96, 96, 322, 322,
680 322, 322, 94, 96, 660, 96, 94, 96, 382, 96,
681 660, 660, 660, 660, 383, 660, 96, 94, 387, 660,
682 96, 384, 386, 322, 322, 322, 322, 388, 94, 392,
683 385, 96, 94, 389, 94, 240, 391, 240, 94, 390,
685 94, 660, 96, 94, 94, 94, 96, 397, 96, 94,
686 240, 94, 96, 94, 96, 393, 240, 96, 96, 96,
687 394, 94, 94, 96, 395, 96, 660, 96, 94, 94,
688 94, 660, 396, 94, 660, 96, 96, 400, 94, 660,
689 401, 402, 96, 96, 96, 399, 406, 96, 398, 94,
690 403, 660, 96, 405, 94, 94, 404, 94, 94, 407,
691 94, 660, 94, 96, 94, 409, 94, 660, 96, 96,
692 94, 96, 96, 94, 96, 408, 96, 94, 96, 660,
693 96, 410, 94, 660, 96, 411, 660, 96, 660, 94,
694 94, 96, 94, 414, 415, 660, 96, 412, 413, 94,
696 418, 94, 420, 96, 96, 660, 96, 416, 94, 417,
697 94, 419, 94, 96, 660, 96, 94, 94, 94, 422,
698 94, 94, 96, 94, 96, 423, 96, 421, 429, 94,
699 96, 96, 96, 94, 96, 96, 94, 96, 94, 94,
700 94, 660, 660, 96, 427, 94, 424, 96, 660, 94,
701 96, 425, 96, 96, 96, 431, 426, 433, 432, 96,
702 94, 430, 428, 96, 660, 435, 94, 660, 94, 660,
703 437, 94, 434, 94, 96, 94, 440, 94, 438, 94,
704 96, 441, 96, 439, 660, 96, 436, 96, 94, 96,
705 94, 96, 94, 96, 660, 94, 660, 660, 443, 94,
707 94, 94, 96, 445, 96, 442, 96, 94, 444, 96,
708 447, 455, 94, 96, 96, 96, 94, 448, 94, 660,
709 446, 96, 94, 94, 660, 94, 96, 94, 660, 94,
710 96, 660, 96, 450, 660, 94, 96, 96, 449, 96,
711 94, 96, 451, 96, 452, 453, 454, 94, 457, 96,
712 458, 94, 94, 94, 96, 456, 660, 94, 660, 462,
713 660, 96, 459, 660, 94, 96, 96, 96, 94, 94,
714 463, 96, 460, 660, 461, 465, 464, 466, 96, 94,
715 469, 94, 96, 96, 94, 467, 471, 468, 94, 473,
716 94, 94, 660, 96, 94, 96, 470, 94, 96, 94,
718 94, 660, 96, 94, 96, 96, 472, 474, 96, 94,
719 94, 96, 94, 96, 96, 475, 94, 96, 94, 94,
720 94, 660, 94, 96, 96, 476, 96, 94, 94, 478,
721 96, 660, 96, 96, 96, 479, 96, 94, 477, 94,
722 94, 96, 96, 94, 94, 481, 94, 94, 94, 660,
723 480, 96, 94, 96, 96, 94, 94, 96, 96, 94,
724 96, 96, 96, 482, 94, 94, 96, 660, 660, 96,
725 96, 485, 483, 96, 94, 660, 660, 484, 96, 96,
726 487, 491, 488, 94, 660, 660, 486, 489, 96, 493,
727 490, 94, 94, 94, 94, 94, 94, 96, 492, 494,
729 94, 94, 94, 94, 94, 96, 96, 96, 96, 96,
730 96, 94, 94, 660, 96, 96, 96, 96, 96, 660,
731 94, 495, 660, 660, 660, 96, 96, 497, 94, 499,
732 94, 94, 496, 498, 96, 94, 502, 501, 500, 94,
733 505, 503, 96, 506, 96, 96, 504, 507, 94, 96,
734 94, 94, 508, 96, 94, 94, 94, 660, 94, 94,
735 94, 94, 96, 94, 96, 96, 509, 511, 96, 96,
736 96, 512, 96, 96, 96, 96, 510, 96, 94, 94,
737 94, 94, 94, 660, 94, 660, 94, 94, 660, 515,
738 516, 94, 96, 96, 96, 96, 96, 519, 96, 513,
740 96, 96, 514, 660, 94, 96, 94, 94, 518, 94,
741 94, 94, 94, 522, 517, 94, 660, 523, 96, 94,
742 96, 96, 524, 96, 96, 96, 96, 520, 521, 96,
743 525, 94, 660, 96, 94, 660, 660, 660, 94, 94,
744 660, 526, 527, 529, 532, 96, 531, 94, 96, 530,
745 533, 528, 96, 96, 534, 94, 94, 94, 94, 660,
746 660, 96, 94, 94, 94, 94, 660, 94, 94, 96,
747 96, 96, 96, 537, 535, 94, 96, 96, 96, 96,
748 536, 96, 96, 660, 94, 660, 94, 94, 542, 96,
749 660, 94, 539, 94, 544, 94, 660, 538, 96, 549,
751 96, 96, 94, 94, 540, 96, 547, 96, 543, 96,
752 541, 548, 94, 94, 545, 546, 96, 96, 94, 94,
753 660, 94, 94, 94, 94, 550, 96, 96, 94, 660,
754 94, 94, 96, 96, 552, 96, 96, 96, 96, 553,
755 551, 660, 96, 554, 96, 96, 94, 94, 94, 556,
756 94, 94, 660, 557, 559, 561, 94, 94, 660, 562,
757 96, 96, 96, 555, 96, 96, 563, 558, 94, 94,
758 96, 96, 560, 660, 94, 94, 564, 94, 660, 566,
759 567, 94, 96, 96, 94, 94, 94, 569, 96, 96,
760 568, 96, 570, 94, 94, 96, 565, 660, 96, 96,
762 96, 660, 94, 94, 571, 94, 660, 96, 96, 94,
763 660, 573, 94, 94, 572, 574, 96, 96, 94, 96,
764 580, 94, 576, 96, 575, 577, 96, 96, 94, 660,
765 94, 94, 96, 94, 94, 96, 660, 94, 578, 94,
766 94, 660, 96, 582, 96, 96, 94, 96, 96, 94,
767 581, 96, 583, 96, 96, 579, 94, 94, 94, 584,
768 96, 585, 94, 96, 94, 94, 94, 94, 660, 94,
769 96, 96, 96, 660, 588, 587, 96, 94, 96, 96,
770 96, 96, 590, 96, 660, 586, 660, 94, 94, 593,
771 660, 96, 94, 94, 589, 94, 591, 596, 595, 597,
773 600, 96, 96, 594, 592, 94, 96, 96, 601, 96,
774 94, 94, 94, 94, 94, 94, 94, 94, 602, 96,
775 94, 660, 94, 94, 96, 96, 96, 96, 96, 96,
776 96, 96, 94, 660, 96, 603, 96, 96, 604, 660,
777 660, 660, 94, 94, 660, 94, 96, 607, 614, 660,
778 660, 612, 605, 610, 615, 613, 96, 96, 606, 96,
779 94, 608, 94, 609, 611, 94, 94, 94, 660, 94,
780 94, 94, 94, 94, 96, 618, 96, 94, 617, 96,
781 96, 96, 616, 96, 96, 96, 96, 96, 94, 660,
782 660, 96, 660, 94, 94, 619, 94, 94, 94, 94,
784 660, 621, 96, 623, 625, 620, 622, 96, 96, 94,
785 96, 96, 96, 96, 624, 94, 94, 94, 94, 660,
786 660, 94, 94, 96, 94, 626, 94, 94, 94, 96,
787 96, 96, 96, 627, 629, 96, 96, 94, 96, 632,
788 96, 96, 96, 94, 630, 94, 631, 94, 628, 94,
789 660, 96, 94, 660, 94, 660, 633, 96, 94, 96,
790 637, 96, 660, 96, 635, 634, 96, 640, 96, 636,
791 94, 94, 96, 638, 639, 94, 641, 94, 94, 642,
792 94, 660, 94, 94, 96, 96, 94, 94, 647, 96,
793 660, 96, 96, 644, 96, 643, 96, 96, 645, 94,
795 96, 96, 660, 660, 646, 94, 94, 94, 660, 650,
796 94, 94, 660, 96, 651, 660, 649, 648, 660, 96,
797 96, 96, 654, 660, 96, 96, 660, 660, 660, 660,
798 660, 653, 652, 660, 656, 660, 660, 655, 658, 660,
799 660, 659, 660, 660, 660, 660, 660, 660, 660, 660,
800 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
801 657, 59, 59, 59, 59, 59, 59, 59, 66, 66,
802 660, 66, 66, 66, 66, 95, 660, 660, 95, 95,
803 95, 161, 161, 162, 162, 245, 245, 245, 246, 246,
804 599, 599, 599, 599, 3, 660, 660, 660, 660, 660,
806 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
807 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
808 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
809 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
810 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
811 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
812 660, 660, 660, 660, 660
815 static yyconst short int yy_chk[2266] =
817 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
818 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
819 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
820 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
821 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
822 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
823 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
824 9, 12, 12, 13, 18, 599, 21, 20, 21, 21,
825 21, 21, 31, 27, 22, 37, 18, 20, 20, 22,
826 13, 25, 29, 29, 55, 25, 31, 22, 27, 37,
828 27, 27, 9, 23, 580, 23, 23, 23, 23, 32,
829 38, 36, 59, 32, 32, 67, 23, 98, 45, 23,
830 23, 23, 96, 67, 38, 36, 47, 32, 94, 39,
831 37, 23, 45, 93, 37, 55, 37, 89, 23, 74,
832 47, 61, 36, 39, 59, 41, 23, 36, 40, 23,
833 24, 36, 24, 24, 24, 24, 43, 42, 38, 41,
834 36, 39, 40, 24, 45, 48, 24, 24, 39, 44,
835 43, 42, 39, 46, 47, 39, 35, 47, 24, 48,
836 40, 40, 28, 44, 40, 24, 17, 46, 41, 66,
837 41, 40, 43, 24, 40, 14, 49, 42, 50, 41,
839 42, 48, 43, 42, 8, 46, 44, 97, 52, 46,
840 49, 51, 50, 44, 44, 3, 66, 95, 44, 101,
841 53, 81, 52, 81, 104, 51, 81, 81, 81, 81,
842 0, 95, 49, 101, 53, 49, 49, 50, 104, 97,
843 0, 105, 0, 108, 102, 0, 49, 49, 52, 49,
844 0, 51, 53, 50, 52, 105, 51, 108, 102, 53,
845 75, 75, 75, 75, 79, 79, 79, 79, 103, 82,
846 82, 75, 75, 101, 75, 79, 79, 0, 79, 104,
847 106, 107, 103, 0, 0, 105, 75, 75, 82, 102,
848 79, 79, 108, 75, 106, 107, 82, 79, 80, 109,
850 80, 80, 80, 80, 0, 110, 111, 112, 113, 114,
851 115, 80, 0, 109, 80, 80, 0, 107, 103, 110,
852 111, 112, 113, 114, 115, 120, 80, 0, 0, 116,
853 106, 109, 0, 80, 0, 117, 118, 110, 0, 120,
854 121, 80, 100, 116, 0, 113, 114, 119, 113, 117,
855 118, 111, 114, 115, 121, 122, 100, 112, 113, 0,
856 0, 119, 0, 0, 0, 123, 0, 124, 0, 122,
857 0, 125, 0, 120, 100, 100, 100, 100, 100, 123,
858 116, 124, 100, 0, 117, 125, 121, 118, 126, 0,
859 100, 100, 100, 127, 100, 128, 129, 119, 130, 131,
861 132, 0, 126, 122, 133, 135, 0, 127, 136, 128,
862 129, 134, 130, 131, 132, 123, 138, 124, 133, 135,
863 137, 0, 136, 0, 139, 134, 0, 127, 0, 0,
864 138, 140, 0, 141, 137, 126, 127, 133, 139, 142,
865 132, 129, 130, 127, 128, 140, 132, 141, 138, 134,
866 0, 138, 131, 142, 136, 135, 134, 139, 137, 0,
867 143, 134, 138, 144, 138, 145, 146, 147, 148, 0,
868 180, 140, 0, 141, 143, 0, 137, 144, 0, 145,
869 146, 147, 148, 153, 180, 153, 142, 0, 153, 153,
870 153, 153, 156, 176, 156, 158, 158, 156, 156, 156,
872 156, 167, 170, 144, 0, 143, 146, 176, 148, 146,
873 0, 0, 144, 145, 158, 167, 170, 147, 155, 155,
874 155, 155, 158, 159, 159, 159, 159, 166, 168, 155,
875 155, 0, 155, 169, 160, 160, 160, 160, 161, 161,
876 171, 166, 168, 176, 155, 155, 160, 169, 160, 0,
877 172, 155, 167, 0, 171, 0, 170, 161, 173, 174,
878 0, 160, 0, 168, 172, 161, 175, 160, 177, 169,
879 166, 0, 173, 174, 168, 178, 166, 166, 179, 181,
880 175, 182, 177, 183, 0, 171, 172, 184, 185, 178,
881 186, 187, 179, 181, 0, 182, 0, 183, 173, 0,
883 0, 184, 185, 188, 186, 187, 189, 200, 173, 179,
884 178, 177, 175, 182, 174, 190, 191, 188, 192, 183,
885 189, 200, 193, 187, 194, 181, 0, 195, 196, 190,
886 191, 197, 192, 0, 0, 184, 193, 185, 194, 186,
887 186, 195, 196, 188, 0, 197, 198, 190, 191, 0,
888 201, 189, 199, 0, 192, 202, 191, 194, 193, 203,
889 198, 204, 193, 195, 201, 206, 199, 197, 0, 202,
890 0, 205, 196, 203, 207, 204, 208, 209, 206, 206,
891 211, 212, 198, 210, 199, 205, 213, 0, 207, 215,
892 208, 209, 216, 210, 211, 212, 0, 210, 214, 0,
894 213, 202, 217, 215, 218, 203, 216, 221, 219, 204,
895 207, 205, 214, 209, 208, 0, 217, 222, 218, 220,
896 223, 221, 219, 224, 0, 215, 225, 226, 212, 213,
897 227, 222, 211, 220, 223, 228, 229, 224, 214, 0,
898 225, 226, 230, 216, 227, 231, 0, 232, 233, 228,
899 229, 222, 218, 219, 0, 220, 230, 221, 234, 231,
900 225, 232, 233, 0, 235, 0, 236, 223, 244, 244,
901 246, 228, 234, 0, 224, 249, 0, 226, 235, 227,
902 236, 0, 265, 233, 246, 231, 229, 244, 230, 249,
903 234, 237, 237, 237, 237, 244, 265, 232, 235, 238,
905 238, 238, 238, 241, 241, 241, 241, 0, 0, 236,
906 239, 238, 239, 238, 247, 239, 239, 239, 239, 242,
907 242, 242, 242, 248, 250, 249, 238, 251, 247, 252,
908 254, 242, 238, 242, 253, 255, 258, 248, 250, 256,
909 0, 251, 259, 252, 254, 257, 242, 260, 253, 255,
910 258, 261, 242, 256, 247, 262, 259, 0, 263, 257,
911 0, 260, 264, 251, 250, 261, 0, 248, 253, 262,
912 266, 258, 263, 0, 252, 0, 264, 267, 255, 268,
913 254, 0, 269, 257, 266, 255, 270, 261, 256, 259,
914 260, 267, 263, 268, 0, 262, 269, 271, 0, 272,
916 270, 275, 273, 276, 274, 277, 278, 279, 264, 280,
917 282, 271, 266, 272, 281, 275, 273, 276, 274, 277,
918 278, 279, 0, 280, 282, 0, 283, 284, 281, 285,
919 286, 269, 272, 287, 275, 288, 270, 271, 273, 274,
920 283, 284, 0, 285, 286, 289, 290, 287, 292, 288,
921 277, 291, 293, 280, 276, 294, 278, 281, 295, 289,
922 290, 279, 292, 291, 296, 291, 293, 0, 0, 294,
923 297, 298, 295, 299, 300, 284, 301, 0, 296, 302,
924 286, 289, 285, 288, 297, 298, 304, 299, 300, 303,
925 301, 290, 0, 302, 305, 307, 296, 0, 292, 306,
927 304, 308, 309, 303, 294, 310, 297, 311, 305, 307,
928 0, 298, 312, 306, 313, 308, 309, 0, 0, 310,
929 0, 311, 299, 314, 301, 303, 312, 300, 313, 302,
930 316, 306, 304, 0, 305, 308, 315, 314, 317, 310,
931 318, 311, 320, 319, 316, 309, 0, 312, 307, 323,
932 315, 325, 317, 326, 318, 327, 320, 319, 321, 321,
933 321, 321, 324, 323, 0, 325, 328, 326, 314, 327,
934 0, 0, 0, 0, 315, 0, 324, 329, 320, 0,
935 328, 316, 319, 322, 322, 322, 322, 323, 330, 327,
936 318, 329, 331, 324, 332, 322, 326, 322, 333, 325,
938 334, 0, 330, 335, 336, 338, 331, 332, 332, 337,
939 322, 339, 333, 341, 334, 328, 322, 335, 336, 338,
940 329, 340, 342, 337, 330, 339, 0, 341, 343, 344,
941 345, 0, 331, 346, 0, 340, 342, 335, 347, 0,
942 336, 337, 343, 344, 345, 334, 341, 346, 333, 348,
943 338, 0, 347, 340, 349, 350, 339, 351, 352, 343,
944 353, 0, 354, 348, 355, 346, 356, 0, 349, 350,
945 357, 351, 352, 358, 353, 345, 354, 359, 355, 0,
946 356, 347, 360, 0, 357, 348, 0, 358, 0, 361,
947 362, 359, 363, 351, 352, 0, 360, 349, 350, 364,
949 355, 365, 357, 361, 362, 0, 363, 353, 366, 354,
950 367, 356, 368, 364, 0, 365, 370, 371, 369, 360,
951 372, 373, 366, 374, 367, 361, 368, 359, 369, 375,
952 370, 371, 369, 376, 372, 373, 377, 374, 378, 379,
953 380, 0, 0, 375, 367, 381, 364, 376, 0, 382,
954 377, 365, 378, 379, 380, 372, 366, 374, 373, 381,
955 383, 370, 368, 382, 0, 376, 384, 0, 385, 0,
956 378, 386, 375, 387, 383, 388, 381, 390, 379, 389,
957 384, 381, 385, 380, 0, 386, 377, 387, 391, 388,
958 392, 390, 393, 389, 0, 394, 0, 0, 384, 397,
960 395, 396, 391, 386, 392, 383, 393, 398, 385, 394,
961 389, 397, 399, 397, 395, 396, 401, 390, 400, 0,
962 388, 398, 402, 404, 0, 403, 399, 405, 0, 408,
963 401, 0, 400, 392, 0, 406, 402, 404, 391, 403,
964 407, 405, 393, 408, 394, 395, 396, 409, 399, 406,
965 400, 410, 411, 412, 407, 398, 0, 413, 0, 404,
966 0, 409, 401, 0, 414, 410, 411, 412, 415, 416,
967 405, 413, 402, 0, 403, 407, 406, 407, 414, 417,
968 408, 418, 415, 416, 419, 407, 410, 407, 420, 412,
969 421, 422, 0, 417, 423, 418, 409, 424, 419, 425,
971 426, 0, 420, 427, 421, 422, 411, 413, 423, 428,
972 429, 424, 430, 425, 426, 416, 431, 427, 432, 433,
973 434, 0, 435, 428, 429, 417, 430, 436, 437, 424,
974 431, 0, 432, 433, 434, 425, 435, 438, 420, 439,
975 440, 436, 437, 441, 443, 428, 442, 444, 445, 0,
976 426, 438, 446, 439, 440, 447, 448, 441, 443, 449,
977 442, 444, 445, 434, 450, 451, 446, 0, 0, 447,
978 448, 439, 435, 449, 452, 0, 0, 437, 450, 451,
979 441, 445, 442, 453, 0, 0, 440, 443, 452, 448,
980 444, 454, 455, 456, 457, 458, 460, 453, 446, 449,
982 459, 461, 462, 463, 464, 454, 455, 456, 457, 458,
983 460, 465, 466, 0, 459, 461, 462, 463, 464, 0,
984 467, 452, 0, 0, 0, 465, 466, 454, 468, 457,
985 471, 469, 453, 456, 467, 470, 460, 459, 458, 472,
986 464, 461, 468, 465, 471, 469, 463, 465, 473, 470,
987 474, 475, 466, 472, 476, 477, 478, 0, 479, 480,
988 481, 482, 473, 483, 474, 475, 467, 469, 476, 477,
989 478, 470, 479, 480, 481, 482, 468, 483, 484, 485,
990 486, 487, 488, 0, 489, 0, 490, 491, 0, 477,
991 478, 493, 484, 485, 486, 487, 488, 483, 489, 475,
993 490, 491, 476, 0, 492, 493, 494, 495, 481, 496,
994 498, 500, 501, 486, 480, 497, 0, 488, 492, 499,
995 494, 495, 490, 496, 498, 500, 501, 484, 485, 497,
996 491, 502, 0, 499, 503, 0, 0, 0, 504, 505,
997 0, 492, 493, 495, 498, 502, 497, 506, 503, 496,
998 499, 494, 504, 505, 500, 507, 508, 509, 511, 0,
999 0, 506, 510, 512, 513, 514, 0, 515, 517, 507,
1000 508, 509, 511, 505, 502, 516, 510, 512, 513, 514,
1001 503, 515, 517, 0, 518, 0, 519, 520, 509, 516,
1002 0, 521, 507, 522, 512, 523, 0, 506, 518, 517,
1004 519, 520, 524, 525, 507, 521, 515, 522, 510, 523,
1005 508, 516, 526, 527, 513, 514, 524, 525, 528, 529,
1006 0, 530, 532, 531, 533, 519, 526, 527, 534, 0,
1007 535, 536, 528, 529, 522, 530, 532, 531, 533, 525,
1008 521, 0, 534, 526, 535, 536, 537, 538, 539, 528,
1009 540, 541, 0, 529, 531, 533, 542, 543, 0, 534,
1010 537, 538, 539, 527, 540, 541, 535, 530, 544, 545,
1011 542, 543, 532, 0, 546, 547, 536, 548, 0, 538,
1012 539, 549, 544, 545, 550, 551, 552, 541, 546, 547,
1013 540, 548, 542, 553, 554, 549, 537, 0, 550, 551,
1015 552, 0, 555, 556, 543, 558, 0, 553, 554, 559,
1016 0, 547, 560, 561, 544, 549, 555, 556, 557, 558,
1017 557, 562, 552, 559, 550, 554, 560, 561, 563, 0,
1018 564, 565, 557, 566, 567, 562, 0, 568, 555, 569,
1019 570, 0, 563, 560, 564, 565, 571, 566, 567, 572,
1020 558, 568, 562, 569, 570, 556, 573, 574, 575, 563,
1021 571, 564, 577, 572, 576, 583, 578, 579, 0, 581,
1022 573, 574, 575, 0, 569, 568, 577, 582, 576, 583,
1023 578, 579, 571, 581, 0, 567, 0, 584, 585, 574,
1024 0, 582, 586, 587, 570, 588, 572, 578, 576, 579,
1026 581, 584, 585, 575, 573, 589, 586, 587, 582, 588,
1027 590, 591, 592, 593, 595, 594, 601, 597, 584, 589,
1028 596, 0, 602, 600, 590, 591, 592, 593, 595, 594,
1029 601, 597, 603, 0, 596, 586, 602, 600, 587, 0,
1030 0, 0, 604, 605, 0, 606, 603, 591, 597, 0,
1031 0, 596, 589, 594, 600, 596, 604, 605, 590, 606,
1032 607, 592, 608, 593, 595, 609, 610, 611, 0, 612,
1033 613, 614, 615, 616, 607, 605, 608, 617, 604, 609,
1034 610, 611, 603, 612, 613, 614, 615, 616, 618, 0,
1035 0, 617, 0, 619, 620, 606, 621, 622, 623, 624,
1037 0, 609, 618, 614, 616, 607, 613, 619, 620, 625,
1038 621, 622, 623, 624, 614, 626, 627, 628, 629, 0,
1039 0, 630, 631, 625, 632, 617, 633, 634, 635, 626,
1040 627, 628, 629, 618, 621, 630, 631, 637, 632, 624,
1041 633, 634, 635, 636, 622, 638, 623, 639, 619, 641,
1042 0, 637, 640, 0, 642, 0, 625, 636, 643, 638,
1043 631, 639, 0, 641, 629, 627, 640, 634, 642, 630,
1044 644, 645, 643, 632, 633, 646, 635, 647, 648, 636,
1045 649, 0, 650, 651, 644, 645, 652, 653, 642, 646,
1046 0, 647, 648, 639, 649, 638, 650, 651, 640, 654,
1048 652, 653, 0, 0, 641, 655, 657, 656, 0, 647,
1049 658, 659, 0, 654, 648, 0, 645, 644, 0, 655,
1050 657, 656, 652, 0, 658, 659, 0, 0, 0, 0,
1051 0, 651, 650, 0, 654, 0, 0, 653, 656, 0,
1052 0, 658, 0, 0, 0, 0, 0, 0, 0, 0,
1053 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1054 655, 661, 661, 661, 661, 661, 661, 661, 662, 662,
1055 0, 662, 662, 662, 662, 663, 0, 0, 663, 663,
1056 663, 664, 664, 665, 665, 666, 666, 666, 667, 667,
1057 668, 668, 668, 668, 660, 660, 660, 660, 660, 660,
1059 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
1060 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
1061 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
1062 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
1063 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
1064 660, 660, 660, 660, 660, 660, 660, 660, 660, 660,
1065 660, 660, 660, 660, 660
1068 static yy_state_type yy_last_accepting_state;
1069 static char *yy_last_accepting_cpos;
1071 /* The intent behind this definition is that it'll catch
1072 * any uses of REJECT which flex missed.
1074 #define REJECT reject_used_but_not_detected
1075 #define yymore() yymore_used_but_not_detected
1076 #define YY_MORE_ADJ 0
1077 #define YY_RESTORE_YY_MORE_OFFSET
1083 #define YYLTYPE Location
1084 #define YY_NEVER_INTERACTIVE 1 // Avoid calling isatty on eC File object
1086 #include "grammar.h"
1089 public void SetEchoOn(bool b) { echoOn = b; }
1091 extern YYLTYPE type_yylloc;
1092 extern YYLTYPE expression_yylloc;
1094 extern File fileInput;
1100 yylloc.end.charPos += yyleng;
1101 yylloc.end.pos += yyleng;
1102 type_yylloc.end.charPos += yyleng;
1103 type_yylloc.end.pos += yyleng;
1104 expression_yylloc.end.charPos += yyleng;
1105 expression_yylloc.end.pos += yyleng;
1108 #define YY_USER_ACTION \
1112 yylloc.end.charPos += yyleng;
1113 yylloc.end.pos += yyleng;
1116 #define YY_INPUT(buf,result,max_size) \
1117 result = fileInput.Read(buf, 1, max_size) \
1119 YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
1120 File fileStack[MAX_INCLUDE_DEPTH];
1121 char sourceFileStack[MAX_INCLUDE_DEPTH][MAX_LOCATION];
1122 public void SetSomeSourceFileStack(char * fileName, int index) { strcpy(sourceFileStack[index], fileName); }
1123 YYLTYPE locStack[MAX_INCLUDE_DEPTH];
1124 AccessMode declModeStack[MAX_INCLUDE_DEPTH];
1125 int include_stack_ptr = 0;
1130 #line 1130 "lexer.ec"
1132 /* Macros after this point can all be overridden by user definitions in
1136 #ifndef YY_SKIP_YYWRAP
1138 extern "C" int yywrap YY_PROTO(( void ));
1140 extern int yywrap YY_PROTO(( void ));
1145 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
1149 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
1152 #ifdef YY_NEED_STRLEN
1153 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
1158 static int yyinput YY_PROTO(( void ));
1160 static int input YY_PROTO(( void ));
1165 static int yy_start_stack_ptr = 0;
1166 static int yy_start_stack_depth = 0;
1167 static int *yy_start_stack = 0;
1168 #ifndef YY_NO_PUSH_STATE
1169 static void yy_push_state YY_PROTO(( int new_state ));
1171 #ifndef YY_NO_POP_STATE
1172 static void yy_pop_state YY_PROTO(( void ));
1174 #ifndef YY_NO_TOP_STATE
1175 static int yy_top_state YY_PROTO(( void ));
1179 #define YY_NO_PUSH_STATE 1
1180 #define YY_NO_POP_STATE 1
1181 #define YY_NO_TOP_STATE 1
1184 #ifdef YY_MALLOC_DECL
1192 /* Just try to get by without declaring the routines. This will fail
1193 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1194 * or sizeof(void*) != sizeof(int).
1199 /* Amount of stuff to slurp up with each read. */
1200 #ifndef YY_READ_BUF_SIZE
1201 #define YY_READ_BUF_SIZE 8192
1204 /* Copy whatever the last rule matched to the standard output. */
1207 /* This used to be an fputs(), but since the string might contain NUL's,
1208 * we now use fwrite().
1210 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1213 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1214 * is returned in "result".
1217 #define YY_INPUT(buf,result,max_size) \
1218 if ( yy_current_buffer->yy_is_interactive ) \
1221 for ( n = 0; n < max_size && \
1222 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1223 buf[n] = (char) c; \
1225 buf[n++] = (char) c; \
1226 if ( c == EOF && ferror( yyin ) ) \
1227 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1230 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1231 && ferror( yyin ) ) \
1232 YY_FATAL_ERROR( "input in flex scanner failed" );
1235 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1236 * we don't want an extra ';' after the "return" because that will cause
1237 * some compilers to complain about unreachable statements.
1240 #define yyterminate() return YY_NULL
1243 /* Number of entries by which start-condition stack grows. */
1244 #ifndef YY_START_STACK_INCR
1245 #define YY_START_STACK_INCR 25
1248 /* Report a fatal error. */
1249 #ifndef YY_FATAL_ERROR
1250 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1253 /* Default declaration of generated scanner - a define so the user can
1254 * easily add parameters.
1257 #define YY_DECL int yylex YY_PROTO(( void ))
1260 /* Code executed at the beginning of each rule, after yytext and yyleng
1263 #ifndef YY_USER_ACTION
1264 #define YY_USER_ACTION
1267 /* Code executed at the end of each rule. */
1269 #define YY_BREAK break;
1272 #define YY_RULE_SETUP \
1277 register yy_state_type yy_current_state;
1278 register char *yy_cp, *yy_bp;
1279 register int yy_act;
1285 yylloc.start = yylloc.end;
1286 type_yylloc.start = type_yylloc.end;
1287 expression_yylloc.start = expression_yylloc.end;
1290 #line 1290 "lexer.ec"
1301 yy_start = 1; /* first start state */
1309 if ( ! yy_current_buffer )
1311 yy_create_buffer( yyin, YY_BUF_SIZE );
1313 yy_load_buffer_state();
1316 while ( 1 ) /* loops until end-of-file is reached */
1320 /* Support of yytext. */
1321 *yy_cp = yy_hold_char;
1323 /* yy_bp points to the position in yy_ch_buf of the start of
1328 yy_current_state = yy_start;
1332 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1333 if ( yy_accept[yy_current_state] )
1335 yy_last_accepting_state = yy_current_state;
1336 yy_last_accepting_cpos = yy_cp;
1338 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1340 yy_current_state = (int) yy_def[yy_current_state];
1341 if ( yy_current_state >= 661 )
1342 yy_c = yy_meta[(unsigned int) yy_c];
1344 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1347 while ( yy_base[yy_current_state] != 2195 );
1350 yy_act = yy_accept[yy_current_state];
1352 { /* have to back up */
1353 yy_cp = yy_last_accepting_cpos;
1354 yy_current_state = yy_last_accepting_state;
1355 yy_act = yy_accept[yy_current_state];
1358 YY_DO_BEFORE_ACTION;
1361 do_action: /* This label is used only to access EOF actions. */
1365 { /* beginning of action switch */
1366 case 0: /* must back up */
1367 /* undo the effects of YY_DO_BEFORE_ACTION */
1368 *yy_cp = yy_hold_char;
1369 yy_cp = yy_last_accepting_cpos;
1370 yy_current_state = yy_last_accepting_state;
1371 goto yy_find_action;
1416 { return(CONTINUE); }
1421 { return(DEFAULT); }
1478 /* "uint16" { return(UINT16); } */
1479 /* "uint32" { return(UINT32); } */
1480 /* "bool" { return(BOOL_TOKEN); } */
1489 { return(REGISTER); }
1524 { return(ALIGNOF); }
1544 { return(TYPEDEF); }
1554 { return(UNSIGNED); }
1564 { return(VOLATILE); }
1569 { return(VOLATILE); }
1574 { return(VOLATILE); }
1584 { return(PROPERTY); }
1589 { return(SETPROP); } // TODO: Don't make this a keyword...
1594 { return(GETPROP); } // TODO: Don't make this a keyword...
1599 { return(ISPROPSET); } // TODO: Don't make this a keyword...
1609 { return(THISCLASS); }
1614 { return(VIRTUAL); }
1671 /* "__attribute__".?"(("({D}|{L})*"))" { return(EXT_ATTRIB); } */
1672 /* DID I MEAN? "__attribute__"" "*"(("" "*({D}|{L})*" "*("("({D}|{L})*(" "*","" "*({D}|{L})*)*" "*")")?" "*"))" { return(EXT_ATTRIB); } */
1674 "__attribute_deprecated__"(" "*)"(("(" "*)({D}|{L})*(" "*)("("({D}|{L}|\")*((" "*)","(" "*)({D}|{L}|\")*)*(" "*)")")?(" "*)(","(" "*)({D}|{L})*(" "*)("("({D}|{L}|\")*((" "*)","(" "*)({D}|{L}|\")*)*(" "*)")")?(" "*))*"))" { return(EXT_ATTRIB); }
1675 "__attribute__" (" "*)"(("(" "*)({D}|{L})*(" "*)("("({D}|{L}|\")*((" "*)","(" "*)({D}|{L}|\")*)*(" "*)")")?(" "*)(","(" "*)({D}|{L})*(" "*)("("({D}|{L}|\")*((" "*)","(" "*)({D}|{L}|\")*)*(" "*)")")?(" "*))*"))" { return(EXT_ATTRIB); }
1676 "__attribute" (" "*)"(("(" "*)({D}|{L})*(" "*)("("({D}|{L}|\")*((" "*)","(" "*)({D}|{L}|\")*)*(" "*)")")?(" "*)(","(" "*)({D}|{L})*(" "*)("("({D}|{L}|\")*((" "*)","(" "*)({D}|{L}|\")*)*(" "*)")")?(" "*))*"))" { return(EXT_ATTRIB); }
1679 [__attribute__] [spaces]
1681 [digits | letters] [spaces]
1682 ( [(] [digits or letters or "] ( [spaces] [,] [spaces] [digits or letters or "] )* [spaces] [)] )?
1684 ( [,] [spaces] [digits or letters] [spaces]
1685 ( [(] [digits or letters or "]
1686 ( [spaces] [,] [spaces] [digits or letters or "] )* [spaces] [)]
1691 /* "__attribute__".?"((".?({D}|{L})*.?("("({D}|{L})*(.?",".?({D}|{L})*)*.?")")?.?"))" { return(EXT_ATTRIB); } */
1692 /* "__attribute".?"((".?({D}|{L})*.?("("({D}|{L})*(.?",".?({D}|{L})*)*.?")")?.?"))" { return(EXT_ATTRIB); }*/
1696 { return ATTRIB_DEP; }
1706 { return __ATTRIB; }
1711 { return(EXT_STORAGE); }
1716 { return(EXT_STORAGE); }
1721 { return(EXT_STORAGE); }
1726 { return(EXT_STORAGE); }
1731 { return(EXT_STORAGE); }
1736 { return(EXT_STORAGE); }
1741 { return(EXT_STORAGE); }
1746 { return(EXT_DECL); }
1751 { return(EXT_DECL); }
1756 { return(EXT_DECL); }
1761 { return(EXT_DECL); }
1766 { return(EXT_DECL); }
1771 { return(EXT_DECL); }
1776 { return(EXT_DECL); }
1781 { return(EXT_DECL); }
1791 { return(PRIVATE); }
1796 { return(TYPED_OBJECT); }
1801 { return(ANY_OBJECT); }
1806 { return(_INCREF); }
1811 { return(EXTENSION); }
1816 { return(EXTENSION); }
1846 { return(STOPWATCHING); }
1851 { return(FIREWATCHERS); }
1856 { return(WATCHABLE); }
1861 { return(CLASS_DESIGNER); }
1866 { return(CLASS_NO_EXPANSION); }
1871 { return(CLASS_FIXED); }
1876 { return(CLASS_DEFAULT_PROPERTY); }
1881 { return(PROPERTY_CATEGORY); }
1886 { return(CLASS_DATA); }
1891 { return(CLASS_PROPERTY); }
1896 { return(SUBCLASS); }
1901 { return(NAMESPACE); }
1906 { return(DBTABLE); }
1911 { return(DBFIELD); }
1916 { return(DBINDEX); }
1921 { return(DATABASE_OPEN); }
1926 { return(check_type()); } // {L}({L}|{D})* { return(check_type()); } // ("::"|(({IDENT}"::")*)){IDENT} { return(check_type()); } // {L}({L}|{D})* { return(check_type()); }
1931 { return(CONSTANT); }
1936 { return(CONSTANT); }
1941 { return(CONSTANT); }
1946 { return(CONSTANT); }
1951 { return(CONSTANT); }
1956 { return(CONSTANT); }
1961 { return(CONSTANT); }
1966 { return(STRING_LITERAL); }
1971 { return(ELLIPSIS); }
1976 { return(RIGHT_ASSIGN); }
1981 { return(LEFT_ASSIGN); }
1986 { return(ADD_ASSIGN); }
1991 { return(SUB_ASSIGN); }
1996 { return(MUL_ASSIGN); }
2001 { return(DIV_ASSIGN); }
2006 { return(MOD_ASSIGN); }
2011 { return(AND_ASSIGN); }
2016 { return(XOR_ASSIGN); }
2021 { return(OR_ASSIGN); }
2026 { return(RIGHT_OP); }
2031 { return(LEFT_OP); }
2078 /* "::" { return(CLASS_OP); } */
2204 case YY_STATE_EOF(INITIAL):
2207 while(include_stack_ptr && !fileStack[include_stack_ptr-1])
2209 --include_stack_ptr;
2210 defaultDeclMode = declMode = declModeStack[include_stack_ptr];
2213 if ( --include_stack_ptr < 0 )
2215 include_stack_ptr = 0;
2221 yy_delete_buffer( YY_CURRENT_BUFFER );
2222 fileInput = fileStack[include_stack_ptr];
2223 yylloc = locStack[include_stack_ptr];
2224 type_yylloc = locStack[include_stack_ptr];
2225 expression_yylloc = locStack[include_stack_ptr];
2226 yy_switch_to_buffer(include_stack[include_stack_ptr] );
2227 defaultDeclMode = declMode = declModeStack[include_stack_ptr];
2234 { yylloc.start = yylloc.end; type_yylloc.start = type_yylloc.end; expression_yylloc.start = expression_yylloc.end;}
2240 yylloc.end.charPos = 1; yylloc.end.line += yyleng; yylloc.start = yylloc.end;
2241 type_yylloc.end.charPos = 1; type_yylloc.end.line += yyleng; type_yylloc.start = type_yylloc.end;
2242 expression_yylloc.end.charPos = 1; expression_yylloc.end.line += yyleng; expression_yylloc.start = expression_yylloc.end;
2249 yylloc.start.charPos++ /*= 3 - (yylloc.start.col % 3)*/; yylloc.end.charPos = yylloc.start.charPos; yylloc.start.pos = yylloc.end.pos;
2250 expression_yylloc.start.charPos++ /*= 3 - (expression_yylloc.start.col % 3)*/; expression_yylloc.end.charPos = expression_yylloc.start.charPos; expression_yylloc.start.pos = expression_yylloc.end.pos;
2251 type_yylloc.start.charPos++ /*= 3 - (type_yylloc.start.col % 3)*/; type_yylloc.end.charPos = type_yylloc.start.charPos; type_yylloc.start.pos = type_yylloc.end.pos;
2257 { yylloc.start = yylloc.end; expression_yylloc.start = expression_yylloc.end; type_yylloc.start = type_yylloc.end; }
2264 #line 2264 "lexer.ec"
2266 case YY_END_OF_BUFFER:
2268 /* Amount of text matched not including the EOB char. */
2269 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
2271 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2272 *yy_cp = yy_hold_char;
2273 YY_RESTORE_YY_MORE_OFFSET
2275 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
2277 /* We're scanning a new file or input source. It's
2278 * possible that this happened because the user
2279 * just pointed yyin at a new source and called
2280 * yylex(). If so, then we have to assure
2281 * consistency between yy_current_buffer and our
2282 * globals. Here is the right place to do so, because
2283 * this is the first action (other than possibly a
2284 * back-up) that will match for the new input source.
2286 yy_n_chars = yy_current_buffer->yy_n_chars;
2287 yy_current_buffer->yy_input_file = yyin;
2288 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
2291 /* Note that here we test for yy_c_buf_p "<=" to the position
2292 * of the first EOB in the buffer, since yy_c_buf_p will
2293 * already have been incremented past the NUL character
2294 * (since all states make transitions on EOB to the
2295 * end-of-buffer state). Contrast this with the test
2298 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2299 { /* This was really a NUL. */
2300 yy_state_type yy_next_state;
2302 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
2304 yy_current_state = yy_get_previous_state();
2306 /* Okay, we're now positioned to make the NUL
2307 * transition. We couldn't have
2308 * yy_get_previous_state() go ahead and do it
2309 * for us because it doesn't know how to deal
2310 * with the possibility of jamming (and we don't
2311 * want to build jamming into it because then it
2312 * will run more slowly).
2315 yy_next_state = yy_try_NUL_trans( yy_current_state );
2317 yy_bp = yytext_ptr + YY_MORE_ADJ;
2319 if ( yy_next_state )
2321 /* Consume the NUL. */
2322 yy_cp = ++yy_c_buf_p;
2323 yy_current_state = yy_next_state;
2330 goto yy_find_action;
2334 else switch ( yy_get_next_buffer() )
2336 case EOB_ACT_END_OF_FILE:
2338 yy_did_buffer_switch_on_eof = 0;
2342 /* Note: because we've taken care in
2343 * yy_get_next_buffer() to have set up
2344 * yytext, we can now set up
2345 * yy_c_buf_p so that if some total
2346 * hoser (like flex itself) wants to
2347 * call the scanner after we return the
2348 * YY_NULL, it'll still work - another
2349 * YY_NULL will get returned.
2351 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
2353 yy_act = YY_STATE_EOF(YY_START);
2359 if ( ! yy_did_buffer_switch_on_eof )
2365 case EOB_ACT_CONTINUE_SCAN:
2367 yytext_ptr + yy_amount_of_matched_text;
2369 yy_current_state = yy_get_previous_state();
2372 yy_bp = yytext_ptr + YY_MORE_ADJ;
2375 case EOB_ACT_LAST_MATCH:
2377 &yy_current_buffer->yy_ch_buf[yy_n_chars];
2379 yy_current_state = yy_get_previous_state();
2382 yy_bp = yytext_ptr + YY_MORE_ADJ;
2383 goto yy_find_action;
2390 "fatal flex scanner internal error--no action found" );
2391 } /* end of action switch */
2392 } /* end of scanning one token */
2393 } /* end of yylex */
2396 /* yy_get_next_buffer - try to read in a new buffer
2398 * Returns a code representing an action:
2399 * EOB_ACT_LAST_MATCH -
2400 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2401 * EOB_ACT_END_OF_FILE - end of file
2404 static int yy_get_next_buffer()
2406 register char *dest = yy_current_buffer->yy_ch_buf;
2407 register char *source = yytext_ptr;
2408 register int number_to_move, i;
2411 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
2413 "fatal flex scanner internal error--end of buffer missed" );
2415 if ( yy_current_buffer->yy_fill_buffer == 0 )
2416 { /* Don't try to fill the buffer, so this is an EOF. */
2417 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2419 /* We matched a single character, the EOB, so
2420 * treat this as a final EOF.
2422 return EOB_ACT_END_OF_FILE;
2427 /* We matched some text prior to the EOB, first
2430 return EOB_ACT_LAST_MATCH;
2434 /* Try to read more data. */
2436 /* First move last chars to start of buffer. */
2437 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2439 for ( i = 0; i < number_to_move; ++i )
2440 *(dest++) = *(source++);
2442 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2443 /* don't do the read, it's not guaranteed to return an EOF,
2446 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2451 yy_current_buffer->yy_buf_size - number_to_move - 1;
2453 while ( num_to_read <= 0 )
2454 { /* Not enough room in the buffer - grow it. */
2455 #ifdef YY_USES_REJECT
2457 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2460 /* just a shorter name for the current buffer */
2461 YY_BUFFER_STATE b = yy_current_buffer;
2463 int yy_c_buf_p_offset =
2464 (int) (yy_c_buf_p - b->yy_ch_buf);
2466 if ( b->yy_is_our_buffer )
2468 int new_size = b->yy_buf_size * 2;
2470 if ( new_size <= 0 )
2471 b->yy_buf_size += b->yy_buf_size / 8;
2473 b->yy_buf_size *= 2;
2475 b->yy_ch_buf = (char *)
2476 /* Include room in for 2 EOB chars. */
2477 yy_flex_realloc( (void *) b->yy_ch_buf,
2478 b->yy_buf_size + 2 );
2481 /* Can't grow it, we don't own it. */
2484 if ( ! b->yy_ch_buf )
2486 "fatal error - scanner input buffer overflow" );
2488 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2490 num_to_read = yy_current_buffer->yy_buf_size -
2495 if ( num_to_read > YY_READ_BUF_SIZE )
2496 num_to_read = YY_READ_BUF_SIZE;
2498 /* Read in more data. */
2499 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2500 yy_n_chars, num_to_read );
2502 yy_current_buffer->yy_n_chars = yy_n_chars;
2505 if ( yy_n_chars == 0 )
2507 if ( number_to_move == YY_MORE_ADJ )
2509 ret_val = EOB_ACT_END_OF_FILE;
2515 ret_val = EOB_ACT_LAST_MATCH;
2516 yy_current_buffer->yy_buffer_status =
2517 YY_BUFFER_EOF_PENDING;
2522 ret_val = EOB_ACT_CONTINUE_SCAN;
2524 yy_n_chars += number_to_move;
2525 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2526 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2528 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2534 /* yy_get_previous_state - get the state just before the EOB char was reached */
2536 static yy_state_type yy_get_previous_state()
2538 register yy_state_type yy_current_state;
2539 register char *yy_cp;
2541 yy_current_state = yy_start;
2543 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2545 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2546 if ( yy_accept[yy_current_state] )
2548 yy_last_accepting_state = yy_current_state;
2549 yy_last_accepting_cpos = yy_cp;
2551 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2553 yy_current_state = (int) yy_def[yy_current_state];
2554 if ( yy_current_state >= 661 )
2555 yy_c = yy_meta[(unsigned int) yy_c];
2557 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2560 return yy_current_state;
2564 /* yy_try_NUL_trans - try to make a transition on the NUL character
2567 * next_state = yy_try_NUL_trans( current_state );
2570 #ifdef YY_USE_PROTOS
2571 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2573 static yy_state_type yy_try_NUL_trans( yy_current_state )
2574 yy_state_type yy_current_state;
2577 register int yy_is_jam;
2578 register char *yy_cp = yy_c_buf_p;
2580 register YY_CHAR yy_c = 1;
2581 if ( yy_accept[yy_current_state] )
2583 yy_last_accepting_state = yy_current_state;
2584 yy_last_accepting_cpos = yy_cp;
2586 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2588 yy_current_state = (int) yy_def[yy_current_state];
2589 if ( yy_current_state >= 661 )
2590 yy_c = yy_meta[(unsigned int) yy_c];
2592 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2593 yy_is_jam = (yy_current_state == 660);
2595 return yy_is_jam ? 0 : yy_current_state;
2600 #ifdef YY_USE_PROTOS
2601 static void yyunput( int c, register char *yy_bp )
2603 static void yyunput( c, yy_bp )
2605 register char *yy_bp;
2608 register char *yy_cp = yy_c_buf_p;
2610 /* undo effects of setting up yytext */
2611 *yy_cp = yy_hold_char;
2613 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2614 { /* need to shift things up to make room */
2615 /* +2 for EOB chars. */
2616 register int number_to_move = yy_n_chars + 2;
2617 register char *dest = &yy_current_buffer->yy_ch_buf[
2618 yy_current_buffer->yy_buf_size + 2];
2619 register char *source =
2620 &yy_current_buffer->yy_ch_buf[number_to_move];
2622 while ( source > yy_current_buffer->yy_ch_buf )
2623 *--dest = *--source;
2625 yy_cp += (int) (dest - source);
2626 yy_bp += (int) (dest - source);
2627 yy_current_buffer->yy_n_chars =
2628 yy_n_chars = yy_current_buffer->yy_buf_size;
2630 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2631 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2634 *--yy_cp = (char) c;
2638 yy_hold_char = *yy_cp;
2641 #endif /* ifndef YY_NO_UNPUT */
2645 static int yyinput()
2652 *yy_c_buf_p = yy_hold_char;
2654 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2656 /* yy_c_buf_p now points to the character we want to return.
2657 * If this occurs *before* the EOB characters, then it's a
2658 * valid NUL; if not, then we've hit the end of the buffer.
2660 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2661 /* This was really a NUL. */
2665 { /* need more input */
2666 int offset = yy_c_buf_p - yytext_ptr;
2669 switch ( yy_get_next_buffer() )
2671 case EOB_ACT_LAST_MATCH:
2672 /* This happens because yy_g_n_b()
2673 * sees that we've accumulated a
2674 * token and flags that we need to
2675 * try matching the token before
2676 * proceeding. But for input(),
2677 * there's no matching to consider.
2678 * So convert the EOB_ACT_LAST_MATCH
2679 * to EOB_ACT_END_OF_FILE.
2682 /* Reset buffer status. */
2687 case EOB_ACT_END_OF_FILE:
2692 if ( ! yy_did_buffer_switch_on_eof )
2701 case EOB_ACT_CONTINUE_SCAN:
2702 yy_c_buf_p = yytext_ptr + offset;
2708 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2709 *yy_c_buf_p = '\0'; /* preserve yytext */
2710 yy_hold_char = *++yy_c_buf_p;
2717 #ifdef YY_USE_PROTOS
2718 void yyrestart( FILE *input_file )
2720 void yyrestart( input_file )
2724 if ( ! yy_current_buffer )
2725 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2727 yy_init_buffer( yy_current_buffer, input_file );
2728 yy_load_buffer_state();
2732 #ifdef YY_USE_PROTOS
2733 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2735 void yy_switch_to_buffer( new_buffer )
2736 YY_BUFFER_STATE new_buffer;
2739 if ( yy_current_buffer == new_buffer )
2742 if ( yy_current_buffer )
2744 /* Flush out information for old buffer. */
2745 *yy_c_buf_p = yy_hold_char;
2746 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2747 yy_current_buffer->yy_n_chars = yy_n_chars;
2750 yy_current_buffer = new_buffer;
2751 yy_load_buffer_state();
2753 /* We don't actually know whether we did this switch during
2754 * EOF (yywrap()) processing, but the only time this flag
2755 * is looked at is after yywrap() is called, so it's safe
2756 * to go ahead and always set it.
2758 yy_did_buffer_switch_on_eof = 1;
2762 #ifdef YY_USE_PROTOS
2763 void yy_load_buffer_state( void )
2765 void yy_load_buffer_state()
2768 yy_n_chars = yy_current_buffer->yy_n_chars;
2769 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2770 yyin = yy_current_buffer->yy_input_file;
2771 yy_hold_char = *yy_c_buf_p;
2775 #ifdef YY_USE_PROTOS
2776 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2778 YY_BUFFER_STATE yy_create_buffer( file, size )
2785 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2787 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2789 b->yy_buf_size = size;
2791 /* yy_ch_buf has to be 2 characters longer than the size given because
2792 * we need to put in 2 end-of-buffer characters.
2794 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2795 if ( ! b->yy_ch_buf )
2796 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2798 b->yy_is_our_buffer = 1;
2800 yy_init_buffer( b, file );
2806 #ifdef YY_USE_PROTOS
2807 void yy_delete_buffer( YY_BUFFER_STATE b )
2809 void yy_delete_buffer( b )
2816 if ( b == yy_current_buffer )
2817 yy_current_buffer = (YY_BUFFER_STATE) 0;
2819 if ( b->yy_is_our_buffer )
2820 yy_flex_free( (void *) b->yy_ch_buf );
2822 yy_flex_free( (void *) b );
2826 #ifndef YY_ALWAYS_INTERACTIVE
2827 #ifndef YY_NEVER_INTERACTIVE
2828 extern int isatty YY_PROTO(( int ));
2832 #ifdef YY_USE_PROTOS
2833 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2835 void yy_init_buffer( b, file )
2842 yy_flush_buffer( b );
2844 b->yy_input_file = file;
2845 b->yy_fill_buffer = 1;
2847 #if YY_ALWAYS_INTERACTIVE
2848 b->yy_is_interactive = 1;
2850 #if YY_NEVER_INTERACTIVE
2851 b->yy_is_interactive = 0;
2853 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2859 #ifdef YY_USE_PROTOS
2860 void yy_flush_buffer( YY_BUFFER_STATE b )
2862 void yy_flush_buffer( b )
2872 /* We always need two end-of-buffer characters. The first causes
2873 * a transition to the end-of-buffer state. The second causes
2874 * a jam in that state.
2876 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2877 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2879 b->yy_buf_pos = &b->yy_ch_buf[0];
2882 b->yy_buffer_status = YY_BUFFER_NEW;
2884 if ( b == yy_current_buffer )
2885 yy_load_buffer_state();
2889 #ifndef YY_NO_SCAN_BUFFER
2890 #ifdef YY_USE_PROTOS
2891 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2893 YY_BUFFER_STATE yy_scan_buffer( base, size )
2901 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2902 base[size-1] != YY_END_OF_BUFFER_CHAR )
2903 /* They forgot to leave room for the EOB's. */
2906 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2908 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2910 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2911 b->yy_buf_pos = b->yy_ch_buf = base;
2912 b->yy_is_our_buffer = 0;
2913 b->yy_input_file = 0;
2914 b->yy_n_chars = b->yy_buf_size;
2915 b->yy_is_interactive = 0;
2917 b->yy_fill_buffer = 0;
2918 b->yy_buffer_status = YY_BUFFER_NEW;
2920 yy_switch_to_buffer( b );
2927 #ifndef YY_NO_SCAN_STRING
2928 #ifdef YY_USE_PROTOS
2929 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2931 YY_BUFFER_STATE yy_scan_string( yy_str )
2932 yyconst char *yy_str;
2936 for ( len = 0; yy_str[len]; ++len )
2939 return yy_scan_bytes( yy_str, len );
2944 #ifndef YY_NO_SCAN_BYTES
2945 #ifdef YY_USE_PROTOS
2946 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2948 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2949 yyconst char *bytes;
2958 /* Get memory for full buffer, including space for trailing EOB's. */
2960 buf = (char *) yy_flex_alloc( n );
2962 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2964 for ( i = 0; i < len; ++i )
2967 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2969 b = yy_scan_buffer( buf, n );
2971 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2973 /* It's okay to grow etc. this buffer, and we should throw it
2974 * away when we're done.
2976 b->yy_is_our_buffer = 1;
2983 #ifndef YY_NO_PUSH_STATE
2984 #ifdef YY_USE_PROTOS
2985 static void yy_push_state( int new_state )
2987 static void yy_push_state( new_state )
2991 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2995 yy_start_stack_depth += YY_START_STACK_INCR;
2996 new_size = yy_start_stack_depth * sizeof( int );
2998 if ( ! yy_start_stack )
2999 yy_start_stack = (int *) yy_flex_alloc( new_size );
3002 yy_start_stack = (int *) yy_flex_realloc(
3003 (void *) yy_start_stack, new_size );
3005 if ( ! yy_start_stack )
3007 "out of memory expanding start-condition stack" );
3010 yy_start_stack[yy_start_stack_ptr++] = YY_START;
3017 #ifndef YY_NO_POP_STATE
3018 static void yy_pop_state()
3020 if ( --yy_start_stack_ptr < 0 )
3021 YY_FATAL_ERROR( "start-condition stack underflow" );
3023 BEGIN(yy_start_stack[yy_start_stack_ptr]);
3028 #ifndef YY_NO_TOP_STATE
3029 static int yy_top_state()
3031 return yy_start_stack[yy_start_stack_ptr - 1];
3035 #ifndef YY_EXIT_FAILURE
3036 #define YY_EXIT_FAILURE 2
3039 #ifdef YY_USE_PROTOS
3040 static void yy_fatal_error( yyconst char msg[] )
3042 static void yy_fatal_error( msg )
3046 (void) fprintf( stderr, "%s\n", msg );
3047 exit( YY_EXIT_FAILURE );
3052 /* Redefine yyless() so it works in section 3 code. */
3058 /* Undo effects of setting up yytext. */ \
3059 yytext[yyleng] = yy_hold_char; \
3060 yy_c_buf_p = yytext + n; \
3061 yy_hold_char = *yy_c_buf_p; \
3062 *yy_c_buf_p = '\0'; \
3068 /* Internal utility routines. */
3071 #ifdef YY_USE_PROTOS
3072 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
3074 static void yy_flex_strncpy( s1, s2, n )
3081 for ( i = 0; i < n; ++i )
3086 #ifdef YY_NEED_STRLEN
3087 #ifdef YY_USE_PROTOS
3088 static int yy_flex_strlen( yyconst char *s )
3090 static int yy_flex_strlen( s )
3095 for ( n = 0; s[n]; ++n )
3103 #ifdef YY_USE_PROTOS
3104 static void *yy_flex_alloc( yy_size_t size )
3106 static void *yy_flex_alloc( size )
3110 return (void *) malloc( size );
3113 #ifdef YY_USE_PROTOS
3114 static void *yy_flex_realloc( void *ptr, yy_size_t size )
3116 static void *yy_flex_realloc( ptr, size )
3121 /* The cast to (char *) in the following accommodates both
3122 * implementations that use char* generic pointers, and those
3123 * that use void* generic pointers. It works with the latter
3124 * because both ANSI C and C++ allow castless assignment from
3125 * any pointer type to void*, and deal with argument conversions
3126 * as though doing an assignment.
3128 return (void *) realloc( (char *) ptr, size );
3131 #ifdef YY_USE_PROTOS
3132 static void yy_flex_free( void *ptr )
3134 static void yy_flex_free( ptr )
3166 // fputc(c, output);
3170 yylloc.end.charPos = 1;
3176 yylloc.end.charPos++ /* += 3 - (yylloc.end.col % 3)*/;
3181 yylloc.end.charPos++;
3184 if(c == '/' && last == '*')
3188 yylloc.start = yylloc.end;
3200 // fputc(c, output);
3204 yylloc.end.charPos = 1;
3211 yylloc.end.charPos++ /* += 3 - (yylloc.end.col % 3)*/;
3216 yylloc.end.charPos++;
3221 yylloc.start = yylloc.end;
3240 yylloc.end.charPos = 1;
3245 char * pointer = line + 1;
3248 lineNumber = GetValue(&pointer);
3251 char fileName[MAX_LOCATION];
3256 GetString(&pointer, fileName, MAX_LOCATION);
3257 inOut = GetValue(&pointer);
3261 char extension[MAX_EXTENSION];
3263 defaultDeclMode = declModeStack[include_stack_ptr] = declMode;
3265 GetExtension(fileName, extension);
3266 if(!strcmp(extension, "c") || !strcmp(extension, "h"))
3267 declMode = defaultDeclMode = defaultAccess;
3269 fileStack[include_stack_ptr] = null;
3270 include_stack_ptr++;
3274 include_stack_ptr--;
3275 defaultDeclMode = declMode = declModeStack[include_stack_ptr];
3278 yylloc.end.charPos = 1;
3279 yylloc.end.line = lineNumber;
3280 //yylloc.end.pos -= count;
3282 if(include_stack_ptr > 0 || (lineNumber && fileName[0]))
3283 yylloc.end.included = GetIncludeFileID(fileName);
3285 yylloc.end.included = 0;
3288 int lineNumber = strtol(line+1, &endPtr, 0);
3294 yylloc.end.charPos = 1;
3295 yylloc.end.line = lineNumber;
3296 yylloc.end.pos -= count;
3305 yylloc.end.charPos++ /* += 3 - (yylloc.end.col % 3)*/;
3314 yylloc.end.charPos++;
3320 yylloc.start = yylloc.end;
3323 TrimLSpaces(line, line);
3324 for(c = 0; line[c] && line[c] != ' '; c++);
3325 if(!strncmp(line, "include", c))
3327 char includeFile[MAX_LOCATION] = "";
3329 memmove(line, line+c, strlen(line+c)+1);
3330 TrimLSpaces(line, line);
3333 for(c = 1; line[c]; c++)
3337 strncpy(includeFile, line+1, c-1);
3338 includeFile[c-1] = '\0';
3343 else if(line[0] == '<')
3345 for(c = 1; line[c]; c++)
3348 strncpy(includeFile, line+1, c-1);
3349 includeFile[c-1] = '\0';
3354 if ( include_stack_ptr >= MAX_INCLUDE_DEPTH )
3356 fprintf( stderr, $"Includes nested too deeply" );
3360 if(inCompiler || !FindIncludeFileID(includeFile))
3362 File file = OpenIncludeFile(includeFile);
3365 char extension[MAX_EXTENSION];
3367 fileStack[include_stack_ptr] = fileInput;
3368 locStack[include_stack_ptr] = yylloc;
3369 defaultDeclMode = declModeStack[include_stack_ptr] = declMode;
3370 include_stack[include_stack_ptr++] = YY_CURRENT_BUFFER;
3372 yylloc.start.charPos = yylloc.end.charPos = 1;
3373 yylloc.start.line = yylloc.end.line = 1;
3374 yylloc.start.pos = yylloc.end.pos = 0;
3375 yylloc.start.included = yylloc.end.included = GetIncludeFileID(includeFile);
3377 GetExtension(includeFile, extension);
3378 if(!strcmp(extension, "c") || !strcmp(extension, "h"))
3379 declMode = defaultDeclMode = defaultAccess;
3382 yy_switch_to_buffer( yy_create_buffer( fileInput, YY_BUF_SIZE ) );
3392 public void resetScanner()
3395 yylloc.start.charPos = yylloc.end.charPos = 1;
3396 yylloc.start.line = yylloc.end.line = 1;
3397 yylloc.start.pos = yylloc.end.pos = 0;
3398 yylloc.start.included = yylloc.end.included = 0;
3400 expression_yylloc.start.charPos = expression_yylloc.end.charPos = 1;
3401 expression_yylloc.start.line = expression_yylloc.end.line = 1;
3402 expression_yylloc.start.pos = expression_yylloc.end.pos = 0;
3403 expression_yylloc.start.included = expression_yylloc.end.included = 0;
3405 type_yylloc.start.charPos = type_yylloc.end.charPos = 1;
3406 type_yylloc.start.line = type_yylloc.end.line = 1;
3407 type_yylloc.start.pos = type_yylloc.end.pos = 0;
3408 type_yylloc.start.included = type_yylloc.end.included = 0;
3410 include_stack_ptr = 0;
3413 void resetScannerPos(CodePosition pos)
3416 yylloc.start = yylloc.end = pos;
3417 type_yylloc.start = type_yylloc.end = pos;
3418 expression_yylloc.start = expression_yylloc.end = pos;
3424 YYLTYPE type_yylloc;
3425 YYLTYPE expression_yylloc;
3427 AccessMode declMode;
3428 AccessMode defaultDeclMode;
3431 YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
3432 File fileStack[MAX_INCLUDE_DEPTH];
3433 char sourceFileStack[MAX_INCLUDE_DEPTH][MAX_LOCATION];
3434 YYLTYPE locStack[MAX_INCLUDE_DEPTH];
3435 AccessMode declModeStack[MAX_INCLUDE_DEPTH];
3436 int include_stack_ptr;
3437 YY_BUFFER_STATE buffer;
3450 LexerBackup pushLexer()
3452 LexerBackup backup { };
3454 backup.yylloc = yylloc;
3455 backup.type_yylloc = type_yylloc;
3456 backup.expression_yylloc = expression_yylloc;
3457 backup.fileInput = fileInput;
3458 memcpy(backup.include_stack, include_stack, sizeof(include_stack));
3459 memcpy(backup.fileStack, fileStack, sizeof(fileStack));
3460 memcpy(backup.sourceFileStack, sourceFileStack, sizeof(sourceFileStack));
3461 memcpy(backup.locStack, locStack, sizeof(locStack));
3462 memcpy(backup.declModeStack, declModeStack, sizeof(declModeStack));
3463 backup.include_stack_ptr = include_stack_ptr;
3464 backup.defaultDeclMode = defaultDeclMode;
3465 backup.declMode = declMode;
3466 backup.buffer = yy_current_buffer;
3468 backup.yy_n_chars = yy_n_chars;
3469 backup.yytext_ptr = yytext_ptr;
3470 backup.yy_c_buf_p = yy_c_buf_p;
3472 backup.yy_hold_char = yy_hold_char;
3473 backup.yychar = yychar;
3474 backup.yy_init = yy_init;
3475 backup.yy_start = yy_start;
3479 yy_current_buffer = 0;
3481 yylloc.start.charPos = yylloc.end.charPos = 1;
3482 yylloc.start.line = yylloc.end.line = 1;
3483 yylloc.start.pos = yylloc.end.pos = 0;
3484 yylloc.start.included = yylloc.end.included = 0;
3486 expression_yylloc.start.charPos = expression_yylloc.end.charPos = 1;
3487 expression_yylloc.start.line = expression_yylloc.end.line = 1;
3488 expression_yylloc.start.pos = expression_yylloc.end.pos = 0;
3489 expression_yylloc.start.included = expression_yylloc.end.included = 0;
3491 type_yylloc.start.charPos = type_yylloc.end.charPos = 1;
3492 type_yylloc.start.line = type_yylloc.end.line = 1;
3493 type_yylloc.start.pos = type_yylloc.end.pos = 0;
3494 type_yylloc.start.included = type_yylloc.end.included = 0;
3496 include_stack_ptr = 0;
3501 void popLexer(LexerBackup backup)
3503 yylloc = backup.yylloc;
3504 type_yylloc = backup.type_yylloc;
3505 expression_yylloc = backup.expression_yylloc;
3506 fileInput = backup.fileInput;
3507 memcpy(include_stack, backup.include_stack, sizeof(include_stack));
3508 memcpy(fileStack, backup.fileStack, sizeof(fileStack));
3509 memcpy(sourceFileStack, backup.sourceFileStack, sizeof(sourceFileStack));
3510 memcpy(locStack, backup.locStack, sizeof(locStack));
3511 memcpy(declModeStack, backup.declModeStack, sizeof(declModeStack));
3512 include_stack_ptr = backup.include_stack_ptr;
3513 defaultDeclMode = backup.defaultDeclMode;
3514 declMode = backup.declMode;
3516 // yy_switch_to_buffer(backup.buffer);
3517 yy_current_buffer = backup.buffer;
3518 yy_n_chars = backup.yy_n_chars;
3519 yytext_ptr = backup.yytext_ptr;
3520 yy_c_buf_p = backup.yy_c_buf_p;
3522 yy_hold_char = backup.yy_hold_char;
3523 yychar = backup.yychar;
3524 yy_init = backup.yy_init;
3525 yy_start = backup.yy_start;