/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 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_RESTORE_YY_MORE_OFFSET \
		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 *yy_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 162
#define YY_END_OF_BUFFER 163
static yyconst short int yy_accept[1003] =
    {   0,
        0,    0,  145,  145,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  163,  162,
      160,  148,  147,   32,  160,  145,   38,   29,   44,   43,
       34,   35,   28,   36,  145,   37,    8,    8,   45,   46,
       39,   40,   27,   33,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,   10,    9,  145,   96,   94,  145,   42,   30,
       41,   31,  161,  148,   32,  161,  143,   38,   29,   44,
       43,   34,   35,   28,   36,  143,   37,    8,    8,   45,
       46,   39,   40,   27,   33,  143,  143,  143,  143,  143,

      143,  143,  143,  143,  143,  143,  143,  143,   10,    9,
      143,  143,   42,   30,   41,   31,  143,    8,    8,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,   96,   94,    4,
        3,    2,    4,    5,  103,  102,  142,   34,   35,   28,
       36,  142,   37,    8,    8,   45,   46,   40,   33,  142,
      142,  142,  142,  142,  142,  142,  142,  142,  142,  142,
      142,   10,    9,  142,  142,  142,  142,  142,  142,  142,
      142,  142,  142,  142,   31,  159,  157,  158,  154,  153,
      149,  155,  156,  152,  152,  152,  148,   15,    0,  146,

      145,    8,   26,   24,   22,   20,   21,    1,   23,    8,
        8,  145,   18,   17,   14,   16,   19,  145,  145,  145,
      100,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,   25,
       13,  143,    6,   22,   20,   21,    0,    1,   23,    8,
        0,    7,    7,    8,    7,   14,  143,    7,    7,    7,
      143,  100,    7,  143,  143,    7,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,    7,  143,

        8,    8,    0,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,    4,    4,  102,  102,  142,
        6,  104,   22,   23,  105,  142,    7,    7,    7,  142,
      142,  142,    7,  142,    7,    7,  142,  142,  142,  142,
      142,  142,  142,  142,    7,  142,  142,  142,    7,  142,
        7,    7,  142,  142,  142,  142,  142,  142,  142,  142,
      159,  158,  153,  152,  152,  152,   11,   12,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,

      145,  145,  145,  145,   78,  145,  145,  145,  145,  145,
      145,   62,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,   97,   95,  145,    8,  144,    8,  143,
        7,  143,  143,  143,  143,  143,  143,  143,  143,  143,
       56,   57,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,   78,
      143,  143,  143,  143,   62,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
       97,   95,    4,    8,  142,  142,  142,  142,  142,  106,

      142,  142,  142,  142,  142,  142,  142,  142,  142,  142,
      142,  142,  142,  142,  142,  124,  142,  142,  142,  142,
      142,  142,  142,  142,  142,  142,  152,  152,  145,   54,
      145,   51,  145,   85,  145,   91,  145,  145,  145,  145,
       74,  145,  145,  145,  145,   92,  145,  145,  145,   83,
      145,   59,  145,  145,  145,  145,  145,  145,  145,  145,
       81,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  143,   54,  143,   51,  143,   91,  143,  143,
      143,   92,  143,   59,  143,  143,  143,  143,  143,  143,
      143,   85,  143,  143,  143,   74,  143,  143,  143,  143,

      143,   83,  143,  143,  143,  143,  143,  143,   81,  143,
      143,  143,  143,  143,  143,  143,  143,  142,  142,  142,
      110,  118,  109,  142,  142,  121,  113,  116,  142,  142,
      122,  142,  142,  142,  142,  142,  128,  136,  127,  142,
      142,  139,  131,  134,  142,  142,  140,  142,  142,  152,
      152,  145,   53,   50,  145,  145,  145,   90,   58,   80,
      145,   68,  145,   67,  145,  145,  145,  145,  145,  145,
      145,  145,  145,   99,  145,  145,  145,   84,  145,   82,
      145,  145,  145,  145,  145,  145,  143,   53,   50,  143,
       90,   68,  143,  143,  143,  143,  143,  143,  143,  143,

      143,  143,   58,   80,  143,  143,   67,  143,  143,  143,
      143,  143,  143,   99,  143,  143,   84,   82,  143,  143,
      143,  143,  142,  111,  108,  142,  142,  121,  121,  115,
      142,  120,  142,  142,  129,  126,  142,  142,  139,  139,
      133,  142,  138,  142,  152,  151,  145,  145,  145,  145,
      145,  145,   52,  145,   47,  145,  145,   89,   48,   66,
      145,  145,  145,  145,   63,  145,   79,   64,  145,  145,
      145,  143,  143,  143,  143,   89,  143,  143,   63,  143,
      143,  143,  143,  143,  143,   52,   47,  143,   48,   66,
      143,  143,  143,  143,   79,   64,  143,  142,  142,  119,

      117,  114,  142,  142,  142,  137,  135,  132,  142,  150,
      145,  145,  145,   69,  145,   98,  145,  145,   86,  145,
       88,  101,  145,  145,  145,   75,   49,  145,  145,  143,
       69,  143,  143,   93,  101,  143,  143,  143,  143,  143,
      143,   98,   86,  143,   88,  143,  143,   75,   49,  142,
      142,  142,  142,  142,  142,  123,  145,  145,  145,   55,
      145,  145,  145,  145,   73,  145,  141,  145,  123,   55,
      143,  143,  141,  143,  143,  143,  143,  143,  143,  143,
       73,  123,  107,  112,  141,  125,  130,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  143,  143,  143,  143,

      143,  143,  143,  143,  143,  145,  145,  145,  145,  145,
      145,   65,  145,  145,  143,  143,  143,  143,  143,  143,
      143,  143,   65,  145,  145,  145,   87,   77,  145,  145,
      145,   87,  143,  143,  143,  143,  143,   77,  143,   71,
      145,  145,  145,  145,  145,  143,  143,   71,  143,  143,
      143,  145,  145,   76,  145,  145,  143,  143,  143,  143,
       76,  145,  145,   61,   60,   61,   60,  143,  143,  145,
      145,  143,  143,  145,  145,  143,  143,  145,  145,  143,
      143,  145,  145,  143,  143,  145,  145,  143,  143,  145,
      145,  143,  143,   70,  145,   70,  143,  145,  143,   72,

       72,    0
    } ;

static yyconst int yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    1,    2,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    2,    4,    5,    6,    7,    8,    9,    1,   10,
       11,   12,   13,   14,   15,   16,   17,   18,   19,   19,
       19,   19,   19,   19,   19,   19,   19,   20,   21,   22,
       23,   24,   25,    1,   26,   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,
       52,   53,   54,    1,   55,    1,   56,   57,   58,   59,

       60,   61,   62,   63,   64,   48,   65,   66,   67,   68,
       69,   70,   48,   71,   72,   73,   74,   48,   48,   75,
       48,   76,   77,   78,   79,   80,    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[81] =
    {   0,
        1,    1,    2,    1,    1,    1,    3,    1,    1,    1,
        1,    4,    5,    6,    5,    7,    3,    8,    8,    5,
        1,    1,    6,    1,    4,    8,    8,    8,    8,    8,
        8,    9,    9,    9,    9,    9,    9,    9,    9,    9,
        9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
        9,    5,    3,    5,    9,    8,    8,    8,    8,    8,
        8,    9,    9,    9,    9,    9,    9,    9,    9,    9,
        9,    9,    9,    9,    9,    9,    1,    1,    1,    3
    } ;

static yyconst short int yy_base[1025] =
    {   0,
        0,    0,    0,    0,   80,    0,  154,    0,  223,  302,
      381,    0,  162,  172,  461,  541,  621,  701, 1676, 1862,
     1862, 1673, 1862, 1651, 1668,  764, 1862,  153, 1862, 1862,
     1649, 1648,    0, 1647,    0,  154,  300,  232,    0, 1862,
      147, 1646,  166,    0,  226,  166,  162,  174, 1629,  220,
     1624, 1629, 1626,  167,  137,  179,  215,  223, 1618,  239,
     1637, 1632,    0,    0, 1604, 1600, 1588, 1594, 1862,  198,
     1862,    0, 1862, 1655, 1633, 1650,  808, 1862,  199, 1862,
     1862, 1631, 1630, 1862,  217,    0,  194,  852, 1577, 1862,
     1862,  242, 1628,  255, 1862,  910,  253,  302,  314,  303,

     1607, 1610, 1608,  145,  255, 1600, 1603, 1611, 1862, 1862,
      460, 1580, 1862,  268, 1862,    0,  968,  709,  549,  308,
      318,  253,  244, 1604,  323, 1605, 1602,  331,  336,  334,
      326,  455, 1594,  461, 1613, 1608, 1575, 1571, 1559, 1012,
     1862, 1862,    0, 1862, 1862, 1626, 1056, 1605, 1604, 1862,
     1602,    0, 1596,    0, 1540, 1862,    0, 1586, 1862, 1100,
      473,  475,  482,  542,  489,  252, 1582, 1564, 1560,  222,
     1562, 1862, 1862,  491,  543,  545,  578,  559,  264, 1548,
     1532, 1528,  417, 1530,    0, 1598, 1862,    0, 1862,    0,
     1862, 1862, 1862,    0, 1533, 1529, 1595, 1862, 1591, 1862,

        0, 1158, 1862, 1862,    0,    0,    0,    0,    0,  629,
        0,  535, 1572, 1862,    0, 1862, 1571, 1549, 1563, 1557,
        0, 1551, 1549, 1543,  337, 1557, 1555, 1555, 1539, 1546,
     1542, 1538, 1540, 1542,  492, 1539,  495, 1536, 1538, 1526,
      494, 1540, 1528, 1542, 1542, 1530, 1543,  504, 1528, 1516,
     1520, 1539, 1520, 1520, 1519, 1489, 1492, 1497, 1477, 1862,
     1862,    0, 1208, 1862, 1862, 1862,    0, 1862,    0, 1477,
      721,    0, 1862, 1862,    0, 1862,  547,  625,  561,    0,
     1517,    0,  631, 1511, 1509, 1507,  704, 1516, 1500, 1505,
     1504, 1480, 1489, 1478,  499, 1496, 1485, 1473,  705, 1447,

      613,  733,    0, 1478, 1492, 1475,  496, 1489, 1487, 1472,
     1479, 1475, 1471, 1476,  576, 1473,  571,  455, 1473,  635,
     1476, 1464, 1478, 1478, 1480,  549, 1465, 1458, 1477, 1458,
     1458, 1457, 1427, 1430, 1435,    0, 1258, 1493, 1862,    0,
     1308,    0,    0, 1862,    0,  576,  644,  652,    0, 1461,
      699,  721, 1460, 1464, 1447, 1448, 1446, 1463, 1450, 1458,
     1459, 1457, 1458, 1437,  658, 1418,  729,  733, 1417, 1421,
     1401, 1402, 1400, 1415, 1403, 1410, 1410, 1403, 1401, 1377,
     1448,    0,    0,    0, 1380, 1390, 1862, 1862, 1407, 1403,
     1413, 1415, 1415, 1412, 1397, 1390, 1413, 1404, 1409, 1393,

     1398, 1408, 1405, 1386,    0, 1394, 1390, 1383, 1396, 1398,
     1394,    0, 1385, 1379, 1380, 1385, 1381, 1388, 1378, 1375,
     1374, 1369, 1386, 1371, 1368, 1369, 1381, 1384, 1366, 1371,
     1375, 1362, 1336,    0,    0, 1344,    0,    0,  619, 1363,
      770, 1370, 1372, 1367, 1344,  813, 1365, 1346, 1351, 1361,
        0,    0, 1343, 1339, 1338, 1331, 1325, 1341, 1301, 1303,
     1319, 1331, 1316, 1333, 1324, 1314, 1319, 1329, 1326,    0,
     1316, 1306, 1319, 1318,    0, 1309, 1311, 1315, 1304, 1300,
     1299, 1312, 1297, 1288, 1289, 1305, 1287, 1292, 1296, 1280,
        0,    0,    0,    0, 1282,  557, 1291, 1290, 1272,    0,

     1282, 1273, 1265, 1280, 1278, 1277, 1269, 1260, 1261, 1264,
     1233,  594, 1241, 1240, 1229,    0, 1238, 1230, 1222, 1234,
     1232, 1231, 1224, 1210, 1211, 1213, 1223, 1223, 1241,    0,
     1235,    0, 1236,    0, 1226,    0, 1225, 1224, 1217, 1211,
        0, 1215, 1229, 1217, 1211,    0, 1211, 1210, 1228,    0,
     1210,    0, 1212, 1211, 1224, 1215, 1202, 1210, 1201, 1209,
        0, 1214, 1207, 1195, 1193, 1203, 1186, 1196, 1199, 1194,
     1158, 1153, 1184,    0, 1181,    0, 1177,    0, 1173, 1166,
     1169,    0, 1183,    0, 1168, 1181, 1169, 1171, 1164, 1137,
     1133,    0, 1156, 1155, 1149,    0, 1153, 1167, 1149, 1148,

     1147,    0, 1148, 1150, 1149, 1136, 1144, 1136,    0, 1151,
     1144, 1129, 1144, 1127, 1137, 1140, 1134, 1130, 1122, 1126,
        0,    0,    0, 1121, 1136, 1375,    0,    0, 1112, 1120,
        0, 1108, 1124, 1085, 1078, 1080,    0,    0,    0, 1076,
     1090, 1454,    0,    0, 1074, 1080,    0, 1070, 1084, 1085,
     1073, 1092,    0,    0, 1093, 1105, 1104,    0,    0,    0,
     1077,    0, 1096,    0, 1091, 1094, 1072, 1077, 1094, 1082,
     1071, 1064, 1082,    0, 1078, 1073, 1065,    0, 1073,    0,
     1057, 1075, 1056, 1060, 1025, 1037, 1051,    0,    0, 1066,
        0,    0, 1066, 1050, 1064, 1066, 1062, 1059, 1015, 1027,

     1038, 1050,    0,    0, 1024, 1049,    0, 1044, 1026, 1041,
     1027, 1020, 1038,    0, 1030, 1022,    0,    0, 1015, 1033,
     1014, 1018, 1011,    0, 1018, 1016, 1009,    0, 1533,    0,
     1025,    0, 1026,  977,    0,  983,  981,  975,    0, 1612,
        0,  989,    0,  990,  979,    0,  999,  991,  981, 1006,
     1006, 1003,    0, 1003,    0,  979,  977,    0,    0,  966,
      970,  989,  963,  978,  961,  974,    0,    0,  975,  940,
      957,  966,  981,  980,  964,    0,  957,  976,  950,  931,
      948,  956,  946,  972,  963,    0,    0,  947,    0,  936,
      940,  934,  949,  943,    0,    0,  944,  937,  941,    0,

        0,    0,  935,  905,  908,    0,    0,    0,  903,    0,
      945,  946,  932,    0,  925,    0,  921,  920,    0,  633,
        0,    0,  933,  917,  153,    0,    0,  199,  231,  304,
        0,  306,  307,    0,    0,  344,  408,  429,  465,  467,
      484,    0,    0,  651,    0,  549,  565,    0,    0,  581,
      583,  603,  577,  602,  630,    0,  646,  665,  655,    0,
      667,  665,  673,  683,    0,  699,    0,  677,    0,    0,
      708,  714,    0,  686,  716,  735,  726,  725,  732,  739,
        0,    0,    0,    0,    0,    0,    0,  735,  750,  749,
      758,  774,  760,  761,  780,  752,  778,  784,  755,  772,

      779,  778,  789,  775,  776,  785,  799,  790,  787,  799,
      795,    0,  812,  784,  800,  816,  787,  805,  819,  811,
      819,  815,    0,  810,  827,  817,    0,    0,  831,  829,
      800,    0,  831,  802,  819,  844,  834,    0,  848,    0,
      830,  821,  832,  841,  815,  844,  818,    0,  846,  838,
      849,  840,  870,    0,  853,  826,  855,  828,  847,  877,
        0,  860,  868,    0,    0,    0,    0,  862,  870,  864,
      879,  868,  883,  884,  883,  886,  885,  899,  902,  904,
      904,  893,  908,  895,  916,  907,  900,  909,  903,  905,
      917,  908,  919,    0,  914,    0,  916,  918,  919,    0,

        0, 1862, 1691, 1700, 1709, 1718, 1727, 1736, 1743, 1750,
     1757, 1766, 1773, 1782, 1791, 1800, 1803, 1809, 1816,  952,
     1825, 1834, 1843, 1852
    } ;

static yyconst short int yy_def[1025] =
    {   0,
     1003, 1003, 1002,    3, 1002,    5,    5,    7, 1004, 1004,
     1002,   11, 1005, 1005, 1006, 1006, 1007, 1007, 1002, 1002,
     1002, 1002, 1002, 1002, 1008, 1009, 1002, 1002, 1002, 1002,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1002,
     1002, 1009, 1002, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1002, 1002,
     1002, 1009, 1002, 1002, 1002, 1008, 1010, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1010, 1010, 1002,   88, 1002,
     1002, 1002, 1002, 1002, 1002, 1010,   96,   96,   96,   96,

     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1002, 1002,
       96, 1010, 1002, 1002, 1002, 1010, 1010, 1002, 1002, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1011,
     1002, 1002, 1011, 1002, 1002, 1012, 1013, 1014, 1002, 1002,
     1002, 1013, 1013,   88,   88, 1002, 1015, 1002, 1002, 1013,
      160,  160,  160,  160,  160, 1013, 1013, 1013, 1013, 1013,
     1013, 1002, 1002,  160,  160,  160,  160,  160, 1013, 1013,
     1013, 1013, 1013, 1013, 1013, 1002, 1002, 1016, 1002, 1017,
     1002, 1002, 1002, 1018, 1018, 1018, 1002, 1002, 1008, 1002,

     1009, 1009, 1002, 1002, 1009, 1009, 1009, 1009, 1009, 1009,
     1009,  202, 1002, 1002, 1009, 1002, 1002, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1002,
     1002, 1010, 1010, 1002, 1002, 1002, 1019, 1002, 1010,   88,
       88,  271, 1002, 1002, 1020, 1002,   96,   96,   96, 1010,
     1010, 1010,   96, 1010, 1010, 1010,   96, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,   96, 1010,

      117, 1002, 1020, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1011, 1011, 1012, 1002, 1013,
     1013, 1014, 1014, 1002, 1015,  160,  160,  160, 1013, 1013,
      160,  160, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013,
     1013, 1013, 1013, 1013,  160, 1013,  160,  160, 1013, 1013,
     1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013,
     1002, 1016, 1017, 1018, 1018, 1018, 1002, 1002, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,

     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1010, 1019, 1020, 1010,
       96, 1010, 1010, 1010, 1010,   96, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1011, 1013, 1013, 1013, 1013, 1013, 1013, 1013,

     1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013,
     1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013,
     1013, 1013, 1013, 1013, 1013, 1013, 1018, 1018, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,

     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1013, 1013, 1013,
     1013, 1013, 1013, 1013, 1013, 1021, 1013, 1013, 1013, 1013,
     1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013,
     1013, 1022, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1018,
     1018, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,

     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1013, 1013, 1013, 1013, 1013, 1023, 1021, 1013,
     1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1024, 1022,
     1013, 1013, 1013, 1013, 1018, 1018, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1013, 1013, 1013,

     1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1018,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1013,
     1013, 1013, 1013, 1013, 1013, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1010, 1010,
     1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1013, 1013, 1013, 1013, 1013, 1013, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1009, 1009, 1010, 1010, 1010, 1010,

     1010, 1010, 1010, 1010, 1010, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1009, 1009, 1010, 1010, 1010, 1010, 1010, 1010,
     1010, 1010, 1010, 1009, 1009, 1009, 1009, 1009, 1009, 1009,
     1009, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1009,
     1009, 1009, 1009, 1009, 1009, 1010, 1010, 1010, 1010, 1010,
     1010, 1009, 1009, 1009, 1009, 1009, 1010, 1010, 1010, 1010,
     1010, 1009, 1009, 1009, 1009, 1010, 1010, 1010, 1010, 1009,
     1009, 1010, 1010, 1009, 1009, 1010, 1010, 1009, 1009, 1010,
     1010, 1009, 1009, 1010, 1010, 1009, 1009, 1010, 1010, 1009,
     1009, 1010, 1010, 1009, 1009, 1010, 1010, 1009, 1010, 1009,

     1010,    0, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002
    } ;

static yyconst short int yy_nxt[1943] =
    {   0,
       21,   22,   23,   24,   25,   21,   26,   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,   52,   53,   35,   35,   54,   55,   56,   57,
       58,   59,   35,   60,   61,   35,   62,   35,   35,   35,
       35,   63,   35,   64,   35,   65,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   66,   35,   35,   67,   35,
       35,   68,   35,   35,   35,   35,   69,   70,   71,   72,
       73,   74,   23,   75,   76,   73,   77,   78,   79,   80,
       81,   82,   83,   84,   85,   86,   87,   88,   89,   90,

       91,   92,   93,   94,   95,   96,   97,   98,   99,  100,
      100,  101,   86,  102,   86,   86,  103,  104,  105,  106,
      107,   86,   86,  108,   86,   86,   86,   86,   86,   86,
       86,  109,   86,  110,   86,  111,  100,  100,  100,  100,
      100,   86,   86,   86,   86,   86,   86,   86,   86,   86,
       86,  112,   86,   86,   86,   86,  113,  114,  115,  116,
      117,  203,  238,  186,  187,  208,  239,  188,  213,  214,
      292,  118,  119,  186,  187,  204,  209,  188,  293,  120,
      121,  122,  123,  124,  125,  866,  126,  127,  216,  217,
      128,  129,  130,  131,  132,  133,  236,  134,  135,  222,

      136,  225,  223,  227,  226,  268,  237,  203,  240,  137,
       86,   86,   86,   86,   86,  224,  269,  228,  241,  138,
      260,  204,  139,   73,   73,   20,   73,   73,   73,  140,
       73,   73,   73,   73,   73,  141,   73,  142,  189,  266,
      118,  119,   73,   73,   73,  144,   73,   73,  189,  210,
      210,  362,  218,  230,  219,  245,  231,  242,  867,  232,
      243,  244,  220,  213,  214,  246,  363,  211,  248,  211,
      221,  249,  250,  309,   73,  261,   73,  216,  217,  283,
      251,  283,  267,  252,  294,  357,  284,  288,  253,  285,
      260,  358,  307,  868,  295,  308,  211,  262,  211,   73,

       73,   73,   73,   73,   20,   73,   73,   73,  140,   73,
       73,   73,   73,   73,  141,   73,  142,  210,  210,  118,
      119,   73,   73,   73,  144,   73,   73,  373,  283,  283,
      283,  283,  374,  869,  304,  211,  305,  211,  262,  262,
      283,  286,  283,  287,  281,  261,  262,  262,  870,  871,
      262,  284,  282,   73,  285,   73,  311,  288,  262,  312,
      316,  318,  313,  294,  211,  319,  211,  306,  321,  293,
      317,  322,  323,  320,  212,  395,  872,  396,   73,   73,
       73,   21,   22,  145,   24,   21,  146,  147,   27,   28,
       29,   30,  148,  149,  150,  151,  152,  153,  154,  155,

      156,  157,   41,  158,   43,  159,  160,  161,  162,  163,
      164,  165,  152,  152,  152,  152,  152,  166,  152,  167,
      168,  169,  152,  152,  170,  171,  152,  152,  152,  152,
      152,  152,  172,  152,  173,  152,  174,  175,  176,  163,
      177,  178,  152,  152,  152,  152,  179,  152,  180,  181,
      182,  152,  183,  184,  152,  152,  152,   69,   70,   71,
      185,   21,  186,  187,   21,   21,  188,  873,   21,   21,
       21,   21,   21,   21,  191,   21,  378,   21,   21,   21,
      191,  191,   21,   21,   21,   21,  283,  324,  283,  379,
      326,  874,  875,  327,  298,  475,  262,  297,  351,  348,

      352,  348,  328,  451,  262,  329,  876,  353,  348,  340,
      330,  340,   21,   21,   21,  348,  299,  348,  340,  406,
      410,  415,  407,  877,  416,  340,  454,  340,  356,  424,
      417,  425,  408,  411,  463,  455,  445,  192,   21,  193,
       21,   21,  186,  187,   21,   21,  188,  365,   21,   21,
       21,   21,   21,   21,  191,   21,  366,   21,   21,   21,
      191,  191,   21,   21,   21,   21,  302,  302,  348,  348,
      201,  348,  201,  283,  483,  283,  484,  880,  340,  340,
      354,  340,  619,  262,  274,  348,  274,  283,  620,  441,
      355,  262,   21,   21,   21,  340,  450,  262,  367,  201,

      368,  201,  348,  471,  348,  262,  449,  369,  881,  474,
      882,  883,  340,  274,  340,  274,  472,  192,   21,  193,
       21,   21,  186,  187,   21,   21,  188,  372,   21,   21,
       21,   21,  884,   21,  191,   21,  885,   21,   21,   21,
      191,  191,   21,   21,   21,  370,  210,  210,  437,  635,
      437,  283,  371,  283,  274,  636,  274,  283,  862,  283,
      886,  262,  454,  863,  211,  477,  211,  262,  440,  262,
      348,  455,   21,   21,   21,  262,  878,  437,  348,  437,
      340,  879,  195,  274,  348,  274,  196,  495,  340,  887,
      888,  889,  890,  211,  340,  211,  891,   21,   21,  193,

       21,   21,  186,  187,   21,   21,  188,  892,   21,   21,
       21,   21,  893,   21,  191,   21,  894,   21,   21,   21,
      191,  191,   21,   21,   21,  348,  302,  302,  895,  511,
      283,  283,  283,  283,  446,  340,  896,  897,  271,  271,
      262,  262,  497,  898,  274,  899,  274,  348,  262,  262,
      302,  302,   21,   21,   21,  348, 1002,  340, 1002,  348,
      900,  901,  195,  902,  498,  340,  196,  903,  274,  340,
      274,  904,  905,  274,  906,  274,  459,   21,   21,  193,
       21,  202,  202,  303,  907, 1002,  908, 1002,  909,  202,
      202,  202,  202,  202,  202,  273,  283,  274,  283,  274,

      513,  910,  911,  912,  514,  913,  262,  914,  915,  916,
      917,  918,  574,  919,  262,  920,  921,  922,  923,  202,
      202,  202,  202,  202,  202,  263,  263,  924,  925,  926,
      927,  928,  929,  263,  263,  263,  263,  263,  263,  283,
      930,  283,  931,  932,  933,  934,  579,  935,  936,  262,
      937,  938,  939,  940,  941,  942,  943,  262,  944,  945,
      946,  947,  948,  263,  263,  263,  263,  263,  263,  270,
      270,  949,  950,  951,  952,  953,  954,  271,  272,  271,
      272,  271,  271,  955,  273,  956,  957,  274,  958,  274,
      959,  273,  960,  961,  962,  963,  964,  965,  966,  967,

      273,  968,  969,  970,  971,  972,  973,  271,  272,  271,
      272,  271,  271,  974,  273,  975,  274,  976,  274,  977,
      273,  978,  979,  980,  981,  982,  275,  277,  277,  983,
      984,  985,  986,  987,  988,  277,  278,  277,  279,  277,
      277,  989,  280,  990,  991,  992,  281,  993,  994,  280,
      995,  996,  997,  998,  282,  999, 1000, 1001,  280,  439,
      865,  864,  861,  860,  859,  277,  283,  277,  283,  277,
      277,  858,  280,  857,  856,  855,  854,  853,  280,  852,
      851,  850,  849,  848,  280,  301,  301,  847,  846,  845,
      844,  843,  842,  301,  301,  301,  301,  301,  301,  841,

      840,  839,  838,  837,  836,  835,  834,  833,  832,  831,
      830,  829,  828,  827,  826,  825,  824,  823,  822,  821,
      820,  819,  818,  301,  301,  301,  301,  301,  301,  337,
      337,  817,  816,  815,  814,  813,  812,  337,  337,  337,
      337,  337,  337,  811,  810,  809,  808,  807,  806,  805,
      804,  803,  802,  801,  800,  799,  798,  797,  796,  795,
      794,  793,  792,  791,  790,  789,  788,  337,  337,  337,
      337,  337,  337,  341,  341,  787,  786,  785,  784,  783,
      782,  341,  341,  341,  341,  341,  341,  781,  780,  779,
      778,  777,  776,  775,  774,  773,  772,  771,  770,  769,

      768,  767,  766,  765,  764,  763,  762,  761,  760,  759,
      758,  341,  341,  341,  341,  341,  341,  346,  346,  757,
      756,  755,  754,  753,  752,  346,  347,  346,  348,  346,
      346,  751,  349,  750,  749,  748,  350,  747,  746,  349,
      745,  744,  743,  742,  741,  738,  737,  736,  349,  735,
      734,  733,  732,  731,  730,  346,  348,  346,  348,  346,
      346,  727,  349,  726,  725,  724,  723,  722,  349,  721,
      720,  719,  718,  717,  349,  202,  202,  716,  715,  714,
      713,  712,  711,  202,  202,  202,  202,  202,  202,  710,
      709,  708,  707,  211,  706,  211,  705,  704,  703,  702,

      701,  700,  699,  698,  697,  696,  695,  694,  693,  692,
      691,  690,  689,  202,  202,  202,  202,  202,  202,  688,
      687,  686,  211,  685,  211,  263,  263,  684,  683,  682,
      681,  680,  679,  263,  263,  263,  263,  263,  263,  678,
      677,  676,  675,  437,  674,  437,  673,  672,  671,  670,
      669,  668,  667,  666,  665,  664,  663,  662,  661,  660,
      659,  658,  657,  263,  263,  263,  263,  263,  263,  656,
      655,  654,  437,  653,  437,  337,  337,  652,  651,  650,
      649,  648,  647,  337,  337,  337,  337,  337,  337,  646,
      645,  644,  643,  493,  642,  493,  641,  640,  639,  638,

      637,  634,  633,  632,  631,  630,  629,  628,  627,  626,
      625,  624,  623,  337,  337,  337,  337,  337,  337,  622,
      621,  618,  493,  617,  493,  341,  341,  616,  615,  614,
      613,  612,  611,  341,  341,  341,  341,  341,  341,  610,
      609,  608,  607,  494,  606,  494,  605,  604,  603,  602,
      601,  600,  599,  598,  597,  596,  595,  579,  594,  593,
      592,  574,  591,  341,  341,  341,  341,  341,  341,  590,
      589,  588,  494,  587,  494,  728,  728,  586,  728,  728,
      728,  585,  728,  728,  728,  728,  728,  584,  728,  583,
      582,  581,  580,  578,  577,  728,  728,  728,  728,  728,

      576,  575,  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,  542,  541,  540,  539,  538,  537,  536,
      535,  534,  533,  532,  531,  530,  529,  528,  527,  381,
      526,  728,  728,  728,  739,  739,  525,  739,  739,  739,
      524,  739,  739,  739,  739,  739,  523,  739,  522,  521,
      520,  519,  518,  517,  739,  739,  739,  739,  739,  516,
      515,  512,  510,  509,  508,  507,  506,  505,  504,  503,
      502,  501,  500,  499,  496,  339,  492,  491,  459,  490,

      489,  488,  487,  486,  485,  482,  481,  480,  479,  478,
      476,  473,  470,  469,  468,  467,  466,  465,  464,  462,
      461,  440,  460,  458,  457,  456,  453,  452,  451,  450,
      739,  739,  739,  728,  728,  449,  728,  728,  728,  448,
      728,  728,  728,  728,  728,  447,  728,  445,  444,  443,
      442,  273,  436,  728,  728,  728,  728,  728,  435,  434,
      433,  432,  431,  430,  429,  428,  427,  426,  423,  422,
      421,  420,  419,  418,  414,  413,  412,  409,  405,  404,
      403,  402,  401,  400,  399,  398,  397,  394,  393,  392,
      391,  390,  389,  388,  387,  200,  197,  386,  385,  381,

      380,  377,  376,  375,  364,  361,  360,  359,  276,  728,
      728,  728,  739,  739,  273,  739,  739,  739,  344,  739,
      739,  739,  739,  739,  266,  739,  265,  343,  339,  335,
      334,  333,  739,  739,  739,  739,  739,  332,  331,  325,
      315,  314,  310,  300,  298,  297,  296,  291,  290,  289,
      276,  273,  265,  264,  200,  198,  197,  259,  258,  257,
      256,  255,  254,  247,  235,  234,  233,  229,  215,  207,
      206,  205,  200,  198,  197, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,  739,  739,
      739,   20,   20,   20,   20,   20,   20,   20,   20,   20,

      143,  143,  143,  143,  143,  143,  143,  143,  143,   21,
       21,   21,   21,   21,   21,   21,   21,   21,  190,  190,
      190,  190,  190,  190,  190,  190,  190,  194,  194,  194,
      194,  194,  194,  194,  194,  194,  199,  199,  199,  199,
      199,  199,  199,  199,  199,  201,  201,  201,  201,  201,
      201,  201,  262, 1002,  262,  262,  262,  262,  262,  336,
     1002, 1002, 1002,  336,  336,  336,  338,  338,  338,  338,
      338,  338,  338,  338,  338,  340, 1002,  340, 1002,  340,
      340,  340,  342, 1002,  342,  342,  342,  342,  342,  342,
      342,  345, 1002,  345,  345,  345,  345,  345,  345,  345,

      382, 1002,  382,  382,  382,  382,  382,  382,  382,  383,
      383,  383,  384, 1002, 1002, 1002,  384,  384,  438, 1002,
      438,  438,  438,  438,  438,  729, 1002,  729,  729,  729,
      729,  729,  729,  729,  740, 1002,  740,  740,  740,  740,
      740,  740,  740,  728, 1002,  728,  728,  728,  728,  728,
      728,  728,  739, 1002,  739,  739,  739,  739,  739,  739,
      739,   19, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,

     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002
    } ;

static yyconst short int yy_chk[1943] =
    {   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,    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,    5,
        7,   28,   55,   13,   13,   36,   55,   13,   41,   41,
      104,    7,    7,   14,   14,   28,   36,   14,  104,    7,
        7,    7,    7,    7,    7,  825,    7,    7,   43,   43,
        7,    7,    7,    7,    7,    7,   54,    7,    7,   46,

        7,   47,   46,   48,   47,   87,   54,   79,   56,    7,
        7,    7,    7,    7,    7,   46,   87,   48,   56,    7,
       70,   79,    7,    9,    9,    9,    9,    9,    9,    9,
        9,    9,    9,    9,    9,    9,    9,    9,   13,   85,
        9,    9,    9,    9,    9,    9,    9,    9,   14,   38,
       38,  170,   45,   50,   45,   58,   50,   57,  828,   50,
       57,   57,   45,   92,   92,   58,  170,   38,   60,   38,
       45,   60,   60,  123,    9,   70,    9,   94,   94,   97,
       60,   97,   85,   60,  105,  166,   97,  123,   60,   97,
      114,  166,  122,  829,  105,  122,   38,   97,   38,    9,

        9,    9,   10,   10,   10,   10,   10,   10,   10,   10,
       10,   10,   10,   10,   10,   10,   10,   37,   37,   10,
       10,   10,   10,   10,   10,   10,   10,  179,   98,  100,
       98,  100,  179,  830,  120,   37,  120,   37,   98,  100,
       99,   98,   99,   99,  120,  114,   98,  100,  832,  833,
       99,  121,  120,   10,  121,   10,  125,   99,   99,  125,
      128,  129,  125,  130,   37,  129,   37,  121,  131,  129,
      128,  131,  131,  130,   37,  225,  836,  225,   10,   10,
       10,   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,
       11,   15,   15,   15,   15,   15,   15,  837,   15,   15,
       15,   15,   15,   15,   15,   15,  183,   15,   15,   15,
       15,   15,   15,   15,   15,   15,  111,  132,  111,  183,
      134,  838,  839,  134,  134,  318,  111,  132,  161,  161,

      162,  162,  134,  318,  111,  134,  840,  162,  163,  161,
      134,  162,   15,   15,   15,  165,  111,  174,  163,  235,
      237,  241,  235,  841,  241,  165,  295,  174,  165,  248,
      241,  248,  235,  237,  307,  295,  307,   15,   15,   15,
       15,   16,   16,   16,   16,   16,   16,  174,   16,   16,
       16,   16,   16,   16,   16,   16,  174,   16,   16,   16,
       16,   16,   16,   16,   16,   16,  119,  119,  164,  175,
      212,  176,  212,  277,  326,  277,  326,  846,  164,  175,
      164,  176,  496,  277,  119,  178,  119,  279,  496,  279,
      164,  277,   16,   16,   16,  178,  317,  279,  175,  212,

      176,  212,  346,  315,  177,  279,  315,  176,  847,  317,
      850,  851,  346,  119,  177,  119,  315,   16,   16,   16,
       16,   17,   17,   17,   17,   17,   17,  178,   17,   17,
       17,   17,  852,   17,   17,   17,  853,   17,   17,   17,
       17,   17,   17,   17,   17,  177,  210,  210,  301,  512,
      301,  278,  177,  278,  439,  512,  439,  283,  820,  283,
      854,  278,  320,  820,  210,  320,  210,  283,  278,  278,
      347,  320,   17,   17,   17,  283,  844,  301,  348,  301,
      347,  844,   17,  439,  365,  439,   17,  347,  348,  855,
      857,  858,  859,  210,  365,  210,  861,   17,   17,   17,

       17,   18,   18,   18,   18,   18,   18,  862,   18,   18,
       18,   18,  863,   18,   18,   18,  864,   18,   18,   18,
       18,   18,   18,   18,   18,  351,  118,  118,  866,  365,
      287,  299,  287,  299,  287,  351,  868,  871,  271,  271,
      287,  299,  351,  872,  118,  874,  118,  352,  287,  299,
      302,  302,   18,   18,   18,  367,  271,  352,  271,  368,
      875,  876,   18,  877,  352,  367,   18,  878,  302,  368,
      302,  879,  880,  118,  888,  118,  299,   18,   18,   18,
       18,   26,   26,  118,  889,  271,  890,  271,  891,   26,
       26,   26,   26,   26,   26,  271,  441,  302,  441,  302,

      367,  892,  893,  894,  368,  895,  441,  896,  897,  898,
      899,  900,  441,  901,  441,  902,  903,  904,  905,   26,
       26,   26,   26,   26,   26,   77,   77,  906,  907,  908,
      909,  910,  911,   77,   77,   77,   77,   77,   77,  446,
      913,  446,  914,  915,  916,  917,  446,  918,  919,  446,
      920,  921,  922,  924,  925,  926,  929,  446,  930,  931,
      933,  934,  935,   77,   77,   77,   77,   77,   77,   88,
       88,  936,  937,  939,  941,  942,  943,   88,   88,   88,
       88,   88,   88,  944,   88,  945,  946,   88,  947,   88,
      949,   88,  950,  951,  952,  953,  955,  956,  957,  958,

       88,  959,  960,  962,  963,  968,  969,   88,   88,   88,
       88,   88,   88,  970,   88,  971,   88,  972,   88,  973,
       88,  974,  975,  976,  977,  978,   88,   96,   96,  979,
      980,  981,  982,  983,  984,   96,   96,   96,   96,   96,
       96,  985,   96,  986,  987,  988,   96,  989,  990,   96,
      991,  992,  993,  995,   96,  997,  998,  999,   96, 1020,
      824,  823,  818,  817,  815,   96,   96,   96,   96,   96,
       96,  813,   96,  812,  811,  809,  805,  804,   96,  803,
      799,  798,  797,  794,   96,  117,  117,  793,  792,  791,
      790,  788,  785,  117,  117,  117,  117,  117,  117,  784,

      783,  782,  781,  780,  779,  778,  777,  775,  774,  773,
      772,  771,  770,  769,  766,  765,  764,  763,  762,  761,
      760,  757,  756,  117,  117,  117,  117,  117,  117,  140,
      140,  754,  752,  751,  750,  749,  748,  140,  140,  140,
      140,  140,  140,  747,  745,  744,  742,  738,  737,  736,
      734,  733,  731,  727,  726,  725,  723,  722,  721,  720,
      719,  716,  715,  713,  712,  711,  710,  140,  140,  140,
      140,  140,  140,  147,  147,  709,  708,  706,  705,  702,
      701,  147,  147,  147,  147,  147,  147,  700,  699,  698,
      697,  696,  695,  694,  693,  690,  687,  686,  685,  684,

      683,  682,  681,  679,  677,  676,  675,  673,  672,  671,
      670,  147,  147,  147,  147,  147,  147,  160,  160,  669,
      668,  667,  666,  665,  663,  160,  160,  160,  160,  160,
      160,  661,  160,  657,  656,  655,  160,  652,  651,  160,
      650,  649,  648,  646,  645,  641,  640,  636,  160,  635,
      634,  633,  632,  630,  629,  160,  160,  160,  160,  160,
      160,  625,  160,  624,  620,  619,  618,  617,  160,  616,
      615,  614,  613,  612,  160,  202,  202,  611,  610,  608,
      607,  606,  605,  202,  202,  202,  202,  202,  202,  604,
      603,  601,  600,  202,  599,  202,  598,  597,  595,  594,

      593,  591,  590,  589,  588,  587,  586,  585,  583,  581,
      580,  579,  577,  202,  202,  202,  202,  202,  202,  575,
      573,  572,  202,  571,  202,  263,  263,  570,  569,  568,
      567,  566,  565,  263,  263,  263,  263,  263,  263,  564,
      563,  562,  560,  263,  559,  263,  558,  557,  556,  555,
      554,  553,  551,  549,  548,  547,  545,  544,  543,  542,
      540,  539,  538,  263,  263,  263,  263,  263,  263,  537,
      535,  533,  263,  531,  263,  337,  337,  529,  528,  527,
      526,  525,  524,  337,  337,  337,  337,  337,  337,  523,
      522,  521,  520,  337,  519,  337,  518,  517,  515,  514,

      513,  511,  510,  509,  508,  507,  506,  505,  504,  503,
      502,  501,  499,  337,  337,  337,  337,  337,  337,  498,
      497,  495,  337,  490,  337,  341,  341,  489,  488,  487,
      486,  485,  484,  341,  341,  341,  341,  341,  341,  483,
      482,  481,  480,  341,  479,  341,  478,  477,  476,  474,
      473,  472,  471,  469,  468,  467,  466,  465,  464,  463,
      462,  461,  460,  341,  341,  341,  341,  341,  341,  459,
      458,  457,  341,  456,  341,  626,  626,  455,  626,  626,
      626,  454,  626,  626,  626,  626,  626,  453,  626,  450,
      449,  448,  447,  445,  444,  626,  626,  626,  626,  626,

      443,  442,  440,  436,  433,  432,  431,  430,  429,  428,
      427,  426,  425,  424,  423,  422,  421,  420,  419,  418,
      417,  416,  415,  414,  413,  411,  410,  409,  408,  407,
      406,  404,  403,  402,  401,  400,  399,  398,  397,  396,
      395,  394,  393,  392,  391,  390,  389,  386,  385,  381,
      380,  626,  626,  626,  642,  642,  379,  642,  642,  642,
      378,  642,  642,  642,  642,  642,  377,  642,  376,  375,
      374,  373,  372,  371,  642,  642,  642,  642,  642,  370,
      369,  366,  364,  363,  362,  361,  360,  359,  358,  357,
      356,  355,  354,  353,  350,  338,  335,  334,  333,  332,

      331,  330,  329,  328,  327,  325,  324,  323,  322,  321,
      319,  316,  314,  313,  312,  311,  310,  309,  308,  306,
      305,  304,  300,  298,  297,  296,  294,  293,  292,  291,
      642,  642,  642,  729,  729,  290,  729,  729,  729,  289,
      729,  729,  729,  729,  729,  288,  729,  286,  285,  284,
      281,  270,  259,  729,  729,  729,  729,  729,  258,  257,
      256,  255,  254,  253,  252,  251,  250,  249,  247,  246,
      245,  244,  243,  242,  240,  239,  238,  236,  234,  233,
      232,  231,  230,  229,  228,  227,  226,  224,  223,  222,
      220,  219,  218,  217,  213,  199,  197,  196,  195,  186,

      184,  182,  181,  180,  171,  169,  168,  167,  158,  729,
      729,  729,  740,  740,  155,  740,  740,  740,  153,  740,
      740,  740,  740,  740,  151,  740,  149,  148,  146,  139,
      138,  137,  740,  740,  740,  740,  740,  136,  135,  133,
      127,  126,  124,  112,  108,  107,  106,  103,  102,  101,
       93,   89,   83,   82,   76,   75,   74,   68,   67,   66,
       65,   62,   61,   59,   53,   52,   51,   49,   42,   34,
       32,   31,   25,   24,   22,   19,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  740,  740,
      740, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003,

     1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1005,
     1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1006, 1006,
     1006, 1006, 1006, 1006, 1006, 1006, 1006, 1007, 1007, 1007,
     1007, 1007, 1007, 1007, 1007, 1007, 1008, 1008, 1008, 1008,
     1008, 1008, 1008, 1008, 1008, 1009, 1009, 1009, 1009, 1009,
     1009, 1009, 1010,    0, 1010, 1010, 1010, 1010, 1010, 1011,
        0,    0,    0, 1011, 1011, 1011, 1012, 1012, 1012, 1012,
     1012, 1012, 1012, 1012, 1012, 1013,    0, 1013,    0, 1013,
     1013, 1013, 1014,    0, 1014, 1014, 1014, 1014, 1014, 1014,
     1014, 1015,    0, 1015, 1015, 1015, 1015, 1015, 1015, 1015,

     1016,    0, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1017,
     1017, 1017, 1018,    0,    0,    0, 1018, 1018, 1019,    0,
     1019, 1019, 1019, 1019, 1019, 1021,    0, 1021, 1021, 1021,
     1021, 1021, 1021, 1021, 1022,    0, 1022, 1022, 1022, 1022,
     1022, 1022, 1022, 1023,    0, 1023, 1023, 1023, 1023, 1023,
     1023, 1023, 1024,    0, 1024, 1024, 1024, 1024, 1024, 1024,
     1024, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,

     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002,
     1002, 1002
    } ;

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
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "../../src/ld/ldlex.l"
#define INITIAL 0
#line 2 "../../src/ld/ldlex.l"

/* Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 1998
   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;

/* 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
	VERS_START	starting a Sun style mapfile
	VERS_SCRIPT	a Sun style mapfile
	VERS_NODE	a node within a Sun style mapfile
*/
#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

#define VERS_START 6

#define VERS_SCRIPT 7

#define VERS_NODE 8

#line 1246 "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

#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#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 127 "../../src/ld/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_version_script: return INPUT_VERSION_SCRIPT; break;
	case input_defsym: return INPUT_DEFSYM; break;
	default: abort ();
	}
    }

#line 1415 "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 >= 1003 )
					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] != 1862 );

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 144 "../../src/ld/ldlex.l"
{ comment(); }
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 147 "../../src/ld/ldlex.l"
{ RTOKEN('-');}
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 148 "../../src/ld/ldlex.l"
{ RTOKEN('+');}
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 149 "../../src/ld/ldlex.l"
{ yylval.name = buystring(yytext); return NAME; }
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 150 "../../src/ld/ldlex.l"
{ RTOKEN('='); }
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 152 "../../src/ld/ldlex.l"
{
  				yylval.integer = bfd_scan_vma (yytext+1, 0,16);
				return INT;
			}
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 157 "../../src/ld/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 181 "../../src/ld/ldlex.l"
{
				  char *s = yytext;

				  if (*s == '$')
				    ++s;
				  yylval.integer = bfd_scan_vma (s, 0, 0);
				  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 195 "../../src/ld/ldlex.l"
{ RTOKEN(']');}
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 196 "../../src/ld/ldlex.l"
{ RTOKEN('[');}
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 197 "../../src/ld/ldlex.l"
{ RTOKEN(LSHIFTEQ);}
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 198 "../../src/ld/ldlex.l"
{ RTOKEN(RSHIFTEQ);}
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 199 "../../src/ld/ldlex.l"
{ RTOKEN(OROR);}
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 200 "../../src/ld/ldlex.l"
{ RTOKEN(EQ);}
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 201 "../../src/ld/ldlex.l"
{ RTOKEN(NE);}
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 202 "../../src/ld/ldlex.l"
{ RTOKEN(GE);}
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 203 "../../src/ld/ldlex.l"
{ RTOKEN(LE);}
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 204 "../../src/ld/ldlex.l"
{ RTOKEN(LSHIFT);}
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 205 "../../src/ld/ldlex.l"
{ RTOKEN(RSHIFT);}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 206 "../../src/ld/ldlex.l"
{ RTOKEN(PLUSEQ);}
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 207 "../../src/ld/ldlex.l"
{ RTOKEN(MINUSEQ);}
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 208 "../../src/ld/ldlex.l"
{ RTOKEN(MULTEQ);}
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 209 "../../src/ld/ldlex.l"
{ RTOKEN(DIVEQ);}
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 210 "../../src/ld/ldlex.l"
{ RTOKEN(ANDEQ);}
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 211 "../../src/ld/ldlex.l"
{ RTOKEN(OREQ);}
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 212 "../../src/ld/ldlex.l"
{ RTOKEN(ANDAND);}
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 213 "../../src/ld/ldlex.l"
{ RTOKEN('>');}
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 214 "../../src/ld/ldlex.l"
{ RTOKEN(',');}
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 215 "../../src/ld/ldlex.l"
{ RTOKEN('&');}
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 216 "../../src/ld/ldlex.l"
{ RTOKEN('|');}
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 217 "../../src/ld/ldlex.l"
{ RTOKEN('~');}
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 218 "../../src/ld/ldlex.l"
{ RTOKEN('!');}
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 219 "../../src/ld/ldlex.l"
{ RTOKEN('?');}
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 220 "../../src/ld/ldlex.l"
{ RTOKEN('*');}
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 221 "../../src/ld/ldlex.l"
{ RTOKEN('+');}
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 222 "../../src/ld/ldlex.l"
{ RTOKEN('-');}
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 223 "../../src/ld/ldlex.l"
{ RTOKEN('/');}
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 224 "../../src/ld/ldlex.l"
{ RTOKEN('%');}
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 225 "../../src/ld/ldlex.l"
{ RTOKEN('<');}
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 226 "../../src/ld/ldlex.l"
{ RTOKEN('=');}
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 227 "../../src/ld/ldlex.l"
{ RTOKEN('}') ; }
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 228 "../../src/ld/ldlex.l"
{ RTOKEN('{'); }
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 229 "../../src/ld/ldlex.l"
{ RTOKEN(')');}
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 230 "../../src/ld/ldlex.l"
{ RTOKEN('(');}
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 231 "../../src/ld/ldlex.l"
{ RTOKEN(':'); }
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 232 "../../src/ld/ldlex.l"
{ RTOKEN(';');}
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 233 "../../src/ld/ldlex.l"
{ RTOKEN(MEMORY);}
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 234 "../../src/ld/ldlex.l"
{ RTOKEN(ORIGIN);}
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 235 "../../src/ld/ldlex.l"
{ RTOKEN(VERSIONK);}
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 236 "../../src/ld/ldlex.l"
{ RTOKEN(BLOCK);}
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 237 "../../src/ld/ldlex.l"
{ RTOKEN(BIND);}
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 238 "../../src/ld/ldlex.l"
{ RTOKEN(LENGTH);}
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 239 "../../src/ld/ldlex.l"
{ RTOKEN(ALIGN_K);}
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 240 "../../src/ld/ldlex.l"
{ RTOKEN(ADDR);}
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 241 "../../src/ld/ldlex.l"
{ RTOKEN(LOADADDR);}
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 242 "../../src/ld/ldlex.l"
{ RTOKEN(MAX); }
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 243 "../../src/ld/ldlex.l"
{ RTOKEN(MIN); }
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 244 "../../src/ld/ldlex.l"
{ RTOKEN(ENTRY);}
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 245 "../../src/ld/ldlex.l"
{ RTOKEN(NEXT);}
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 246 "../../src/ld/ldlex.l"
{ RTOKEN(SIZEOF_HEADERS);}
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 247 "../../src/ld/ldlex.l"
{ RTOKEN(SIZEOF_HEADERS);}
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 248 "../../src/ld/ldlex.l"
{ RTOKEN(MAP);}
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 249 "../../src/ld/ldlex.l"
{ RTOKEN(SIZEOF);}
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 250 "../../src/ld/ldlex.l"
{ RTOKEN(TARGET_K);}
	YY_BREAK
case 65:
YY_RULE_SETUP
#line 251 "../../src/ld/ldlex.l"
{ RTOKEN(SEARCH_DIR);}
	YY_BREAK
case 66:
YY_RULE_SETUP
#line 252 "../../src/ld/ldlex.l"
{ RTOKEN(OUTPUT);}
	YY_BREAK
case 67:
YY_RULE_SETUP
#line 253 "../../src/ld/ldlex.l"
{ RTOKEN(INPUT);}
	YY_BREAK
case 68:
YY_RULE_SETUP
#line 254 "../../src/ld/ldlex.l"
{ RTOKEN(GROUP);}
	YY_BREAK
case 69:
YY_RULE_SETUP
#line 255 "../../src/ld/ldlex.l"
{ RTOKEN(DEFINED);}
	YY_BREAK
case 70:
YY_RULE_SETUP
#line 256 "../../src/ld/ldlex.l"
{ RTOKEN(CREATE_OBJECT_SYMBOLS);}
	YY_BREAK
case 71:
YY_RULE_SETUP
#line 257 "../../src/ld/ldlex.l"
{ RTOKEN( CONSTRUCTORS);}
	YY_BREAK
case 72:
YY_RULE_SETUP
#line 258 "../../src/ld/ldlex.l"
{ RTOKEN(FORCE_COMMON_ALLOCATION);}
	YY_BREAK
case 73:
YY_RULE_SETUP
#line 259 "../../src/ld/ldlex.l"
{ RTOKEN(SECTIONS);}
	YY_BREAK
case 74:
YY_RULE_SETUP
#line 260 "../../src/ld/ldlex.l"
{ RTOKEN(FILL);}
	YY_BREAK
case 75:
YY_RULE_SETUP
#line 261 "../../src/ld/ldlex.l"
{ RTOKEN(STARTUP);}
	YY_BREAK
case 76:
YY_RULE_SETUP
#line 262 "../../src/ld/ldlex.l"
{ RTOKEN(OUTPUT_FORMAT);}
	YY_BREAK
case 77:
YY_RULE_SETUP
#line 263 "../../src/ld/ldlex.l"
{ RTOKEN( OUTPUT_ARCH);}
	YY_BREAK
case 78:
YY_RULE_SETUP
#line 264 "../../src/ld/ldlex.l"
{ RTOKEN(HLL);}
	YY_BREAK
case 79:
YY_RULE_SETUP
#line 265 "../../src/ld/ldlex.l"
{ RTOKEN(SYSLIB);}
	YY_BREAK
case 80:
YY_RULE_SETUP
#line 266 "../../src/ld/ldlex.l"
{ RTOKEN(FLOAT);}
	YY_BREAK
case 81:
YY_RULE_SETUP
#line 267 "../../src/ld/ldlex.l"
{ RTOKEN( QUAD);}
	YY_BREAK
case 82:
YY_RULE_SETUP
#line 268 "../../src/ld/ldlex.l"
{ RTOKEN( SQUAD);}
	YY_BREAK
case 83:
YY_RULE_SETUP
#line 269 "../../src/ld/ldlex.l"
{ RTOKEN( LONG);}
	YY_BREAK
case 84:
YY_RULE_SETUP
#line 270 "../../src/ld/ldlex.l"
{ RTOKEN( SHORT);}
	YY_BREAK
case 85:
YY_RULE_SETUP
#line 271 "../../src/ld/ldlex.l"
{ RTOKEN( BYTE);}
	YY_BREAK
case 86:
YY_RULE_SETUP
#line 272 "../../src/ld/ldlex.l"
{ RTOKEN(NOFLOAT);}
	YY_BREAK
case 87:
YY_RULE_SETUP
#line 273 "../../src/ld/ldlex.l"
{ RTOKEN(NOCROSSREFS);}
	YY_BREAK
case 88:
YY_RULE_SETUP
#line 274 "../../src/ld/ldlex.l"
{ RTOKEN(OVERLAY); }
	YY_BREAK
case 89:
YY_RULE_SETUP
#line 275 "../../src/ld/ldlex.l"
{ RTOKEN(NOLOAD);}
	YY_BREAK
case 90:
YY_RULE_SETUP
#line 276 "../../src/ld/ldlex.l"
{ RTOKEN(DSECT);}
	YY_BREAK
case 91:
YY_RULE_SETUP
#line 277 "../../src/ld/ldlex.l"
{ RTOKEN(COPY);}
	YY_BREAK
case 92:
YY_RULE_SETUP
#line 278 "../../src/ld/ldlex.l"
{ RTOKEN(INFO);}
	YY_BREAK
case 93:
YY_RULE_SETUP
#line 279 "../../src/ld/ldlex.l"
{ RTOKEN(OVERLAY);}
	YY_BREAK
case 94:
YY_RULE_SETUP
#line 280 "../../src/ld/ldlex.l"
{ RTOKEN(ORIGIN);}
	YY_BREAK
case 95:
YY_RULE_SETUP
#line 281 "../../src/ld/ldlex.l"
{ RTOKEN(ORIGIN);}
	YY_BREAK
case 96:
YY_RULE_SETUP
#line 282 "../../src/ld/ldlex.l"
{ RTOKEN( LENGTH);}
	YY_BREAK
case 97:
YY_RULE_SETUP
#line 283 "../../src/ld/ldlex.l"
{ RTOKEN( LENGTH);}
	YY_BREAK
case 98:
YY_RULE_SETUP
#line 284 "../../src/ld/ldlex.l"
{ RTOKEN(INCLUDE);}
	YY_BREAK
case 99:
YY_RULE_SETUP
#line 285 "../../src/ld/ldlex.l"
{ RTOKEN (PHDRS); }
	YY_BREAK
case 100:
YY_RULE_SETUP
#line 286 "../../src/ld/ldlex.l"
{ RTOKEN(AT);}
	YY_BREAK
case 101:
YY_RULE_SETUP
#line 287 "../../src/ld/ldlex.l"
{ RTOKEN(PROVIDE); }
	YY_BREAK
case 102:
YY_RULE_SETUP
#line 288 "../../src/ld/ldlex.l"
{ ++ lineno; }
	YY_BREAK
case 103:
YY_RULE_SETUP
#line 289 "../../src/ld/ldlex.l"
{ ++ lineno;  RTOKEN(NEWLINE); }
	YY_BREAK
case 104:
YY_RULE_SETUP
#line 290 "../../src/ld/ldlex.l"
{ /* Mri comment line */ }
	YY_BREAK
case 105:
YY_RULE_SETUP
#line 291 "../../src/ld/ldlex.l"
{ /* Mri comment line */ }
	YY_BREAK
case 106:
YY_RULE_SETUP
#line 292 "../../src/ld/ldlex.l"
{ RTOKEN(ENDWORD); }
	YY_BREAK
case 107:
YY_RULE_SETUP
#line 293 "../../src/ld/ldlex.l"
{ RTOKEN(ALIGNMOD);}
	YY_BREAK
case 108:
YY_RULE_SETUP
#line 294 "../../src/ld/ldlex.l"
{ RTOKEN(ALIGN_K);}
	YY_BREAK
case 109:
YY_RULE_SETUP
#line 295 "../../src/ld/ldlex.l"
{ RTOKEN(CHIP); }
	YY_BREAK
case 110:
YY_RULE_SETUP
#line 296 "../../src/ld/ldlex.l"
{ RTOKEN(BASE); }
	YY_BREAK
case 111:
YY_RULE_SETUP
#line 297 "../../src/ld/ldlex.l"
{ RTOKEN(ALIAS); }
	YY_BREAK
case 112:
YY_RULE_SETUP
#line 298 "../../src/ld/ldlex.l"
{ RTOKEN(TRUNCATE); }
	YY_BREAK
case 113:
YY_RULE_SETUP
#line 299 "../../src/ld/ldlex.l"
{ RTOKEN(LOAD); }
	YY_BREAK
case 114:
YY_RULE_SETUP
#line 300 "../../src/ld/ldlex.l"
{ RTOKEN(PUBLIC); }
	YY_BREAK
case 115:
YY_RULE_SETUP
#line 301 "../../src/ld/ldlex.l"
{ RTOKEN(ORDER); }
	YY_BREAK
case 116:
YY_RULE_SETUP
#line 302 "../../src/ld/ldlex.l"
{ RTOKEN(NAMEWORD); }
	YY_BREAK
case 117:
YY_RULE_SETUP
#line 303 "../../src/ld/ldlex.l"
{ RTOKEN(FORMAT); }
	YY_BREAK
case 118:
YY_RULE_SETUP
#line 304 "../../src/ld/ldlex.l"
{ RTOKEN(CASE); }
	YY_BREAK
case 119:
YY_RULE_SETUP
#line 305 "../../src/ld/ldlex.l"
{ RTOKEN(EXTERN); }
	YY_BREAK
case 120:
YY_RULE_SETUP
#line 306 "../../src/ld/ldlex.l"
{ RTOKEN(START); }
	YY_BREAK
case 121:
YY_RULE_SETUP
#line 307 "../../src/ld/ldlex.l"
{ RTOKEN(LIST); /* LIST and ignore to end of line */ }
	YY_BREAK
case 122:
YY_RULE_SETUP
#line 308 "../../src/ld/ldlex.l"
{ RTOKEN(SECT); }
	YY_BREAK
case 123:
YY_RULE_SETUP
#line 309 "../../src/ld/ldlex.l"
{ RTOKEN(ABSOLUTE); }
	YY_BREAK
case 124:
YY_RULE_SETUP
#line 310 "../../src/ld/ldlex.l"
{ RTOKEN(ENDWORD); }
	YY_BREAK
case 125:
YY_RULE_SETUP
#line 311 "../../src/ld/ldlex.l"
{ RTOKEN(ALIGNMOD);}
	YY_BREAK
case 126:
YY_RULE_SETUP
#line 312 "../../src/ld/ldlex.l"
{ RTOKEN(ALIGN_K);}
	YY_BREAK
case 127:
YY_RULE_SETUP
#line 313 "../../src/ld/ldlex.l"
{ RTOKEN(CHIP); }
	YY_BREAK
case 128:
YY_RULE_SETUP
#line 314 "../../src/ld/ldlex.l"
{ RTOKEN(BASE); }
	YY_BREAK
case 129:
YY_RULE_SETUP
#line 315 "../../src/ld/ldlex.l"
{ RTOKEN(ALIAS); }
	YY_BREAK
case 130:
YY_RULE_SETUP
#line 316 "../../src/ld/ldlex.l"
{ RTOKEN(TRUNCATE); }
	YY_BREAK
case 131:
YY_RULE_SETUP
#line 317 "../../src/ld/ldlex.l"
{ RTOKEN(LOAD); }
	YY_BREAK
case 132:
YY_RULE_SETUP
#line 318 "../../src/ld/ldlex.l"
{ RTOKEN(PUBLIC); }
	YY_BREAK
case 133:
YY_RULE_SETUP
#line 319 "../../src/ld/ldlex.l"
{ RTOKEN(ORDER); }
	YY_BREAK
case 134:
YY_RULE_SETUP
#line 320 "../../src/ld/ldlex.l"
{ RTOKEN(NAMEWORD); }
	YY_BREAK
case 135:
YY_RULE_SETUP
#line 321 "../../src/ld/ldlex.l"
{ RTOKEN(FORMAT); }
	YY_BREAK
case 136:
YY_RULE_SETUP
#line 322 "../../src/ld/ldlex.l"
{ RTOKEN(CASE); }
	YY_BREAK
case 137:
YY_RULE_SETUP
#line 323 "../../src/ld/ldlex.l"
{ RTOKEN(EXTERN); }
	YY_BREAK
case 138:
YY_RULE_SETUP
#line 324 "../../src/ld/ldlex.l"
{ RTOKEN(START); }
	YY_BREAK
case 139:
YY_RULE_SETUP
#line 325 "../../src/ld/ldlex.l"
{ RTOKEN(LIST); /* LIST and ignore to end of line */ }
	YY_BREAK
case 140:
YY_RULE_SETUP
#line 326 "../../src/ld/ldlex.l"
{ RTOKEN(SECT); }
	YY_BREAK
case 141:
YY_RULE_SETUP
#line 327 "../../src/ld/ldlex.l"
{ RTOKEN(ABSOLUTE); }
	YY_BREAK
case 142:
YY_RULE_SETUP
#line 329 "../../src/ld/ldlex.l"
{
/* Filename without commas, needed to parse mri stuff */
				 yylval.name = buystring(yytext); 
				  return NAME;
				}
	YY_BREAK
case 143:
YY_RULE_SETUP
#line 336 "../../src/ld/ldlex.l"
{
				 yylval.name = buystring(yytext); 
				  return NAME;
				}
	YY_BREAK
case 144:
YY_RULE_SETUP
#line 340 "../../src/ld/ldlex.l"
{
				  yylval.name = buystring (yytext + 2);
				  return LNAME;
				}
	YY_BREAK
case 145:
YY_RULE_SETUP
#line 344 "../../src/ld/ldlex.l"
{
		/* Annoyingly, this pattern can match comments, and we have
		   longest match issues to consider.  So if the first two
		   characters are a comment opening, put the input back and
		   try again.  */
		if (yytext[0] == '/' && yytext[1] == '*')
		  {
		    yyless(2);
		    comment ();
		  }
		else
		  {
		    yylval.name = buystring(yytext);
		    return NAME;
		  }
	}
	YY_BREAK
case 146:
YY_RULE_SETUP
#line 361 "../../src/ld/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 147:
YY_RULE_SETUP
#line 368 "../../src/ld/ldlex.l"
{ lineno++;}
	YY_BREAK
case 148:
YY_RULE_SETUP
#line 369 "../../src/ld/ldlex.l"
{ }
	YY_BREAK
case 149:
YY_RULE_SETUP
#line 371 "../../src/ld/ldlex.l"
{ return *yytext; }
	YY_BREAK
case 150:
YY_RULE_SETUP
#line 373 "../../src/ld/ldlex.l"
{ RTOKEN(GLOBAL); }
	YY_BREAK
case 151:
YY_RULE_SETUP
#line 375 "../../src/ld/ldlex.l"
{ RTOKEN(LOCAL); }
	YY_BREAK
case 152:
YY_RULE_SETUP
#line 377 "../../src/ld/ldlex.l"
{ yylval.name = buystring (yytext);
				  return VERS_IDENTIFIER; }
	YY_BREAK
case 153:
YY_RULE_SETUP
#line 380 "../../src/ld/ldlex.l"
{ yylval.name = buystring (yytext);
				  return VERS_TAG; }
	YY_BREAK
case 154:
YY_RULE_SETUP
#line 383 "../../src/ld/ldlex.l"
{ BEGIN(VERS_SCRIPT); return *yytext; }
	YY_BREAK
case 155:
YY_RULE_SETUP
#line 385 "../../src/ld/ldlex.l"
{ BEGIN(VERS_NODE); return *yytext; }
	YY_BREAK
case 156:
YY_RULE_SETUP
#line 386 "../../src/ld/ldlex.l"
{ BEGIN(VERS_SCRIPT); return *yytext; }
	YY_BREAK
case 157:
YY_RULE_SETUP
#line 388 "../../src/ld/ldlex.l"
{ lineno++; }
	YY_BREAK
case 158:
YY_RULE_SETUP
#line 390 "../../src/ld/ldlex.l"
{ /* Eat up comments */ }
	YY_BREAK
case 159:
YY_RULE_SETUP
#line 392 "../../src/ld/ldlex.l"
{ /* Eat up whitespace */ }
	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):
case YY_STATE_EOF(VERS_START):
case YY_STATE_EOF(VERS_SCRIPT):
case YY_STATE_EOF(VERS_NODE):
#line 394 "../../src/ld/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 160:
YY_RULE_SETUP
#line 413 "../../src/ld/ldlex.l"
lex_warn_invalid(" in script", yytext);
	YY_BREAK
case 161:
YY_RULE_SETUP
#line 414 "../../src/ld/ldlex.l"
lex_warn_invalid(" in expression", yytext);
	YY_BREAK
case 162:
YY_RULE_SETUP
#line 416 "../../src/ld/ldlex.l"
ECHO;
	YY_BREAK
#line 2409 "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;
		YY_RESTORE_YY_MORE_OFFSET

		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 single character, 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_current_buffer->yy_n_chars = 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 );

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	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 >= 1003 )
				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 >= 1003 )
			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 == 1002);

	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_current_buffer->yy_n_chars =
			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 */
			int offset = yy_c_buf_p - yytext_ptr;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_LAST_MATCH:
					/* This happens because yy_g_n_b()
					 * sees that we've accumulated a
					 * token and flags that we need to
					 * try matching the token before
					 * proceeding.  But for input(),
					 * there's no matching to consider.
					 * So convert the EOB_ACT_LAST_MATCH
					 * to EOB_ACT_END_OF_FILE.
					 */

					/* Reset buffer status. */
					yyrestart( yyin );

					/* fall through */

				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						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 + offset;
					break;
				}
			}
		}

	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

	{
	if ( ! b )
		return;

	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 *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
	{
	int len;
	for ( len = 0; yy_str[len]; ++len )
		;

	return yy_scan_bytes( yy_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_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_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
	{
	register int n;
	for ( n = 0; s[n]; ++n )
		;

	return n;
	}
#endif


#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
	{
	return (void *) malloc( size );
	}

#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
	{
	/* The cast to (char *) in the following accommodates both
	 * implementations that use char* generic pointers, and those
	 * that use void* generic pointers.  It works with the latter
	 * because both ANSI C and C++ allow castless assignment from
	 * any pointer type to void*, and deal with argument conversions
	 * as though doing an assignment.
	 */
	return (void *) realloc( (char *) ptr, size );
	}

#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
	{
	free( ptr );
	}

#if YY_MAIN
int main()
	{
	yylex();
	return 0;
	}
#endif
#line 416 "../../src/ld/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) malloc (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 *) malloc ((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_version_script ()
{
  *(state_stack_p)++ = yy_start;
  BEGIN (VERS_START);
}

void
ldlex_version_file ()
{
  *(state_stack_p)++ = yy_start;
  BEGIN (VERS_SCRIPT);
}

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\n");
	}
    }
}

/* Eat the rest of a C-style comment.  */

static void
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 == '\n')
      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);
}
