home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
binutils-2.7-src.tgz
/
tar.out
/
fsf
/
binutils
/
ld
/
ldlex.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
96KB
|
3,293 lines
/* 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 <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 <unistd.h>
/* 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 <io.h>
#include <stdlib.h>
#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 146
#define YY_END_OF_BUFFER 147
static yyconst short int yy_accept[916] =
{ 0,
0, 0, 139, 139, 0, 0, 0, 0, 0, 0,
0, 0, 147, 146, 144, 143, 141, 142, 32, 144,
139, 38, 29, 44, 43, 34, 35, 28, 36, 139,
37, 8, 8, 45, 46, 39, 40, 27, 33, 8,
8, 8, 8, 8, 8, 139, 139, 139, 139, 139,
139, 139, 139, 139, 139, 139, 10, 9, 8, 89,
87, 139, 42, 30, 41, 31, 145, 143, 142, 32,
145, 137, 38, 29, 44, 43, 34, 35, 28, 36,
137, 37, 8, 8, 45, 46, 39, 40, 27, 33,
8, 8, 8, 8, 8, 137, 137, 137, 137, 137,
137, 10, 9, 8, 137, 42, 30, 41, 31, 137,
8, 8, 8, 8, 8, 8, 8, 8, 137, 137,
137, 137, 137, 137, 137, 137, 137, 137, 8, 8,
89, 87, 4, 3, 2, 4, 5, 4, 96, 97,
95, 136, 34, 35, 28, 36, 136, 37, 8, 8,
45, 46, 40, 8, 8, 8, 8, 8, 8, 136,
136, 136, 136, 136, 136, 10, 9, 8, 8, 8,
8, 8, 136, 136, 136, 136, 136, 136, 31, 15,
0, 140, 139, 8, 8, 26, 24, 22, 20, 21,
1, 23, 8, 139, 18, 17, 14, 16, 19, 8,
8, 139, 93, 139, 139, 139, 139, 139, 8, 139,
139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
139, 139, 139, 139, 139, 8, 139, 139, 139, 25,
13, 137, 6, 6, 20, 21, 0, 23, 8, 7,
7, 8, 7, 14, 8, 7, 7, 7, 8, 137,
93, 7, 137, 137, 7, 8, 137, 137, 137, 137,
137, 137, 137, 137, 7, 137, 8, 8, 8, 0,
8, 8, 137, 137, 137, 8, 137, 137, 137, 137,
137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
137, 137, 137, 137, 137, 137, 8, 137, 137, 4,
4, 4, 4, 95, 95, 136, 6, 6, 98, 22,
23, 99, 8, 7, 7, 7, 8, 136, 8, 8,
7, 136, 7, 7, 136, 136, 136, 136, 136, 136,
136, 136, 7, 136, 8, 8, 7, 136, 7, 7,
136, 136, 136, 136, 136, 136, 136, 136, 11, 12,
139, 8, 139, 139, 139, 139, 139, 139, 139, 8,
139, 139, 139, 139, 139, 139, 74, 139, 139, 139,
139, 139, 58, 139, 139, 139, 139, 139, 139, 139,
139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
139, 90, 88, 139, 137, 138, 137, 7, 137, 137,
137, 137, 8, 137, 137, 137, 137, 137, 137, 137,
137, 137, 137, 8, 137, 137, 137, 8, 137, 137,
137, 137, 74, 137, 137, 137, 137, 58, 137, 137,
137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
90, 88, 4, 95, 136, 136, 136, 136, 136, 136,
100, 136, 136, 136, 136, 136, 136, 136, 136, 136,
136, 136, 136, 136, 136, 136, 118, 136, 136, 136,
136, 136, 136, 136, 136, 136, 136, 139, 53, 139,
50, 139, 80, 139, 84, 139, 139, 139, 139, 70,
139, 139, 139, 139, 85, 139, 139, 78, 139, 55,
139, 139, 139, 139, 139, 139, 139, 77, 139, 139,
139, 139, 139, 139, 139, 139, 139, 137, 53, 137,
50, 137, 84, 137, 137, 137, 85, 55, 137, 137,
137, 137, 137, 137, 80, 137, 137, 137, 70, 137,
137, 137, 137, 137, 78, 137, 137, 137, 137, 137,
77, 137, 137, 137, 137, 137, 137, 8, 136, 136,
136, 104, 112, 103, 136, 136, 115, 107, 110, 136,
136, 116, 136, 136, 136, 136, 136, 122, 130, 121,
136, 136, 133, 125, 128, 136, 136, 134, 136, 136,
139, 52, 49, 139, 139, 139, 83, 54, 76, 139,
64, 139, 63, 139, 139, 139, 139, 139, 139, 139,
92, 139, 139, 139, 79, 139, 139, 139, 139, 139,
139, 137, 52, 49, 137, 83, 64, 137, 137, 137,
137, 137, 137, 137, 137, 54, 76, 137, 137, 63,
137, 137, 137, 137, 137, 92, 137, 137, 79, 137,
137, 137, 136, 105, 102, 136, 136, 115, 115, 109,
136, 114, 136, 136, 123, 120, 136, 136, 133, 133,
127, 136, 132, 136, 139, 139, 139, 139, 139, 139,
51, 47, 139, 82, 48, 62, 139, 139, 139, 139,
59, 139, 75, 60, 139, 139, 137, 137, 82, 137,
137, 59, 137, 137, 137, 137, 137, 137, 51, 47,
137, 48, 62, 137, 137, 137, 75, 60, 136, 136,
113, 111, 108, 136, 136, 136, 131, 129, 126, 136,
139, 139, 139, 65, 139, 91, 81, 139, 86, 94,
139, 139, 139, 71, 139, 139, 137, 65, 86, 94,
137, 137, 137, 137, 137, 137, 91, 81, 137, 137,
137, 71, 136, 136, 136, 136, 136, 136, 117, 139,
139, 139, 139, 139, 139, 69, 139, 135, 139, 117,
137, 135, 137, 137, 137, 137, 137, 137, 137, 69,
117, 101, 106, 135, 119, 124, 139, 139, 139, 139,
139, 139, 139, 139, 137, 137, 137, 137, 137, 137,
137, 137, 139, 139, 139, 139, 139, 61, 139, 139,
137, 137, 137, 137, 137, 137, 137, 61, 139, 139,
139, 73, 139, 139, 139, 137, 137, 137, 137, 137,
73, 137, 67, 139, 139, 139, 139, 139, 137, 137,
67, 137, 137, 137, 139, 139, 72, 139, 139, 137,
137, 137, 137, 72, 139, 139, 57, 56, 57, 56,
137, 137, 139, 139, 137, 137, 139, 139, 137, 137,
139, 139, 137, 137, 139, 139, 137, 137, 139, 139,
137, 137, 139, 139, 137, 137, 66, 139, 66, 137,
139, 137, 68, 68, 0
} ;
static yyconst int yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 5, 6, 7, 8, 9, 10, 1, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 20,
20, 20, 20, 20, 20, 20, 20, 21, 22, 23,
24, 25, 26, 1, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
43, 44, 45, 46, 47, 48, 17, 49, 50, 51,
52, 17, 53, 1, 54, 1, 55, 56, 57, 58,
59, 60, 61, 62, 63, 17, 64, 65, 66, 67,
68, 69, 17, 70, 71, 72, 73, 17, 17, 74,
17, 75, 76, 77, 78, 79, 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[80] =
{ 0,
1, 1, 2, 1, 1, 1, 1, 3, 1, 1,
1, 1, 1, 3, 4, 3, 5, 5, 6, 6,
3, 1, 1, 4, 1, 1, 6, 6, 6, 6,
6, 6, 5, 5, 5, 5, 6, 5, 6, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 3, 3, 5, 6, 6, 6, 6, 6, 6,
5, 5, 5, 6, 5, 6, 5, 5, 5, 5,
5, 5, 5, 6, 5, 1, 1, 1, 3
} ;
static yyconst short int yy_base[931] =
{ 0,
0, 0, 0, 0, 79, 0, 151, 0, 219, 0,
298, 0, 1658, 1659, 1659, 1659, 1659, 1659, 1633, 1650,
359, 1659, 150, 1659, 1659, 1631, 1630, 0, 1629, 0,
148, 401, 1578, 0, 1659, 139, 1627, 140, 1659, 138,
360, 339, 351, 127, 362, 1606, 1611, 1608, 146, 142,
157, 155, 161, 1600, 377, 1619, 0, 0, 144, 1586,
1574, 1580, 1659, 360, 1659, 0, 1659, 1659, 1659, 1618,
1635, 457, 1659, 375, 1659, 1659, 1616, 1615, 1659, 357,
0, 191, 499, 1564, 1659, 1659, 190, 1613, 368, 1659,
555, 416, 425, 452, 463, 1592, 1595, 363, 1586, 1589,
1597, 1659, 1659, 464, 1568, 1659, 402, 1659, 0, 611,
404, 468, 560, 597, 502, 614, 485, 638, 1592, 1589,
404, 374, 408, 425, 408, 1581, 650, 1600, 588, 653,
1567, 1555, 701, 1659, 1659, 0, 1659, 743, 1659, 1659,
1621, 791, 1599, 1598, 1659, 1597, 0, 1596, 0, 1545,
1659, 0, 1594, 833, 468, 542, 436, 522, 567, 512,
1590, 1572, 1568, 378, 1570, 1659, 1659, 553, 627, 636,
620, 618, 339, 1558, 1542, 1538, 505, 1540, 0, 1659,
1603, 1659, 0, 0, 1534, 1659, 1659, 1659, 0, 0,
1659, 0, 0, 660, 1583, 1659, 0, 1659, 1582, 463,
376, 1570, 0, 1564, 1562, 1556, 560, 1570, 143, 1569,
1553, 1560, 1556, 1552, 1554, 1556, 674, 1553, 1552, 1549,
1551, 1540, 540, 1553, 1541, 1555, 1555, 1543, 1556, 593,
1541, 1530, 1553, 1534, 1534, 429, 1510, 1515, 1500, 1659,
1659, 0, 889, 1500, 1659, 1659, 0, 0, 1499, 1498,
1659, 1659, 671, 1659, 677, 708, 738, 0, 0, 1536,
0, 739, 1530, 1528, 1526, 751, 1536, 1525, 1533, 1515,
1525, 1531, 1520, 1509, 758, 1484, 820, 776, 0, 0,
836, 839, 1512, 620, 1526, 892, 1510, 1517, 1513, 1509,
1514, 680, 1511, 1510, 1507, 1509, 651, 1512, 1500, 1515,
1517, 666, 1502, 1515, 1496, 1496, 893, 1472, 1477, 0,
1463, 0, 0, 1533, 1531, 0, 946, 1460, 0, 0,
1659, 0, 507, 673, 711, 0, 0, 1498, 786, 788,
1497, 1501, 1484, 1485, 1483, 1500, 1487, 1495, 1496, 1494,
1495, 1474, 797, 1457, 806, 868, 1456, 1460, 1445, 1446,
1444, 1459, 1447, 1454, 1455, 1453, 1454, 1435, 1659, 1659,
1466, 437, 1473, 1475, 1475, 1472, 1457, 1451, 1473, 614,
1470, 1454, 1459, 1469, 1466, 1447, 0, 1455, 1451, 1444,
1457, 1456, 0, 1447, 1441, 1448, 1444, 1451, 1441, 1438,
1437, 1432, 1449, 1434, 1431, 1432, 1444, 1430, 1435, 1439,
1403, 0, 0, 1411, 1450, 0, 1427, 897, 1434, 1436,
1436, 1414, 951, 1434, 1415, 1420, 1414, 1418, 1414, 1409,
1425, 1387, 1395, 943, 1422, 1407, 1424, 903, 1406, 1411,
1421, 1418, 0, 1404, 1389, 1397, 1391, 0, 1373, 1370,
1371, 1329, 1326, 1339, 1324, 1321, 1322, 1321, 1326, 1330,
0, 0, 951, 1659, 1002, 1321, 714, 1330, 1329, 1317,
0, 1327, 1318, 1310, 1325, 1323, 1322, 1314, 1305, 1306,
1309, 1280, 687, 1288, 1287, 1276, 0, 1285, 1277, 1270,
1283, 1281, 1280, 1273, 1265, 1266, 1268, 1296, 0, 1293,
0, 1295, 0, 1285, 0, 1284, 1289, 1282, 1277, 0,
1280, 1294, 1282, 1276, 0, 1271, 1270, 0, 1271, 0,
1273, 1286, 1277, 1263, 1266, 1254, 1258, 0, 1263, 1256,
1244, 1248, 1242, 1252, 1255, 1220, 1216, 1245, 0, 1242,
0, 1244, 0, 1240, 1233, 1236, 0, 0, 1250, 1238,
1240, 1233, 1208, 1204, 0, 1225, 1224, 1219, 0, 1222,
1236, 1219, 1219, 1218, 0, 1219, 1221, 1226, 1213, 1214,
0, 1229, 1222, 1210, 1209, 1219, 1222, 959, 1214, 1206,
1210, 0, 0, 0, 1205, 1221, 1062, 0, 0, 1203,
1211, 0, 1199, 1210, 1173, 1166, 1169, 0, 0, 0,
1165, 1179, 1140, 0, 0, 1162, 1163, 0, 1149, 1158,
1167, 0, 0, 1169, 1181, 1180, 0, 0, 0, 1156,
0, 1179, 0, 1174, 1157, 1179, 1175, 1164, 1157, 1175,
0, 1171, 1166, 1158, 0, 1166, 1150, 1168, 1149, 1121,
1133, 1145, 0, 0, 1160, 0, 0, 1160, 1162, 1158,
1155, 1113, 1125, 1140, 1152, 0, 0, 1128, 1151, 0,
1146, 1129, 1151, 1137, 1130, 0, 1141, 1133, 0, 1126,
1144, 1125, 1123, 0, 1130, 1128, 1121, 0, 1218, 0,
1132, 0, 1133, 1086, 0, 1092, 1090, 1084, 0, 1296,
0, 1097, 0, 1093, 1097, 1090, 1082, 1105, 1105, 1102,
0, 0, 1086, 0, 0, 1077, 1080, 1098, 1074, 1087,
1072, 1083, 0, 0, 1052, 1069, 1076, 1091, 0, 1070,
1088, 1064, 1045, 1062, 1068, 1060, 1084, 1081, 0, 0,
1065, 0, 1056, 1055, 1068, 1065, 0, 0, 1060, 1064,
0, 0, 0, 1058, 1031, 1034, 0, 0, 0, 1029,
1069, 1070, 1057, 0, 1056, 0, 0, 713, 0, 0,
1066, 1050, 1060, 0, 1034, 1030, 1060, 0, 0, 0,
1056, 1030, 1021, 1053, 1040, 1039, 0, 0, 723, 1049,
1033, 0, 1045, 1040, 1034, 997, 997, 995, 0, 1007,
1024, 1012, 1006, 1008, 1013, 0, 1016, 0, 987, 0,
1014, 0, 985, 997, 1014, 1002, 996, 998, 1003, 0,
0, 0, 0, 0, 0, 0, 996, 1000, 996, 999,
983, 982, 997, 964, 991, 961, 973, 977, 972, 979,
956, 955, 951, 963, 952, 958, 952, 0, 954, 914,
941, 912, 924, 930, 919, 920, 408, 0, 403, 470,
483, 0, 517, 521, 544, 597, 578, 605, 684, 674,
0, 698, 0, 681, 689, 698, 707, 682, 720, 695,
0, 732, 733, 744, 737, 765, 0, 748, 723, 760,
735, 754, 785, 0, 772, 789, 0, 0, 0, 0,
783, 792, 782, 798, 787, 800, 802, 802, 806, 813,
828, 837, 851, 851, 842, 858, 846, 871, 866, 864,
875, 868, 870, 888, 888, 899, 0, 895, 0, 896,
910, 911, 0, 0, 1659, 1374, 1380, 1384, 1388, 946,
1390, 1396, 1400, 1406, 1412, 1416, 1422, 1428, 1434, 1440
} ;
static yyconst short int yy_def[931] =
{ 0,
916, 916, 915, 3, 915, 5, 5, 7, 915, 9,
915, 11, 915, 915, 915, 915, 915, 915, 915, 917,
918, 915, 915, 915, 915, 915, 918, 918, 918, 918,
918, 918, 32, 918, 915, 915, 918, 915, 915, 32,
32, 32, 32, 32, 32, 918, 918, 918, 918, 918,
918, 918, 918, 918, 918, 918, 918, 918, 32, 918,
918, 918, 915, 915, 915, 918, 915, 915, 915, 915,
917, 919, 915, 915, 915, 915, 915, 915, 915, 915,
919, 919, 915, 83, 915, 915, 915, 915, 915, 915,
919, 91, 91, 91, 91, 919, 919, 919, 919, 919,
919, 915, 915, 91, 919, 915, 915, 915, 919, 919,
920, 920, 110, 110, 110, 110, 110, 110, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 110, 110,
919, 919, 921, 915, 915, 921, 915, 921, 915, 915,
922, 923, 924, 915, 915, 915, 923, 923, 83, 83,
915, 925, 915, 923, 154, 154, 154, 154, 154, 923,
923, 923, 923, 923, 923, 915, 915, 154, 154, 154,
154, 154, 923, 923, 923, 923, 923, 923, 923, 915,
917, 915, 918, 32, 32, 915, 915, 915, 918, 918,
915, 918, 918, 32, 915, 915, 918, 915, 915, 32,
32, 918, 918, 918, 918, 918, 918, 918, 32, 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, 32, 918, 918, 918, 915,
915, 919, 919, 243, 915, 915, 926, 919, 83, 83,
915, 915, 112, 915, 91, 91, 91, 919, 919, 919,
919, 91, 919, 919, 919, 91, 919, 919, 919, 919,
919, 919, 919, 919, 91, 919, 110, 110, 112, 253,
110, 110, 919, 919, 919, 110, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 110, 919, 919, 921,
138, 138, 921, 922, 915, 923, 923, 317, 924, 924,
915, 925, 154, 154, 154, 923, 923, 923, 154, 154,
923, 923, 923, 923, 923, 923, 923, 923, 923, 923,
923, 923, 154, 923, 154, 154, 923, 923, 923, 923,
923, 923, 923, 923, 923, 923, 923, 923, 915, 915,
918, 32, 918, 918, 918, 918, 918, 918, 918, 32,
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, 110, 926, 919, 91, 919, 919,
919, 919, 91, 919, 919, 919, 919, 919, 919, 919,
919, 919, 919, 110, 919, 919, 919, 110, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 138, 915, 923, 923, 923, 923, 923, 923,
923, 923, 923, 923, 923, 923, 923, 923, 923, 923,
923, 923, 923, 923, 923, 923, 923, 923, 923, 923,
923, 923, 923, 923, 923, 923, 923, 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, 918, 918, 918, 918, 918, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 455, 923, 923,
923, 923, 923, 923, 923, 923, 927, 923, 923, 923,
923, 923, 923, 923, 923, 923, 923, 923, 923, 923,
923, 923, 928, 923, 923, 923, 923, 923, 923, 923,
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, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 923, 923, 923, 923, 923, 929, 927, 923,
923, 923, 923, 923, 923, 923, 923, 923, 930, 928,
923, 923, 923, 923, 918, 918, 918, 918, 918, 918,
918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
918, 918, 918, 918, 918, 918, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 923, 923,
923, 923, 923, 923, 923, 923, 923, 923, 923, 923,
918, 918, 918, 918, 918, 918, 918, 918, 918, 918,
918, 918, 918, 918, 918, 918, 919, 919, 919, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
919, 919, 923, 923, 923, 923, 923, 923, 918, 918,
918, 918, 918, 918, 918, 918, 918, 918, 918, 919,
919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
923, 923, 923, 923, 923, 923, 918, 918, 918, 918,
918, 918, 918, 918, 919, 919, 919, 919, 919, 919,
919, 919, 918, 918, 918, 918, 918, 918, 918, 918,
919, 919, 919, 919, 919, 919, 919, 919, 918, 918,
918, 918, 918, 918, 918, 919, 919, 919, 919, 919,
919, 919, 918, 918, 918, 918, 918, 918, 919, 919,
919, 919, 919, 919, 918, 918, 918, 918, 918, 919,
919, 919, 919, 919, 918, 918, 918, 918, 919, 919,
919, 919, 918, 918, 919, 919, 918, 918, 919, 919,
918, 918, 919, 919, 918, 918, 919, 919, 918, 918,
919, 919, 918, 918, 919, 919, 918, 918, 919, 919,
918, 919, 918, 919, 0, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915
} ;
static yyconst short int yy_nxt[1739] =
{ 0,
15, 16, 17, 18, 19, 20, 15, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
44, 45, 46, 47, 48, 30, 30, 49, 50, 51,
52, 53, 54, 30, 55, 56, 30, 30, 30, 30,
30, 57, 58, 30, 59, 33, 33, 33, 33, 33,
30, 30, 30, 30, 60, 30, 30, 61, 30, 30,
62, 30, 30, 30, 30, 63, 64, 65, 66, 67,
68, 17, 69, 70, 71, 67, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
95, 96, 81, 97, 81, 81, 81, 81, 98, 99,
100, 81, 81, 101, 81, 81, 81, 81, 81, 81,
102, 103, 81, 104, 95, 95, 95, 95, 95, 81,
81, 81, 81, 81, 81, 81, 81, 81, 81, 105,
81, 81, 81, 81, 106, 107, 108, 109, 110, 186,
191, 195, 196, 198, 199, 200, 211, 201, 220, 111,
112, 192, 221, 187, 370, 202, 218, 113, 114, 115,
116, 117, 118, 203, 119, 120, 219, 222, 121, 122,
123, 124, 125, 126, 227, 127, 128, 223, 224, 236,
183, 225, 226, 191, 228, 129, 130, 130, 130, 130,
130, 183, 195, 196, 248, 131, 183, 183, 132, 67,
67, 14, 67, 67, 67, 67, 133, 67, 67, 67,
67, 67, 134, 67, 135, 136, 136, 111, 112, 67,
67, 67, 137, 67, 67, 138, 138, 138, 138, 138,
138, 136, 136, 136, 136, 136, 136, 136, 136, 136,
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
67, 67, 136, 138, 138, 138, 138, 138, 138, 136,
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
136, 136, 136, 136, 67, 67, 67, 136, 15, 16,
139, 140, 19, 15, 141, 142, 22, 23, 24, 25,
143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
36, 153, 38, 39, 154, 155, 156, 157, 158, 159,
147, 147, 147, 147, 147, 160, 147, 161, 162, 163,
147, 147, 164, 165, 147, 147, 147, 147, 147, 166,
167, 147, 168, 169, 170, 157, 171, 172, 147, 147,
147, 147, 173, 147, 174, 175, 176, 147, 177, 178,
147, 147, 147, 63, 64, 65, 179, 184, 185, 207,
246, 209, 208, 240, 186, 185, 185, 185, 185, 185,
185, 198, 199, 270, 204, 210, 212, 205, 187, 213,
295, 351, 214, 271, 296, 362, 352, 230, 340, 206,
231, 232, 183, 185, 185, 185, 185, 185, 185, 185,
185, 247, 233, 341, 183, 240, 234, 185, 185, 185,
185, 185, 185, 183, 293, 183, 241, 193, 270, 193,
252, 300, 252, 262, 294, 262, 852, 853, 297, 183,
263, 273, 262, 264, 262, 185, 185, 185, 185, 185,
185, 242, 242, 325, 193, 265, 193, 252, 298, 252,
242, 299, 272, 316, 194, 243, 244, 280, 241, 262,
489, 262, 266, 244, 244, 244, 244, 244, 244, 242,
262, 262, 262, 262, 329, 325, 267, 242, 854, 401,
242, 242, 183, 278, 252, 316, 252, 361, 242, 242,
183, 244, 244, 244, 244, 244, 244, 249, 249, 275,
278, 259, 855, 259, 287, 249, 250, 249, 250, 249,
249, 252, 251, 252, 325, 252, 183, 252, 259, 251,
259, 915, 284, 856, 316, 285, 335, 251, 259, 325,
259, 857, 336, 249, 250, 249, 250, 249, 249, 316,
251, 332, 252, 356, 252, 259, 251, 259, 330, 325,
333, 386, 253, 255, 255, 331, 357, 387, 278, 316,
325, 255, 256, 255, 257, 255, 255, 281, 258, 282,
316, 259, 260, 259, 325, 258, 259, 260, 259, 367,
261, 368, 858, 258, 316, 261, 278, 334, 343, 255,
262, 255, 262, 255, 255, 278, 258, 344, 259, 394,
259, 395, 258, 259, 259, 259, 259, 859, 258, 277,
278, 263, 278, 259, 264, 259, 860, 278, 278, 278,
278, 278, 278, 307, 286, 325, 283, 325, 497, 861,
259, 259, 259, 259, 325, 316, 278, 316, 267, 426,
259, 412, 259, 325, 316, 278, 278, 278, 278, 278,
278, 278, 288, 316, 259, 289, 259, 259, 290, 259,
302, 345, 440, 303, 274, 350, 348, 183, 418, 259,
346, 259, 445, 349, 446, 304, 183, 347, 183, 305,
325, 259, 378, 259, 262, 379, 262, 915, 434, 915,
316, 416, 862, 863, 242, 380, 259, 456, 259, 311,
312, 435, 242, 183, 864, 183, 865, 312, 312, 312,
312, 312, 312, 183, 915, 262, 915, 262, 325, 783,
570, 586, 866, 867, 784, 242, 571, 587, 316, 797,
868, 869, 407, 242, 798, 312, 312, 312, 312, 312,
312, 312, 312, 870, 871, 262, 262, 408, 262, 312,
312, 312, 312, 312, 312, 242, 242, 872, 262, 313,
262, 313, 413, 242, 242, 262, 873, 262, 242, 874,
875, 876, 877, 878, 278, 242, 242, 312, 312, 312,
312, 312, 312, 242, 879, 880, 313, 881, 313, 317,
318, 882, 259, 325, 259, 325, 883, 318, 318, 318,
318, 318, 318, 316, 325, 316, 884, 885, 422, 886,
458, 887, 459, 325, 316, 888, 889, 890, 278, 259,
891, 259, 892, 316, 893, 318, 318, 318, 318, 318,
318, 323, 323, 894, 278, 895, 259, 278, 259, 323,
324, 323, 325, 323, 323, 896, 326, 472, 424, 327,
328, 327, 259, 326, 259, 259, 474, 259, 897, 898,
407, 326, 899, 259, 900, 259, 901, 323, 325, 323,
325, 323, 323, 405, 326, 325, 327, 902, 327, 259,
326, 259, 259, 903, 259, 316, 326, 244, 244, 904,
278, 278, 905, 906, 907, 244, 244, 244, 244, 244,
244, 278, 908, 428, 262, 259, 262, 259, 259, 259,
259, 259, 909, 910, 242, 911, 912, 534, 475, 259,
529, 259, 242, 244, 244, 244, 244, 244, 244, 913,
914, 279, 259, 851, 259, 259, 259, 259, 259, 850,
849, 278, 405, 422, 318, 318, 259, 848, 259, 847,
846, 845, 318, 318, 318, 318, 318, 318, 262, 259,
262, 259, 327, 844, 327, 534, 529, 310, 242, 310,
843, 842, 841, 840, 839, 327, 242, 327, 838, 837,
318, 318, 318, 318, 318, 318, 259, 836, 259, 327,
835, 327, 834, 833, 310, 832, 310, 831, 830, 455,
568, 568, 327, 829, 327, 828, 827, 826, 568, 568,
568, 568, 568, 568, 825, 824, 823, 822, 821, 820,
819, 818, 817, 816, 815, 814, 813, 812, 811, 810,
809, 808, 807, 806, 805, 804, 568, 568, 568, 568,
568, 568, 668, 668, 803, 668, 668, 668, 668, 802,
668, 668, 668, 668, 668, 801, 668, 800, 799, 796,
795, 794, 793, 668, 668, 668, 668, 668, 792, 791,
790, 789, 788, 787, 786, 785, 782, 781, 780, 779,
778, 777, 776, 775, 774, 773, 772, 771, 770, 769,
768, 767, 766, 765, 764, 763, 762, 761, 760, 759,
758, 757, 756, 755, 754, 753, 752, 751, 750, 749,
748, 747, 746, 745, 744, 743, 742, 668, 668, 668,
679, 679, 741, 679, 679, 679, 679, 740, 679, 679,
679, 679, 679, 739, 679, 738, 737, 736, 735, 734,
733, 679, 679, 679, 679, 679, 732, 731, 730, 729,
728, 727, 726, 725, 724, 723, 722, 721, 720, 719,
718, 717, 716, 715, 714, 713, 712, 711, 710, 709,
708, 707, 706, 705, 704, 703, 702, 701, 700, 699,
698, 697, 696, 695, 694, 693, 692, 691, 690, 689,
688, 687, 686, 685, 684, 679, 679, 679, 668, 668,
683, 668, 668, 668, 668, 682, 668, 668, 668, 668,
668, 681, 668, 678, 677, 676, 675, 674, 673, 668,
668, 668, 668, 668, 672, 671, 670, 667, 666, 665,
664, 663, 662, 661, 660, 659, 658, 657, 656, 655,
654, 653, 652, 651, 650, 649, 648, 647, 646, 645,
644, 643, 642, 641, 640, 639, 638, 637, 636, 635,
634, 633, 632, 631, 630, 629, 628, 627, 626, 625,
624, 623, 622, 668, 668, 668, 679, 679, 621, 679,
679, 679, 679, 620, 679, 679, 679, 679, 679, 619,
679, 618, 617, 616, 615, 614, 613, 679, 679, 679,
679, 679, 612, 611, 610, 609, 608, 607, 606, 605,
604, 603, 602, 601, 600, 599, 598, 597, 596, 595,
594, 593, 592, 591, 590, 589, 588, 585, 584, 583,
582, 581, 580, 579, 578, 577, 576, 575, 574, 573,
572, 569, 567, 566, 565, 564, 563, 562, 561, 560,
559, 679, 679, 679, 14, 14, 14, 14, 14, 14,
181, 181, 181, 181, 181, 181, 183, 183, 183, 183,
242, 242, 242, 242, 310, 310, 314, 314, 314, 314,
314, 314, 316, 558, 316, 316, 319, 557, 319, 319,
319, 319, 322, 556, 322, 322, 322, 322, 406, 406,
406, 406, 669, 555, 669, 669, 669, 669, 680, 554,
680, 680, 680, 680, 668, 553, 668, 668, 668, 668,
679, 552, 679, 679, 679, 679, 551, 550, 549, 548,
547, 546, 545, 544, 543, 542, 541, 540, 539, 538,
537, 536, 535, 533, 532, 531, 530, 528, 278, 527,
526, 525, 524, 523, 522, 521, 520, 519, 518, 517,
516, 515, 514, 513, 512, 511, 510, 509, 508, 507,
506, 505, 504, 503, 502, 501, 500, 499, 498, 496,
495, 494, 493, 492, 491, 490, 488, 487, 486, 485,
484, 483, 482, 481, 480, 479, 478, 477, 476, 473,
471, 470, 469, 468, 467, 466, 465, 464, 463, 462,
461, 460, 457, 316, 454, 315, 453, 452, 451, 450,
449, 448, 447, 444, 443, 442, 441, 439, 438, 437,
436, 433, 432, 431, 430, 429, 427, 425, 423, 421,
420, 419, 418, 417, 416, 415, 414, 412, 411, 410,
409, 251, 251, 242, 404, 403, 402, 400, 399, 398,
397, 396, 393, 392, 391, 390, 389, 388, 385, 384,
383, 382, 381, 377, 376, 375, 374, 373, 372, 371,
369, 366, 365, 364, 363, 360, 359, 183, 182, 358,
355, 354, 353, 342, 339, 338, 337, 254, 251, 321,
246, 245, 320, 315, 309, 308, 306, 301, 292, 291,
276, 274, 273, 272, 269, 268, 254, 251, 245, 188,
182, 180, 239, 238, 237, 235, 229, 217, 216, 215,
197, 183, 190, 189, 188, 182, 180, 915, 13, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915
} ;
static yyconst short int yy_chk[1739] =
{ 0,
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, 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, 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, 23,
31, 36, 36, 38, 38, 40, 44, 40, 50, 7,
7, 31, 50, 23, 209, 40, 49, 7, 7, 7,
7, 7, 7, 40, 7, 7, 49, 51, 7, 7,
7, 7, 7, 7, 53, 7, 7, 51, 52, 59,
44, 52, 52, 82, 53, 7, 7, 7, 7, 7,
7, 40, 87, 87, 82, 7, 209, 59, 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, 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, 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, 21, 21, 42,
80, 43, 42, 64, 74, 21, 21, 21, 21, 21,
21, 89, 89, 98, 41, 43, 45, 41, 74, 45,
122, 173, 45, 98, 122, 201, 173, 55, 164, 41,
55, 55, 42, 21, 21, 21, 21, 21, 21, 32,
32, 80, 55, 164, 43, 107, 55, 32, 32, 32,
32, 32, 32, 41, 121, 45, 64, 32, 123, 32,
111, 125, 111, 92, 121, 92, 837, 839, 123, 201,
92, 125, 93, 92, 93, 32, 32, 32, 32, 32,
32, 92, 93, 157, 32, 93, 32, 111, 124, 111,
93, 124, 124, 157, 32, 72, 72, 111, 107, 94,
362, 94, 94, 72, 72, 72, 72, 72, 72, 94,
95, 104, 95, 104, 155, 155, 94, 94, 840, 236,
95, 104, 236, 117, 112, 155, 112, 200, 95, 104,
362, 72, 72, 72, 72, 72, 72, 83, 83, 104,
115, 117, 841, 117, 117, 83, 83, 83, 83, 83,
83, 112, 83, 112, 323, 83, 200, 83, 115, 83,
115, 112, 115, 843, 323, 115, 160, 83, 117, 158,
117, 844, 160, 83, 83, 83, 83, 83, 83, 158,
83, 158, 83, 177, 83, 115, 83, 115, 156, 156,
158, 223, 83, 91, 91, 156, 177, 223, 113, 156,
168, 91, 91, 91, 91, 91, 91, 113, 91, 113,
168, 91, 91, 91, 159, 91, 113, 113, 113, 207,
91, 207, 845, 91, 159, 113, 129, 159, 168, 91,
91, 91, 91, 91, 91, 114, 91, 168, 91, 230,
91, 230, 91, 113, 129, 113, 129, 846, 91, 110,
110, 114, 116, 114, 114, 114, 847, 110, 110, 110,
110, 110, 110, 129, 116, 172, 114, 171, 370, 848,
116, 129, 116, 129, 169, 172, 118, 171, 116, 284,
114, 284, 114, 170, 169, 110, 110, 110, 110, 110,
110, 130, 118, 170, 118, 118, 118, 116, 118, 116,
127, 169, 297, 127, 127, 172, 171, 370, 297, 130,
170, 130, 302, 171, 302, 127, 194, 170, 194, 127,
324, 118, 217, 118, 255, 217, 255, 253, 292, 253,
324, 292, 849, 850, 255, 217, 130, 324, 130, 133,
133, 292, 255, 194, 852, 194, 854, 133, 133, 133,
133, 133, 133, 194, 253, 256, 253, 256, 325, 748,
457, 473, 855, 856, 748, 256, 457, 473, 325, 769,
857, 858, 256, 256, 769, 133, 133, 133, 133, 133,
133, 138, 138, 859, 860, 257, 262, 257, 262, 138,
138, 138, 138, 138, 138, 257, 262, 862, 266, 138,
266, 138, 266, 257, 262, 275, 863, 275, 266, 864,
865, 866, 868, 869, 278, 275, 266, 138, 138, 138,
138, 138, 138, 275, 870, 871, 138, 872, 138, 142,
142, 873, 278, 329, 278, 330, 875, 142, 142, 142,
142, 142, 142, 329, 343, 330, 876, 881, 275, 882,
329, 883, 330, 345, 343, 884, 885, 886, 277, 278,
887, 278, 888, 345, 889, 142, 142, 142, 142, 142,
142, 154, 154, 890, 281, 891, 277, 282, 277, 154,
154, 154, 154, 154, 154, 892, 154, 343, 282, 154,
154, 154, 281, 154, 281, 282, 345, 282, 893, 894,
281, 154, 895, 277, 896, 277, 897, 154, 154, 154,
154, 154, 154, 277, 154, 346, 154, 898, 154, 281,
154, 281, 282, 899, 282, 346, 154, 243, 243, 900,
286, 307, 901, 902, 903, 243, 243, 243, 243, 243,
243, 428, 904, 286, 408, 243, 408, 243, 286, 307,
286, 307, 905, 906, 408, 908, 910, 428, 346, 428,
408, 428, 408, 243, 243, 243, 243, 243, 243, 911,
912, 920, 243, 836, 243, 286, 307, 286, 307, 835,
834, 424, 243, 307, 317, 317, 428, 833, 428, 832,
831, 830, 317, 317, 317, 317, 317, 317, 413, 424,
413, 424, 317, 829, 317, 413, 424, 453, 413, 453,
827, 826, 825, 824, 823, 568, 413, 568, 822, 821,
317, 317, 317, 317, 317, 317, 424, 820, 424, 317,
819, 317, 818, 817, 453, 816, 453, 815, 814, 317,
455, 455, 568, 813, 568, 812, 811, 810, 455, 455,
455, 455, 455, 455, 809, 808, 807, 799, 798, 797,
796, 795, 794, 793, 791, 789, 787, 785, 784, 783,
782, 781, 780, 778, 777, 776, 455, 455, 455, 455,
455, 455, 577, 577, 775, 577, 577, 577, 577, 774,
577, 577, 577, 577, 577, 773, 577, 771, 770, 766,
765, 764, 763, 577, 577, 577, 577, 577, 762, 761,
757, 756, 755, 753, 752, 751, 745, 743, 742, 741,
740, 736, 735, 734, 730, 729, 726, 725, 724, 723,
721, 718, 717, 716, 715, 714, 713, 712, 711, 710,
708, 707, 706, 705, 702, 701, 700, 699, 698, 697,
696, 693, 690, 689, 688, 687, 686, 577, 577, 577,
593, 593, 685, 593, 593, 593, 593, 684, 593, 593,
593, 593, 593, 682, 593, 678, 677, 676, 674, 673,
671, 593, 593, 593, 593, 593, 667, 666, 665, 663,
662, 661, 660, 658, 657, 655, 654, 653, 652, 651,
649, 648, 645, 644, 643, 642, 641, 640, 639, 638,
635, 632, 631, 630, 629, 628, 627, 626, 624, 623,
622, 620, 619, 618, 617, 616, 615, 614, 612, 610,
606, 605, 604, 601, 600, 593, 593, 593, 669, 669,
599, 669, 669, 669, 669, 597, 669, 669, 669, 669,
669, 596, 669, 592, 591, 587, 586, 585, 584, 669,
669, 669, 669, 669, 583, 581, 580, 576, 575, 571,
570, 569, 567, 566, 565, 564, 563, 562, 560, 559,
558, 557, 556, 554, 553, 552, 551, 550, 548, 547,
546, 544, 543, 542, 541, 540, 539, 536, 535, 534,
532, 530, 528, 527, 526, 525, 524, 523, 522, 521,
520, 519, 517, 669, 669, 669, 680, 680, 516, 680,
680, 680, 680, 515, 680, 680, 680, 680, 680, 514,
680, 513, 512, 511, 509, 507, 506, 680, 680, 680,
680, 680, 504, 503, 502, 501, 499, 498, 497, 496,
494, 492, 490, 488, 487, 486, 485, 484, 483, 482,
481, 480, 479, 478, 476, 475, 474, 472, 471, 470,
469, 468, 467, 466, 465, 464, 463, 462, 460, 459,
458, 456, 450, 449, 448, 447, 446, 445, 444, 443,
442, 680, 680, 680, 916, 916, 916, 916, 916, 916,
917, 917, 917, 917, 917, 917, 918, 918, 918, 918,
919, 919, 919, 919, 921, 921, 922, 922, 922, 922,
922, 922, 923, 441, 923, 923, 924, 440, 924, 924,
924, 924, 925, 439, 925, 925, 925, 925, 926, 926,
926, 926, 927, 437, 927, 927, 927, 927, 928, 436,
928, 928, 928, 928, 929, 435, 929, 929, 929, 929,
930, 434, 930, 930, 930, 930, 432, 431, 430, 429,
427, 426, 425, 423, 422, 421, 420, 419, 418, 417,
416, 415, 414, 412, 411, 410, 409, 407, 405, 404,
401, 400, 399, 398, 397, 396, 395, 394, 393, 392,
391, 390, 389, 388, 387, 386, 385, 384, 382, 381,
380, 379, 378, 376, 375, 374, 373, 372, 371, 369,
368, 367, 366, 365, 364, 363, 361, 358, 357, 356,
355, 354, 353, 352, 351, 350, 349, 348, 347, 344,
342, 341, 340, 339, 338, 337, 336, 335, 334, 333,
332, 331, 328, 318, 315, 314, 311, 309, 308, 306,
305, 304, 303, 301, 300, 299, 298, 296, 295, 294,
293, 291, 290, 289, 288, 287, 285, 283, 276, 274,
273, 272, 271, 270, 269, 268, 267, 265, 264, 263,
260, 250, 249, 244, 239, 238, 237, 235, 234, 233,
232, 231, 229, 228, 227, 226, 225, 224, 222, 221,
220, 219, 218, 216, 215, 214, 213, 212, 211, 210,
208, 206, 205, 204, 202, 199, 195, 185, 181, 178,
176, 175, 174, 165, 163, 162, 161, 153, 150, 148,
146, 144, 143, 141, 132, 131, 128, 126, 120, 119,
105, 101, 100, 99, 97, 96, 88, 84, 78, 77,
71, 70, 62, 61, 60, 56, 54, 48, 47, 46,
37, 33, 29, 27, 26, 20, 19, 13, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915, 915, 915,
915, 915, 915, 915, 915, 915, 915, 915
} ;
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;
#line 1 "./ldlex.l"
#define INITIAL 0
#line 2 "./ldlex.l"
/* Copyright (C) 1991, 92, 93, 94, 95, 1996 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, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/*
This was written by steve chamberlain
sac@cygnus.com
*/
#include <ansidecl.h>
#include <stdio.h>
#include <ctype.h>
#ifdef MPW
/* Prevent enum redefinition problems. */
#define TRUE_FALSE_ALREADY_DEFINED
#endif /* MPW */
#include "bfd.h"
#include "sysdep.h"
#include "ld.h"
#include "ldgram.h"
#include "ldmisc.h"
#include "ldexp.h"
#include "ldlang.h"
#include "ldfile.h"
#include "ldlex.h"
#include "ldmain.h"
/* The type of top-level parser input.
yylex and yyparse (indirectly) both check this. */
input_type parser_input;
/* Radix to use for bfd_scan_vma -- 0 (default to base 10) or 16. */
int hex_mode;
/* Line number in the current input file.
(FIXME Actually, it doesn't appear to get reset for each file?) */
unsigned int lineno = 1;
/* The string we are currently lexing, or NULL if we are reading a
file. */
const char *lex_string = NULL;
/* Support for flex reading from more than one input file (stream).
`include_stack' is flex's input state for each open file;
`file_name_stack' is the file names. `lineno_stack' is the current
line numbers.
If `include_stack_ptr' is 0, we haven't started reading anything yet.
Otherwise, stack elements 0 through `include_stack_ptr - 1' are valid. */
#undef YY_INPUT
#define YY_INPUT(buf,result,max_size) yy_input(buf, &result, max_size)
#define MAX_INCLUDE_DEPTH 10
static YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
static const char *file_name_stack[MAX_INCLUDE_DEPTH];
static unsigned int lineno_stack[MAX_INCLUDE_DEPTH];
static unsigned int include_stack_ptr = 0;
static YY_BUFFER_STATE yy_create_string_buffer PARAMS ((const char *string,
size_t size));
static void yy_input PARAMS ((char *, int *result, int max_size));
static void comment PARAMS ((void));
static void lex_warn_invalid PARAMS ((char *where, char *what));
/* STATES
EXPRESSION definitely in an expression
SCRIPT definitely in a script
BOTH either EXPRESSION or SCRIPT
DEFSYMEXP in an argument to -defsym
MRI in an MRI script
*/
#define RTOKEN(x) { yylval.token = x; return x; }
/* Some versions of flex want this. */
#ifndef yywrap
int yywrap () { return 1; }
#endif
#define SCRIPT 1
#define EXPRESSION 2
#define BOTH 3
#define DEFSYMEXP 4
#define MRI 5
#line 1158 "lex.yy.c"
/* 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 <stdlib.h>
#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;
#line 120 "./ldlex.l"
if (parser_input != input_selected)
{
/* The first token of the input determines the initial parser state. */
input_type t = parser_input;
parser_input = input_selected;
switch (t)
{
case input_script: return INPUT_SCRIPT; break;
case input_mri_script: return INPUT_MRI_SCRIPT; break;
case input_defsym: return INPUT_DEFSYM; break;
default: abort ();
}
}
#line 1322 "lex.yy.c"
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 >= 916 )
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] != 1659 );
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
#line 136 "./ldlex.l"
{ comment(); }
YY_BREAK
case 2:
YY_RULE_SETUP
#line 139 "./ldlex.l"
{ RTOKEN('-');}
YY_BREAK
case 3:
YY_RULE_SETUP
#line 140 "./ldlex.l"
{ RTOKEN('+');}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 141 "./ldlex.l"
{ yylval.name = buystring(yytext); return NAME; }
YY_BREAK
case 5:
YY_RULE_SETUP
#line 142 "./ldlex.l"
{ RTOKEN('='); }
YY_BREAK
case 6:
YY_RULE_SETUP
#line 144 "./ldlex.l"
{
yylval.integer = bfd_scan_vma (yytext+1, 0,16);
return INT;
}
YY_BREAK
case 7:
YY_RULE_SETUP
#line 149 "./ldlex.l"
{
int ibase ;
switch (yytext[yyleng-1]) {
case 'X':
case 'x':
case 'H':
case 'h':
ibase = 16;
break;
case 'O':
case 'o':
ibase = 8;
break;
case 'B':
case 'b':
ibase = 2;
break;
default:
ibase = 10;
}
yylval.integer = bfd_scan_vma (yytext, 0,
ibase);
return INT;
}
YY_BREAK
case 8:
YY_RULE_SETUP
#line 173 "./ldlex.l"
{
yylval.integer = bfd_scan_vma (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 9:
YY_RULE_SETUP
#line 186 "./ldlex.l"
{ RTOKEN(']');}
YY_BREAK
case 10:
YY_RULE_SETUP
#line 187 "./ldlex.l"
{ RTOKEN('[');}
YY_BREAK
case 11:
YY_RULE_SETUP
#line 188 "./ldlex.l"
{ RTOKEN(LSHIFTEQ);}
YY_BREAK
case 12:
YY_RULE_SETUP
#line 189 "./ldlex.l"
{ RTOKEN(RSHIFTEQ);}
YY_BREAK
case 13:
YY_RULE_SETUP
#line 190 "./ldlex.l"
{ RTOKEN(OROR);}
YY_BREAK
case 14:
YY_RULE_SETUP
#line 191 "./ldlex.l"
{ RTOKEN(EQ);}
YY_BREAK
case 15:
YY_RULE_SETUP
#line 192 "./ldlex.l"
{ RTOKEN(NE);}
YY_BREAK
case 16:
YY_RULE_SETUP
#line 193 "./ldlex.l"
{ RTOKEN(GE);}
YY_BREAK
case 17:
YY_RULE_SETUP
#line 194 "./ldlex.l"
{ RTOKEN(LE);}
YY_BREAK
case 18:
YY_RULE_SETUP
#line 195 "./ldlex.l"
{ RTOKEN(LSHIFT);}
YY_BREAK
case 19:
YY_RULE_SETUP
#line 196 "./ldlex.l"
{ RTOKEN(RSHIFT);}
YY_BREAK
case 20:
YY_RULE_SETUP
#line 197 "./ldlex.l"
{ RTOKEN(PLUSEQ);}
YY_BREAK
case 21:
YY_RULE_SETUP
#line 198 "./ldlex.l"
{ RTOKEN(MINUSEQ);}
YY_BREAK
case 22:
YY_RULE_SETUP
#line 199 "./ldlex.l"
{ RTOKEN(MULTEQ);}
YY_BREAK
case 23:
YY_RULE_SETUP
#line 200 "./ldlex.l"
{ RTOKEN(DIVEQ);}
YY_BREAK
case 24:
YY_RULE_SETUP
#line 201 "./ldlex.l"
{ RTOKEN(ANDEQ);}
YY_BREAK
case 25:
YY_RULE_SETUP
#line 202 "./ldlex.l"
{ RTOKEN(OREQ);}
YY_BREAK
case 26:
YY_RULE_SETUP
#line 203 "./ldlex.l"
{ RTOKEN(ANDAND);}
YY_BREAK
case 27:
YY_RULE_SETUP
#line 204 "./ldlex.l"
{ RTOKEN('>');}
YY_BREAK
case 28:
YY_RULE_SETUP
#line 205 "./ldlex.l"
{ RTOKEN(',');}
YY_BREAK
case 29:
YY_RULE_SETUP
#line 206 "./ldlex.l"
{ RTOKEN('&');}
YY_BREAK
case 30:
YY_RULE_SETUP
#line 207 "./ldlex.l"
{ RTOKEN('|');}
YY_BREAK
case 31:
YY_RULE_SETUP
#line 208 "./ldlex.l"
{ RTOKEN('~');}
YY_BREAK
case 32:
YY_RULE_SETUP
#line 209 "./ldlex.l"
{ RTOKEN('!');}
YY_BREAK
case 33:
YY_RULE_SETUP
#line 210 "./ldlex.l"
{ RTOKEN('?');}
YY_BREAK
case 34:
YY_RULE_SETUP
#line 211 "./ldlex.l"
{ RTOKEN('*');}
YY_BREAK
case 35:
YY_RULE_SETUP
#line 212 "./ldlex.l"
{ RTOKEN('+');}
YY_BREAK
case 36:
YY_RULE_SETUP
#line 213 "./ldlex.l"
{ RTOKEN('-');}
YY_BREAK
case 37:
YY_RULE_SETUP
#line 214 "./ldlex.l"
{ RTOKEN('/');}
YY_BREAK
case 38:
YY_RULE_SETUP
#line 215 "./ldlex.l"
{ RTOKEN('%');}
YY_BREAK
case 39:
YY_RULE_SETUP
#line 216 "./ldlex.l"
{ RTOKEN('<');}
YY_BREAK
case 40:
YY_RULE_SETUP
#line 217 "./ldlex.l"
{ RTOKEN('=');}
YY_BREAK
case 41:
YY_RULE_SETUP
#line 218 "./ldlex.l"
{ RTOKEN('}') ; }
YY_BREAK
case 42:
YY_RULE_SETUP
#line 219 "./ldlex.l"
{ RTOKEN('{'); }
YY_BREAK
case 43:
YY_RULE_SETUP
#line 220 "./ldlex.l"
{ RTOKEN(')');}
YY_BREAK
case 44:
YY_RULE_SETUP
#line 221 "./ldlex.l"
{ RTOKEN('(');}
YY_BREAK
case 45:
YY_RULE_SETUP
#line 222 "./ldlex.l"
{ RTOKEN(':'); }
YY_BREAK
case 46:
YY_RULE_SETUP
#line 223 "./ldlex.l"
{ RTOKEN(';');}
YY_BREAK
case 47:
YY_RULE_SETUP
#line 224 "./ldlex.l"
{ RTOKEN(MEMORY);}
YY_BREAK
case 48:
YY_RULE_SETUP
#line 225 "./ldlex.l"
{ RTOKEN(ORIGIN);}
YY_BREAK
case 49:
YY_RULE_SETUP
#line 226 "./ldlex.l"
{ RTOKEN(BLOCK);}
YY_BREAK
case 50:
YY_RULE_SETUP
#line 227 "./ldlex.l"
{ RTOKEN(BIND);}
YY_BREAK
case 51:
YY_RULE_SETUP
#line 228 "./ldlex.l"
{ RTOKEN(LENGTH);}
YY_BREAK
case 52:
YY_RULE_SETUP
#line 229 "./ldlex.l"
{ RTOKEN(ALIGN_K);}
YY_BREAK
case 53:
YY_RULE_SETUP
#line 230 "./ldlex.l"
{ RTOKEN(ADDR);}
YY_BREAK
case 54:
YY_RULE_SETUP
#line 231 "./ldlex.l"
{ RTOKEN(ENTRY);}
YY_BREAK
case 55:
YY_RULE_SETUP
#line 232 "./ldlex.l"
{ RTOKEN(NEXT);}
YY_BREAK
case 56:
YY_RULE_SETUP
#line 233 "./ldlex.l"
{ RTOKEN(SIZEOF_HEADERS);}
YY_BREAK
case 57:
YY_RULE_SETUP
#line 234 "./ldlex.l"
{ RTOKEN(SIZEOF_HEADERS);}
YY_BREAK
case 58:
YY_RULE_SETUP
#line 235 "./ldlex.l"
{ RTOKEN(MAP);}
YY_BREAK
case 59:
YY_RULE_SETUP
#line 236 "./ldlex.l"
{ RTOKEN(SIZEOF);}
YY_BREAK
case 60:
YY_RULE_SETUP
#line 237 "./ldlex.l"
{ RTOKEN(TARGET_K);}
YY_BREAK
case 61:
YY_RULE_SETUP
#line 238 "./ldlex.l"
{ RTOKEN(SEARCH_DIR);}
YY_BREAK
case 62:
YY_RULE_SETUP
#line 239 "./ldlex.l"
{ RTOKEN(OUTPUT);}
YY_BREAK
case 63:
YY_RULE_SETUP
#line 240 "./ldlex.l"
{ RTOKEN(INPUT);}
YY_BREAK
case 64:
YY_RULE_SETUP
#line 241 "./ldlex.l"
{ RTOKEN(GROUP);}
YY_BREAK
case 65:
YY_RULE_SETUP
#line 242 "./ldlex.l"
{ RTOKEN(DEFINED);}
YY_BREAK
case 66:
YY_RULE_SETUP
#line 243 "./ldlex.l"
{ RTOKEN(CREATE_OBJECT_SYMBOLS);}
YY_BREAK
case 67:
YY_RULE_SETUP
#line 244 "./ldlex.l"
{ RTOKEN( CONSTRUCTORS);}
YY_BREAK
case 68:
YY_RULE_SETUP
#line 245 "./ldlex.l"
{ RTOKEN(FORCE_COMMON_ALLOCATION);}
YY_BREAK
case 69:
YY_RULE_SETUP
#line 246 "./ldlex.l"
{ RTOKEN(SECTIONS);}
YY_BREAK
case 70:
YY_RULE_SETUP
#line 247 "./ldlex.l"
{ RTOKEN(FILL);}
YY_BREAK
case 71:
YY_RULE_SETUP
#line 248 "./ldlex.l"
{ RTOKEN(STARTUP);}
YY_BREAK
case 72:
YY_RULE_SETUP
#line 249 "./ldlex.l"
{ RTOKEN(OUTPUT_FORMAT);}
YY_BREAK
case 73:
YY_RULE_SETUP
#line 250 "./ldlex.l"
{ RTOKEN( OUTPUT_ARCH);}
YY_BREAK
case 74:
YY_RULE_SETUP
#line 251 "./ldlex.l"
{ RTOKEN(HLL);}
YY_BREAK
case 75:
YY_RULE_SETUP
#line 252 "./ldlex.l"
{ RTOKEN(SYSLIB);}
YY_BREAK
case 76:
YY_RULE_SETUP
#line 253 "./ldlex.l"
{ RTOKEN(FLOAT);}
YY_BREAK
case 77:
YY_RULE_SETUP
#line 254 "./ldlex.l"
{ RTOKEN( QUAD);}
YY_BREAK
case 78:
YY_RULE_SETUP
#line 255 "./ldlex.l"
{ RTOKEN( LONG);}
YY_BREAK
case 79:
YY_RULE_SETUP
#line 256 "./ldlex.l"
{ RTOKEN( SHORT);}
YY_BREAK
case 80:
YY_RULE_SETUP
#line 257 "./ldlex.l"
{ RTOKEN( BYTE);}
YY_BREAK
case 81:
YY_RULE_SETUP
#line 258 "./ldlex.l"
{ RTOKEN(NOFLOAT);}
YY_BREAK
case 82:
YY_RULE_SETUP
#line 259 "./ldlex.l"
{ RTOKEN(NOLOAD);}
YY_BREAK
case 83:
YY_RULE_SETUP
#line 260 "./ldlex.l"
{ RTOKEN(DSECT);}
YY_BREAK
case 84:
YY_RULE_SETUP
#line 261 "./ldlex.l"
{ RTOKEN(COPY);}
YY_BREAK
case 85:
YY_RULE_SETUP
#line 262 "./ldlex.l"
{ RTOKEN(INFO);}
YY_BREAK
case 86:
YY_RULE_SETUP
#line 263 "./ldlex.l"
{ RTOKEN(OVERLAY);}
YY_BREAK
case 87:
YY_RULE_SETUP
#line 264 "./ldlex.l"
{ RTOKEN(ORIGIN);}
YY_BREAK
case 88:
YY_RULE_SETUP
#line 265 "./ldlex.l"
{ RTOKEN(ORIGIN);}
YY_BREAK
case 89:
YY_RULE_SETUP
#line 266 "./ldlex.l"
{ RTOKEN( LENGTH);}
YY_BREAK
case 90:
YY_RULE_SETUP
#line 267 "./ldlex.l"
{ RTOKEN( LENGTH);}
YY_BREAK
case 91:
YY_RULE_SETUP
#line 268 "./ldlex.l"
{ RTOKEN(INCLUDE);}
YY_BREAK
case 92:
YY_RULE_SETUP
#line 269 "./ldlex.l"
{ RTOKEN (PHDRS); }
YY_BREAK
case 93:
YY_RULE_SETUP
#line 270 "./ldlex.l"
{ RTOKEN(AT);}
YY_BREAK
case 94:
YY_RULE_SETUP
#line 271 "./ldlex.l"
{ RTOKEN(PROVIDE); }
YY_BREAK
case 95:
YY_RULE_SETUP
#line 272 "./ldlex.l"
{ ++ lineno; }
YY_BREAK
case 96:
YY_RULE_SETUP
#line 273 "./ldlex.l"
{ ++ lineno; RTOKEN(NEWLINE); }
YY_BREAK
case 97:
YY_RULE_SETUP
#line 274 "./ldlex.l"
{ ++ lineno; RTOKEN(NEWLINE); }
YY_BREAK
case 98:
YY_RULE_SETUP
#line 275 "./ldlex.l"
{ /* Mri comment line */ }
YY_BREAK
case 99:
YY_RULE_SETUP
#line 276 "./ldlex.l"
{ /* Mri comment line */ }
YY_BREAK
case 100:
YY_RULE_SETUP
#line 277 "./ldlex.l"
{ RTOKEN(ENDWORD); }
YY_BREAK
case 101:
YY_RULE_SETUP
#line 278 "./ldlex.l"
{ RTOKEN(ALIGNMOD);}
YY_BREAK
case 102:
YY_RULE_SETUP
#line 279 "./ldlex.l"
{ RTOKEN(ALIGN_K);}
YY_BREAK
case 103:
YY_RULE_SETUP
#line 280 "./ldlex.l"
{ RTOKEN(CHIP); }
YY_BREAK
case 104:
YY_RULE_SETUP
#line 281 "./ldlex.l"
{ RTOKEN(BASE); }
YY_BREAK
case 105:
YY_RULE_SETUP
#line 282 "./ldlex.l"
{ RTOKEN(ALIAS); }
YY_BREAK
case 106:
YY_RULE_SETUP
#line 283 "./ldlex.l"
{ RTOKEN(TRUNCATE); }
YY_BREAK
case 107:
YY_RULE_SETUP
#line 284 "./ldlex.l"
{ RTOKEN(LOAD); }
YY_BREAK
case 108:
YY_RULE_SETUP
#line 285 "./ldlex.l"
{ RTOKEN(PUBLIC); }
YY_BREAK
case 109:
YY_RULE_SETUP
#line 286 "./ldlex.l"
{ RTOKEN(ORDER); }
YY_BREAK
case 110:
YY_RULE_SETUP
#line 287 "./ldlex.l"
{ RTOKEN(NAMEWORD); }
YY_BREAK
case 111:
YY_RULE_SETUP
#line 288 "./ldlex.l"
{ RTOKEN(FORMAT); }
YY_BREAK
case 112:
YY_RULE_SETUP
#line 289 "./ldlex.l"
{ RTOKEN(CASE); }
YY_BREAK
case 113:
YY_RULE_SETUP
#line 290 "./ldlex.l"
{ RTOKEN(EXTERN); }
YY_BREAK
case 114:
YY_RULE_SETUP
#line 291 "./ldlex.l"
{ RTOKEN(START); }
YY_BREAK
case 115:
YY_RULE_SETUP
#line 292 "./ldlex.l"
{ RTOKEN(LIST); /* LIST and ignore to end of line */ }
YY_BREAK
case 116:
YY_RULE_SETUP
#line 293 "./ldlex.l"
{ RTOKEN(SECT); }
YY_BREAK
case 117:
YY_RULE_SETUP
#line 294 "./ldlex.l"
{ RTOKEN(ABSOLUTE); }
YY_BREAK
case 118:
YY_RULE_SETUP
#line 295 "./ldlex.l"
{ RTOKEN(ENDWORD); }
YY_BREAK
case 119:
YY_RULE_SETUP
#line 296 "./ldlex.l"
{ RTOKEN(ALIGNMOD);}
YY_BREAK
case 120:
YY_RULE_SETUP
#line 297 "./ldlex.l"
{ RTOKEN(ALIGN_K);}
YY_BREAK
case 121:
YY_RULE_SETUP
#line 298 "./ldlex.l"
{ RTOKEN(CHIP); }
YY_BREAK
case 122:
YY_RULE_SETUP
#line 299 "./ldlex.l"
{ RTOKEN(BASE); }
YY_BREAK
case 123:
YY_RULE_SETUP
#line 300 "./ldlex.l"
{ RTOKEN(ALIAS); }
YY_BREAK
case 124:
YY_RULE_SETUP
#line 301 "./ldlex.l"
{ RTOKEN(TRUNCATE); }
YY_BREAK
case 125:
YY_RULE_SETUP
#line 302 "./ldlex.l"
{ RTOKEN(LOAD); }
YY_BREAK
case 126:
YY_RULE_SETUP
#line 303 "./ldlex.l"
{ RTOKEN(PUBLIC); }
YY_BREAK
case 127:
YY_RULE_SETUP
#line 304 "./ldlex.l"
{ RTOKEN(ORDER); }
YY_BREAK
case 128:
YY_RULE_SETUP
#line 305 "./ldlex.l"
{ RTOKEN(NAMEWORD); }
YY_BREAK
case 129:
YY_RULE_SETUP
#line 306 "./ldlex.l"
{ RTOKEN(FORMAT); }
YY_BREAK
case 130:
YY_RULE_SETUP
#line 307 "./ldlex.l"
{ RTOKEN(CASE); }
YY_BREAK
case 131:
YY_RULE_SETUP
#line 308 "./ldlex.l"
{ RTOKEN(EXTERN); }
YY_BREAK
case 132:
YY_RULE_SETUP
#line 309 "./ldlex.l"
{ RTOKEN(START); }
YY_BREAK
case 133:
YY_RULE_SETUP
#line 310 "./ldlex.l"
{ RTOKEN(LIST); /* LIST and ignore to end of line */ }
YY_BREAK
case 134:
YY_RULE_SETUP
#line 311 "./ldlex.l"
{ RTOKEN(SECT); }
YY_BREAK
case 135:
YY_RULE_SETUP
#line 312 "./ldlex.l"
{ RTOKEN(ABSOLUTE); }
YY_BREAK
case 136:
YY_RULE_SETUP
#line 314 "./ldlex.l"
{
/* Filename without commas, needed to parse mri stuff */
yylval.name = buystring(yytext);
return NAME;
}
YY_BREAK
case 137:
YY_RULE_SETUP
#line 321 "./ldlex.l"
{
yylval.name = buystring(yytext);
return NAME;
}
YY_BREAK
case 138:
YY_RULE_SETUP
#line 325 "./ldlex.l"
{
yylval.name = buystring (yytext + 2);
return LNAME;
}
YY_BREAK
case 139:
YY_RULE_SETUP
#line 329 "./ldlex.l"
{ yylval.name = buystring(yytext);
return NAME;
}
YY_BREAK
case 140:
YY_RULE_SETUP
#line 333 "./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 141:
YY_RULE_SETUP
#line 340 "./ldlex.l"
{ lineno++;}
YY_BREAK
case 142:
YY_RULE_SETUP
#line 341 "./ldlex.l"
{ lineno++;}
YY_BREAK
case 143:
YY_RULE_SETUP
#line 342 "./ldlex.l"
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(SCRIPT):
case YY_STATE_EOF(EXPRESSION):
case YY_STATE_EOF(BOTH):
case YY_STATE_EOF(DEFSYMEXP):
case YY_STATE_EOF(MRI):
#line 344 "./ldlex.l"
{
include_stack_ptr--;
if (include_stack_ptr == 0)
{
yyterminate();
}
else
{
yy_switch_to_buffer(include_stack[include_stack_ptr]);
}
BEGIN(SCRIPT);
ldfile_input_filename = file_name_stack[include_stack_ptr - 1];
lineno = lineno_stack[include_stack_ptr - 1];
return END;
}
YY_BREAK
case 144:
YY_RULE_SETUP
#line 363 "./ldlex.l"
lex_warn_invalid(" in script", yytext);
YY_BREAK
case 145:
YY_RULE_SETUP
#line 364 "./ldlex.l"
lex_warn_invalid(" in expression", yytext);
YY_BREAK
case 146:
YY_RULE_SETUP
#line 366 "./ldlex.l"
ECHO;
YY_BREAK
#line 2217 "lex.yy.c"
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 >= 916 )
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 >= 916 )
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 == 915);
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 *) xmalloc( 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
#line 366 "./ldlex.l"
/* Switch flex to reading script file NAME, open on FILE,
saving the current input info on the include stack. */
void
lex_push_file (file, name)
FILE *file;
const char *name;
{
if (include_stack_ptr >= MAX_INCLUDE_DEPTH)
{
einfo("%F:includes nested too deeply\n");
}
file_name_stack[include_stack_ptr] = name;
lineno_stack[include_stack_ptr] = 1;
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);
}
/* Return a newly created flex input buffer containing STRING,
which is SIZE bytes long. */
static YY_BUFFER_STATE
yy_create_string_buffer (string, size)
CONST char *string;
size_t size;
{
YY_BUFFER_STATE b;
/* Calls to m-alloc get turned by sed into xm-alloc. */
b = (YY_BUFFER_STATE) xmalloc (sizeof (struct yy_buffer_state));
b->yy_input_file = 0;
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 *) xmalloc ((unsigned) (b->yy_buf_size + 3));
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];
/* flex 2.4.7 changed the interface. FIXME: We should not be using
a flex internal interface in the first place! */
#ifdef YY_BUFFER_NEW
b->yy_buffer_status = YY_BUFFER_NEW;
#else
b->yy_eof_status = EOF_NOT_SEEN;
#endif
return b;
}
/* Switch flex to reading from STRING, saving the current input info
on the include stack. */
void
lex_redirect (string)
CONST char *string;
{
YY_BUFFER_STATE tmp;
yy_init = 0;
if (include_stack_ptr >= MAX_INCLUDE_DEPTH)
{
einfo("%F: macros nested too deeply\n");
}
file_name_stack[include_stack_ptr] = "redirect";
lineno_stack[include_stack_ptr] = 0;
include_stack[include_stack_ptr] = YY_CURRENT_BUFFER;
include_stack_ptr++;
tmp = yy_create_string_buffer (string, strlen (string));
yy_switch_to_buffer (tmp);
BEGIN (SCRIPT);
}
/* Functions to switch to a different flex start condition,
saving the current start condition on `state_stack'. */
static int state_stack[MAX_INCLUDE_DEPTH * 2];
static int *state_stack_p = state_stack;
void
ldlex_script ()
{
*(state_stack_p)++ = yy_start;
BEGIN (SCRIPT);
}
void
ldlex_mri_script ()
{
*(state_stack_p)++ = yy_start;
BEGIN (MRI);
}
void
ldlex_defsym ()
{
*(state_stack_p)++ = yy_start;
BEGIN (DEFSYMEXP);
}
void
ldlex_expression ()
{
*(state_stack_p)++ = yy_start;
BEGIN (EXPRESSION);
}
void
ldlex_both ()
{
*(state_stack_p)++ = yy_start;
BEGIN (BOTH);
}
void
ldlex_popstate ()
{
yy_start = *(--state_stack_p);
}
/* Place up to MAX_SIZE characters in BUF and return in *RESULT
either the number of characters read, or 0 to indicate EOF. */
static void
yy_input (buf, result, max_size)
char *buf;
int *result;
int max_size;
{
*result = 0;
if (yy_current_buffer->yy_input_file)
{
if (yyin)
{
*result = read (fileno (yyin), (char *) buf, max_size);
if (*result < 0)
einfo ("%F%P: read in flex scanner failed");
}
}
}
/* Eat the rest of a C-style comment. */
static void
comment ()
{
int c;
while (1)
{
c = input();
while (c != '*' && c != EOF)
{
if (c == '\n' || c == '\r')
lineno++;
c = input();
}
if (c == '*')
{
c = input();
while (c == '*')
c = input();
if (c == '/')
break; /* found the end */
}
if (c == '\n' || c == '\r')
lineno++;
if (c == EOF)
{
einfo( "%F%P: EOF in comment\n");
break;
}
}
}
/* Warn the user about a garbage character WHAT in the input
in context WHERE. */
static void
lex_warn_invalid (where, what)
char *where, *what;
{
char buf[5];
/* If we have found an input file whose format we do not recognize,
and we are therefore treating it as a linker script, and we find
an invalid character, then most likely this is a real object file
of some different format. Treat it as such. */
if (ldfile_assumed_script)
{
bfd_set_error (bfd_error_file_not_recognized);
einfo ("%F%s: file not recognized: %E\n", ldfile_input_filename);
}
if (! isprint ((unsigned char) *what))
{
sprintf (buf, "\\%03o", (unsigned int) *what);
what = buf;
}
einfo ("%P:%S: ignoring invalid character `%s'%s\n", what, where);
}