home *** CD-ROM | disk | FTP | other *** search
- /* A lexical scanner generated by flex */
- # line 3 "flex.skel"
-
- /* scanner skeleton version:
- */
-
- #define FLEX_SCANNER
-
- #include <stdio.h>
-
-
- /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
- #ifdef c_plusplus
- #ifndef __cplusplus
- #define __cplusplus
- #endif
- #endif
-
-
- #ifdef __cplusplus
-
- #include <stdlib.h>
- #include <osfcn.h>
-
- /* use prototypes in function declarations */
- #define YY_USE_PROTOS
-
- /* the "const" storage-class-modifier is valid */
- #define YY_USE_CONST
-
- #else /* ! __cplusplus */
-
- #ifdef __STDC__
-
- #ifdef __GNUC__
- #include <stddef.h>
- void *malloc( size_t );
- void free( void* );
- #else
- #include <stdlib.h>
- #endif /* __GNUC__ */
-
- #define YY_USE_PROTOS
- #define YY_USE_CONST
-
- #endif /* __STDC__ */
- #endif /* ! __cplusplus */
-
-
- #ifdef __TURBOC__
- #define YY_USE_CONST
- #endif
-
-
- #ifndef YY_USE_CONST
- #define const
- #endif
-
-
- #ifdef YY_USE_PROTOS
- #define YY_PROTO(proto) proto
- #else
- #define YY_PROTO(proto) ()
- /* we can't get here if it's an ANSI C compiler, or a C++ compiler,
- * so it's got to be a K&R compiler, and therefore there's no standard
- * place from which to include these definitions
- */
- char *malloc();
- int free();
- int read();
- #endif
-
-
- /* amount of stuff to slurp up with each read */
- #ifndef YY_READ_BUF_SIZE
- #define YY_READ_BUF_SIZE 8192
- #endif
-
- /* returned upon end-of-file */
- #define YY_END_TOK 0
-
- /* copy whatever the last rule matched to the standard output */
-
- /* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
- /* this used to be an fputs(), but since the string might contain NUL's,
- * we now use fwrite()
- */
- #define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
-
- /* gets input and stuffs it into "buf". number of characters read, or YY_NULL,
- * is returned in "result".
- */
- #define YY_INPUT(buf,result,max_size) \
- if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
- YY_FATAL_ERROR( "read() in flex scanner failed" );
- #define YY_NULL 0
-
- /* 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.
- */
- #define yyterminate() return ( YY_NULL )
-
- /* report a fatal error */
-
- /* The funky do-while is used to turn this macro definition into
- * a single C statement (which needs a semi-colon terminator).
- * This avoids problems with code like:
- *
- * if ( something_happens )
- * YY_FATAL_ERROR( "oops, the something happened" );
- * else
- * everything_okay();
- *
- * 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 YY_FATAL_ERROR() call.
- */
-
- #define YY_FATAL_ERROR(msg) \
- do \
- { \
- (void) fputs( msg, stderr ); \
- (void) putc( '\n', stderr ); \
- exit( 1 ); \
- } \
- while ( 0 )
-
- /* default yywrap function - always treat EOF as an EOF */
- #define yywrap() 1
-
- /* 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 *
-
- /* 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 \
- do \
- { \
- yy_init_buffer( yy_current_buffer, yyin ); \
- yy_load_buffer_state(); \
- } \
- while ( 0 )
-
- /* default declaration of generated scanner - a define so the user can
- * easily add parameters
- */
- #define YY_DECL int yylex YY_PROTO(( void ))
-
- /* code executed at the end of each rule */
- #define YY_BREAK break;
-
- #define YY_END_OF_BUFFER_CHAR 0
-
- #ifndef YY_BUF_SIZE
- #define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
- #endif
-
- typedef struct yy_buffer_state *YY_BUFFER_STATE;
-
- #define YY_CHAR char
- # line 1 "./ldlex.l"
- #define INITIAL 0
- # line 2 "./ldlex.l"
-
- /* Copyright (C) 1991 Free Software Foundation, Inc.
-
- This file is part of GLD, the Gnu Linker.
-
- GLD is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- GLD is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with GLD; see the file COPYING. If not, write to
- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
- /*
- This was written by steve chamberlain
- sac@cygnus.com
- */
-
-
- typedef int bfd_vma;
- #include <ansidecl.h>
- #include "ldgram.h"
-
- int ldgram_in_defsym;
- int ldgram_had_equals;
- int ldgram_in_script;
-
- int hex_mode;
- extern int fgetc();
- extern int yyparse();
-
-
-
- char *buystring();
-
- unsigned int lineno = 1;
- int old;
-
- static comment();
-
- #undef YY_INPUT
- #define YY_INPUT(buf,result,max_size) yy_input(buf, &result, max_size)
- #undef YY_FATAL_ERROR
- #define YY_FATAL_ERROR ;
- #define MAX_INCLUDE_DEPTH 10
- YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
- char *file_name_stack[MAX_INCLUDE_DEPTH];
- unsigned int include_stack_ptr = 0;
-
-
- /* STATES
- COMMAND on command line
- COMMENT in a C comment
- EXPRESSION definiatelyt in an expression
- SCRIPT definately in a script
- SOMEWHERE either EXPRESSION or SCRIPT
- MRI in an MRI script
- */
- #define RTOKEN(x) { yylval.token = x; return x; }
- #define COMMAND 1
- #define SCRIPT 2
- #define EXPRESSION 3
- #define COMMENT 4
- #define BOTH 5
- #define DEFSYMEXP 6
- #define MRI 7
- # line 90 "./ldlex.l"
- # line 168 "flex.skel"
-
- /* done after the current pattern has been matched and before the
- * corresponding action - sets up yytext
- */
- #define YY_DO_BEFORE_ACTION \
- yytext = yy_bp; \
- yyleng = yy_cp - yy_bp; \
- yy_hold_char = *yy_cp; \
- *yy_cp = '\0'; \
- yy_c_buf_p = yy_cp;
- # line 179 "flex.skel"
-
- #define EOB_ACT_CONTINUE_SCAN 0
- #define EOB_ACT_END_OF_FILE 1
- #define EOB_ACT_LAST_MATCH 2
-
- /* 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_DO_BEFORE_ACTION; /* set up yytext again */ \
- } \
- while ( 0 )
-
- #define unput(c) yyunput( c, yytext )
-
-
- struct yy_buffer_state
- {
- FILE *yy_input_file;
-
- YY_CHAR *yy_ch_buf; /* input buffer */
- YY_CHAR *yy_buf_pos; /* current position in input buffer */
-
- /* size of input buffer in bytes, not including room for EOB characters */
- int yy_buf_size;
-
- /* number of characters read into yy_ch_buf, not including EOB characters */
- int yy_n_chars;
-
- int yy_eof_status; /* whether we've seen an EOF on this buffer */
- #define EOF_NOT_SEEN 0
- /* "pending" happens when the EOF has been seen but there's still
- * some text process
- */
- #define EOF_PENDING 1
- #define EOF_DONE 2
- };
-
- static YY_BUFFER_STATE yy_current_buffer;
-
- /* 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 YY_CHAR yy_hold_char;
-
- static int yy_n_chars; /* number of characters read into yy_ch_buf */
-
-
-
- #ifndef YY_USER_ACTION
- #define YY_USER_ACTION
- #endif
-
- #ifndef YY_USER_INIT
- #define YY_USER_INIT
- #endif
-
- extern YY_CHAR *yytext;
- extern int yyleng;
- extern FILE *yyin, *yyout;
-
- YY_CHAR *yytext;
- int yyleng;
-
- FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
-
- #define YY_END_OF_BUFFER 181
- typedef int yy_state_type;
- static const short int yy_accept[912] =
- { 0,
- 0, 0, 175, 175, 175, 175, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 181, 180, 178, 172,
- 180, 172, 175, 172, 177, 83, 175, 89, 80, 96,
- 95, 85, 86, 79, 87, 175, 88, 59, 59, 99,
- 100, 90, 92, 78, 84, 59, 59, 59, 59, 59,
- 59, 175, 175, 175, 175, 175, 175, 175, 175, 61,
- 60, 59, 142, 140, 175, 94, 81, 93, 82, 174,
- 86, 79, 87, 174, 88, 59, 59, 99, 92, 59,
- 59, 59, 174, 174, 61, 60, 59, 174, 82, 174,
- 59, 59, 59, 59, 59, 59, 59, 59, 174, 174,
-
- 174, 174, 174, 174, 174, 174, 59, 59, 142, 140,
- 5, 4, 3, 2, 4, 6, 4, 146, 173, 147,
- 173, 92, 59, 59, 59, 59, 59, 59, 173, 173,
- 173, 173, 173, 173, 59, 59, 59, 59, 173, 173,
- 173, 173, 172, 0, 176, 172, 175, 175, 175, 175,
- 49, 55, 175, 28, 14, 175, 34, 37, 47, 175,
- 27, 31, 22, 33, 25, 21, 175, 20, 17, 175,
- 13, 19, 15, 36, 30, 35, 26, 32, 175, 1,
- 66, 59, 59, 77, 75, 73, 71, 72, 74, 59,
- 175, 69, 68, 65, 67, 70, 59, 59, 175, 145,
-
- 175, 175, 175, 175, 59, 175, 175, 175, 175, 175,
- 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
- 175, 175, 175, 175, 175, 175, 175, 59, 175, 175,
- 175, 76, 64, 174, 57, 57, 71, 72, 74, 59,
- 58, 58, 59, 0, 65, 59, 58, 58, 58, 59,
- 174, 145, 58, 59, 174, 174, 174, 59, 174, 59,
- 59, 59, 59, 59, 174, 174, 174, 174, 59, 174,
- 174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
- 174, 174, 174, 174, 174, 174, 174, 174, 174, 59,
- 174, 174, 4, 4, 4, 4, 173, 57, 57, 147,
-
- 59, 58, 58, 58, 59, 173, 59, 58, 173, 58,
- 173, 173, 173, 173, 173, 173, 173, 59, 173, 173,
- 173, 173, 173, 173, 173, 173, 51, 39, 39, 53,
- 54, 48, 56, 41, 175, 45, 46, 46, 46, 46,
- 18, 23, 175, 24, 175, 40, 175, 175, 175, 50,
- 62, 63, 175, 59, 175, 175, 175, 175, 175, 175,
- 59, 175, 175, 175, 175, 175, 128, 175, 175, 175,
- 175, 175, 113, 175, 175, 175, 175, 175, 175, 175,
- 175, 175, 175, 175, 175, 175, 175, 175, 143, 141,
- 175, 174, 174, 58, 174, 59, 174, 174, 174, 174,
-
- 174, 59, 174, 174, 174, 174, 174, 59, 174, 174,
- 174, 174, 174, 128, 174, 174, 174, 174, 174, 113,
- 174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
- 174, 143, 141, 4, 173, 173, 173, 173, 173, 148,
- 173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
- 163, 173, 173, 173, 173, 173, 173, 39, 29, 46,
- 46, 46, 175, 175, 175, 175, 175, 175, 175, 108,
- 175, 175, 133, 175, 137, 175, 175, 175, 175, 124,
- 175, 175, 175, 138, 175, 175, 131, 175, 110, 175,
- 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
-
- 175, 175, 175, 174, 108, 174, 174, 110, 174, 174,
- 174, 174, 174, 133, 174, 137, 174, 174, 174, 124,
- 174, 174, 174, 138, 174, 174, 131, 174, 174, 174,
- 174, 174, 174, 174, 174, 174, 174, 174, 59, 173,
- 173, 173, 152, 151, 173, 160, 155, 158, 173, 173,
- 161, 173, 173, 164, 173, 169, 165, 167, 173, 170,
- 39, 44, 46, 46, 175, 175, 175, 175, 175, 175,
- 175, 107, 105, 175, 175, 175, 136, 109, 130, 175,
- 175, 118, 175, 175, 175, 175, 175, 175, 175, 175,
- 175, 132, 175, 175, 175, 175, 175, 175, 174, 107,
-
- 174, 174, 174, 174, 174, 105, 174, 174, 136, 109,
- 130, 174, 174, 118, 174, 174, 174, 174, 174, 174,
- 174, 174, 132, 174, 174, 174, 173, 153, 150, 173,
- 160, 160, 157, 173, 173, 173, 173, 169, 169, 166,
- 38, 43, 42, 175, 175, 175, 16, 175, 175, 175,
- 175, 175, 175, 175, 175, 175, 106, 103, 175, 135,
- 104, 117, 175, 175, 175, 114, 175, 129, 115, 175,
- 175, 174, 174, 135, 114, 174, 174, 174, 174, 174,
- 174, 106, 103, 174, 104, 117, 174, 174, 174, 174,
- 129, 115, 173, 173, 159, 156, 173, 173, 168, 7,
-
- 12, 175, 175, 175, 175, 175, 175, 175, 119, 175,
- 144, 134, 175, 139, 175, 175, 175, 125, 175, 175,
- 174, 119, 174, 174, 174, 174, 174, 174, 144, 134,
- 174, 139, 174, 174, 125, 173, 173, 173, 173, 7,
- 175, 175, 175, 175, 162, 175, 175, 175, 175, 175,
- 175, 123, 175, 171, 175, 162, 174, 171, 174, 174,
- 174, 174, 174, 174, 174, 123, 162, 149, 154, 171,
- 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
- 175, 175, 174, 174, 174, 174, 174, 174, 174, 174,
- 175, 175, 175, 175, 175, 175, 175, 175, 175, 116,
-
- 175, 175, 174, 174, 174, 174, 174, 174, 174, 116,
- 175, 175, 175, 175, 175, 175, 175, 175, 127, 175,
- 175, 175, 174, 174, 174, 174, 174, 127, 174, 175,
- 175, 175, 11, 10, 121, 175, 175, 175, 175, 175,
- 174, 174, 121, 174, 174, 174, 175, 175, 175, 175,
- 175, 126, 175, 175, 174, 174, 174, 174, 126, 175,
- 175, 175, 175, 175, 112, 111, 112, 111, 174, 174,
- 9, 8, 175, 175, 175, 174, 174, 175, 175, 175,
- 174, 174, 175, 175, 175, 174, 174, 175, 175, 175,
- 174, 174, 175, 175, 175, 174, 174, 52, 175, 175,
-
- 174, 174, 120, 175, 120, 174, 175, 174, 122, 122,
- 0
- } ;
-
- static const YY_CHAR yy_ec[128] =
- { 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, 5, 1, 6, 7, 8, 1, 9,
- 10, 11, 12, 13, 14, 15, 16, 17, 18, 18,
- 18, 18, 18, 18, 18, 18, 18, 19, 20, 21,
- 22, 23, 24, 1, 25, 26, 27, 28, 29, 30,
- 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
- 15, 41, 42, 43, 44, 45, 15, 46, 47, 48,
- 49, 15, 50, 1, 51, 1, 52, 53, 54, 55,
-
- 56, 57, 58, 59, 60, 15, 61, 62, 63, 64,
- 65, 66, 15, 67, 68, 69, 70, 71, 15, 72,
- 73, 74, 75, 76, 77, 78, 1
- } ;
-
- static const YY_CHAR yy_meta[79] =
- { 0,
- 1, 1, 2, 3, 1, 4, 1, 3, 1, 1,
- 1, 4, 5, 4, 6, 6, 7, 7, 4, 1,
- 3, 5, 3, 1, 7, 7, 7, 7, 7, 7,
- 6, 6, 6, 6, 7, 6, 7, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 4, 4,
- 6, 7, 7, 7, 7, 7, 7, 6, 6, 6,
- 7, 6, 7, 6, 6, 6, 6, 6, 6, 6,
- 6, 7, 6, 6, 1, 1, 1, 4
- } ;
-
- static const short int yy_base[936] =
- { 0,
- 0, 0, 0, 77, 154, 0, 232, 0, 0, 0,
- 305, 0, 370, 0, 448, 0, 1757, 1758, 1758, 0,
- 1751, 9, 521, 14, 1758, 1733, 583, 1758, 4, 1758,
- 1758, 1732, 1731, 0, 1730, 0, 16, 624, 1679, 0,
- 1758, 7, 1728, 11, 1758, 17, 0, 1, 2, 11,
- 18, 1708, 1699, 17, 23, 26, 17, 63, 1705, 0,
- 0, 41, 1667, 1649, 1617, 1758, 28, 1758, 0, 680,
- 1651, 1758, 1605, 0, 48, 721, 1554, 1758, 1603, 777,
- 79, 83, 79, 1591, 1758, 1758, 88, 1563, 0, 824,
- 291, 292, 629, 597, 86, 682, 610, 782, 1586, 1583,
-
- 91, 38, 99, 88, 573, 1595, 651, 665, 1563, 1551,
- 1758, 865, 1758, 1758, 0, 1758, 906, 1758, 953, 0,
- 0, 1758, 994, 109, 110, 114, 313, 330, 104, 1592,
- 1575, 1571, 1585, 1572, 571, 657, 592, 648, 4, 1560,
- 1544, 1554, 0, 1604, 1758, 719, 0, 0, 1540, 288,
- 0, 295, 0, 1555, 0, 0, 0, 0, 475, 1539,
- 0, 0, 0, 0, 475, 0, 1540, 0, 0, 0,
- 1539, 0, 1547, 1537, 0, 0, 0, 0, 0, 1758,
- 1758, 0, 1529, 1758, 1758, 1758, 0, 0, 0, 0,
- 694, 1578, 1758, 0, 1758, 1577, 273, 293, 1565, 0,
-
- 1558, 1553, 1, 1566, 72, 1565, 1550, 1556, 1552, 1549,
- 1553, 714, 1550, 1549, 1546, 1548, 1538, 289, 1550, 1539,
- 1552, 41, 1541, 1531, 1553, 1530, 1530, 248, 1506, 1511,
- 1494, 1758, 1758, 0, 1041, 1495, 1758, 1758, 0, 1493,
- 1487, 1758, 1758, 724, 1758, 1097, 1514, 1522, 0, 0,
- 1516, 0, 0, 1518, 1501, 1510, 1497, 1476, 1469, 763,
- 811, 0, 867, 838, 1503, 1498, 558, 1511, 912, 1510,
- 1495, 1501, 1497, 1494, 1498, 741, 1495, 1494, 1491, 1493,
- 310, 1496, 1485, 1498, 590, 1487, 1500, 1482, 1482, 929,
- 1458, 1463, 0, 1448, 0, 0, 0, 1153, 1447, 0,
-
- 1209, 1476, 0, 0, 0, 1484, 1474, 1482, 1486, 1472,
- 1470, 1486, 1473, 1481, 1482, 1480, 1462, 1437, 1444, 1448,
- 1435, 1433, 1443, 1431, 1438, 1438, 0, 0, 1422, 0,
- 0, 0, 300, 0, 1424, 0, 0, 1420, 1430, 1423,
- 0, 0, 1416, 0, 1405, 0, 1411, 557, 1403, 0,
- 1758, 1758, 1430, 76, 1437, 1440, 1437, 1423, 1417, 1438,
- 571, 1435, 1420, 1424, 1434, 1431, 0, 1421, 1417, 1411,
- 1423, 1422, 0, 1413, 1408, 1414, 1410, 1417, 1407, 1405,
- 1404, 1401, 1402, 1413, 1400, 1404, 1408, 1373, 0, 0,
- 1381, 1419, 1396, 1393, 1402, 1399, 1388, 1391, 1400, 1363,
-
- 1371, 1000, 1399, 1396, 1382, 1371, 1392, 852, 1389, 1374,
- 1378, 1388, 1384, 0, 1369, 1363, 1352, 1364, 1363, 0,
- 1354, 1356, 1360, 1350, 1348, 1347, 1344, 1345, 1344, 1348,
- 1352, 0, 0, 727, 1265, 1343, 598, 1352, 1340, 0,
- 1342, 1335, 1349, 1347, 1346, 1338, 1330, 1334, 1306, 1304,
- 0, 1306, 1299, 1312, 1310, 1309, 1295, 1311, 0, 1294,
- 1292, 1288, 1291, 1295, 1293, 1304, 1303, 1285, 1317, 0,
- 1314, 1316, 0, 1307, 0, 1306, 1310, 1304, 1294, 0,
- 1297, 1310, 1294, 0, 1294, 1293, 0, 1293, 0, 1289,
- 1300, 1283, 1271, 1278, 1286, 1279, 1268, 1271, 1266, 1275,
-
- 1278, 1244, 1240, 1268, 0, 1265, 1264, 0, 1276, 1261,
- 1237, 1233, 1262, 0, 1253, 0, 1246, 1245, 1240, 0,
- 1243, 1256, 1240, 0, 1237, 1236, 0, 1237, 1238, 1243,
- 1231, 1238, 1246, 1239, 1228, 1227, 1236, 1239, 728, 1231,
- 1218, 1221, 0, 0, 1233, 1322, 0, 0, 1216, 1223,
- 0, 1227, 1191, 0, 1200, 1399, 0, 0, 1184, 0,
- 1181, 0, 1197, 1178, 1173, 1193, 1185, 1171, 1182, 611,
- 1196, 0, 0, 1192, 1203, 1202, 0, 0, 0, 1179,
- 1201, 0, 1196, 1177, 1198, 1194, 1183, 1177, 1194, 1186,
- 1178, 0, 1185, 1169, 1186, 1168, 1134, 1146, 1158, 0,
-
- 1172, 1172, 1169, 1128, 1140, 0, 1155, 1166, 0, 0,
- 0, 1143, 1165, 0, 1160, 1144, 1164, 1149, 1143, 1160,
- 1152, 1138, 0, 1132, 1149, 1131, 1129, 0, 1135, 1125,
- 0, 1476, 0, 1140, 1141, 1095, 1095, 0, 1553, 0,
- 0, 0, 0, 1100, 1093, 1101, 0, 1096, 1105, 1104,
- 1114, 1112, 1104, 1120, 1120, 1117, 0, 0, 1102, 0,
- 0, 1093, 1095, 1090, 1102, 1088, 1098, 0, 0, 1068,
- 1084, 1091, 1105, 0, 1081, 1062, 1079, 1084, 1070, 1093,
- 1090, 0, 0, 1075, 0, 1066, 1069, 1061, 1073, 1070,
- 0, 0, 1066, 1069, 0, 0, 1064, 1037, 0, 619,
-
- 0, 1052, 1089, 1036, 1035, 1070, 1065, 1052, 0, 1051,
- 0, 0, 645, 0, 1061, 1046, 1055, 0, 1030, 1026,
- 1055, 0, 1051, 1026, 1022, 1053, 1040, 1038, 0, 0,
- 664, 0, 1047, 1032, 0, 1044, 1044, 1036, 1008, 628,
- 1002, 992, 993, 991, 0, 1010, 1026, 1008, 1003, 1004,
- 1009, 0, 1010, 0, 982, 0, 1007, 0, 978, 989,
- 1002, 990, 984, 979, 983, 0, 0, 0, 0, 0,
- 946, 941, 950, 941, 964, 968, 964, 973, 958, 957,
- 971, 943, 969, 941, 952, 955, 951, 960, 945, 944,
- 701, 921, 912, 911, 933, 943, 929, 933, 920, 0,
-
- 928, 900, 926, 898, 911, 922, 911, 916, 908, 0,
- 888, 884, 886, 874, 873, 885, 899, 887, 0, 891,
- 885, 856, 882, 854, 866, 880, 868, 0, 880, 831,
- 27, 74, 0, 0, 0, 108, 285, 307, 327, 465,
- 501, 478, 0, 560, 612, 624, 613, 635, 633, 650,
- 678, 0, 676, 652, 679, 654, 674, 705, 0, 715,
- 716, 704, 737, 747, 0, 0, 0, 0, 744, 756,
- 0, 0, 782, 750, 765, 761, 774, 754, 785, 786,
- 790, 797, 777, 813, 817, 821, 829, 795, 819, 834,
- 821, 836, 806, 827, 821, 829, 824, 0, 826, 837,
-
- 829, 853, 0, 849, 0, 857, 859, 860, 0, 0,
- 1758, 1630, 1637, 1642, 1649, 1654, 1658, 1662, 893, 1664,
- 1668, 1675, 1679, 1683, 1687, 1691, 1695, 1699, 1703, 1707,
- 1714, 1721, 1728, 1735, 1742
- } ;
-
- static const short int yy_def[936] =
- { 0,
- 912, 912, 913, 913, 911, 5, 911, 7, 912, 912,
- 7, 11, 911, 13, 911, 15, 911, 911, 911, 914,
- 915, 916, 911, 916, 911, 911, 917, 911, 911, 911,
- 911, 911, 917, 917, 917, 917, 917, 917, 38, 917,
- 911, 911, 917, 911, 911, 38, 38, 38, 38, 38,
- 38, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 38, 917, 917, 917, 911, 911, 911, 917, 918,
- 911, 911, 911, 918, 918, 911, 76, 911, 911, 918,
- 80, 80, 918, 918, 911, 911, 80, 918, 918, 918,
- 919, 919, 90, 90, 90, 90, 90, 90, 918, 918,
-
- 918, 918, 918, 918, 918, 918, 90, 90, 918, 918,
- 911, 920, 911, 911, 920, 911, 920, 911, 921, 922,
- 921, 911, 921, 123, 123, 123, 123, 123, 921, 921,
- 921, 921, 921, 921, 123, 123, 123, 123, 921, 921,
- 921, 921, 914, 915, 911, 916, 917, 923, 924, 917,
- 925, 917, 926, 917, 917, 927, 917, 917, 928, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 929,
- 917, 917, 917, 917, 917, 917, 917, 917, 930, 911,
- 911, 38, 38, 911, 911, 911, 917, 917, 917, 917,
- 38, 911, 911, 917, 911, 911, 38, 38, 917, 917,
-
- 917, 917, 917, 917, 38, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 38, 917, 917,
- 917, 911, 911, 918, 918, 235, 911, 911, 918, 76,
- 76, 911, 911, 92, 911, 235, 246, 246, 918, 918,
- 918, 918, 246, 246, 918, 918, 918, 246, 918, 90,
- 90, 92, 90, 90, 918, 918, 918, 918, 90, 918,
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 90,
- 918, 918, 920, 117, 117, 920, 921, 921, 298, 931,
-
- 298, 301, 301, 921, 921, 921, 301, 921, 921, 921,
- 921, 921, 921, 921, 921, 921, 921, 301, 921, 921,
- 921, 921, 921, 921, 921, 921, 923, 924, 924, 917,
- 917, 925, 917, 926, 917, 927, 928, 928, 928, 928,
- 917, 917, 917, 917, 917, 929, 917, 917, 917, 930,
- 911, 911, 917, 38, 917, 917, 917, 917, 917, 917,
- 38, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 90, 918, 246, 918, 246, 918, 918, 918, 918,
-
- 918, 90, 918, 918, 918, 918, 918, 90, 918, 918,
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 117, 921, 921, 921, 921, 921, 921,
- 921, 921, 921, 921, 921, 921, 921, 921, 921, 921,
- 921, 921, 921, 921, 921, 921, 921, 924, 917, 928,
- 928, 928, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
-
- 917, 917, 917, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 918, 918, 918, 435, 921,
- 921, 921, 921, 921, 921, 932, 921, 921, 921, 921,
- 921, 921, 921, 921, 921, 933, 921, 921, 921, 921,
- 924, 928, 928, 928, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 918, 918,
-
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 918, 921, 921, 921, 921,
- 934, 932, 921, 921, 921, 921, 921, 935, 933, 921,
- 924, 928, 928, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 921, 921, 921, 921, 921, 921, 921, 917,
-
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 921, 921, 921, 921, 911,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 917, 917, 917, 918, 918, 918, 918, 918,
- 918, 918, 918, 918, 918, 918, 921, 921, 921, 921,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 918, 918, 918, 918, 918, 918, 918, 918,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
-
- 917, 917, 918, 918, 918, 918, 918, 918, 918, 918,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 917, 917, 918, 918, 918, 918, 918, 918, 918, 917,
- 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
- 918, 918, 918, 918, 918, 918, 917, 917, 917, 917,
- 917, 917, 917, 917, 918, 918, 918, 918, 918, 917,
- 917, 917, 917, 917, 917, 917, 918, 918, 918, 918,
- 917, 917, 917, 917, 917, 918, 918, 917, 917, 917,
- 918, 918, 917, 917, 917, 918, 918, 917, 917, 917,
- 918, 918, 917, 917, 917, 918, 918, 917, 917, 917,
-
- 918, 918, 917, 917, 918, 918, 917, 918, 917, 918,
- 0, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911
- } ;
-
- static const short int yy_nxt[1837] =
- { 0,
- 18, 19, 18, 20, 21, 911, 18, 20, 18, 18,
- 18, 184, 143, 23, 911, 24, 143, 143, 911, 18,
- 20, 143, 20, 18, 180, 185, 180, 192, 193, 143,
- 205, 143, 195, 196, 143, 201, 143, 189, 358, 203,
- 359, 204, 197, 206, 198, 213, 202, 215, 207, 232,
- 208, 216, 199, 209, 217, 214, 210, 219, 180, 200,
- 220, 221, 279, 322, 218, 381, 280, 382, 323, 239,
- 911, 147, 147, 147, 18, 18, 18, 18, 19, 18,
- 20, 21, 147, 18, 20, 18, 18, 18, 147, 147,
- 23, 222, 24, 228, 223, 224, 18, 20, 848, 20,
-
- 18, 361, 261, 233, 253, 225, 253, 255, 253, 226,
- 253, 254, 147, 253, 234, 253, 470, 256, 234, 277,
- 250, 234, 250, 234, 267, 234, 268, 255, 282, 278,
- 234, 283, 284, 307, 303, 303, 311, 281, 849, 303,
- 258, 308, 312, 147, 297, 297, 250, 147, 250, 297,
- 850, 18, 18, 18, 18, 19, 25, 26, 21, 27,
- 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
- 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
- 48, 49, 50, 51, 36, 52, 53, 36, 36, 54,
- 55, 56, 57, 36, 36, 58, 59, 36, 36, 36,
-
- 36, 36, 60, 61, 36, 62, 39, 39, 39, 39,
- 39, 36, 36, 36, 36, 63, 36, 36, 64, 36,
- 36, 65, 36, 36, 36, 36, 36, 36, 66, 67,
- 68, 69, 18, 19, 25, 26, 21, 70, 28, 29,
- 30, 31, 32, 71, 72, 73, 74, 75, 76, 77,
- 78, 41, 42, 79, 44, 45, 80, 81, 81, 82,
- 81, 81, 74, 74, 74, 74, 74, 74, 74, 83,
- 74, 74, 74, 84, 74, 74, 74, 74, 74, 74,
- 85, 86, 74, 87, 81, 81, 81, 81, 81, 74,
- 74, 74, 74, 74, 74, 74, 74, 74, 74, 88,
-
- 74, 74, 74, 74, 74, 74, 66, 67, 68, 89,
- 90, 333, 333, 330, 353, 388, 333, 333, 376, 147,
- 354, 91, 92, 331, 377, 243, 243, 243, 243, 93,
- 94, 95, 96, 97, 98, 851, 99, 100, 303, 422,
- 101, 102, 103, 104, 147, 398, 105, 106, 297, 852,
- 309, 243, 243, 243, 243, 303, 107, 108, 108, 108,
- 108, 108, 244, 911, 147, 297, 109, 853, 310, 110,
- 18, 111, 18, 18, 18, 112, 18, 18, 18, 18,
- 18, 113, 18, 114, 115, 115, 91, 92, 18, 18,
- 18, 116, 18, 18, 117, 117, 117, 117, 117, 117,
-
- 115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
- 115, 115, 115, 115, 115, 115, 115, 115, 18, 18,
- 115, 117, 117, 117, 117, 117, 117, 115, 115, 115,
- 115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
- 115, 115, 115, 115, 18, 18, 18, 115, 18, 19,
- 118, 18, 18, 119, 18, 18, 18, 18, 120, 18,
- 72, 18, 121, 121, 76, 77, 18, 18, 18, 122,
- 18, 18, 123, 124, 125, 126, 127, 128, 121, 121,
- 121, 121, 121, 129, 121, 130, 131, 132, 121, 133,
- 134, 121, 121, 121, 121, 121, 18, 18, 121, 135,
-
- 126, 136, 126, 137, 138, 121, 121, 121, 121, 139,
- 121, 140, 141, 121, 121, 142, 121, 121, 121, 121,
- 121, 121, 18, 18, 18, 121, 147, 338, 342, 339,
- 343, 854, 147, 147, 147, 147, 147, 147, 147, 147,
- 344, 855, 147, 340, 856, 148, 149, 147, 147, 150,
- 151, 152, 147, 147, 147, 147, 153, 154, 155, 156,
- 147, 157, 158, 159, 160, 161, 162, 147, 147, 147,
- 147, 147, 147, 163, 164, 165, 166, 167, 168, 147,
- 169, 147, 170, 147, 171, 172, 147, 173, 174, 175,
- 176, 177, 178, 179, 147, 405, 303, 406, 147, 182,
-
- 183, 285, 857, 477, 286, 257, 297, 183, 183, 183,
- 183, 183, 183, 261, 426, 287, 427, 303, 466, 288,
- 740, 740, 541, 318, 649, 467, 261, 297, 542, 740,
- 740, 250, 265, 250, 183, 183, 183, 183, 183, 183,
- 183, 183, 147, 266, 250, 261, 250, 271, 183, 183,
- 183, 183, 183, 183, 263, 320, 264, 250, 190, 250,
- 190, 650, 858, 250, 251, 250, 859, 261, 860, 749,
- 250, 252, 250, 303, 750, 183, 183, 183, 183, 183,
- 183, 261, 303, 297, 190, 250, 190, 250, 763, 250,
- 861, 250, 297, 764, 862, 191, 235, 236, 261, 250,
-
- 863, 250, 864, 290, 236, 236, 236, 236, 236, 236,
- 269, 250, 321, 250, 811, 319, 250, 865, 250, 866,
- 867, 868, 143, 270, 869, 250, 143, 250, 147, 870,
- 147, 236, 236, 236, 236, 236, 236, 240, 240, 143,
- 368, 143, 250, 369, 250, 240, 241, 240, 241, 240,
- 240, 812, 242, 370, 147, 243, 147, 243, 911, 242,
- 911, 293, 305, 293, 305, 147, 242, 415, 871, 872,
- 416, 873, 240, 240, 240, 240, 240, 240, 874, 261,
- 417, 243, 875, 243, 911, 876, 911, 293, 305, 293,
- 305, 877, 244, 246, 246, 878, 879, 250, 261, 250,
-
- 880, 246, 247, 246, 248, 246, 246, 881, 249, 882,
- 883, 250, 251, 250, 272, 249, 250, 273, 250, 252,
- 274, 884, 249, 250, 885, 250, 886, 261, 246, 246,
- 246, 246, 246, 246, 392, 887, 888, 250, 889, 250,
- 260, 261, 250, 890, 250, 250, 891, 250, 261, 261,
- 261, 261, 261, 261, 261, 892, 893, 894, 895, 896,
- 897, 898, 899, 900, 901, 402, 902, 903, 261, 904,
- 905, 250, 250, 250, 250, 261, 261, 261, 261, 261,
- 261, 294, 295, 261, 507, 906, 250, 907, 250, 295,
- 295, 295, 295, 295, 295, 908, 909, 910, 250, 262,
-
- 250, 250, 847, 250, 846, 845, 844, 843, 393, 842,
- 841, 840, 250, 839, 250, 838, 295, 295, 295, 295,
- 295, 295, 295, 295, 837, 836, 835, 250, 261, 250,
- 295, 295, 295, 295, 295, 295, 834, 833, 832, 831,
- 296, 408, 296, 830, 829, 261, 250, 828, 250, 827,
- 826, 825, 824, 823, 822, 821, 820, 295, 295, 295,
- 295, 295, 295, 250, 819, 250, 296, 818, 296, 298,
- 299, 817, 250, 816, 250, 815, 814, 299, 299, 299,
- 299, 299, 299, 813, 810, 809, 808, 807, 806, 250,
- 805, 250, 804, 803, 802, 801, 400, 800, 799, 798,
-
- 797, 796, 795, 794, 299, 299, 299, 299, 299, 299,
- 301, 301, 793, 792, 791, 790, 261, 789, 301, 302,
- 301, 303, 301, 301, 788, 304, 787, 786, 305, 306,
- 305, 785, 304, 784, 250, 783, 250, 782, 781, 304,
- 505, 780, 779, 778, 777, 301, 301, 301, 301, 301,
- 301, 776, 775, 774, 305, 773, 305, 236, 236, 772,
- 250, 771, 250, 770, 769, 236, 236, 236, 236, 236,
- 236, 768, 767, 766, 765, 250, 762, 250, 761, 760,
- 759, 758, 757, 756, 755, 754, 753, 752, 751, 748,
- 747, 746, 236, 236, 236, 236, 236, 236, 745, 744,
-
- 743, 250, 742, 250, 741, 739, 738, 737, 736, 735,
- 734, 733, 392, 246, 246, 732, 731, 730, 729, 728,
- 727, 246, 253, 246, 253, 246, 246, 726, 249, 725,
- 724, 723, 722, 721, 720, 249, 719, 718, 717, 716,
- 715, 714, 249, 713, 712, 711, 710, 709, 246, 246,
- 246, 246, 246, 246, 708, 707, 706, 705, 704, 703,
- 702, 701, 700, 699, 698, 697, 696, 695, 234, 299,
- 299, 694, 693, 692, 691, 690, 689, 299, 299, 299,
- 299, 299, 299, 688, 687, 686, 685, 305, 684, 305,
- 683, 682, 681, 680, 679, 678, 677, 676, 675, 674,
-
- 673, 672, 671, 670, 299, 299, 299, 299, 299, 299,
- 669, 668, 667, 305, 666, 305, 665, 664, 663, 662,
- 661, 660, 659, 658, 435, 301, 301, 657, 656, 655,
- 654, 653, 652, 301, 303, 301, 303, 301, 301, 651,
- 304, 648, 647, 646, 645, 644, 643, 304, 642, 641,
- 640, 637, 636, 635, 304, 634, 633, 630, 629, 628,
- 301, 301, 301, 301, 301, 301, 627, 626, 625, 624,
- 623, 622, 621, 620, 619, 618, 617, 616, 615, 614,
- 297, 539, 539, 613, 612, 611, 610, 609, 608, 539,
- 539, 539, 539, 539, 539, 607, 606, 605, 604, 603,
-
- 602, 601, 600, 599, 598, 597, 596, 595, 594, 593,
- 592, 591, 590, 589, 588, 587, 539, 539, 539, 539,
- 539, 539, 631, 631, 586, 631, 631, 585, 631, 631,
- 631, 631, 631, 584, 631, 583, 582, 581, 580, 579,
- 578, 631, 631, 631, 631, 631, 577, 576, 575, 574,
- 573, 572, 571, 570, 569, 568, 567, 566, 565, 564,
- 563, 562, 561, 560, 559, 558, 557, 556, 555, 554,
- 553, 552, 551, 550, 549, 548, 547, 546, 545, 544,
- 543, 540, 538, 537, 536, 535, 534, 533, 532, 531,
- 530, 529, 528, 527, 526, 525, 631, 631, 631, 638,
-
- 638, 524, 638, 638, 523, 638, 638, 638, 638, 638,
- 522, 638, 521, 520, 519, 518, 517, 516, 638, 638,
- 638, 638, 638, 515, 514, 513, 512, 511, 510, 509,
- 508, 507, 506, 505, 504, 261, 503, 502, 501, 500,
- 499, 498, 497, 496, 495, 494, 493, 492, 491, 490,
- 489, 488, 487, 486, 485, 484, 483, 482, 481, 480,
- 479, 478, 476, 475, 474, 473, 472, 471, 469, 468,
- 465, 464, 463, 638, 638, 638, 631, 631, 462, 631,
- 631, 461, 631, 631, 631, 631, 631, 460, 631, 459,
- 458, 457, 456, 455, 454, 631, 631, 631, 631, 631,
-
- 453, 452, 451, 450, 449, 448, 447, 446, 445, 444,
- 443, 442, 441, 440, 439, 438, 437, 436, 297, 434,
- 433, 432, 431, 430, 429, 428, 425, 424, 423, 421,
- 420, 419, 418, 414, 413, 412, 411, 410, 409, 407,
- 404, 403, 401, 400, 399, 398, 397, 396, 395, 394,
- 631, 631, 631, 638, 638, 393, 638, 638, 911, 638,
- 638, 638, 638, 638, 911, 638, 234, 391, 390, 389,
- 387, 386, 638, 638, 638, 638, 638, 385, 384, 383,
- 380, 379, 378, 375, 374, 373, 372, 371, 367, 366,
- 365, 364, 363, 362, 360, 357, 356, 355, 352, 351,
-
- 147, 349, 348, 347, 345, 341, 335, 329, 145, 326,
- 325, 324, 317, 316, 315, 314, 313, 292, 291, 289,
- 276, 275, 259, 257, 245, 911, 238, 638, 638, 638,
- 18, 18, 18, 18, 18, 18, 18, 22, 22, 22,
- 22, 22, 22, 22, 143, 143, 143, 143, 143, 144,
- 144, 144, 144, 144, 144, 144, 146, 146, 146, 146,
- 146, 147, 147, 147, 147, 234, 234, 234, 234, 293,
- 293, 297, 237, 297, 297, 300, 231, 300, 300, 300,
- 300, 300, 327, 327, 327, 327, 328, 328, 328, 328,
- 332, 332, 332, 332, 334, 334, 334, 334, 336, 336,
-
- 336, 336, 337, 337, 337, 337, 346, 346, 346, 346,
- 350, 350, 350, 350, 300, 230, 300, 300, 300, 300,
- 300, 632, 229, 632, 632, 632, 632, 632, 639, 227,
- 639, 639, 639, 639, 639, 631, 212, 631, 631, 631,
- 631, 631, 638, 211, 638, 638, 638, 638, 638, 194,
- 147, 188, 187, 186, 181, 145, 911, 17, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
-
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911
- } ;
-
- static const short int yy_chk[1837] =
- { 0,
- 3, 3, 3, 3, 3, 0, 3, 3, 3, 3,
- 3, 29, 22, 3, 0, 3, 22, 24, 0, 3,
- 3, 24, 3, 3, 24, 29, 37, 42, 42, 22,
- 49, 22, 44, 44, 24, 47, 24, 37, 203, 48,
- 203, 48, 46, 49, 46, 54, 47, 55, 50, 67,
- 51, 55, 46, 51, 56, 54, 51, 57, 75, 46,
- 57, 57, 102, 139, 56, 222, 102, 222, 139, 75,
- 0, 47, 48, 49, 3, 3, 3, 4, 4, 4,
- 4, 4, 50, 4, 4, 4, 4, 4, 46, 51,
- 4, 58, 4, 62, 58, 58, 4, 4, 831, 4,
-
- 4, 205, 95, 67, 81, 58, 81, 83, 82, 58,
- 82, 82, 62, 87, 81, 87, 354, 83, 82, 101,
- 95, 81, 95, 87, 95, 82, 95, 103, 104, 101,
- 87, 104, 104, 124, 124, 125, 129, 103, 832, 126,
- 87, 125, 129, 205, 124, 125, 95, 354, 95, 126,
- 836, 4, 4, 4, 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, 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, 7, 7, 7, 7,
- 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
-
- 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
- 11, 152, 152, 150, 197, 228, 333, 333, 218, 228,
- 198, 11, 11, 150, 218, 91, 92, 91, 92, 11,
- 11, 11, 11, 11, 11, 837, 11, 11, 127, 281,
- 11, 11, 11, 11, 197, 281, 11, 11, 127, 838,
- 127, 91, 92, 91, 92, 128, 11, 11, 11, 11,
- 11, 11, 91, 92, 198, 128, 11, 839, 128, 11,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
-
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 13, 15, 15,
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
-
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 15, 15, 23, 159, 165, 159,
- 165, 840, 23, 23, 23, 23, 23, 23, 23, 23,
- 165, 841, 23, 159, 842, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 267, 135, 267, 23, 27,
-
- 27, 105, 844, 361, 105, 105, 135, 27, 27, 27,
- 27, 27, 27, 94, 285, 105, 285, 137, 348, 105,
- 700, 700, 437, 135, 570, 348, 97, 137, 437, 740,
- 740, 94, 94, 94, 27, 27, 27, 27, 27, 27,
- 38, 38, 361, 94, 97, 93, 97, 97, 38, 38,
- 38, 38, 38, 38, 93, 137, 93, 94, 38, 94,
- 38, 570, 845, 93, 93, 93, 846, 107, 847, 713,
- 97, 93, 97, 138, 713, 38, 38, 38, 38, 38,
- 38, 108, 136, 138, 38, 107, 38, 107, 731, 93,
- 848, 93, 136, 731, 849, 38, 70, 70, 96, 108,
-
- 850, 108, 851, 107, 70, 70, 70, 70, 70, 70,
- 96, 107, 138, 107, 791, 136, 96, 853, 96, 854,
- 855, 856, 146, 96, 857, 108, 146, 108, 191, 858,
- 191, 70, 70, 70, 70, 70, 70, 76, 76, 146,
- 212, 146, 96, 212, 96, 76, 76, 76, 76, 76,
- 76, 791, 76, 212, 191, 76, 191, 76, 244, 76,
- 244, 434, 539, 434, 539, 191, 76, 276, 860, 861,
- 276, 862, 76, 76, 76, 76, 76, 76, 863, 260,
- 276, 76, 864, 76, 244, 869, 244, 434, 539, 434,
- 539, 870, 76, 80, 80, 873, 874, 260, 98, 260,
-
- 875, 80, 80, 80, 80, 80, 80, 876, 80, 877,
- 878, 80, 80, 80, 98, 80, 98, 98, 98, 80,
- 98, 879, 80, 260, 880, 260, 881, 261, 80, 80,
- 80, 80, 80, 80, 260, 882, 883, 80, 884, 80,
- 90, 90, 98, 885, 98, 261, 886, 261, 90, 90,
- 90, 90, 90, 90, 264, 887, 888, 889, 890, 891,
- 892, 893, 894, 895, 896, 264, 897, 899, 408, 900,
- 901, 261, 264, 261, 264, 90, 90, 90, 90, 90,
- 90, 112, 112, 263, 408, 902, 408, 904, 408, 112,
- 112, 112, 112, 112, 112, 906, 907, 908, 264, 919,
-
- 264, 263, 830, 263, 829, 827, 826, 825, 263, 824,
- 823, 822, 408, 821, 408, 820, 112, 112, 112, 112,
- 112, 112, 117, 117, 818, 817, 816, 263, 269, 263,
- 117, 117, 117, 117, 117, 117, 815, 814, 813, 812,
- 117, 269, 117, 811, 809, 290, 269, 808, 269, 807,
- 806, 805, 804, 803, 802, 801, 799, 117, 117, 117,
- 117, 117, 117, 290, 798, 290, 117, 797, 117, 119,
- 119, 796, 269, 795, 269, 794, 793, 119, 119, 119,
- 119, 119, 119, 792, 790, 789, 788, 787, 786, 290,
- 785, 290, 784, 783, 782, 781, 290, 780, 779, 778,
-
- 777, 776, 775, 774, 119, 119, 119, 119, 119, 119,
- 123, 123, 773, 772, 771, 765, 402, 764, 123, 123,
- 123, 123, 123, 123, 763, 123, 762, 761, 123, 123,
- 123, 760, 123, 759, 402, 757, 402, 755, 753, 123,
- 402, 751, 750, 749, 748, 123, 123, 123, 123, 123,
- 123, 747, 746, 744, 123, 743, 123, 235, 235, 742,
- 402, 741, 402, 739, 738, 235, 235, 235, 235, 235,
- 235, 737, 736, 734, 733, 235, 728, 235, 727, 726,
- 725, 724, 723, 721, 720, 719, 717, 716, 715, 710,
- 708, 707, 235, 235, 235, 235, 235, 235, 706, 705,
-
- 704, 235, 703, 235, 702, 698, 697, 694, 693, 690,
- 689, 688, 235, 246, 246, 687, 686, 684, 681, 680,
- 679, 246, 246, 246, 246, 246, 246, 678, 246, 677,
- 676, 675, 673, 672, 671, 246, 670, 667, 666, 665,
- 664, 663, 246, 662, 659, 656, 655, 654, 246, 246,
- 246, 246, 246, 246, 653, 652, 651, 650, 649, 648,
- 646, 645, 644, 637, 636, 635, 634, 630, 246, 298,
- 298, 629, 627, 626, 625, 624, 622, 298, 298, 298,
- 298, 298, 298, 621, 620, 619, 618, 298, 617, 298,
- 616, 615, 613, 612, 608, 607, 605, 604, 603, 602,
-
- 601, 599, 598, 597, 298, 298, 298, 298, 298, 298,
- 596, 595, 594, 298, 593, 298, 591, 590, 589, 588,
- 587, 586, 585, 584, 298, 301, 301, 583, 581, 580,
- 576, 575, 574, 301, 301, 301, 301, 301, 301, 571,
- 301, 569, 568, 567, 566, 565, 564, 301, 563, 561,
- 559, 555, 553, 552, 301, 550, 549, 545, 542, 541,
- 301, 301, 301, 301, 301, 301, 540, 538, 537, 536,
- 535, 534, 533, 532, 531, 530, 529, 528, 526, 525,
- 301, 435, 435, 523, 522, 521, 519, 518, 517, 435,
- 435, 435, 435, 435, 435, 515, 513, 512, 511, 510,
-
- 509, 507, 506, 504, 503, 502, 501, 500, 499, 498,
- 497, 496, 495, 494, 493, 492, 435, 435, 435, 435,
- 435, 435, 546, 546, 491, 546, 546, 490, 546, 546,
- 546, 546, 546, 488, 546, 486, 485, 483, 482, 481,
- 479, 546, 546, 546, 546, 546, 478, 477, 476, 474,
- 472, 471, 469, 468, 467, 466, 465, 464, 463, 462,
- 461, 460, 458, 457, 456, 455, 454, 453, 452, 450,
- 449, 448, 447, 446, 445, 444, 443, 442, 441, 439,
- 438, 436, 431, 430, 429, 428, 427, 426, 425, 424,
- 423, 422, 421, 419, 418, 417, 546, 546, 546, 556,
-
- 556, 416, 556, 556, 415, 556, 556, 556, 556, 556,
- 413, 556, 412, 411, 410, 409, 407, 406, 556, 556,
- 556, 556, 556, 405, 404, 403, 401, 400, 399, 398,
- 397, 396, 395, 394, 393, 392, 391, 388, 387, 386,
- 385, 384, 383, 382, 381, 380, 379, 378, 377, 376,
- 375, 374, 372, 371, 370, 369, 368, 366, 365, 364,
- 363, 362, 360, 359, 358, 357, 356, 355, 353, 349,
- 347, 345, 343, 556, 556, 556, 632, 632, 340, 632,
- 632, 339, 632, 632, 632, 632, 632, 338, 632, 335,
- 329, 326, 325, 324, 323, 632, 632, 632, 632, 632,
-
- 322, 321, 320, 319, 318, 317, 316, 315, 314, 313,
- 312, 311, 310, 309, 308, 307, 306, 302, 299, 294,
- 292, 291, 289, 288, 287, 286, 284, 283, 282, 280,
- 279, 278, 277, 275, 274, 273, 272, 271, 270, 268,
- 266, 265, 259, 258, 257, 256, 255, 254, 251, 248,
- 632, 632, 632, 639, 639, 247, 639, 639, 241, 639,
- 639, 639, 639, 639, 240, 639, 236, 231, 230, 229,
- 227, 226, 639, 639, 639, 639, 639, 225, 224, 223,
- 221, 220, 219, 217, 216, 215, 214, 213, 211, 210,
- 209, 208, 207, 206, 204, 202, 201, 199, 196, 192,
-
- 183, 174, 173, 171, 167, 160, 154, 149, 144, 142,
- 141, 140, 134, 133, 132, 131, 130, 110, 109, 106,
- 100, 99, 88, 84, 79, 77, 73, 639, 639, 639,
- 912, 912, 912, 912, 912, 912, 912, 913, 913, 913,
- 913, 913, 913, 913, 914, 914, 914, 914, 914, 915,
- 915, 915, 915, 915, 915, 915, 916, 916, 916, 916,
- 916, 917, 917, 917, 917, 918, 918, 918, 918, 920,
- 920, 921, 71, 921, 921, 922, 65, 922, 922, 922,
- 922, 922, 923, 923, 923, 923, 924, 924, 924, 924,
- 925, 925, 925, 925, 926, 926, 926, 926, 927, 927,
-
- 927, 927, 928, 928, 928, 928, 929, 929, 929, 929,
- 930, 930, 930, 930, 931, 64, 931, 931, 931, 931,
- 931, 932, 63, 932, 932, 932, 932, 932, 933, 59,
- 933, 933, 933, 933, 933, 934, 53, 934, 934, 934,
- 934, 934, 935, 52, 935, 935, 935, 935, 935, 43,
- 39, 35, 33, 32, 26, 21, 17, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
-
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911, 911, 911, 911, 911,
- 911, 911, 911, 911, 911, 911
- } ;
-
- static yy_state_type yy_last_accepting_state;
- static YY_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
- # line 255 "flex.skel"
-
- /* these variables are all declared out here so that section 3 code can
- * manipulate them
- */
- /* points to current character in buffer */
- static YY_CHAR *yy_c_buf_p = (YY_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;
-
- 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 yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
- 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 ));
-
- #define yy_new_buffer yy_create_buffer
-
- #ifdef __cplusplus
- static int yyinput YY_PROTO(( void ));
- #else
- static int input YY_PROTO(( void ));
- #endif
-
- YY_DECL
- {
- register yy_state_type yy_current_state;
- register YY_CHAR *yy_cp, *yy_bp;
- register int yy_act;
-
-
-
-
- # line 296 "flex.skel"
-
- if ( yy_init )
- {
- YY_USER_INIT;
-
- if ( ! yy_start )
- yy_start = 1; /* first start state */
-
- if ( ! yyin )
- yyin = stdin;
-
- if ( ! yyout )
- yyout = stdout;
-
- if ( yy_current_buffer )
- yy_init_buffer( yy_current_buffer, yyin );
- else
- yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
-
- yy_load_buffer_state();
-
- yy_init = 0;
- }
-
- while ( 1 ) /* loops until end-of-file is reached */
- {
- # line 324 "flex.skel"
- 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_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 = yy_def[yy_current_state];
- if ( yy_current_state >= 912 )
- yy_c = yy_meta[yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
- ++yy_cp;
- }
- while ( yy_base[yy_current_state] != 1758 );
- # line 336 "flex.skel"
-
- yy_find_action:
- yy_act = yy_accept[yy_current_state];
- # line 340 "flex.skel"
-
- YY_DO_BEFORE_ACTION;
- YY_USER_ACTION;
-
- do_action: /* this label is used only to access EOF actions */
-
- # line 348 "flex.skel"
-
- switch ( yy_act )
- {
- case 0: /* must backtrack */
- /* 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:
- # line 93 "./ldlex.l"
- { comment(); }
- YY_BREAK
- case 2:
- # line 96 "./ldlex.l"
- { RTOKEN('-');}
- YY_BREAK
- case 3:
- # line 97 "./ldlex.l"
- { RTOKEN('+');}
- YY_BREAK
- case 4:
- # line 98 "./ldlex.l"
- { yylval.name = buystring(yytext); return NAME; }
- YY_BREAK
- case 5:
- # line 99 "./ldlex.l"
- { RTOKEN(DEFSYMEND); }
- YY_BREAK
- case 6:
- # line 100 "./ldlex.l"
- { RTOKEN('='); }
- YY_BREAK
- case 7:
- # line 101 "./ldlex.l"
- { return OPTION_defsym; }
- YY_BREAK
- case 8:
- # line 102 "./ldlex.l"
- { return OPTION_noinhibit_exec; }
- YY_BREAK
- case 9:
- # line 103 "./ldlex.l"
- { return OPTION_noinhibit_exec; }
- YY_BREAK
- case 10:
- # line 104 "./ldlex.l"
- { return OPTION_sort_common;}
- YY_BREAK
- case 11:
- # line 105 "./ldlex.l"
- { return OPTION_sort_common;}
- YY_BREAK
- case 12:
- # line 106 "./ldlex.l"
- { return OPTION_format; }
- YY_BREAK
- case 13:
- # line 107 "./ldlex.l"
- { return OPTION_n; }
- YY_BREAK
- case 14:
- # line 108 "./ldlex.l"
- { return OPTION_N; }
- YY_BREAK
- case 15:
- # line 109 "./ldlex.l"
- { return OPTION_r; }
- YY_BREAK
- case 16:
- # line 110 "./ldlex.l"
- { return OPTION_relax; }
- YY_BREAK
- case 17:
- # line 111 "./ldlex.l"
- { return OPTION_r; }
- YY_BREAK
- case 18:
- # line 112 "./ldlex.l"
- { return OPTION_Ur; }
- YY_BREAK
- case 19:
- # line 113 "./ldlex.l"
- { return OPTION_o; }
- YY_BREAK
- case 20:
- # line 114 "./ldlex.l"
- { return OPTION_g; }
- YY_BREAK
- case 21:
- # line 115 "./ldlex.l"
- { return OPTION_e; }
- YY_BREAK
- case 22:
- # line 116 "./ldlex.l"
- { return OPTION_b; }
- YY_BREAK
- case 23:
- # line 117 "./ldlex.l"
- { return OPTION_dc; }
- YY_BREAK
- case 24:
- # line 118 "./ldlex.l"
- { return OPTION_dp; }
- YY_BREAK
- case 25:
- # line 119 "./ldlex.l"
- { return OPTION_d; }
- YY_BREAK
- case 26:
- # line 120 "./ldlex.l"
- { return OPTION_v; }
- YY_BREAK
- case 27:
- # line 121 "./ldlex.l"
- { return OPTION_V; }
- YY_BREAK
- case 28:
- # line 122 "./ldlex.l"
- { return OPTION_M; }
- YY_BREAK
- case 29:
- # line 123 "./ldlex.l"
- { return OPTION_Map;}
- YY_BREAK
- case 30:
- # line 124 "./ldlex.l"
- { return OPTION_t; }
- YY_BREAK
- case 31:
- # line 125 "./ldlex.l"
- { return OPTION_X; }
- YY_BREAK
- case 32:
- # line 126 "./ldlex.l"
- { return OPTION_x; }
- YY_BREAK
- case 33:
- # line 127 "./ldlex.l"
- { return OPTION_c; }
- YY_BREAK
- case 34:
- # line 128 "./ldlex.l"
- { return OPTION_R; }
- YY_BREAK
- case 35:
- # line 129 "./ldlex.l"
- { return OPTION_u; }
- YY_BREAK
- case 36:
- # line 130 "./ldlex.l"
- { return OPTION_s; }
- YY_BREAK
- case 37:
- # line 131 "./ldlex.l"
- { return OPTION_S; }
- YY_BREAK
- case 38:
- # line 132 "./ldlex.l"
- { return OPTION_Bstatic; }
- YY_BREAK
- case 39:
- # line 133 "./ldlex.l"
- { /* Ignored */ }
- YY_BREAK
- case 40:
- # line 134 "./ldlex.l"
- {
- yylval.name = buystring(yytext+2);
- return OPTION_l;
- }
- YY_BREAK
- case 41:
- # line 139 "./ldlex.l"
- {
- yylval.name = buystring(yytext+2);
- return OPTION_L;
- }
- YY_BREAK
- case 42:
- # line 143 "./ldlex.l"
- {
- yylval.name = ".text";
- return OPTION_Texp;
- }
- YY_BREAK
- case 43:
- # line 147 "./ldlex.l"
- {
- yylval.name = ".data";
- return OPTION_Texp;
- }
- YY_BREAK
- case 44:
- # line 151 "./ldlex.l"
- {
- yylval.name = ".bss";
- return OPTION_Texp;
- }
- YY_BREAK
- case 45:
- # line 155 "./ldlex.l"
- {
- yylval.name = buystring(yytext+2);
- return OPTION_Texp;
- }
- YY_BREAK
- case 46:
- # line 160 "./ldlex.l"
- {
- yylval.name = buystring(yytext+2);
- return OPTION_Tfile;
- }
- YY_BREAK
- case 47:
- # line 164 "./ldlex.l"
- {
- return OPTION_T;
- }
- YY_BREAK
- case 48:
- # line 168 "./ldlex.l"
- {
- return OPTION_F;
- }
- YY_BREAK
- case 49:
- # line 171 "./ldlex.l"
- {
- return OPTION_F;
- }
- YY_BREAK
- case 50:
- # line 175 "./ldlex.l"
- {
- yylval.name = buystring(yytext+2);
- return OPTION_y;
- }
- YY_BREAK
- case 51:
- # line 180 "./ldlex.l"
- {
- yylval.name = buystring(yytext+2);
- return OPTION_Aarch;
- }
- YY_BREAK
- case 52:
- # line 185 "./ldlex.l"
- { return OPTION_RETAIN_SYMBOLS_FILE; }
- YY_BREAK
- case 53:
- # line 187 "./ldlex.l"
- {
- return OPTION_EB;
- }
- YY_BREAK
- case 54:
- # line 190 "./ldlex.l"
- {
- return OPTION_EL;
- }
- YY_BREAK
- case 55:
- # line 193 "./ldlex.l"
- {
- return OPTION_G;
- }
- YY_BREAK
- case 56:
- # line 196 "./ldlex.l"
- {
- yylval.integer = atoi (yytext + 2);
- return OPTION_Gval;
- }
- YY_BREAK
- case 57:
- # line 200 "./ldlex.l"
- {
- yylval.integer = strtoul(yytext+1, 0,16);
- return INT;
- }
- YY_BREAK
- case 58:
- # line 205 "./ldlex.l"
- {
- int base ;
- switch (yytext[yyleng-1]) {
- case 'X':
- case 'H':
- base = 16;
- break;
- case 'O':
- base = 8;
- break;
- case 'B':
- base = 2;
- break;
- default:
- base = 10;
- }
- yylval.integer = strtoul(yytext+1, 0, base);
- return INT;
- }
- YY_BREAK
- case 59:
- # line 224 "./ldlex.l"
- {
- yylval.integer = strtoul(yytext,0,hex_mode);
- if (yytext[yyleng-1]=='M'
- || yytext[yyleng-1] == 'm') {
- yylval.integer *= 1024*1024;
- }
- if (yytext[yyleng-1]=='K'
- || yytext[yyleng-1]=='k') {
- yylval.integer *= 1024;
- }
- return INT;
- }
- YY_BREAK
- case 60:
- # line 236 "./ldlex.l"
- { RTOKEN(']');}
- YY_BREAK
- case 61:
- # line 237 "./ldlex.l"
- { RTOKEN('[');}
- YY_BREAK
- case 62:
- # line 238 "./ldlex.l"
- { RTOKEN(LSHIFTEQ);}
- YY_BREAK
- case 63:
- # line 239 "./ldlex.l"
- { RTOKEN(RSHIFTEQ);}
- YY_BREAK
- case 64:
- # line 240 "./ldlex.l"
- { RTOKEN(OROR);}
- YY_BREAK
- case 65:
- # line 241 "./ldlex.l"
- { RTOKEN(EQ);}
- YY_BREAK
- case 66:
- # line 242 "./ldlex.l"
- { RTOKEN(NE);}
- YY_BREAK
- case 67:
- # line 243 "./ldlex.l"
- { RTOKEN(GE);}
- YY_BREAK
- case 68:
- # line 244 "./ldlex.l"
- { RTOKEN(LE);}
- YY_BREAK
- case 69:
- # line 245 "./ldlex.l"
- { RTOKEN(LSHIFT);}
- YY_BREAK
- case 70:
- # line 246 "./ldlex.l"
- { RTOKEN(RSHIFT);}
- YY_BREAK
- case 71:
- # line 247 "./ldlex.l"
- { RTOKEN(PLUSEQ);}
- YY_BREAK
- case 72:
- # line 248 "./ldlex.l"
- { RTOKEN(MINUSEQ);}
- YY_BREAK
- case 73:
- # line 249 "./ldlex.l"
- { RTOKEN(MULTEQ);}
- YY_BREAK
- case 74:
- # line 250 "./ldlex.l"
- { RTOKEN(DIVEQ);}
- YY_BREAK
- case 75:
- # line 251 "./ldlex.l"
- { RTOKEN(ANDEQ);}
- YY_BREAK
- case 76:
- # line 252 "./ldlex.l"
- { RTOKEN(OREQ);}
- YY_BREAK
- case 77:
- # line 253 "./ldlex.l"
- { RTOKEN(ANDAND);}
- YY_BREAK
- case 78:
- # line 254 "./ldlex.l"
- { RTOKEN('>');}
- YY_BREAK
- case 79:
- # line 255 "./ldlex.l"
- { RTOKEN(',');}
- YY_BREAK
- case 80:
- # line 256 "./ldlex.l"
- { RTOKEN('&');}
- YY_BREAK
- case 81:
- # line 257 "./ldlex.l"
- { RTOKEN('|');}
- YY_BREAK
- case 82:
- # line 258 "./ldlex.l"
- { RTOKEN('~');}
- YY_BREAK
- case 83:
- # line 259 "./ldlex.l"
- { RTOKEN('!');}
- YY_BREAK
- case 84:
- # line 260 "./ldlex.l"
- { RTOKEN('?');}
- YY_BREAK
- case 85:
- # line 261 "./ldlex.l"
- { RTOKEN('*');}
- YY_BREAK
- case 86:
- # line 262 "./ldlex.l"
- { RTOKEN('+');}
- YY_BREAK
- case 87:
- # line 263 "./ldlex.l"
- { RTOKEN('-');}
- YY_BREAK
- case 88:
- # line 264 "./ldlex.l"
- { RTOKEN('/');}
- YY_BREAK
- case 89:
- # line 265 "./ldlex.l"
- { RTOKEN('%');}
- YY_BREAK
- case 90:
- # line 266 "./ldlex.l"
- { RTOKEN('<');}
- YY_BREAK
- case 91:
- # line 267 "./ldlex.l"
- { RTOKEN('>');}
- YY_BREAK
- case 92:
- # line 268 "./ldlex.l"
- { RTOKEN('=');}
- YY_BREAK
- case 93:
- # line 269 "./ldlex.l"
- { RTOKEN('}') ; }
- YY_BREAK
- case 94:
- # line 270 "./ldlex.l"
- { RTOKEN('{'); }
- YY_BREAK
- case 95:
- # line 271 "./ldlex.l"
- { RTOKEN(')');}
- YY_BREAK
- case 96:
- # line 272 "./ldlex.l"
- { RTOKEN('(');}
- YY_BREAK
- case 97:
- # line 273 "./ldlex.l"
- { RTOKEN(']');}
- YY_BREAK
- case 98:
- # line 274 "./ldlex.l"
- { RTOKEN('[');}
- YY_BREAK
- case 99:
- # line 275 "./ldlex.l"
- { RTOKEN(':'); }
- YY_BREAK
- case 100:
- # line 276 "./ldlex.l"
- { RTOKEN(';');}
- YY_BREAK
- case 101:
- # line 277 "./ldlex.l"
- { RTOKEN('-');}
- YY_BREAK
- case 102:
- # line 278 "./ldlex.l"
- { RTOKEN('/');}
- YY_BREAK
- case 103:
- # line 279 "./ldlex.l"
- { RTOKEN(MEMORY);}
- YY_BREAK
- case 104:
- # line 280 "./ldlex.l"
- { RTOKEN(ORIGIN);}
- YY_BREAK
- case 105:
- # line 281 "./ldlex.l"
- { RTOKEN(BLOCK);}
- YY_BREAK
- case 106:
- # line 282 "./ldlex.l"
- { RTOKEN(LENGTH);}
- YY_BREAK
- case 107:
- # line 283 "./ldlex.l"
- { RTOKEN(ALIGN_K);}
- YY_BREAK
- case 108:
- # line 284 "./ldlex.l"
- { RTOKEN(ADDR);}
- YY_BREAK
- case 109:
- # line 285 "./ldlex.l"
- { RTOKEN(ENTRY);}
- YY_BREAK
- case 110:
- # line 286 "./ldlex.l"
- { RTOKEN(NEXT);}
- YY_BREAK
- case 111:
- # line 287 "./ldlex.l"
- { RTOKEN(SIZEOF_HEADERS);}
- YY_BREAK
- case 112:
- # line 288 "./ldlex.l"
- { RTOKEN(SIZEOF_HEADERS);}
- YY_BREAK
- case 113:
- # line 289 "./ldlex.l"
- { RTOKEN(MAP);}
- YY_BREAK
- case 114:
- # line 290 "./ldlex.l"
- { RTOKEN(SIZEOF);}
- YY_BREAK
- case 115:
- # line 291 "./ldlex.l"
- { RTOKEN(TARGET_K);}
- YY_BREAK
- case 116:
- # line 292 "./ldlex.l"
- { RTOKEN(SEARCH_DIR);}
- YY_BREAK
- case 117:
- # line 293 "./ldlex.l"
- { RTOKEN(OUTPUT);}
- YY_BREAK
- case 118:
- # line 294 "./ldlex.l"
- { RTOKEN(INPUT);}
- YY_BREAK
- case 119:
- # line 295 "./ldlex.l"
- { RTOKEN(DEFINED);}
- YY_BREAK
- case 120:
- # line 296 "./ldlex.l"
- { RTOKEN(CREATE_OBJECT_SYMBOLS);}
- YY_BREAK
- case 121:
- # line 297 "./ldlex.l"
- { RTOKEN( CONSTRUCTORS);}
- YY_BREAK
- case 122:
- # line 298 "./ldlex.l"
- { RTOKEN(FORCE_COMMON_ALLOCATION);}
- YY_BREAK
- case 123:
- # line 299 "./ldlex.l"
- { RTOKEN(SECTIONS);}
- YY_BREAK
- case 124:
- # line 300 "./ldlex.l"
- { RTOKEN(FILL);}
- YY_BREAK
- case 125:
- # line 301 "./ldlex.l"
- { RTOKEN(STARTUP);}
- YY_BREAK
- case 126:
- # line 302 "./ldlex.l"
- { RTOKEN(OUTPUT_FORMAT);}
- YY_BREAK
- case 127:
- # line 303 "./ldlex.l"
- { RTOKEN( OUTPUT_ARCH);}
- YY_BREAK
- case 128:
- # line 304 "./ldlex.l"
- { RTOKEN(HLL);}
- YY_BREAK
- case 129:
- # line 305 "./ldlex.l"
- { RTOKEN(SYSLIB);}
- YY_BREAK
- case 130:
- # line 306 "./ldlex.l"
- { RTOKEN(FLOAT);}
- YY_BREAK
- case 131:
- # line 307 "./ldlex.l"
- { RTOKEN( LONG);}
- YY_BREAK
- case 132:
- # line 308 "./ldlex.l"
- { RTOKEN( SHORT);}
- YY_BREAK
- case 133:
- # line 309 "./ldlex.l"
- { RTOKEN( BYTE);}
- YY_BREAK
- case 134:
- # line 310 "./ldlex.l"
- { RTOKEN(NOFLOAT);}
- YY_BREAK
- case 135:
- # line 311 "./ldlex.l"
- { RTOKEN(NOLOAD);}
- YY_BREAK
- case 136:
- # line 312 "./ldlex.l"
- { RTOKEN(DSECT);}
- YY_BREAK
- case 137:
- # line 313 "./ldlex.l"
- { RTOKEN(COPY);}
- YY_BREAK
- case 138:
- # line 314 "./ldlex.l"
- { RTOKEN(INFO);}
- YY_BREAK
- case 139:
- # line 315 "./ldlex.l"
- { RTOKEN(OVERLAY);}
- YY_BREAK
- case 140:
- # line 316 "./ldlex.l"
- { RTOKEN(ORIGIN);}
- YY_BREAK
- case 141:
- # line 317 "./ldlex.l"
- { RTOKEN(ORIGIN);}
- YY_BREAK
- case 142:
- # line 318 "./ldlex.l"
- { RTOKEN( LENGTH);}
- YY_BREAK
- case 143:
- # line 319 "./ldlex.l"
- { RTOKEN( LENGTH);}
- YY_BREAK
- case 144:
- # line 320 "./ldlex.l"
- { RTOKEN(INCLUDE);}
- YY_BREAK
- case 145:
- # line 321 "./ldlex.l"
- { RTOKEN(AT);}
- YY_BREAK
- case 146:
- # line 322 "./ldlex.l"
- { ++ lineno; RTOKEN(NEWLINE); }
- YY_BREAK
- case 147:
- # line 323 "./ldlex.l"
- { /* Mri comment line */ }
- YY_BREAK
- case 148:
- # line 324 "./ldlex.l"
- { RTOKEN(ENDWORD); }
- YY_BREAK
- case 149:
- # line 325 "./ldlex.l"
- { RTOKEN(ALIGNMOD);}
- YY_BREAK
- case 150:
- # line 326 "./ldlex.l"
- { RTOKEN(ALIGN_K);}
- YY_BREAK
- case 151:
- # line 328 "./ldlex.l"
- { RTOKEN(CHIP); }
- YY_BREAK
- case 152:
- # line 329 "./ldlex.l"
- { RTOKEN(BASE); }
- YY_BREAK
- case 153:
- # line 330 "./ldlex.l"
- { RTOKEN(ALIAS); }
- YY_BREAK
- case 154:
- # line 331 "./ldlex.l"
- { RTOKEN(TRUNCATE); }
- YY_BREAK
- case 155:
- # line 332 "./ldlex.l"
- { RTOKEN(LOAD); }
- YY_BREAK
- case 156:
- # line 333 "./ldlex.l"
- { RTOKEN(PUBLIC); }
- YY_BREAK
- case 157:
- # line 334 "./ldlex.l"
- { RTOKEN(ORDER); }
- YY_BREAK
- case 158:
- # line 335 "./ldlex.l"
- { RTOKEN(NAMEWORD); }
- YY_BREAK
- case 159:
- # line 336 "./ldlex.l"
- { RTOKEN(FORMAT); }
- YY_BREAK
- case 160:
- # line 337 "./ldlex.l"
- { RTOKEN(LIST); /* LIST and ignore to end of line */ }
- YY_BREAK
- case 161:
- # line 338 "./ldlex.l"
- { RTOKEN(SECT); }
- YY_BREAK
- case 162:
- # line 339 "./ldlex.l"
- { RTOKEN(ABSOLUTE); }
- YY_BREAK
- case 163:
- # line 340 "./ldlex.l"
- { RTOKEN(ENDWORD); }
- YY_BREAK
- case 164:
- # line 341 "./ldlex.l"
- { RTOKEN(CHIP); }
- YY_BREAK
- case 165:
- # line 342 "./ldlex.l"
- { RTOKEN(LOAD); }
- YY_BREAK
- case 166:
- # line 343 "./ldlex.l"
- { RTOKEN(ORDER); }
- YY_BREAK
- case 167:
- # line 344 "./ldlex.l"
- { RTOKEN(NAMEWORD); }
- YY_BREAK
- case 168:
- # line 345 "./ldlex.l"
- { RTOKEN(FORMAT); }
- YY_BREAK
- case 169:
- # line 346 "./ldlex.l"
- { RTOKEN(LIST); /* LIST and ignore to end of line */ }
- YY_BREAK
- case 170:
- # line 347 "./ldlex.l"
- { RTOKEN(SECT); }
- YY_BREAK
- case 171:
- # line 348 "./ldlex.l"
- { RTOKEN(ABSOLUTE); }
- YY_BREAK
- case 172:
- # line 350 "./ldlex.l"
- {
- yylval.name = buystring(yytext);
- return NAME;
- }
- YY_BREAK
- case 173:
- # line 356 "./ldlex.l"
- {
- /* Filename without commas, needed to parse mri stuff */
- yylval.name = buystring(yytext);
- return NAME;
- }
- YY_BREAK
- case 174:
- # line 363 "./ldlex.l"
- {
- yylval.name = buystring(yytext);
- return NAME;
- }
- YY_BREAK
- case 175:
- # line 367 "./ldlex.l"
- { yylval.name = buystring(yytext);
- return NAME;
- }
- YY_BREAK
- case 176:
- # line 371 "./ldlex.l"
- {
- /* No matter the state, quotes
- give what's inside */
- yylval.name = buystring(yytext+1);
- yylval.name[yyleng-2] = 0;
- return NAME;
- }
- YY_BREAK
- case 177:
- # line 378 "./ldlex.l"
- { lineno++;}
- YY_BREAK
- case 178:
- # line 379 "./ldlex.l"
-
- YY_BREAK
- case YY_STATE_EOF(INITIAL):
- case YY_STATE_EOF(COMMAND):
- case YY_STATE_EOF(SCRIPT):
- case YY_STATE_EOF(EXPRESSION):
- case YY_STATE_EOF(COMMENT):
- case YY_STATE_EOF(BOTH):
- case YY_STATE_EOF(DEFSYMEXP):
- case YY_STATE_EOF(MRI):
- # line 381 "./ldlex.l"
- {
- extern char *ldfile_input_filename;
- include_stack_ptr--;
-
- if (include_stack_ptr == 0)
- {
- yyterminate();
- }
- else
- {
- yy_switch_to_buffer(include_stack[include_stack_ptr]);
-
- }
- if (include_stack_ptr==1)
- {
- BEGIN(COMMAND);
- }
- else
- {
- BEGIN(SCRIPT);
- ldfile_input_filename = file_name_stack[include_stack_ptr-1];
- }
-
- return END;
- }
- YY_BREAK
- case 180:
- # line 407 "./ldlex.l"
- ECHO;
- YY_BREAK
- # line 353 "flex.skel"
-
- case YY_END_OF_BUFFER:
- {
- /* amount of text matched not including the EOB char */
- int yy_amount_of_matched_text = yy_cp - yytext - 1;
-
- /* undo the effects of YY_DO_BEFORE_ACTION */
- *yy_cp = yy_hold_char;
-
- /* 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 yyinput().
- */
- 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 + 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 + 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
- {
- # line 402 "flex.skel"
- 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 + YY_MORE_ADJ;
-
- yy_act = YY_STATE_EOF((yy_start - 1) / 2);
- 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 + yy_amount_of_matched_text;
-
- yy_current_state = yy_get_previous_state();
-
- yy_cp = yy_c_buf_p;
- yy_bp = yytext + 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 + YY_MORE_ADJ;
- goto yy_find_action;
- }
- break;
- }
-
- default:
- #ifdef FLEX_DEBUG
- printf( "action # %d\n", yy_act );
- #endif
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--no action found" );
- }
- }
- }
-
-
- /* yy_get_next_buffer - try to read in a new buffer
- *
- * synopsis
- * int yy_get_next_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 YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
- register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
- 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" );
-
- /* try to read more data */
-
- /* first move last chars to start of buffer */
- number_to_move = yy_c_buf_p - yytext;
-
- for ( i = 0; i < number_to_move; ++i )
- *(dest++) = *(source++);
-
- if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
- /* 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;
-
- if ( num_to_read > YY_READ_BUF_SIZE )
- num_to_read = YY_READ_BUF_SIZE;
-
- else if ( num_to_read <= 0 )
- YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
-
- /* 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 == 1 )
- {
- ret_val = EOB_ACT_END_OF_FILE;
- yy_current_buffer->yy_eof_status = EOF_DONE;
- }
-
- else
- {
- ret_val = EOB_ACT_LAST_MATCH;
- yy_current_buffer->yy_eof_status = 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 begins at the second character in yy_ch_buf; the first
- * character is the one which preceded it before reading in the latest
- * buffer; it needs to be kept around in case it's a newline, so
- * yy_get_previous_state() will have with '^' rules active
- */
-
- yytext = &yy_current_buffer->yy_ch_buf[1];
-
- return ( ret_val );
- }
-
-
- /* yy_get_previous_state - get the state just before the EOB char was reached
- *
- * synopsis
- * yy_state_type yy_get_previous_state();
- */
-
- static yy_state_type yy_get_previous_state()
-
- {
- register yy_state_type yy_current_state;
- register YY_CHAR *yy_cp;
-
- yy_current_state = yy_start;
- # line 569 "flex.skel"
-
- for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
- {
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[*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 = yy_def[yy_current_state];
- if ( yy_current_state >= 912 )
- yy_c = yy_meta[yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
- # line 574 "flex.skel"
- }
-
- 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( register yy_state_type yy_current_state )
- #else
- static yy_state_type yy_try_NUL_trans( yy_current_state )
- register yy_state_type yy_current_state;
- #endif
-
- {
- register int yy_is_jam;
- register YY_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 = yy_def[yy_current_state];
- if ( yy_current_state >= 912 )
- yy_c = yy_meta[yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
- yy_is_jam = (yy_current_state == 911);
- # line 597 "flex.skel"
-
- return ( yy_is_jam ? 0 : yy_current_state );
- }
-
-
- #ifdef YY_USE_PROTOS
- static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
- #else
- static void yyunput( c, yy_bp )
- YY_CHAR c;
- register YY_CHAR *yy_bp;
- #endif
-
- {
- register YY_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 */
- register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
- register YY_CHAR *dest =
- &yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
- register YY_CHAR *source =
- &yy_current_buffer->yy_ch_buf[number_to_move];
-
- while ( source > yy_current_buffer->yy_ch_buf )
- *--dest = *--source;
-
- yy_cp += dest - source;
- yy_bp += 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" );
- }
-
- if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
- yy_cp[-2] = '\n';
-
- *--yy_cp = c;
-
- /* note: the formal parameter *must* be called "yy_bp" for this
- * macro to now work correctly
- */
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- }
-
-
- #ifdef __cplusplus
- static int yyinput()
- #else
- static int input()
- #endif
-
- {
- int c;
- YY_CHAR *yy_cp = yy_c_buf_p;
-
- *yy_cp = 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 = 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 + YY_MORE_ADJ;
- return ( EOF );
- }
-
- YY_NEW_FILE;
-
- #ifdef __cplusplus
- return ( yyinput() );
- #else
- return ( input() );
- #endif
- }
- break;
-
- case EOB_ACT_CONTINUE_SCAN:
- yy_c_buf_p = yytext + 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 = *yy_c_buf_p;
- 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
-
- {
- 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 = 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) malloc( 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 = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
-
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
-
- 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 == yy_current_buffer )
- yy_current_buffer = (YY_BUFFER_STATE) 0;
-
- free( (char *) b->yy_ch_buf );
- free( (char *) b );
- }
-
-
- #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
-
- {
- b->yy_input_file = file;
-
- /* we put in the '\n' and start reading from [1] so that an
- * initial match-at-newline will be true.
- */
-
- b->yy_ch_buf[0] = '\n';
- b->yy_n_chars = 1;
-
- /* 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[1] = YY_END_OF_BUFFER_CHAR;
- b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
-
- b->yy_buf_pos = &b->yy_ch_buf[1];
-
- b->yy_eof_status = EOF_NOT_SEEN;
- }
- # line 407 "./ldlex.l"
-
-
- void
- DEFUN(lex_push_file,(file,name),
- FILE *file AND
- char *name)
- {
- if (include_stack_ptr >= MAX_INCLUDE_DEPTH)
- {
- einfo("%F:includes nested too deeply");
- }
- file_name_stack[include_stack_ptr] = name;
- include_stack[include_stack_ptr] = YY_CURRENT_BUFFER;
-
- include_stack_ptr++;
- yyin = file;
- yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));
-
- BEGIN(SCRIPT);
- }
-
- YY_BUFFER_STATE
- DEFUN(yy_create_string_buffer,(string, size),
- CONST char *string AND
- int size )
- {
- YY_BUFFER_STATE b;
-
- b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
- b->yy_input_file = 0;
-
- 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 = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 3) );
-
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
-
-
- b->yy_ch_buf[0] = '\n';
- strcpy(b->yy_ch_buf+1, string);
- b->yy_ch_buf[size+1] = YY_END_OF_BUFFER_CHAR;
- b->yy_ch_buf[size+2] = YY_END_OF_BUFFER_CHAR;
- b->yy_n_chars = size+1;
- b->yy_buf_pos = &b->yy_ch_buf[1];
-
- b->yy_eof_status = EOF_NOT_SEEN;
-
- return ( b );
- }
-
-
-
- void
- DEFUN(lex_redirect,( string),
- CONST char *string)
- {
- YY_BUFFER_STATE tmp;
-
- int len = strlen(string);
- yy_init = 0 ;
- if (include_stack_ptr >= MAX_INCLUDE_DEPTH)
- {
- einfo("%F: macros nested too deeply");
- }
- file_name_stack[include_stack_ptr] = "redirect";
- include_stack[include_stack_ptr] = YY_CURRENT_BUFFER;
- include_stack_ptr++;
- tmp = yy_create_string_buffer(string, len);
-
- yy_switch_to_buffer(tmp);
- BEGIN(COMMAND);
- yyout = stdout;
- }
-
- int state_stack[20];
- int *state_stack_p = state_stack;
-
- void
- DEFUN_VOID(ldlex_script)
- {
- *(state_stack_p)++ = yy_start;
-
- BEGIN(SCRIPT);
- }
-
-
- void
- DEFUN_VOID(ldlex_mri_script)
- {
- *(state_stack_p)++ = yy_start;
- BEGIN(MRI);
- }
-
- void
- DEFUN_VOID(ldlex_defsym)
- {
- *(state_stack_p)++ = yy_start;
- BEGIN(DEFSYMEXP);
- }
-
- void
- DEFUN_VOID(ldlex_expression)
- {
- *(state_stack_p)++ = yy_start;
- BEGIN(EXPRESSION);
-
- }
- void
- DEFUN_VOID(ldlex_both)
- {
- *(state_stack_p)++ = yy_start;
- BEGIN(BOTH);
- }
- void
- DEFUN_VOID(ldlex_command)
- {
- *(state_stack_p)++ = yy_start;
- BEGIN(COMMAND);
- }
-
- void
- DEFUN_VOID(ldlex_popstate)
- {
- yy_start = *(--state_stack_p);
- }
-
- yy_input(buf, result, max_size)
- char *buf;
- int *result;
- int max_size;
- {
- *result = 0;
- if (yy_current_buffer->yy_input_file)
- {
- if (yyin)
- if ( (*result = read( fileno(yyin), (char *) buf, max_size )) < 0 )
- YY_FATAL_ERROR( "read() in flex scanner failed" );
- }
- }
-
- static
- comment()
- {
- int c;
- while (1)
- {
- c = input();
- while (c !='*' && c != EOF)
- {
- if (c == '\n') lineno++;
- c = input();
- }
-
-
- if (c == '*')
- {
- c = input();
- while ( c == '*')
- c = input();
- if ( c == '/' )
- break; /* found the end */
- }
-
- if ( c == EOF )
- {
- einfo( "%F%P :EOF in comment");
- break;
- }
- }
- }
-