/* A lexical scanner generated by flex */ /* Scanner skeleton version: * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.85 95/04/24 10:48:47 vern Exp $ */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #include /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus #ifndef __cplusplus #define __cplusplus #endif #endif #ifdef __cplusplus #include //#include /* Use prototypes in function declarations. */ #define YY_USE_PROTOS /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ #if __STDC__ #define YY_USE_PROTOS #define YY_USE_CONST #endif /* __STDC__ */ #endif /* ! __cplusplus */ #ifdef __TURBOC__ #pragma warn -rch #pragma warn -use #include #include #define YY_USE_CONST #define YY_USE_PROTOS #endif #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif #ifdef YY_USE_PROTOS #define YY_PROTO(proto) proto #else #define YY_PROTO(proto) () #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN yy_start = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START ((yy_start - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #define YY_BUF_SIZE 16384 typedef struct yy_buffer_state *YY_BUFFER_STATE; extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 /* The funky do-while in the following #define is used to turn the definition * int a single C statement (which needs a semi-colon terminator). This * avoids problems with code like: * * if ( condition_holds ) * yyless( 5 ); * else * do_something_else(); * * Prior to using the do-while the compiler would get upset at the * "else" because it interpreted the "if" statement as being all * done when it reached the ';' after the yyless() call. */ /* Return all but the first 'n' matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ *yy_cp = yy_hold_char; \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, yytext_ptr ) /* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */ typedef unsigned int yy_size_t; struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; static YY_BUFFER_STATE yy_current_buffer = 0; /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". */ #define YY_CURRENT_BUFFER yy_current_buffer /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 1; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart YY_PROTO(( FILE *input_file )); void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); void yy_load_buffer_state YY_PROTO(( void )); YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *str )); YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); static void *yy_flex_alloc YY_PROTO(( yy_size_t )); static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); static void yy_flex_free YY_PROTO(( void * )); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state YY_PROTO(( void )); static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); static int yy_get_next_buffer YY_PROTO(( void )); static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; #define YY_NUM_RULES 34 #define YY_END_OF_BUFFER 35 static yyconst short int yy_accept[716] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 0, 0, 0, 0, 0, 0, 35, 3, 34, 3, 6, 6, 6, 18, 12, 18, 18, 12, 18, 17, 18, 18, 18, 18, 15, 18, 12, 10, 10, 10, 10, 18, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 28, 28, 27, 28, 28, 28, 27, 28, 28, 28, 33, 32, 20, 20, 20, 22, 21, 22, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 0, 0, 0, 0, 0, 0, 0, 18, 15, 0, 0, 0, 0, 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 26, 26, 26, 26, 28, 28, 32, 0, 20, 20, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 12, 0, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 12, 0, 0, 0, 12, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 19, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 20, 7, 0, 0, 0, 11, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 0, 0, 0, 0, 0, 0, 0 } ; static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 20, 20, 20, 20, 20, 20, 20, 21, 22, 23, 12, 24, 1, 12, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 1, 25, 1, 26, 27, 1, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 12, 54, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst int yy_meta[55] = { 0, 1, 2, 3, 4, 5, 1, 6, 6, 7, 6, 6, 6, 4, 5, 6, 8, 6, 9, 9, 9, 1, 6, 1, 1, 1, 6, 10, 11, 11, 11, 11, 11, 12, 13, 14, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 16, 13, 13, 13, 14, 13, 13, 1 } ; static yyconst short int yy_base[744] = { 0, 0, 1, 24, 0, 78, 0, 132, 0, 186, 0, 240, 0, 292, 293, 294, 295, 299, 302, 1792, 1793, 1793, 264, 298, 1793, 289, 1793, 346, 316, 355, 0, 302, 306, 2, 373, 409, 417, 0, 1774, 321, 0, 353, 405, 349, 358, 1793, 1763, 340, 445, 428, 450, 371, 288, 355, 341, 462, 406, 1762, 475, 487, 474, 368, 372, 493, 512, 501, 418, 281, 453, 424, 284, 1793, 508, 1793, 481, 528, 559, 1793, 0, 1746, 609, 1793, 0, 1793, 1743, 1778, 1793, 1793, 0, 1793, 1742, 1752, 1738, 335, 539, 542, 386, 1740, 552, 598, 506, 1739, 348, 551, 611, 267, 1749, 1737, 1735, 1735, 0, 543, 1744, 1734, 1733, 1793, 647, 681, 1733, 1725, 1724, 1722, 1760, 653, 0, 628, 1793, 636, 0, 653, 670, 702, 412, 0, 701, 1793, 0, 1725, 448, 418, 452, 0, 492, 1793, 695, 1736, 1735, 1724, 1731, 1733, 504, 1730, 1728, 1727, 1726, 506, 1719, 711, 663, 560, 717, 1710, 1709, 526, 1714, 1707, 1706, 1706, 1720, 1702, 1704, 559, 1709, 1715, 1704, 1698, 1710, 676, 697, 1702, 1712, 1696, 1708, 0, 1696, 654, 1710, 1695, 1690, 1695, 402, 1706, 1703, 1686, 347, 1697, 597, 1683, 1695, 1694, 1685, 1695, 438, 1692, 1691, 0, 0, 1676, 562, 1690, 666, 1693, 700, 1691, 1691, 1672, 1670, 1680, 1668, 1686, 1670, 1667, 1664, 1674, 1664, 1663, 724, 0, 727, 1664, 0, 1675, 1793, 758, 774, 488, 0, 0, 1672, 0, 1656, 1793, 1659, 1793, 1657, 1673, 1668, 1668, 1667, 1664, 1666, 731, 1662, 1661, 1660, 764, 735, 1652, 771, 1661, 1649, 1642, 1647, 1657, 1641, 1653, 1651, 1640, 756, 1654, 1639, 1640, 1630, 1644, 1634, 1629, 1642, 1641, 1640, 1625, 1628, 765, 703, 1641, 1641, 1632, 1620, 1619, 1620, 1619, 1630, 1615, 1628, 1630, 1628, 1615, 1635, 815, 1614, 585, 1615, 1607, 1606, 1604, 598, 816, 820, 829, 795, 0, 835, 1606, 1641, 1621, 1606, 1616, 1618, 830, 655, 1607, 1793, 1614, 1615, 1596, 1602, 1608, 1597, 1606, 1605, 1604, 841, 1603, 1601, 1587, 1600, 1599, 1598, 1793, 1601, 604, 1592, 1574, 1594, 843, 1583, 1577, 1595, 1590, 1582, 1576, 1590, 1576, 1582, 1569, 1583, 1583, 1560, 771, 718, 1584, 1793, 1572, 1563, 1562, 1565, 1579, 0, 1572, 1560, 1558, 1571, 853, 1569, 1550, 1564, 891, 1563, 1566, 1567, 1560, 659, 873, 884, 1552, 867, 1562, 1563, 1545, 720, 1548, 1543, 1550, 1542, 612, 1540, 1554, 1549, 1554, 1544, 751, 1540, 1534, 0, 1533, 1577, 1531, 1530, 0, 1534, 1527, 1542, 1542, 1548, 888, 806, 1793, 1541, 1524, 774, 788, 1537, 1535, 895, 1534, 818, 825, 1534, 624, 1512, 1522, 1510, 708, 837, 1534, 1522, 1513, 1516, 900, 1525, 1524, 908, 923, 925, 930, 1513, 1509, 783, 924, 1522, 1529, 1530, 1515, 1511, 1517, 1526, 0, 977, 996, 1539, 1499, 1502, 824, 853, 1502, 916, 952, 978, 996, 999, 1005, 1511, 1511, 1500, 1501, 1488, 1505, 1507, 1486, 1502, 1484, 1500, 865, 1494, 751, 1484, 1500, 1499, 899, 1481, 1480, 856, 1473, 1495, 1491, 1478, 1482, 1480, 1475, 1491, 1490, 1484, 1484, 916, 1467, 1461, 1463, 1479, 1480, 1471, 1467, 1461, 1468, 1793, 1474, 1463, 1470, 516, 1453, 1449, 1468, 1457, 1453, 1793, 1456, 1022, 1465, 1445, 1448, 1458, 1443, 1442, 1446, 1460, 1459, 854, 1445, 932, 1448, 1453, 1455, 1434, 1447, 1449, 1448, 1448, 1451, 1433, 1449, 1441, 1443, 1424, 1440, 1436, 1032, 1048, 1424, 1428, 1450, 1444, 1793, 1434, 1436, 1415, 1431, 1413, 1429, 937, 1431, 909, 940, 1407, 949, 1406, 1408, 1424, 1425, 1416, 1412, 979, 1403, 1399, 1418, 1414, 988, 1399, 1418, 1417, 1002, 1413, 1415, 1394, 1410, 1409, 1391, 1407, 1415, 1793, 0, 1397, 1389, 1403, 0, 1401, 1018, 1412, 1019, 1424, 1423, 1384, 1024, 1040, 1406, 1384, 1395, 1385, 1381, 1392, 1378, 1391, 1384, 1374, 1392, 1366, 1386, 963, 1377, 1366, 1367, 1372, 1351, 1372, 1344, 1322, 1326, 1793, 1331, 1316, 1329, 1295, 1304, 1301, 1295, 1280, 1024, 1297, 1283, 1064, 1302, 1276, 1298, 1793, 1279, 1264, 1257, 1246, 1263, 1250, 1231, 1200, 1197, 1174, 1162, 1161, 1793, 1198, 1053, 1793, 1178, 1155, 1157, 1156, 1133, 1122, 1115, 1048, 1044, 1033, 1034, 1021, 1009, 1036, 1000, 989, 1793, 979, 1793, 0, 945, 934, 946, 943, 934, 882, 876, 835, 838, 838, 796, 762, 771, 741, 973, 748, 625, 573, 555, 531, 1793, 0, 522, 479, 416, 364, 295, 271, 1793, 1082, 1098, 1114, 1130, 1146, 1158, 1174, 1188, 1203, 1219, 1229, 1237, 1245, 1261, 1277, 1285, 1289, 1301, 1313, 1329, 1337, 1336, 1352, 1362, 1378, 1386, 1394, 1409 } ; static yyconst short int yy_def[744] = { 0, 716, 716, 715, 3, 715, 5, 715, 7, 715, 9, 715, 11, 717, 717, 718, 718, 719, 719, 715, 715, 715, 715, 715, 715, 23, 715, 715, 715, 720, 27, 715, 721, 715, 722, 722, 715, 723, 715, 27, 724, 724, 724, 724, 715, 715, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 715, 715, 715, 715, 715, 726, 715, 727, 727, 727, 715, 728, 715, 715, 729, 715, 715, 730, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 27, 715, 715, 715, 715, 715, 722, 116, 715, 715, 715, 715, 715, 715, 721, 117, 715, 117, 35, 35, 35, 35, 117, 731, 715, 715, 723, 715, 715, 715, 724, 732, 715, 715, 715, 715, 715, 715, 733, 715, 715, 715, 715, 715, 733, 715, 715, 715, 715, 715, 715, 734, 734, 734, 715, 734, 734, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 734, 734, 715, 715, 715, 715, 735, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 735, 715, 715, 715, 715, 735, 735, 735, 735, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 736, 715, 715, 737, 715, 715, 726, 726, 715, 736, 727, 727, 728, 715, 715, 715, 715, 715, 715, 715, 715, 715, 738, 715, 715, 715, 715, 738, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 738, 715, 715, 715, 715, 715, 715, 715, 715, 715, 738, 738, 738, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 27, 739, 715, 117, 715, 715, 715, 715, 715, 715, 117, 715, 715, 131, 117, 715, 732, 715, 715, 715, 715, 735, 735, 715, 715, 715, 715, 715, 715, 715, 715, 735, 735, 715, 735, 715, 715, 715, 735, 735, 715, 715, 715, 735, 715, 715, 715, 734, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 735, 715, 715, 715, 715, 715, 715, 715, 715, 740, 715, 715, 715, 715, 735, 715, 715, 715, 741, 715, 715, 715, 715, 734, 735, 734, 715, 715, 715, 715, 715, 317, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 735, 715, 715, 736, 715, 726, 715, 715, 727, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 738, 738, 715, 738, 738, 715, 738, 738, 715, 738, 715, 715, 715, 738, 715, 715, 715, 715, 715, 738, 715, 738, 738, 715, 715, 715, 715, 715, 715, 738, 715, 715, 27, 715, 715, 715, 27, 27, 739, 456, 457, 715, 715, 715, 715, 715, 715, 117, 715, 715, 117, 117, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 735, 715, 715, 734, 715, 715, 733, 715, 734, 733, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 733, 715, 715, 715, 715, 715, 715, 715, 734, 715, 715, 715, 715, 715, 733, 715, 715, 715, 715, 715, 715, 715, 742, 715, 715, 715, 715, 735, 715, 715, 715, 715, 715, 715, 734, 715, 715, 715, 715, 715, 715, 735, 715, 715, 715, 715, 715, 715, 715, 715, 715, 726, 726, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 738, 738, 715, 738, 715, 715, 715, 715, 715, 715, 738, 715, 715, 715, 715, 738, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 27, 715, 715, 715, 27, 715, 715, 715, 715, 715, 715, 715, 715, 117, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 734, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 734, 715, 715, 726, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 743, 715, 715, 715, 27, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 734, 715, 715, 715, 715, 715, 715, 27, 715, 715, 715, 715, 715, 715, 0, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715 } ; static yyconst short int yy_nxt[1848] = { 0, 715, 139, 21, 21, 715, 715, 715, 304, 122, 715, 715, 715, 126, 715, 126, 135, 715, 117, 117, 125, 125, 125, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 23, 23, 25, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 23, 26, 26, 21, 27, 28, 29, 30, 31, 32, 27, 27, 27, 27, 26, 27, 33, 27, 34, 35, 35, 36, 37, 38, 26, 26, 39, 40, 40, 41, 40, 42, 40, 40, 40, 41, 43, 40, 40, 40, 40, 43, 40, 40, 40, 40, 43, 43, 40, 40, 40, 40, 40, 40, 44, 45, 45, 21, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 57, 63, 64, 65, 66, 67, 68, 69, 57, 70, 45, 71, 72, 73, 74, 71, 71, 71, 71, 71, 71, 71, 71, 75, 76, 75, 71, 71, 71, 71, 71, 71, 77, 71, 71, 71, 71, 78, 78, 78, 78, 78, 79, 78, 78, 78, 78, 78, 78, 78, 80, 78, 78, 78, 78, 78, 78, 78, 78, 78, 80, 78, 78, 78, 71, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 81, 21, 21, 21, 21, 91, 84, 84, 21, 87, 87, 21, 108, 92, 715, 221, 162, 715, 285, 286, 123, 715, 225, 85, 85, 88, 88, 109, 90, 138, 172, 90, 93, 94, 95, 96, 118, 124, 97, 173, 98, 99, 119, 100, 101, 102, 162, 120, 135, 103, 104, 105, 121, 112, 106, 107, 110, 142, 113, 110, 111, 139, 110, 110, 110, 110, 138, 110, 141, 110, 114, 135, 247, 715, 715, 135, 135, 145, 110, 116, 116, 116, 248, 176, 370, 135, 273, 146, 715, 116, 116, 116, 116, 116, 116, 127, 274, 128, 128, 128, 174, 715, 371, 175, 715, 715, 199, 129, 130, 129, 130, 131, 129, 142, 132, 162, 167, 197, 168, 198, 141, 169, 170, 200, 259, 134, 139, 135, 171, 260, 133, 127, 135, 128, 128, 128, 715, 715, 365, 715, 135, 183, 183, 129, 130, 129, 130, 131, 129, 135, 132, 715, 184, 185, 135, 219, 138, 715, 366, 135, 139, 715, 155, 156, 135, 183, 715, 220, 162, 135, 135, 157, 224, 158, 135, 135, 159, 135, 715, 147, 160, 148, 149, 715, 161, 162, 715, 222, 163, 228, 380, 381, 150, 164, 223, 715, 151, 152, 153, 177, 142, 178, 165, 162, 154, 179, 166, 715, 715, 180, 181, 186, 195, 182, 135, 187, 226, 188, 189, 135, 715, 192, 196, 190, 191, 193, 715, 201, 405, 229, 166, 202, 230, 406, 715, 194, 226, 231, 203, 215, 154, 321, 269, 216, 204, 715, 270, 205, 206, 271, 207, 324, 217, 218, 227, 715, 208, 209, 325, 210, 714, 211, 339, 154, 227, 212, 213, 233, 214, 686, 234, 206, 154, 235, 227, 249, 250, 118, 234, 715, 234, 340, 234, 119, 227, 255, 251, 256, 291, 275, 257, 252, 253, 162, 258, 262, 276, 331, 254, 263, 264, 345, 277, 265, 383, 236, 332, 333, 346, 715, 715, 384, 347, 299, 713, 236, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 266, 266, 373, 232, 232, 232, 232, 232, 232, 374, 490, 267, 268, 375, 278, 303, 279, 205, 154, 125, 125, 125, 280, 491, 266, 281, 183, 306, 306, 306, 569, 282, 283, 305, 284, 299, 232, 278, 116, 116, 116, 307, 126, 570, 129, 129, 129, 712, 116, 116, 116, 116, 116, 116, 300, 715, 183, 183, 129, 126, 301, 129, 129, 129, 527, 302, 205, 479, 205, 206, 303, 715, 117, 117, 715, 129, 134, 353, 480, 715, 183, 330, 715, 715, 715, 715, 715, 715, 308, 206, 308, 126, 206, 309, 309, 309, 715, 313, 314, 226, 135, 354, 228, 183, 315, 135, 266, 129, 316, 387, 135, 355, 327, 328, 571, 135, 183, 715, 334, 335, 135, 135, 183, 538, 539, 329, 183, 572, 135, 266, 505, 336, 540, 233, 254, 416, 234, 227, 421, 235, 541, 506, 229, 542, 234, 230, 234, 227, 234, 404, 231, 711, 234, 422, 154, 235, 710, 254, 266, 266, 234, 278, 234, 550, 234, 418, 419, 421, 278, 266, 154, 236, 424, 425, 551, 166, 266, 502, 420, 266, 715, 236, 266, 503, 709, 426, 469, 469, 469, 254, 504, 278, 110, 266, 715, 110, 111, 266, 110, 110, 110, 110, 464, 110, 464, 110, 299, 465, 465, 465, 457, 306, 306, 306, 458, 467, 162, 467, 564, 606, 468, 468, 468, 266, 715, 466, 310, 310, 310, 565, 266, 715, 183, 475, 476, 299, 310, 310, 310, 310, 310, 310, 477, 206, 154, 486, 162, 154, 607, 573, 162, 162, 493, 478, 162, 183, 166, 154, 639, 516, 574, 484, 715, 715, 487, 517, 162, 154, 320, 320, 154, 533, 518, 320, 617, 622, 519, 320, 320, 528, 154, 534, 529, 162, 618, 530, 205, 154, 532, 205, 266, 560, 561, 154, 531, 162, 205, 278, 254, 567, 562, 254, 266, 620, 715, 715, 578, 465, 465, 465, 154, 563, 579, 652, 582, 715, 299, 583, 568, 580, 584, 254, 715, 581, 421, 421, 254, 585, 254, 586, 715, 421, 266, 588, 589, 629, 593, 162, 708, 587, 254, 707, 590, 465, 465, 465, 715, 594, 706, 254, 686, 254, 715, 591, 715, 715, 254, 715, 602, 653, 715, 715, 715, 715, 609, 715, 609, 715, 654, 610, 610, 610, 715, 110, 241, 674, 110, 111, 162, 110, 110, 110, 110, 715, 110, 715, 110, 468, 468, 468, 468, 468, 468, 715, 715, 458, 469, 469, 469, 337, 337, 299, 254, 402, 337, 254, 656, 404, 337, 337, 234, 421, 705, 235, 664, 610, 610, 610, 234, 118, 234, 701, 234, 404, 680, 662, 234, 646, 254, 235, 291, 610, 610, 610, 234, 299, 234, 702, 234, 404, 700, 635, 234, 234, 715, 235, 162, 699, 691, 165, 234, 703, 234, 698, 234, 704, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 115, 115, 115, 115, 115, 115, 115, 115, 115, 697, 115, 115, 122, 122, 162, 122, 122, 122, 696, 122, 122, 122, 122, 122, 122, 122, 122, 122, 126, 126, 126, 126, 126, 126, 126, 126, 126, 695, 126, 126, 694, 126, 136, 136, 693, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 140, 692, 299, 690, 689, 688, 140, 140, 140, 140, 140, 140, 140, 140, 140, 143, 143, 143, 143, 143, 143, 143, 143, 687, 143, 232, 232, 686, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 237, 237, 237, 237, 237, 237, 237, 237, 239, 239, 239, 239, 239, 239, 239, 239, 241, 241, 254, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 243, 243, 254, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 310, 254, 310, 310, 312, 254, 312, 312, 320, 320, 320, 320, 320, 320, 320, 320, 254, 254, 254, 320, 337, 337, 337, 337, 337, 337, 337, 337, 685, 684, 683, 682, 681, 679, 154, 337, 360, 360, 360, 165, 154, 360, 154, 360, 232, 232, 232, 232, 232, 232, 232, 232, 402, 402, 402, 402, 402, 402, 402, 415, 415, 415, 415, 415, 415, 415, 415, 154, 678, 677, 415, 456, 456, 154, 456, 162, 456, 456, 676, 456, 456, 456, 456, 456, 456, 512, 512, 512, 512, 512, 512, 512, 512, 522, 522, 522, 522, 522, 522, 522, 522, 634, 634, 634, 634, 634, 634, 634, 634, 675, 154, 166, 162, 162, 166, 634, 115, 115, 115, 115, 115, 115, 115, 115, 165, 154, 673, 154, 162, 672, 671, 154, 670, 669, 668, 667, 666, 665, 299, 299, 663, 661, 660, 659, 658, 596, 254, 254, 254, 254, 254, 657, 254, 254, 254, 254, 655, 254, 421, 254, 254, 254, 421, 254, 254, 421, 421, 254, 254, 254, 254, 254, 651, 254, 650, 649, 648, 647, 645, 154, 154, 162, 484, 644, 366, 643, 166, 154, 154, 642, 154, 641, 154, 640, 375, 154, 154, 638, 154, 205, 637, 165, 166, 636, 633, 632, 631, 154, 205, 154, 162, 166, 165, 166, 715, 154, 154, 205, 154, 154, 205, 630, 628, 166, 162, 627, 626, 625, 166, 624, 166, 623, 205, 715, 621, 154, 619, 715, 484, 154, 154, 154, 154, 616, 154, 615, 614, 613, 612, 611, 608, 605, 604, 603, 601, 600, 599, 598, 597, 596, 595, 254, 592, 715, 254, 266, 577, 576, 575, 266, 254, 266, 266, 254, 715, 266, 566, 254, 559, 558, 557, 556, 555, 554, 553, 404, 402, 552, 165, 549, 548, 547, 546, 545, 154, 544, 205, 543, 537, 536, 535, 205, 526, 525, 524, 523, 521, 520, 154, 205, 515, 514, 513, 511, 183, 510, 509, 508, 507, 183, 501, 500, 499, 366, 154, 498, 484, 162, 497, 496, 495, 494, 166, 183, 492, 489, 183, 183, 183, 488, 154, 162, 183, 183, 183, 485, 484, 375, 483, 482, 154, 481, 474, 473, 472, 471, 299, 470, 463, 462, 461, 460, 459, 455, 454, 453, 452, 451, 450, 449, 448, 447, 421, 446, 445, 444, 443, 442, 441, 715, 254, 254, 440, 439, 438, 437, 436, 435, 434, 421, 715, 433, 432, 431, 430, 429, 428, 427, 423, 715, 417, 254, 254, 254, 414, 413, 412, 411, 410, 409, 408, 407, 403, 401, 400, 399, 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, 388, 386, 385, 382, 154, 154, 379, 378, 377, 166, 376, 372, 369, 368, 367, 364, 363, 362, 361, 205, 359, 358, 357, 356, 352, 351, 350, 349, 348, 344, 166, 343, 342, 715, 715, 341, 715, 338, 326, 715, 323, 154, 322, 154, 154, 319, 318, 317, 311, 299, 298, 297, 296, 295, 294, 293, 292, 290, 289, 288, 287, 272, 261, 246, 245, 244, 242, 240, 238, 715, 144, 137, 715, 19, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715 } ; static yyconst short int yy_chk[1848] = { 0, 0, 40, 1, 2, 0, 0, 0, 124, 124, 0, 0, 0, 309, 0, 309, 40, 0, 30, 30, 33, 33, 33, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 14, 15, 16, 22, 13, 14, 17, 15, 16, 18, 25, 22, 67, 67, 714, 70, 105, 105, 32, 52, 70, 13, 14, 15, 16, 25, 17, 39, 52, 18, 23, 23, 23, 23, 31, 32, 23, 52, 23, 23, 31, 23, 23, 23, 713, 31, 39, 23, 23, 23, 31, 28, 23, 23, 27, 43, 28, 27, 27, 41, 27, 27, 27, 27, 44, 27, 41, 27, 28, 43, 93, 47, 54, 41, 43, 47, 27, 29, 29, 29, 93, 54, 194, 44, 102, 47, 53, 29, 29, 29, 29, 29, 29, 34, 102, 34, 34, 34, 53, 61, 194, 53, 51, 62, 62, 34, 34, 34, 34, 34, 34, 42, 34, 712, 51, 61, 51, 61, 42, 51, 51, 62, 96, 36, 139, 42, 51, 96, 34, 35, 42, 35, 35, 35, 132, 132, 190, 56, 139, 56, 56, 35, 35, 35, 35, 35, 35, 36, 35, 66, 56, 56, 36, 66, 138, 69, 190, 36, 140, 49, 49, 49, 36, 56, 35, 66, 711, 36, 36, 49, 69, 49, 140, 138, 49, 36, 48, 48, 49, 48, 48, 50, 50, 50, 68, 68, 50, 74, 202, 202, 48, 50, 68, 55, 48, 48, 48, 55, 142, 55, 50, 50, 48, 55, 50, 60, 58, 55, 55, 58, 60, 55, 142, 58, 72, 58, 58, 142, 59, 59, 60, 58, 58, 59, 63, 63, 235, 74, 710, 63, 74, 235, 65, 59, 75, 74, 63, 65, 150, 150, 100, 65, 63, 64, 100, 64, 64, 100, 64, 155, 65, 65, 72, 516, 64, 64, 155, 64, 709, 64, 163, 150, 72, 64, 64, 76, 64, 706, 76, 64, 516, 76, 75, 94, 94, 111, 76, 163, 76, 163, 76, 111, 75, 95, 94, 95, 111, 103, 95, 94, 94, 705, 95, 98, 103, 159, 94, 98, 98, 171, 103, 98, 208, 76, 159, 159, 171, 299, 299, 208, 171, 304, 704, 76, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 99, 99, 196, 80, 80, 80, 80, 80, 80, 196, 339, 99, 99, 196, 104, 304, 104, 196, 393, 125, 125, 125, 104, 339, 99, 104, 393, 127, 127, 127, 427, 104, 104, 125, 104, 123, 80, 104, 116, 116, 116, 127, 129, 427, 129, 129, 129, 703, 116, 116, 116, 116, 116, 116, 123, 116, 185, 185, 129, 130, 123, 130, 130, 130, 380, 123, 158, 318, 210, 210, 123, 116, 117, 117, 117, 130, 134, 177, 318, 380, 185, 158, 117, 117, 117, 117, 117, 117, 131, 158, 131, 131, 210, 131, 131, 131, 177, 144, 144, 226, 134, 178, 228, 212, 144, 134, 282, 131, 144, 212, 134, 178, 157, 157, 431, 134, 157, 178, 160, 160, 134, 134, 160, 388, 388, 157, 212, 431, 134, 282, 358, 160, 388, 233, 251, 251, 233, 226, 256, 233, 388, 358, 228, 388, 233, 228, 233, 226, 233, 234, 228, 702, 234, 256, 483, 234, 700, 251, 268, 268, 234, 256, 234, 399, 234, 255, 255, 281, 281, 255, 483, 233, 258, 258, 399, 699, 258, 357, 255, 418, 418, 233, 268, 357, 698, 258, 308, 308, 308, 446, 357, 281, 297, 419, 419, 297, 297, 446, 297, 297, 297, 297, 305, 297, 305, 297, 461, 305, 305, 305, 297, 306, 306, 306, 297, 307, 697, 307, 414, 461, 307, 307, 307, 424, 424, 306, 310, 310, 310, 414, 425, 425, 317, 317, 317, 462, 310, 310, 310, 310, 310, 310, 317, 330, 330, 330, 343, 330, 462, 432, 696, 695, 343, 317, 694, 371, 343, 534, 534, 371, 432, 343, 490, 343, 330, 371, 343, 330, 375, 375, 384, 384, 371, 375, 481, 490, 371, 375, 375, 381, 534, 384, 381, 693, 481, 381, 382, 382, 382, 381, 413, 413, 413, 384, 381, 692, 381, 422, 422, 422, 413, 422, 437, 487, 382, 487, 437, 464, 464, 464, 382, 413, 437, 568, 440, 568, 691, 440, 422, 437, 440, 422, 502, 437, 440, 441, 441, 441, 442, 442, 447, 440, 443, 443, 443, 502, 447, 536, 690, 442, 566, 689, 443, 465, 465, 465, 569, 447, 688, 441, 687, 442, 536, 443, 456, 571, 566, 456, 456, 569, 456, 456, 456, 456, 466, 456, 466, 456, 571, 466, 466, 466, 456, 457, 684, 624, 457, 457, 701, 457, 457, 457, 457, 624, 457, 578, 457, 467, 467, 467, 468, 468, 468, 701, 583, 457, 469, 469, 469, 524, 524, 605, 578, 682, 524, 587, 587, 553, 524, 524, 553, 583, 681, 553, 605, 609, 609, 609, 553, 603, 553, 679, 553, 554, 643, 603, 554, 553, 587, 554, 603, 610, 610, 610, 554, 665, 554, 680, 554, 646, 678, 524, 646, 554, 643, 646, 677, 676, 665, 675, 646, 680, 646, 674, 646, 680, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 720, 720, 720, 720, 720, 720, 720, 720, 720, 673, 720, 720, 721, 721, 672, 721, 721, 721, 671, 721, 721, 721, 721, 721, 721, 721, 721, 721, 722, 722, 722, 722, 722, 722, 722, 722, 722, 670, 722, 722, 669, 722, 723, 723, 668, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 724, 667, 664, 662, 661, 660, 724, 724, 724, 724, 724, 724, 724, 724, 724, 725, 725, 725, 725, 725, 725, 725, 725, 659, 725, 726, 726, 658, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 727, 727, 727, 727, 727, 727, 727, 727, 728, 728, 728, 728, 728, 728, 728, 728, 729, 729, 657, 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, 730, 730, 656, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 731, 655, 731, 731, 732, 654, 732, 732, 733, 733, 733, 733, 733, 733, 733, 733, 653, 652, 651, 733, 734, 734, 734, 734, 734, 734, 734, 734, 649, 648, 647, 645, 644, 642, 641, 734, 735, 735, 735, 640, 639, 735, 638, 735, 736, 736, 736, 736, 736, 736, 736, 736, 737, 737, 737, 737, 737, 737, 737, 738, 738, 738, 738, 738, 738, 738, 738, 637, 636, 635, 738, 739, 739, 633, 739, 632, 739, 739, 631, 739, 739, 739, 739, 739, 739, 740, 740, 740, 740, 740, 740, 740, 740, 741, 741, 741, 741, 741, 741, 741, 741, 742, 742, 742, 742, 742, 742, 742, 742, 630, 629, 628, 627, 626, 625, 742, 743, 743, 743, 743, 743, 743, 743, 743, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 608, 607, 606, 604, 602, 600, 599, 598, 595, 594, 593, 592, 591, 590, 589, 588, 586, 585, 584, 582, 581, 580, 579, 577, 576, 575, 574, 573, 572, 570, 567, 565, 564, 563, 562, 561, 560, 558, 557, 556, 555, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 535, 533, 532, 531, 530, 529, 528, 527, 526, 525, 523, 521, 520, 519, 518, 517, 515, 514, 513, 511, 510, 509, 508, 507, 506, 505, 504, 503, 501, 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, 489, 488, 486, 485, 484, 482, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 470, 463, 460, 459, 458, 454, 453, 452, 451, 450, 449, 448, 445, 444, 439, 438, 436, 435, 434, 433, 430, 429, 428, 426, 423, 421, 420, 417, 416, 412, 411, 410, 409, 408, 406, 405, 404, 403, 401, 400, 398, 397, 396, 395, 394, 392, 391, 390, 389, 387, 386, 385, 383, 379, 378, 377, 376, 374, 373, 372, 370, 369, 368, 367, 365, 364, 363, 362, 361, 359, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 342, 341, 340, 338, 336, 335, 334, 333, 332, 331, 329, 328, 327, 326, 325, 324, 323, 322, 321, 319, 316, 315, 314, 313, 312, 311, 303, 302, 301, 300, 298, 296, 295, 294, 293, 292, 291, 290, 289, 288, 287, 286, 285, 284, 283, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 270, 269, 267, 266, 265, 264, 263, 262, 261, 260, 259, 257, 254, 253, 252, 250, 249, 248, 247, 246, 245, 244, 242, 240, 238, 231, 229, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 211, 209, 207, 204, 203, 201, 200, 199, 198, 197, 195, 193, 192, 191, 189, 188, 187, 186, 184, 182, 181, 180, 179, 176, 175, 174, 173, 172, 170, 169, 168, 167, 166, 165, 164, 162, 161, 156, 154, 153, 152, 151, 149, 148, 147, 146, 145, 137, 122, 121, 120, 119, 118, 114, 113, 112, 109, 108, 107, 106, 101, 97, 92, 91, 90, 85, 84, 79, 57, 46, 38, 19, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 char *yytext; #define INITIAL 0 #define PRE 1 #define ASM 2 #define TOKEN 3 #define TOKEN_SX_OP 4 #define TOKENFLUSH 5 #define STR_STATE 6 #define STR_STATE2 7 #define FLUSH 8 #include #include #include #define yywrap() 1 #include "colorer.h" /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap YY_PROTO(( void )); #else extern int yywrap YY_PROTO(( void )); #endif #endif #ifndef YY_NO_UNPUT static void yyunput YY_PROTO(( int c, char *buf_ptr )); #endif #ifndef yytext_ptr static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput YY_PROTO(( void )); #else static int input YY_PROTO(( void )); #endif #endif #if YY_STACK_USED static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = 0; #ifndef YY_NO_PUSH_STATE static void yy_push_state YY_PROTO(( int new_state )); #endif #ifndef YY_NO_POP_STATE static void yy_pop_state YY_PROTO(( void )); #endif #ifndef YY_NO_TOP_STATE static int yy_top_state YY_PROTO(( void )); #endif #else #define YY_NO_PUSH_STATE 1 #define YY_NO_POP_STATE 1 #define YY_NO_TOP_STATE 1 #endif #ifdef YY_MALLOC_DECL YY_MALLOC_DECL #else #if __STDC__ #ifndef __cplusplus #include #endif #else /* Just try to get by without declaring the routines. This will fail * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) * or sizeof(void*) != sizeof(int). */ #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( yy_current_buffer->yy_is_interactive ) \ { \ int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL int yylex YY_PROTO(( void )) #endif /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ YY_USER_ACTION YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; if ( yy_init ) { yy_init = 0; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! yy_start ) yy_start = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_load_buffer_state(); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = yy_c_buf_p; /* Support of yytext. */ *yy_cp = yy_hold_char; /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = yy_start; yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 716 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 1793 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = yy_last_accepting_cpos; yy_current_state = yy_last_accepting_state; yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = yy_hold_char; yy_cp = yy_last_accepting_cpos; yy_current_state = yy_last_accepting_state; goto yy_find_action; case 1: YY_RULE_SETUP { ECHO; if(csspath != NULL) { fprintf(yyout, "\n\n", csspath); } } YY_BREAK case 2: YY_RULE_SETUP { ECHO; BEGIN(PRE); } YY_BREAK case 3: YY_RULE_SETUP { //echo unrecognized text ECHO; } YY_BREAK case 4: YY_RULE_SETUP { //enter in coloring mode only //if {Detect} pattern was encountered //(instructions that have a unique spelling) putInBuffer(yytext); unputBuffer(); keywordsDetected = 1; BEGIN(ASM); } YY_BREAK case 5: YY_RULE_SETUP { printBuffer(); ECHO; BEGIN(INITIAL); } YY_BREAK case 6: YY_RULE_SETUP { //echo unrecognized text to buffer putInBuffer(yytext); //check size of buffer - it can't exceed 10000 bytes //without detection if(bufferSize >= 10000) { printBuffer(); BEGIN(FLUSH); } } YY_BREAK case 7: YY_RULE_SETUP { ECHO; BEGIN(INITIAL); } YY_BREAK case 8: YY_RULE_SETUP { ECHO; } YY_BREAK case 9: YY_RULE_SETUP { //quit from ASM state if encountered ECHO; BEGIN(INITIAL); } YY_BREAK case 10: YY_RULE_SETUP { //start of a keyword - enter TOKEN state unput(yytext[0]); BEGIN(TOKEN); } YY_BREAK case 11: YY_RULE_SETUP { //string stylePrint("Str", yytext); } YY_BREAK case 12: YY_RULE_SETUP { //symbol (operators) stylePrint("Sym", yytext); } YY_BREAK case 13: YY_RULE_SETUP { //number followed by non-digit-non-letter stylePrintSkipLast("Num", yytext); } YY_BREAK case 14: YY_RULE_SETUP { //directives starting from # or $ stylePrintSkipLastAndLink("Dir", yytext, &dirLinks); } YY_BREAK case 15: YY_RULE_SETUP { //comment stylePrint("Comm", yytext); } YY_BREAK case 16: YY_RULE_SETUP { //start of string putInBuffer(yytext); BEGIN(STR_STATE); } YY_BREAK case 17: YY_RULE_SETUP { //start of string putInBuffer(yytext); BEGIN(STR_STATE2); } YY_BREAK case 18: YY_RULE_SETUP { //echo unrecognized text ECHO; } YY_BREAK case 19: YY_RULE_SETUP { //end of string putInBuffer(yytext); stylePrint("Str", buffer); freeBuffer(); BEGIN(ASM); } YY_BREAK case 20: YY_RULE_SETUP { putInBuffer(yytext); } YY_BREAK case 21: YY_RULE_SETUP { //end of string putInBuffer(yytext); stylePrint("Str", buffer); freeBuffer(); BEGIN(ASM); } YY_BREAK case 22: YY_RULE_SETUP { putInBuffer(yytext); } YY_BREAK case 23: YY_RULE_SETUP { //symbols starting from a letter //followed by non-digit-non-letter stylePrintSkipLast("Sym", yytext); BEGIN(ASM); } YY_BREAK case 24: YY_RULE_SETUP { //pic instructions //followed by non-digit-non-letter stylePrintSkipLastAndLink("Inst", yytext, &instLinks); BEGIN(ASM); } YY_BREAK case 25: YY_RULE_SETUP { /* SX instructions are treated specially. To determine exactly what instruction is detected it is necessary to look at the operands of the instruction. We extract only a number of elements from operands: ',': '' 'w' | '-' | '+' 'm' | '<' | '>' '- w' | '/' | '#' '+ w' | 'w' | 'm' '!': 'option' | 'R'... | 'wdt' In this way an instrucion template is extracted, which is then used as a suffix to the mnemonic, when looking for a corresponding URL describing the instruction. For example, mov w, #1 translates to-> mov_w,# mov w, fr-w -> mov_w,-w jmp pc+w -> jmp_+w clr !wdt -> clr_!wdt mov w, >>fr -> mov_w,>> clr reg -> clr clr w -> clr_w mov !option, #%00001111 -> mov_!option,# mov !RA, w -> mov_!r,w mov !RA, #$FF -> mov_!r,# If a full instruction template isn't found in the links vocabulary, then the search is repeated using only the mnemonic */ yyless(yyleng-1); //put look-ahead character back on stream sxInstBuf[31] = '\0'; //initialize last character to 0 sxTemplateBuf[31] = '\0'; //to use strncpy(dest, source, 31) //1. store the mnemonic in sxInstBuf strncpy(sxInstBuf, yytext, 31); //sxInstBuf[strlen(sxInstBuf)-1] = '\0'; //remove last (look-ahead) character //2. initialize buffer for operands sxOperandsString[0] = '\0'; strcpy(sxTemplateBuf, sxInstBuf); strncat(sxTemplateBuf, "_", 31-strlen(sxTemplateBuf)); /* append underscore to template (between mnemonic and stripped operands) */ //3. switch state to TOKEN_SX_OP to read operands BEGIN(TOKEN_SX_OP); } YY_BREAK case 26: YY_RULE_SETUP { int len; int i; int j; yyless(yyleng-1); //put look-ahead character back on stream //append all read characters to the buffer strncat(sxOperandsString, yytext, 255-strlen(sxOperandsString)); //copy detected element stripped of tabs and spaces to //the template len = strlen(sxTemplateBuf); i = 0; j = 0; while(len < 31 && i < yyleng) { if(yytext[i] != ' ' && yytext[i] != '\t') { //not white space sxTemplateBuf[len++] = yytext[i]; if(++j == 2) { /*two characters copied to template, check if these are !R, in which case inore all the rest */ if(sxTemplateBuf[len-2] == '!' && (sxTemplateBuf[len-1] == 'r' || sxTemplateBuf[len-1] == 'R')) { break; } } } i++; } sxTemplateBuf[len] = '\0'; //ensure string termination } YY_BREAK case 27: YY_RULE_SETUP { /* end of operands detected, digest results and print them, then unput yytext and switch back to ASM state */ int i; yyless(0); //put all yytext back on stream to rescan //remove underscore in template if it's last if(sxTemplateBuf[strlen(sxTemplateBuf)-1] == '_') { sxTemplateBuf[strlen(sxTemplateBuf)-1] = '\0'; } // debug lines to see how an instruction is converted to // template /* stylePrint("Inst", sxInstBuf); stylePrint("Inst", "<"); stylePrint("Inst", sxTemplateBuf); stylePrint("Inst", ">");*/ //add style tags and links to the mnemonic stylePrintAndLinkToOr("Inst", sxInstBuf, &instLinks, sxTemplateBuf); //unput all operands i = strlen(sxOperandsString); while(i-- != 0) { unput(sxOperandsString[i]); } BEGIN(ASM); } YY_BREAK case 28: YY_RULE_SETUP { //append all other characters to the buffer strncat(sxOperandsString, yytext, 255-strlen(sxOperandsString)); } YY_BREAK case 29: YY_RULE_SETUP { //directives starting from a letter //and followed by non-digit-non-letter stylePrintSkipLastAndLink("Dir", yytext, &dirLinks); BEGIN(ASM); } YY_BREAK case 30: YY_RULE_SETUP { //switch to ASM state (ignoring rest of keyword) //echo all text except last character fprintf(yyout, "%.1s", yytext); unput(yytext[1]); BEGIN(ASM); } YY_BREAK case 31: YY_RULE_SETUP { //switch to TOKENFLUSH state (ignoring rest of keyword) ECHO; BEGIN(TOKENFLUSH); } YY_BREAK case 32: YY_RULE_SETUP { //switch to ASM state after keyword or line end ECHO; BEGIN(ASM); } YY_BREAK case 33: YY_RULE_SETUP { //switch to ASM state on unrecognized pattern ECHO; BEGIN(ASM); } YY_BREAK case 34: YY_RULE_SETUP ECHO; YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(PRE): case YY_STATE_EOF(ASM): case YY_STATE_EOF(TOKEN): case YY_STATE_EOF(TOKEN_SX_OP): case YY_STATE_EOF(TOKENFLUSH): case YY_STATE_EOF(STR_STATE): case YY_STATE_EOF(STR_STATE2): case YY_STATE_EOF(FLUSH): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = yy_hold_char; if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between yy_current_buffer and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ yy_n_chars = yy_current_buffer->yy_n_chars; yy_current_buffer->yy_input_file = yyin; yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) { /* This was really a NUL. */ yy_state_type yy_next_state; yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = yytext_ptr + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++yy_c_buf_p; yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = yy_c_buf_p; goto yy_find_action; } } else switch ( yy_get_next_buffer() ) { case EOB_ACT_END_OF_FILE: { yy_did_buffer_switch_on_eof = 0; if ( yywrap() ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: yy_c_buf_p = &yy_current_buffer->yy_ch_buf[yy_n_chars]; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer() { register char *dest = yy_current_buffer->yy_ch_buf; register char *source = yytext_ptr; register int number_to_move, i; int ret_val; if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( yy_current_buffer->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) { /* We matched a singled characater, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ yy_n_chars = 0; else { int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ #ifdef YY_USES_REJECT YY_FATAL_ERROR( "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); #else /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = yy_current_buffer; int yy_c_buf_p_offset = (int) (yy_c_buf_p - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yy_flex_realloc( (void *) b->yy_ch_buf, b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; #endif } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), yy_n_chars, num_to_read ); } if ( yy_n_chars == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart( yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; yy_current_buffer->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; yy_n_chars += number_to_move; yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state() { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = yy_start; for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 716 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ #ifdef YY_USE_PROTOS static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) #else static yy_state_type yy_try_NUL_trans( yy_current_state ) yy_state_type yy_current_state; #endif { register int yy_is_jam; register char *yy_cp = yy_c_buf_p; register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 716 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 715); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT #ifdef YY_USE_PROTOS static void yyunput( int c, register char *yy_bp ) #else static void yyunput( c, yy_bp ) int c; register char *yy_bp; #endif { register char *yy_cp = yy_c_buf_p; /* undo effects of setting up yytext */ *yy_cp = yy_hold_char; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ register int number_to_move = yy_n_chars + 2; register char *dest = &yy_current_buffer->yy_ch_buf[ yy_current_buffer->yy_buf_size + 2]; register char *source = &yy_current_buffer->yy_ch_buf[number_to_move]; while ( source > yy_current_buffer->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); yy_n_chars = yy_current_buffer->yy_buf_size; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; yytext_ptr = yy_bp; yy_hold_char = *yy_cp; yy_c_buf_p = yy_cp; } #endif /* ifndef YY_NO_UNPUT */ #ifdef __cplusplus static int yyinput() #else static int input() #endif { int c; *yy_c_buf_p = yy_hold_char; if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) /* This was really a NUL. */ *yy_c_buf_p = '\0'; else { /* need more input */ yytext_ptr = yy_c_buf_p; ++yy_c_buf_p; switch ( yy_get_next_buffer() ) { case EOB_ACT_END_OF_FILE: { if ( yywrap() ) { yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; return EOF; } if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; break; case EOB_ACT_LAST_MATCH: #ifdef __cplusplus YY_FATAL_ERROR( "unexpected last match in yyinput()" ); #else YY_FATAL_ERROR( "unexpected last match in input()" ); #endif } } } c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ *yy_c_buf_p = '\0'; /* preserve yytext */ yy_hold_char = *++yy_c_buf_p; return c; } #ifdef YY_USE_PROTOS void yyrestart( FILE *input_file ) #else void yyrestart( input_file ) FILE *input_file; #endif { if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_init_buffer( yy_current_buffer, input_file ); yy_load_buffer_state(); } #ifdef YY_USE_PROTOS void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) #else void yy_switch_to_buffer( new_buffer ) YY_BUFFER_STATE new_buffer; #endif { if ( yy_current_buffer == new_buffer ) return; if ( yy_current_buffer ) { /* Flush out information for old buffer. */ *yy_c_buf_p = yy_hold_char; yy_current_buffer->yy_buf_pos = yy_c_buf_p; yy_current_buffer->yy_n_chars = yy_n_chars; } yy_current_buffer = new_buffer; yy_load_buffer_state(); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ yy_did_buffer_switch_on_eof = 1; } #ifdef YY_USE_PROTOS void yy_load_buffer_state( void ) #else void yy_load_buffer_state() #endif { yy_n_chars = yy_current_buffer->yy_n_chars; yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; yyin = yy_current_buffer->yy_input_file; yy_hold_char = *yy_c_buf_p; } #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) #else YY_BUFFER_STATE yy_create_buffer( file, size ) FILE *file; int size; #endif { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer( b, file ); return b; } #ifdef YY_USE_PROTOS void yy_delete_buffer( YY_BUFFER_STATE b ) #else void yy_delete_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; if ( b == yy_current_buffer ) yy_current_buffer = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yy_flex_free( (void *) b->yy_ch_buf ); yy_flex_free( (void *) b ); } #ifndef YY_ALWAYS_INTERACTIVE #ifndef YY_NEVER_INTERACTIVE extern int isatty YY_PROTO(( int )); #endif #endif #ifdef YY_USE_PROTOS void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) #else void yy_init_buffer( b, file ) YY_BUFFER_STATE b; FILE *file; #endif { yy_flush_buffer( b ); b->yy_input_file = file; b->yy_fill_buffer = 1; #if YY_ALWAYS_INTERACTIVE b->yy_is_interactive = 1; #else #if YY_NEVER_INTERACTIVE b->yy_is_interactive = 0; #else b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; #endif #endif } #ifdef YY_USE_PROTOS void yy_flush_buffer( YY_BUFFER_STATE b ) #else void yy_flush_buffer( b ) YY_BUFFER_STATE b; #endif { b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == yy_current_buffer ) yy_load_buffer_state(); } #ifndef YY_NO_SCAN_BUFFER #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) #else YY_BUFFER_STATE yy_scan_buffer( base, size ) char *base; yy_size_t size; #endif { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer( b ); return b; } #endif #ifndef YY_NO_SCAN_STRING #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_string( yyconst char *str ) #else YY_BUFFER_STATE yy_scan_string( str ) yyconst char *str; #endif { int len; for ( len = 0; str[len]; ++len ) ; return yy_scan_bytes( str, len ); } #endif #ifndef YY_NO_SCAN_BYTES #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) #else YY_BUFFER_STATE yy_scan_bytes( bytes, len ) yyconst char *bytes; int len; #endif { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = len + 2; buf = (char *) yy_flex_alloc( n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < len; ++i ) buf[i] = bytes[i]; buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer( buf, n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #endif #ifndef YY_NO_PUSH_STATE #ifdef YY_USE_PROTOS static void yy_push_state( int new_state ) #else static void yy_push_state( new_state ) int new_state; #endif { if ( yy_start_stack_ptr >= yy_start_stack_depth ) { yy_size_t new_size; yy_start_stack_depth += YY_START_STACK_INCR; new_size = yy_start_stack_depth * sizeof( int ); if ( ! yy_start_stack ) yy_start_stack = (int *) yy_flex_alloc( new_size ); else yy_start_stack = (int *) yy_flex_realloc( (void *) yy_start_stack, new_size ); if ( ! yy_start_stack ) YY_FATAL_ERROR( "out of memory expanding start-condition stack" ); } yy_start_stack[yy_start_stack_ptr++] = YY_START; BEGIN(new_state); } #endif #ifndef YY_NO_POP_STATE static void yy_pop_state() { if ( --yy_start_stack_ptr < 0 ) YY_FATAL_ERROR( "start-condition stack underflow" ); BEGIN(yy_start_stack[yy_start_stack_ptr]); } #endif #ifndef YY_NO_TOP_STATE static int yy_top_state() { return yy_start_stack[yy_start_stack_ptr - 1]; } #endif #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif #ifdef YY_USE_PROTOS static void yy_fatal_error( yyconst char msg[] ) #else static void yy_fatal_error( msg ) char msg[]; #endif { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ yytext[yyleng] = yy_hold_char; \ yy_c_buf_p = yytext + n - YY_MORE_ADJ; \ yy_hold_char = *yy_c_buf_p; \ *yy_c_buf_p = '\0'; \ yyleng = n; \ } \ while ( 0 ) /* Internal utility routines. */ #ifndef yytext_ptr #ifdef YY_USE_PROTOS static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) #else static void yy_flex_strncpy( s1, s2, n ) char *s1; yyconst char *s2; int n; #endif { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_USE_PROTOS static void *yy_flex_alloc( yy_size_t size ) #else static void *yy_flex_alloc( size ) yy_size_t size; #endif { return (void *) malloc( size ); } #ifdef YY_USE_PROTOS static void *yy_flex_realloc( void *ptr, yy_size_t size ) #else static void *yy_flex_realloc( ptr, size ) void *ptr; yy_size_t size; #endif { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } #ifdef YY_USE_PROTOS static void yy_flex_free( void *ptr ) #else static void yy_flex_free( ptr ) void *ptr; #endif { free( ptr ); } #if YY_MAIN int main() { yylex(); return 0; } #endif #include "colorer.c"