buildtools/binutils/ld/ldlex.c
Niels Sascha Reedijk a635d7fb9b import binutils 2.41
2023-08-05 16:18:06 +01:00

4096 lines
121 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#line 2 "ldlex.c"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* end standard C headers. */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t)0)
#endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
/* begin standard C++ headers. */
/* TODO: this is always defined, so inline it */
#define yyconst const
#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
#else
#define yynoreturn
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
/* Promotes a possibly negative, possibly signed char to an
* integer in range [0..255] for use as an array index.
*/
#define YY_SC_TO_UI(c) ((YY_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. */
#ifndef YY_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
* Ditto for the __ia64__ case accordingly.
*/
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#endif
/* The state buf must be large enough to hold one state per character in the main buffer.
*/
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
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
#define YY_LESS_LINENO(n)
#define YY_LINENO_REWIND_TO(ptr)
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, (yytext_ptr) )
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
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.
*/
int 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;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* 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
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
/* Stack of input buffers. */
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
/* 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".
*
* Returns the top of the stack, or NULL.
*/
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
/* Same as previous macro, but useful when we know that the buffer stack is not
* NULL or when we need an lvalue. For internal use only.
*/
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
/* 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 = NULL;
static int yy_init = 0; /* 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 ( FILE *input_file );
void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
void yy_delete_buffer ( YY_BUFFER_STATE b );
void yy_flush_buffer ( YY_BUFFER_STATE b );
void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
void yypop_buffer_state ( void );
static void yyensure_buffer_stack ( void );
static void yy_load_buffer_state ( void );
static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
void *yyalloc ( yy_size_t );
void *yyrealloc ( void *, yy_size_t );
void yyfree ( void * );
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* Begin user sect3 */
#define yywrap() (/*CONSTCOND*/1)
#define YY_SKIP_YYWRAP
typedef flex_uint8_t YY_CHAR;
FILE *yyin = NULL, *yyout = NULL;
typedef int yy_state_type;
extern int yylineno;
int yylineno = 1;
extern char *yytext;
#ifdef yytext_ptr
#undef yytext_ptr
#endif
#define yytext_ptr yytext
static yy_state_type yy_get_previous_state ( void );
static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
static int yy_get_next_buffer ( void );
static void yynoreturn yy_fatal_error ( const 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 197
#define YY_END_OF_BUFFER 198
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
{
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
static const flex_int16_t yy_accept[1223] =
{ 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
179, 179, 0, 0, 0, 0, 0, 0, 198, 197,
195, 182, 181, 28, 195, 183, 174, 195, 40, 39,
195, 31, 24, 32, 174, 174, 4, 4, 41, 42,
195, 36, 23, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 120, 118, 38, 195, 37, 27, 182, 197, 174,
40, 39, 24, 197, 174, 197, 174, 196, 182, 28,
196, 183, 177, 34, 25, 40, 39, 30, 31, 24,
32, 177, 33, 4, 4, 41, 42, 35, 36, 23,
29, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 177, 177, 177, 177, 177, 38, 26, 37, 27,
135, 28, 134, 173, 34, 25, 30, 173, 33, 4,
4, 42, 35, 36, 23, 29, 173, 173, 173, 173,
173, 173, 173, 173, 173, 173, 173, 173, 173, 6,
5, 173, 173, 173, 173, 173, 173, 173, 173, 173,
173, 173, 26, 27, 179, 25, 179, 179, 179, 179,
36, 195, 179, 179, 179, 179, 179, 179, 179, 179,
179, 179, 179, 179, 6, 5, 195, 190, 189, 184,
191, 192, 188, 188, 188, 188, 193, 194, 182, 0,
180, 183, 174, 4, 20, 18, 16, 17, 1, 19,
4, 4, 0, 0, 0, 174, 174, 174, 174, 174,
125, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
21, 0, 175, 174, 11, 177, 2, 22, 19, 0,
4, 0, 3, 3, 3, 14, 13, 10, 12, 15,
177, 3, 3, 3, 177, 177, 125, 3, 177, 177,
3, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 177, 9, 134, 134, 173, 2, 136, 18, 137,
173, 3, 3, 3, 173, 173, 173, 3, 173, 3,
3, 173, 173, 173, 173, 173, 173, 173, 173, 173,
3, 173, 173, 173, 3, 173, 3, 3, 173, 173,
173, 173, 173, 173, 173, 173, 179, 18, 16, 17,
19, 179, 125, 179, 179, 179, 179, 179, 179, 179,
179, 179, 179, 179, 179, 179, 179, 179, 189, 188,
0, 188, 188, 188, 4, 4, 7, 8, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 90, 174, 174, 174, 174,
174, 174, 174, 174, 68, 59, 174, 60, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 121, 119,
176, 175, 174, 4, 0, 177, 3, 177, 177, 177,
177, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 177, 59, 60, 177, 177, 177, 177, 177, 177,
177, 177, 177, 177, 177, 177, 177, 4, 173, 173,
173, 173, 173, 138, 173, 173, 173, 173, 173, 173,
173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
155, 173, 173, 173, 173, 173, 173, 173, 173, 173,
173, 179, 179, 179, 179, 179, 179, 179, 179, 179,
179, 179, 179, 179, 179, 179, 179, 179, 179, 188,
188, 188, 174, 55, 174, 174, 174, 174, 49, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 65, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 0,
177, 55, 177, 177, 49, 177, 177, 112, 177, 177,
177, 177, 177, 113, 177, 177, 177, 65, 177, 177,
177, 177, 177, 177, 177, 177, 177, 177, 177, 114,
173, 173, 173, 143, 151, 142, 173, 173, 173, 153,
146, 149, 173, 173, 154, 173, 173, 173, 173, 173,
160, 168, 159, 173, 173, 171, 163, 166, 173, 173,
172, 173, 173, 179, 179, 97, 179, 179, 179, 86,
179, 179, 179, 131, 179, 95, 179, 93, 179, 106,
179, 188, 188, 188, 174, 84, 51, 174, 174, 48,
174, 174, 174, 63, 174, 92, 174, 74, 174, 174,
174, 73, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 124, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 0, 177,
51, 177, 48, 177, 177, 177, 111, 177, 177, 177,
177, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 177, 177, 173, 144, 141, 173, 173, 173, 153,
153, 148, 173, 152, 173, 173, 161, 158, 173, 173,
171, 171, 165, 173, 170, 173, 98, 179, 179, 179,
179, 179, 179, 179, 179, 179, 96, 179, 94, 188,
188, 186, 174, 174, 174, 62, 85, 174, 174, 174,
64, 174, 128, 174, 174, 83, 174, 50, 174, 174,
43, 174, 174, 174, 46, 72, 174, 174, 174, 174,
174, 174, 69, 174, 174, 174, 91, 70, 174, 174,
0, 177, 177, 177, 62, 177, 177, 177, 128, 177,
50, 177, 177, 177, 109, 177, 46, 177, 177, 177,
177, 69, 177, 177, 173, 173, 64, 150, 173, 147,
173, 173, 173, 169, 167, 164, 173, 62, 179, 179,
179, 128, 179, 179, 179, 179, 179, 179, 187, 185,
174, 57, 174, 174, 174, 76, 174, 174, 123, 174,
174, 174, 174, 174, 100, 174, 174, 103, 129, 174,
174, 174, 174, 174, 117, 87, 174, 47, 174, 0,
177, 57, 177, 177, 177, 76, 123, 177, 177, 177,
177, 103, 129, 177, 177, 177, 117, 177, 173, 173,
123, 173, 173, 173, 173, 179, 179, 179, 123, 179,
179, 129, 179, 179, 58, 174, 133, 174, 174, 174,
174, 174, 56, 61, 174, 174, 174, 174, 174, 174,
174, 82, 174, 174, 127, 174, 0, 58, 177, 133,
177, 56, 61, 177, 177, 177, 110, 177, 177, 127,
139, 140, 145, 156, 157, 162, 179, 179, 179, 179,
179, 179, 179, 179, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 75,
178, 177, 177, 177, 177, 177, 177, 177, 179, 179,
179, 179, 179, 179, 179, 179, 179, 108, 174, 174,
174, 174, 174, 45, 174, 115, 116, 174, 174, 174,
174, 71, 174, 174, 177, 177, 177, 115, 116, 177,
177, 177, 179, 179, 179, 179, 179, 179, 179, 179,
179, 174, 174, 174, 174, 174, 101, 89, 174, 174,
174, 174, 174, 177, 177, 101, 177, 177, 177, 179,
179, 179, 179, 179, 179, 179, 179, 179, 174, 174,
174, 174, 174, 174, 174, 174, 44, 174, 174, 177,
177, 177, 177, 177, 177, 78, 179, 132, 179, 179,
179, 179, 179, 104, 174, 174, 174, 174, 174, 174,
88, 174, 67, 174, 177, 177, 177, 177, 67, 177,
179, 179, 179, 179, 179, 179, 174, 174, 174, 174,
174, 174, 174, 102, 130, 66, 177, 177, 177, 177,
102, 130, 66, 179, 179, 99, 130, 179, 179, 174,
174, 174, 174, 174, 174, 174, 177, 177, 177, 177,
179, 179, 179, 179, 126, 174, 54, 174, 174, 174,
174, 126, 177, 54, 177, 179, 179, 179, 179, 174,
174, 174, 174, 174, 177, 177, 179, 179, 105, 179,
52, 174, 174, 174, 174, 52, 177, 179, 179, 179,
174, 174, 174, 174, 177, 179, 122, 179, 174, 174,
174, 174, 177, 179, 179, 174, 174, 174, 174, 177,
77, 107, 53, 174, 80, 174, 53, 79, 174, 174,
81, 0
} ;
static const YY_CHAR 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, 20,
19, 19, 19, 19, 19, 19, 19, 21, 22, 23,
24, 25, 26, 1, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 1, 58, 59, 60, 61,
62, 63, 64, 65, 66, 16, 67, 68, 69, 70,
71, 72, 16, 73, 74, 75, 76, 16, 16, 77,
16, 16, 78, 79, 80, 81, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 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 const YY_CHAR yy_meta[82] =
{ 0,
1, 1, 2, 3, 1, 1, 4, 1, 1, 1,
1, 3, 5, 6, 7, 8, 9, 10, 10, 10,
7, 1, 1, 6, 1, 3, 11, 11, 11, 11,
11, 11, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 7, 4, 7, 3, 8, 11, 11, 11,
11, 11, 11, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 1, 1, 1,
9
} ;
static const flex_int16_t yy_base[1247] =
{ 0,
0, 0, 0, 0, 81, 161, 241, 0, 322, 0,
403, 0, 111, 113, 484, 565, 646, 727, 2134, 2135,
2135, 2131, 2135, 2135, 2127, 0, 791, 2107, 2135, 2135,
2106, 2105, 2135, 2104, 0, 85, 654, 735, 2135, 2135,
2104, 2135, 2101, 93, 89, 2084, 91, 92, 88, 2080,
105, 2083, 114, 119, 110, 109, 114, 2091, 159, 2094,
2089, 2057, 2045, 2135, 2093, 2135, 0, 2114, 2110, 0,
2135, 2135, 2135, 2046, 2101, 0, 2067, 2135, 2109, 2086,
2104, 0, 837, 2135, 168, 2135, 2135, 2084, 2083, 2135,
2082, 0, 183, 883, 143, 2135, 2135, 87, 2081, 172,
2135, 943, 191, 483, 487, 506, 2069, 2063, 167, 176,
168, 183, 2058, 2070, 488, 2049, 2135, 123, 2135, 2135,
2135, 2075, 2095, 1003, 2135, 191, 2073, 0, 2072, 0,
450, 0, 201, 2071, 208, 2135, 1049, 515, 520, 184,
564, 518, 2054, 193, 2066, 2048, 2044, 485, 2046, 2135,
2135, 565, 567, 569, 612, 484, 164, 2031, 2015, 2011,
519, 2013, 517, 0, 0, 2061, 2060, 2059, 2058, 2057,
0, 2055, 504, 2028, 516, 2028, 2042, 2041, 2035, 2043,
485, 2029, 2025, 565, 0, 0, 2059, 2135, 0, 2135,
2135, 2135, 2049, 91, 67, 540, 2135, 2135, 2067, 2063,
2135, 0, 0, 1109, 2135, 2135, 2135, 2135, 2135, 0,
745, 2135, 0, 2043, 2042, 2020, 2034, 2017, 2027, 2016,
0, 2028, 2019, 2017, 2017, 2010, 2023, 2008, 2007, 2011,
2007, 2009, 2019, 2010, 581, 1990, 2006, 589, 559, 2006,
2004, 1993, 599, 2004, 2006, 1994, 2008, 2008, 1996, 2003,
603, 1983, 2003, 2006, 2004, 1986, 1986, 1985, 1958, 1963,
2135, 0, 0, 1969, 2135, 0, 1161, 2135, 2135, 1990,
495, 748, 0, 2135, 0, 2000, 2135, 2135, 2135, 1999,
649, 660, 671, 0, 1987, 1976, 0, 731, 1980, 1978,
558, 796, 799, 1987, 1987, 606, 1976, 648, 1965, 1974,
1963, 624, 1974, 1976, 1979, 1968, 1981, 1974, 1954, 1974,
1976, 1961, 2135, 1999, 2135, 0, 1213, 0, 0, 0,
601, 658, 664, 0, 1966, 743, 745, 1965, 1969, 1952,
1953, 1967, 1950, 1967, 1954, 1962, 1963, 1961, 1962, 1941,
669, 1921, 684, 742, 1920, 1924, 1909, 1910, 1908, 1923,
1911, 1918, 1919, 1917, 1918, 1899, 0, 0, 0, 0,
0, 613, 0, 1928, 1933, 1941, 1942, 1932, 1939, 671,
1937, 1927, 1926, 1924, 1937, 1922, 1918, 1914, 0, 1939,
1938, 640, 663, 616, 0, 791, 2135, 2135, 1917, 1913,
1925, 1922, 1923, 1912, 1922, 1922, 1905, 1922, 1913, 1903,
1915, 1918, 1915, 1896, 1912, 0, 1903, 1905, 1892, 1907,
1905, 1903, 1905, 1914, 0, 0, 1892, 0, 1886, 1887,
1892, 1878, 1895, 1885, 1882, 1881, 1876, 1888, 1878, 1875,
1881, 1888, 1889, 1873, 1889, 1877, 1881, 1868, 0, 0,
0, 0, 1872, 0, 1866, 1869, 833, 1876, 1877, 1877,
1877, 1860, 1853, 1876, 845, 1873, 1871, 1862, 1858, 1865,
1867, 1876, 0, 0, 1849, 1850, 1852, 1841, 1858, 1846,
1841, 1858, 1848, 1855, 1856, 1857, 1852, 0, 1841, 729,
1850, 1849, 1837, 0, 1847, 1838, 1838, 1829, 1844, 1842,
1841, 1833, 1824, 1825, 1828, 1796, 728, 1804, 1803, 1792,
0, 1801, 1793, 1786, 1799, 1797, 1796, 1789, 1781, 1782,
1784, 1818, 1821, 1820, 1805, 1822, 1810, 1809, 1816, 1807,
1797, 1801, 1805, 1808, 1792, 1809, 1794, 1791, 1809, 657,
659, 662, 1797, 0, 1790, 1793, 1788, 1787, 0, 1793,
1783, 1762, 1768, 1746, 1742, 1718, 1730, 1718, 1724, 1688,
1696, 1671, 1655, 1667, 1651, 1667, 1662, 1646, 0, 1648,
1629, 1542, 1563, 1550, 1558, 1550, 1559, 1552, 1563, 1556,
1559, 1548, 1553, 1541, 1548, 1550, 1553, 1548, 1551, 1552,
1542, 0, 1539, 1533, 0, 1539, 1529, 0, 1517, 1533,
1526, 1540, 1523, 0, 1523, 1541, 1538, 0, 1525, 1538,
1507, 1528, 1524, 1526, 1519, 1528, 1517, 1522, 1518, 0,
1517, 1509, 1513, 0, 0, 0, 1508, 1524, 1503, 1282,
0, 0, 1505, 1508, 0, 1496, 1512, 1472, 1465, 1468,
0, 0, 0, 1464, 1477, 1362, 0, 0, 1456, 1459,
0, 1444, 1458, 1465, 1472, 0, 1469, 1468, 1466, 0,
1481, 1464, 1464, 0, 1478, 0, 1473, 0, 1461, 1449,
1475, 131, 721, 772, 1457, 0, 737, 1457, 1471, 0,
1474, 1455, 1468, 0, 1457, 0, 1439, 0, 1455, 1464,
1458, 0, 1446, 1464, 1456, 1459, 1457, 1436, 1441, 1458,
1449, 1443, 1436, 1454, 0, 1450, 1439, 1444, 1436, 1436,
1443, 1447, 1426, 1437, 1443, 1424, 1428, 1432, 1435, 1414,
756, 1414, 0, 1432, 1413, 1426, 0, 1415, 1419, 1411,
1409, 1407, 1392, 1406, 1400, 1394, 1406, 1402, 1391, 1390,
1397, 1401, 1392, 1379, 0, 1386, 1384, 1377, 1392, 0,
1442, 0, 1392, 0, 1393, 1343, 0, 1348, 1346, 1340,
0, 1522, 0, 1354, 0, 1355, 0, 1366, 1367, 1379,
1379, 1368, 1377, 1349, 1361, 1374, 0, 807, 0, 690,
775, 1382, 1356, 1369, 1351, 0, 0, 1359, 1367, 1367,
0, 584, 0, 1365, 1349, 0, 1348, 0, 1363, 1357,
0, 1346, 1344, 1357, 0, 1326, 1331, 1350, 1323, 76,
178, 192, 434, 574, 599, 652, 0, 0, 699, 727,
731, 753, 768, 752, 0, 763, 801, 803, 0, 805,
0, 808, 804, 801, 0, 816, 0, 808, 831, 832,
826, 817, 838, 848, 836, 843, 0, 0, 854, 0,
840, 812, 817, 0, 0, 0, 814, 0, 845, 836,
863, 0, 873, 860, 849, 876, 857, 868, 895, 897,
888, 0, 886, 877, 892, 0, 885, 883, 0, 871,
882, 886, 893, 888, 0, 877, 908, 0, 879, 910,
908, 894, 890, 915, 0, 0, 911, 0, 922, 925,
925, 0, 922, 912, 926, 0, 0, 920, 927, 922,
910, 0, 911, 918, 919, 944, 0, 939, 949, 952,
0, 952, 923, 925, 925, 961, 950, 935, 0, 963,
947, 939, 940, 958, 0, 953, 0, 961, 968, 968,
981, 967, 0, 0, 981, 969, 971, 975, 983, 980,
984, 0, 979, 994, 0, 996, 1010, 0, 982, 0,
990, 0, 0, 1005, 993, 1004, 0, 994, 1009, 0,
0, 0, 0, 0, 0, 0, 995, 1014, 1011, 1015,
1014, 1012, 1020, 1017, 1015, 1019, 1012, 1005, 1012, 1023,
1024, 1033, 1028, 1014, 1024, 1035, 1027, 1026, 1046, 0,
2135, 1041, 1053, 1053, 1045, 1053, 1043, 1064, 1051, 1057,
1060, 1050, 1053, 1063, 1062, 1061, 1075, 0, 1046, 1064,
1064, 1064, 1074, 0, 1070, 0, 0, 1082, 1078, 1088,
1092, 0, 1094, 1092, 1066, 1084, 1080, 0, 0, 1100,
1104, 1102, 1089, 1103, 1097, 1107, 1098, 1114, 1110, 1112,
1110, 1115, 1105, 1112, 1096, 1115, 1098, 0, 1129, 1127,
1113, 1115, 1129, 1126, 1116, 1106, 1134, 1121, 1135, 1128,
1145, 1144, 1136, 1147, 1153, 1151, 1139, 1155, 1147, 1137,
1138, 1169, 1156, 1153, 1155, 1171, 0, 1157, 1160, 1165,
1149, 1161, 1177, 1163, 1166, 0, 1165, 0, 1172, 1172,
1183, 1175, 1159, 0, 1175, 1207, 1191, 1187, 1186, 1186,
0, 1189, 0, 1190, 1194, 1222, 1196, 1199, 0, 1201,
1190, 1191, 1214, 1215, 1217, 1215, 1211, 1221, 1220, 1230,
1224, 1225, 1207, 0, 0, 0, 1218, 1229, 1228, 1238,
0, 0, 0, 1225, 1245, 0, 0, 1247, 1235, 1235,
1250, 1259, 1257, 1259, 1257, 1272, 1254, 1266, 1272, 1265,
1258, 1272, 1271, 1277, 0, 1280, 0, 1270, 1274, 1287,
1279, 0, 1285, 0, 1275, 1281, 1294, 1276, 1282, 1284,
1284, 1297, 1300, 1290, 1289, 1289, 1303, 1299, 0, 1289,
0, 1277, 1308, 1290, 1296, 0, 1282, 1299, 1296, 1307,
1312, 1298, 1310, 1317, 1316, 1310, 0, 1303, 1310, 1316,
1311, 1326, 1314, 1310, 1305, 1327, 1317, 1319, 1319, 1339,
0, 0, 0, 1335, 0, 1342, 0, 0, 1337, 1339,
0, 2135, 1602, 1613, 1624, 1635, 1646, 1657, 1668, 1676,
1684, 1692, 1703, 1711, 1722, 1733, 1742, 1746, 1755, 1757,
1765, 1773, 1784, 1795, 1806, 1817
} ;
static const flex_int16_t yy_def[1247] =
{ 0,
1223, 1223, 1222, 3, 1224, 1224, 1222, 7, 1222, 9,
1222, 11, 1225, 1225, 1226, 1226, 1227, 1227, 1222, 1222,
1222, 1222, 1222, 1222, 1228, 1229, 1230, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1230, 1230, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1222, 1222, 1222, 1230, 1222, 1228, 1230,
1222, 1222, 1222, 1222, 1230, 1231, 1230, 1222, 1222, 1222,
1228, 1229, 1232, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1232, 1222, 1222, 94, 1222, 1222, 1222, 1222, 1222,
1222, 1232, 102, 102, 102, 102, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1222, 1222, 1222, 1222,
1222, 1222, 1233, 1234, 1222, 1222, 1235, 1234, 1234, 94,
94, 1236, 1222, 1222, 1222, 1222, 1234, 137, 137, 137,
137, 137, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1222,
1222, 137, 137, 137, 137, 137, 1234, 1234, 1234, 1234,
1234, 1234, 1222, 1234, 1237, 1222, 1237, 1237, 1237, 1237,
1237, 1222, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1237, 1237, 1222, 1222, 1238, 1222,
1222, 1222, 1239, 1239, 1239, 1239, 1222, 1222, 1222, 1228,
1222, 1229, 1230, 1230, 1222, 1222, 1222, 1222, 1222, 1230,
1222, 1222, 1240, 1222, 1222, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1222, 1241, 1242, 1230, 1222, 1232, 1232, 1222, 1222, 1222,
94, 94, 272, 1222, 1240, 1222, 1222, 1222, 1222, 1222,
102, 102, 102, 1232, 1232, 1232, 1232, 102, 1232, 1232,
1232, 102, 102, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1222, 1233, 1222, 1234, 1234, 1235, 1235, 1236,
137, 137, 137, 1234, 1234, 137, 137, 1234, 1234, 1234,
1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
137, 1234, 137, 137, 1234, 1234, 1234, 1234, 1234, 1234,
1234, 1234, 1234, 1234, 1234, 1234, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1238, 1239,
1222, 1239, 1239, 1239, 1230, 1240, 1222, 1222, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1241, 1242, 1230, 1232, 1222, 1232, 102, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 102, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1234, 1234, 1234,
1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
1234, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1239,
1239, 1239, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1222,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1243,
1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
1234, 1234, 1234, 1234, 1234, 1244, 1234, 1234, 1234, 1234,
1234, 1234, 1234, 1237, 1237, 1237, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237,
1237, 1239, 1239, 1239, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1222, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1234, 1234, 1234, 1234, 1234, 1234, 1245,
1243, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
1246, 1244, 1234, 1234, 1234, 1234, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1239,
1239, 1239, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1222, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1234, 1234, 1234, 1234, 1234, 1234,
1234, 1234, 1234, 1234, 1234, 1234, 1234, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1239, 1239,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1222,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1234, 1234,
1234, 1234, 1234, 1234, 1234, 1237, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1222, 1232, 1232, 1232,
1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1232,
1234, 1234, 1234, 1234, 1234, 1234, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1222, 1232, 1232, 1232, 1232, 1232, 1232, 1232, 1237, 1237,
1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1232, 1232, 1232, 1232, 1232, 1232,
1232, 1232, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237,
1237, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1232, 1232, 1232, 1232, 1232, 1232, 1237,
1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1232,
1232, 1232, 1232, 1232, 1232, 1237, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1237, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1232, 1232, 1232, 1232, 1232, 1232,
1237, 1237, 1237, 1237, 1237, 1237, 1230, 1230, 1230, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1232, 1232, 1232, 1232,
1232, 1232, 1232, 1237, 1237, 1237, 1237, 1237, 1237, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1232, 1232, 1232, 1232,
1237, 1237, 1237, 1237, 1230, 1230, 1230, 1230, 1230, 1230,
1230, 1232, 1232, 1232, 1232, 1237, 1237, 1237, 1237, 1230,
1230, 1230, 1230, 1230, 1232, 1232, 1237, 1237, 1237, 1237,
1230, 1230, 1230, 1230, 1230, 1232, 1232, 1237, 1237, 1237,
1230, 1230, 1230, 1230, 1232, 1237, 1237, 1237, 1230, 1230,
1230, 1230, 1232, 1237, 1237, 1230, 1230, 1230, 1230, 1232,
1237, 1237, 1230, 1230, 1230, 1230, 1232, 1230, 1230, 1230,
1230, 0, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222
} ;
static const flex_int16_t yy_nxt[2217] =
{ 0,
21, 22, 23, 24, 25, 26, 27, 21, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 38,
39, 40, 41, 42, 43, 21, 44, 45, 46, 47,
48, 49, 50, 51, 52, 35, 35, 53, 54, 55,
56, 57, 35, 58, 59, 60, 35, 61, 35, 35,
35, 35, 21, 35, 21, 21, 35, 35, 35, 35,
35, 35, 35, 35, 35, 35, 35, 62, 35, 35,
63, 35, 35, 35, 35, 35, 35, 64, 65, 66,
67, 20, 68, 23, 20, 69, 20, 381, 20, 20,
71, 72, 20, 20, 73, 74, 209, 75, 20, 20,
20, 20, 20, 20, 76, 20, 20, 77, 210, 276,
277, 381, 22, 23, 22, 23, 26, 226, 26, 222,
216, 227, 217, 223, 218, 230, 224, 187, 231, 187,
219, 228, 881, 20, 383, 20, 20, 220, 221, 233,
242, 229, 234, 236, 237, 239, 261, 248, 244, 240,
243, 381, 245, 241, 238, 246, 247, 249, 20, 20,
20, 20, 68, 23, 20, 69, 20, 382, 20, 20,
71, 72, 20, 20, 73, 74, 268, 75, 20, 20,
20, 20, 20, 20, 76, 20, 20, 77, 188, 251,
188, 205, 274, 252, 209, 279, 280, 297, 301, 268,
253, 313, 299, 770, 254, 255, 269, 298, 302, 256,
300, 323, 270, 20, 205, 20, 20, 882, 288, 274,
288, 316, 303, 276, 277, 289, 304, 333, 290, 349,
305, 279, 280, 334, 350, 266, 266, 883, 20, 20,
20, 78, 79, 23, 80, 81, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 106, 92, 107, 108, 92, 92, 109, 110,
111, 112, 113, 92, 114, 115, 116, 92, 92, 92,
92, 92, 92, 78, 92, 78, 78, 92, 106, 106,
106, 106, 106, 106, 92, 92, 92, 92, 92, 92,
92, 92, 92, 92, 92, 92, 92, 92, 117, 118,
119, 120, 21, 22, 121, 122, 21, 123, 124, 125,
126, 29, 30, 127, 32, 33, 34, 128, 129, 130,
131, 131, 39, 132, 133, 134, 135, 136, 137, 138,
139, 140, 141, 142, 128, 128, 143, 128, 128, 144,
128, 145, 146, 147, 128, 128, 148, 149, 128, 128,
128, 128, 128, 128, 150, 128, 151, 21, 128, 152,
153, 154, 140, 155, 156, 128, 128, 128, 128, 157,
128, 158, 159, 160, 128, 161, 162, 128, 128, 64,
163, 66, 164, 21, 22, 23, 165, 25, 26, 165,
21, 166, 29, 30, 167, 168, 165, 169, 165, 170,
165, 165, 165, 165, 40, 41, 171, 172, 165, 173,
174, 175, 165, 176, 177, 165, 178, 179, 165, 180,
181, 165, 165, 165, 182, 183, 165, 184, 165, 165,
165, 165, 165, 165, 165, 185, 165, 186, 165, 165,
165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
64, 65, 66, 165, 21, 22, 23, 21, 21, 26,
884, 21, 21, 21, 21, 21, 21, 190, 21, 274,
187, 21, 21, 21, 190, 190, 21, 21, 21, 21,
288, 323, 288, 292, 288, 338, 288, 293, 308, 372,
266, 316, 309, 291, 266, 373, 274, 266, 266, 310,
339, 294, 266, 288, 311, 288, 21, 21, 21, 21,
261, 326, 323, 266, 274, 323, 327, 323, 362, 363,
266, 266, 316, 328, 348, 316, 365, 316, 331, 366,
381, 191, 21, 192, 21, 21, 22, 23, 21, 21,
26, 274, 21, 21, 21, 21, 21, 21, 190, 21,
354, 187, 21, 21, 21, 190, 190, 21, 21, 21,
21, 323, 323, 355, 323, 313, 323, 452, 376, 453,
415, 316, 316, 329, 316, 377, 316, 378, 416, 407,
384, 885, 867, 330, 408, 413, 868, 21, 21, 21,
21, 414, 409, 341, 343, 410, 344, 420, 323, 429,
421, 430, 342, 345, 458, 431, 381, 459, 316, 323,
886, 512, 191, 21, 192, 21, 21, 22, 23, 316,
25, 26, 466, 21, 21, 21, 21, 513, 21, 190,
381, 467, 187, 21, 21, 21, 190, 190, 21, 21,
21, 211, 211, 211, 461, 532, 288, 381, 288, 381,
462, 346, 381, 381, 887, 323, 266, 288, 347, 288,
212, 323, 212, 266, 266, 316, 323, 266, 288, 520,
447, 316, 479, 213, 446, 266, 316, 194, 266, 195,
381, 323, 521, 196, 530, 266, 266, 663, 662, 664,
212, 316, 212, 197, 21, 198, 21, 21, 22, 23,
213, 25, 26, 531, 21, 21, 21, 21, 888, 21,
190, 381, 496, 187, 21, 21, 21, 190, 190, 21,
21, 21, 211, 211, 211, 612, 889, 498, 288, 859,
288, 613, 211, 211, 211, 272, 272, 272, 266, 323,
323, 212, 323, 212, 890, 266, 266, 774, 771, 316,
316, 212, 316, 212, 1222, 629, 1222, 481, 194, 482,
195, 630, 381, 775, 196, 381, 813, 274, 891, 892,
893, 212, 894, 212, 197, 21, 198, 21, 204, 204,
204, 212, 814, 212, 1222, 499, 1222, 204, 204, 204,
204, 204, 204, 288, 274, 288, 288, 212, 288, 212,
455, 895, 896, 266, 857, 897, 266, 898, 899, 772,
266, 454, 860, 266, 266, 900, 858, 901, 204, 204,
204, 204, 204, 204, 267, 267, 267, 212, 902, 212,
288, 903, 288, 267, 267, 267, 267, 267, 267, 904,
266, 905, 288, 906, 288, 907, 582, 266, 266, 590,
908, 909, 266, 910, 911, 912, 913, 914, 915, 266,
266, 916, 917, 918, 267, 267, 267, 267, 267, 267,
271, 271, 271, 919, 920, 921, 922, 923, 924, 272,
273, 272, 273, 272, 272, 381, 274, 381, 925, 212,
926, 212, 927, 274, 928, 929, 930, 931, 932, 933,
934, 935, 275, 936, 937, 939, 940, 941, 942, 938,
272, 273, 272, 273, 272, 272, 943, 274, 944, 212,
945, 212, 946, 274, 947, 948, 949, 950, 951, 275,
281, 281, 281, 952, 953, 954, 955, 956, 957, 281,
282, 281, 283, 281, 281, 958, 284, 959, 960, 961,
285, 962, 963, 284, 964, 965, 966, 286, 287, 967,
968, 969, 284, 970, 971, 972, 973, 974, 975, 976,
281, 288, 281, 288, 281, 281, 977, 284, 978, 979,
980, 981, 982, 284, 983, 984, 985, 986, 987, 284,
317, 317, 317, 988, 989, 990, 991, 992, 993, 317,
317, 317, 317, 317, 317, 994, 995, 996, 997, 998,
999, 1000, 1001, 1002, 1003, 1004, 1005, 1008, 1009, 1010,
1011, 1012, 1013, 1014, 1006, 1015, 1018, 1019, 1020, 1007,
317, 317, 317, 317, 317, 317, 321, 321, 321, 1021,
1022, 1023, 1024, 1016, 1025, 321, 322, 321, 323, 321,
321, 1017, 324, 1026, 1027, 1028, 325, 1030, 1031, 324,
1032, 1033, 1034, 1029, 1035, 1036, 1037, 1038, 324, 1039,
1040, 1041, 1042, 1043, 1044, 1045, 321, 323, 321, 323,
321, 321, 1046, 324, 1047, 1048, 1049, 1050, 1051, 324,
1052, 1053, 1054, 1055, 1056, 324, 204, 204, 204, 1057,
1058, 1059, 1060, 1061, 1062, 204, 204, 204, 204, 204,
204, 1063, 1064, 1065, 1066, 385, 1067, 385, 1068, 1069,
1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079,
1080, 1081, 1082, 1083, 1084, 1085, 204, 204, 204, 204,
204, 204, 1086, 1087, 1088, 385, 1089, 385, 267, 267,
267, 1090, 1091, 1092, 1093, 1094, 1095, 267, 267, 267,
267, 267, 267, 1096, 1097, 1098, 1099, 444, 1100, 444,
1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110,
1111, 1112, 1113, 1114, 1115, 1116, 1117, 1121, 267, 267,
267, 267, 267, 267, 1122, 1123, 1124, 444, 1125, 444,
317, 317, 317, 1118, 1126, 1127, 1131, 1119, 1132, 317,
317, 317, 317, 317, 317, 1133, 1134, 1135, 1128, 478,
1120, 478, 1129, 1136, 1137, 1138, 1139, 1140, 1141, 1142,
1143, 1144, 1145, 1146, 1147, 1130, 1148, 1149, 1150, 1151,
317, 317, 317, 317, 317, 317, 1152, 1153, 1154, 478,
1155, 478, 740, 740, 1156, 740, 740, 740, 1157, 740,
740, 740, 740, 740, 1158, 740, 1159, 1160, 1161, 1162,
1163, 1164, 1165, 740, 740, 740, 740, 740, 1166, 1167,
1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177,
1178, 1179, 1180, 1181, 1182, 1183, 1184, 1185, 1186, 1187,
1188, 1189, 1190, 1191, 1192, 1193, 1194, 740, 1195, 1196,
1197, 1198, 1199, 1200, 1201, 1202, 1203, 1204, 1205, 1206,
1207, 1208, 1209, 1210, 1211, 1212, 1213, 1214, 1215, 740,
740, 740, 751, 751, 1216, 751, 751, 751, 1217, 751,
751, 751, 751, 751, 1218, 751, 1219, 1220, 1221, 880,
879, 878, 877, 751, 751, 751, 751, 751, 876, 875,
874, 873, 872, 871, 870, 869, 866, 865, 864, 863,
862, 861, 381, 856, 855, 854, 853, 852, 851, 850,
849, 848, 847, 846, 845, 844, 843, 751, 842, 841,
840, 839, 838, 837, 836, 835, 834, 833, 832, 831,
830, 829, 828, 827, 826, 825, 824, 823, 822, 751,
751, 751, 740, 740, 821, 740, 740, 740, 820, 740,
740, 740, 740, 740, 819, 740, 818, 817, 816, 815,
812, 811, 810, 740, 740, 740, 740, 740, 809, 808,
807, 806, 805, 804, 803, 802, 801, 800, 799, 798,
797, 796, 795, 794, 793, 792, 791, 790, 789, 788,
787, 786, 785, 784, 783, 782, 781, 740, 780, 779,
778, 777, 776, 773, 769, 768, 767, 766, 765, 764,
763, 762, 761, 760, 759, 758, 757, 756, 755, 740,
740, 740, 751, 751, 754, 751, 751, 751, 753, 751,
751, 751, 751, 751, 750, 751, 749, 748, 747, 746,
745, 744, 743, 751, 751, 751, 751, 751, 742, 739,
738, 737, 736, 735, 734, 733, 732, 731, 730, 729,
728, 727, 726, 725, 724, 723, 722, 721, 720, 719,
718, 717, 716, 715, 714, 713, 712, 751, 711, 710,
709, 708, 707, 706, 705, 704, 703, 702, 701, 700,
699, 698, 697, 696, 695, 694, 693, 692, 691, 751,
751, 751, 20, 20, 20, 20, 20, 20, 20, 20,
20, 20, 20, 70, 70, 70, 70, 70, 70, 70,
70, 70, 70, 70, 21, 21, 21, 21, 21, 21,
21, 21, 21, 21, 21, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 193, 193, 193, 193,
193, 193, 193, 193, 193, 193, 193, 200, 200, 200,
200, 200, 200, 200, 200, 200, 200, 200, 202, 690,
202, 202, 202, 202, 202, 202, 202, 202, 202, 203,
203, 203, 203, 203, 203, 203, 203, 263, 689, 688,
687, 263, 263, 686, 263, 266, 685, 684, 683, 266,
266, 266, 266, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 316, 316, 682, 316, 316, 316,
316, 316, 318, 681, 318, 318, 318, 318, 318, 318,
318, 318, 318, 320, 680, 320, 320, 320, 320, 320,
320, 320, 320, 320, 357, 357, 357, 357, 357, 357,
357, 357, 357, 379, 679, 379, 379, 380, 380, 678,
677, 380, 380, 676, 380, 380, 386, 386, 441, 441,
441, 441, 441, 441, 441, 441, 442, 442, 442, 442,
442, 442, 442, 442, 741, 675, 741, 741, 741, 741,
741, 741, 741, 741, 741, 752, 674, 752, 752, 752,
752, 752, 752, 752, 752, 752, 740, 673, 740, 740,
740, 740, 740, 740, 740, 740, 740, 751, 672, 751,
751, 751, 751, 751, 751, 751, 751, 751, 671, 670,
669, 668, 667, 666, 665, 661, 660, 659, 658, 657,
656, 655, 654, 653, 652, 651, 650, 649, 648, 647,
646, 645, 644, 643, 642, 641, 640, 639, 638, 637,
636, 635, 634, 633, 632, 631, 628, 627, 626, 625,
624, 623, 622, 621, 620, 619, 618, 617, 616, 615,
614, 611, 610, 609, 608, 607, 606, 605, 604, 603,
602, 601, 600, 599, 598, 597, 596, 595, 594, 593,
592, 591, 589, 588, 587, 586, 585, 584, 583, 581,
580, 579, 578, 577, 576, 575, 574, 573, 572, 571,
570, 569, 568, 567, 566, 565, 564, 563, 562, 561,
560, 559, 558, 557, 556, 555, 554, 553, 552, 551,
550, 549, 548, 547, 546, 545, 544, 543, 542, 541,
540, 539, 538, 537, 536, 535, 534, 533, 380, 381,
529, 528, 527, 526, 525, 524, 523, 522, 519, 518,
517, 516, 515, 514, 511, 510, 509, 508, 507, 506,
505, 504, 503, 502, 501, 500, 497, 495, 494, 493,
492, 491, 490, 489, 488, 487, 486, 485, 484, 483,
480, 315, 477, 476, 475, 474, 473, 472, 471, 470,
469, 468, 465, 464, 463, 460, 457, 456, 451, 450,
449, 448, 388, 387, 445, 443, 440, 439, 438, 437,
436, 435, 434, 433, 432, 428, 427, 426, 425, 424,
423, 422, 419, 418, 417, 412, 411, 406, 405, 404,
403, 402, 401, 400, 399, 398, 397, 396, 395, 394,
393, 392, 391, 390, 389, 388, 387, 201, 199, 381,
209, 375, 374, 371, 370, 369, 368, 367, 364, 215,
361, 360, 359, 358, 205, 356, 353, 352, 351, 340,
337, 336, 335, 332, 278, 269, 319, 315, 265, 312,
307, 306, 296, 295, 278, 208, 207, 206, 201, 265,
199, 264, 209, 262, 201, 199, 261, 260, 259, 258,
257, 250, 235, 232, 225, 215, 214, 208, 207, 206,
205, 201, 199, 1222, 19, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222
} ;
static const flex_int16_t yy_chk[2217] =
{ 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,
3, 5, 5, 5, 5, 5, 5, 195, 5, 5,
5, 5, 5, 5, 5, 5, 36, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 36, 98,
98, 194, 13, 13, 14, 14, 13, 47, 14, 45,
44, 47, 44, 45, 44, 49, 45, 13, 49, 14,
44, 48, 800, 5, 195, 5, 5, 44, 44, 51,
55, 48, 51, 53, 53, 54, 118, 57, 56, 54,
55, 662, 56, 54, 53, 56, 56, 57, 5, 5,
5, 6, 6, 6, 6, 6, 6, 194, 6, 6,
6, 6, 6, 6, 6, 6, 85, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 13, 59,
14, 85, 95, 59, 93, 100, 100, 109, 111, 126,
59, 118, 110, 662, 59, 59, 93, 109, 111, 59,
110, 140, 93, 6, 126, 6, 6, 801, 103, 95,
103, 140, 112, 133, 133, 103, 112, 144, 103, 157,
112, 135, 135, 144, 157, 103, 103, 802, 6, 6,
6, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 15, 15, 15, 15, 15, 15,
803, 15, 15, 15, 15, 15, 15, 15, 15, 131,
15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
104, 156, 104, 105, 105, 148, 105, 105, 115, 181,
104, 156, 115, 104, 105, 181, 131, 104, 104, 115,
148, 105, 105, 106, 115, 106, 15, 15, 15, 15,
163, 138, 138, 106, 271, 142, 139, 139, 173, 173,
106, 106, 138, 139, 156, 142, 175, 139, 142, 175,
196, 15, 15, 15, 15, 16, 16, 16, 16, 16,
16, 271, 16, 16, 16, 16, 16, 16, 16, 16,
161, 16, 16, 16, 16, 16, 16, 16, 16, 16,
16, 141, 152, 161, 153, 163, 154, 291, 184, 291,
239, 141, 152, 141, 153, 184, 154, 184, 239, 235,
196, 804, 782, 141, 235, 238, 782, 16, 16, 16,
16, 238, 235, 152, 153, 235, 154, 243, 321, 251,
243, 251, 152, 154, 296, 251, 384, 296, 321, 155,
805, 362, 16, 16, 16, 16, 17, 17, 17, 155,
17, 17, 302, 17, 17, 17, 17, 362, 17, 17,
382, 302, 17, 17, 17, 17, 17, 17, 17, 17,
17, 37, 37, 37, 298, 384, 281, 530, 281, 531,
298, 155, 532, 383, 806, 322, 281, 282, 155, 282,
37, 323, 37, 281, 281, 322, 341, 282, 283, 370,
283, 323, 322, 37, 282, 282, 341, 17, 283, 17,
770, 343, 370, 17, 382, 283, 283, 531, 530, 532,
37, 343, 37, 17, 17, 17, 17, 18, 18, 18,
37, 18, 18, 383, 18, 18, 18, 18, 809, 18,
18, 663, 341, 18, 18, 18, 18, 18, 18, 18,
18, 18, 38, 38, 38, 480, 810, 343, 288, 770,
288, 480, 211, 211, 211, 272, 272, 272, 288, 344,
326, 38, 327, 38, 811, 288, 288, 667, 663, 344,
326, 211, 327, 211, 272, 497, 272, 326, 18, 327,
18, 497, 664, 667, 18, 771, 711, 272, 812, 813,
814, 38, 816, 38, 18, 18, 18, 18, 27, 27,
27, 211, 711, 211, 272, 344, 272, 27, 27, 27,
27, 27, 27, 292, 272, 292, 293, 386, 293, 386,
293, 817, 818, 292, 768, 820, 293, 822, 823, 664,
292, 292, 771, 293, 293, 824, 768, 826, 27, 27,
27, 27, 27, 27, 83, 83, 83, 386, 828, 386,
447, 829, 447, 83, 83, 83, 83, 83, 83, 830,
447, 831, 455, 832, 455, 833, 447, 447, 447, 455,
834, 835, 455, 836, 839, 841, 842, 843, 847, 455,
455, 849, 850, 851, 83, 83, 83, 83, 83, 83,
94, 94, 94, 853, 854, 855, 856, 857, 858, 94,
94, 94, 94, 94, 94, 859, 94, 860, 861, 94,
863, 94, 864, 94, 865, 867, 868, 870, 871, 872,
873, 874, 94, 876, 877, 879, 880, 881, 882, 877,
94, 94, 94, 94, 94, 94, 883, 94, 884, 94,
887, 94, 889, 94, 890, 891, 893, 894, 895, 94,
102, 102, 102, 898, 899, 900, 901, 903, 904, 102,
102, 102, 102, 102, 102, 905, 102, 906, 908, 909,
102, 910, 912, 102, 913, 914, 915, 102, 102, 916,
917, 918, 102, 920, 921, 922, 923, 924, 926, 928,
102, 102, 102, 102, 102, 102, 929, 102, 930, 931,
932, 935, 936, 102, 937, 938, 939, 940, 941, 102,
124, 124, 124, 943, 944, 946, 947, 949, 951, 124,
124, 124, 124, 124, 124, 954, 955, 956, 958, 959,
967, 968, 969, 970, 971, 972, 973, 974, 975, 976,
977, 978, 979, 980, 973, 981, 983, 984, 985, 973,
124, 124, 124, 124, 124, 124, 137, 137, 137, 986,
987, 988, 989, 982, 992, 137, 137, 137, 137, 137,
137, 982, 137, 993, 994, 995, 137, 996, 997, 137,
998, 999, 1000, 995, 1001, 1002, 1003, 1004, 137, 1005,
1006, 1007, 1009, 1010, 1011, 1012, 137, 137, 137, 137,
137, 137, 1013, 137, 1015, 1018, 1019, 1020, 1021, 137,
1023, 1024, 1025, 1026, 1027, 137, 204, 204, 204, 1030,
1031, 1032, 1033, 1034, 1035, 204, 204, 204, 204, 204,
204, 1036, 1037, 1038, 1039, 204, 1040, 204, 1041, 1042,
1043, 1044, 1045, 1046, 1047, 1049, 1050, 1051, 1052, 1053,
1054, 1055, 1056, 1057, 1058, 1059, 204, 204, 204, 204,
204, 204, 1060, 1061, 1062, 204, 1063, 204, 267, 267,
267, 1064, 1065, 1066, 1067, 1068, 1069, 267, 267, 267,
267, 267, 267, 1070, 1071, 1072, 1073, 267, 1074, 267,
1075, 1076, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085,
1087, 1089, 1090, 1091, 1092, 1093, 1095, 1097, 267, 267,
267, 267, 267, 267, 1098, 1099, 1100, 267, 1102, 267,
317, 317, 317, 1096, 1104, 1105, 1107, 1096, 1108, 317,
317, 317, 317, 317, 317, 1110, 1111, 1112, 1106, 317,
1096, 317, 1106, 1113, 1114, 1115, 1116, 1117, 1118, 1119,
1120, 1121, 1122, 1123, 1127, 1106, 1128, 1129, 1130, 1134,
317, 317, 317, 317, 317, 317, 1135, 1138, 1139, 317,
1140, 317, 620, 620, 1141, 620, 620, 620, 1142, 620,
620, 620, 620, 620, 1143, 620, 1144, 1145, 1146, 1147,
1148, 1149, 1150, 620, 620, 620, 620, 620, 1151, 1152,
1153, 1154, 1156, 1158, 1159, 1160, 1161, 1163, 1165, 1166,
1167, 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175, 1176,
1177, 1178, 1180, 1182, 1183, 1184, 1185, 620, 1187, 1188,
1189, 1190, 1191, 1192, 1193, 1194, 1195, 1196, 1198, 1199,
1200, 1201, 1202, 1203, 1204, 1205, 1206, 1207, 1208, 620,
620, 620, 636, 636, 1209, 636, 636, 636, 1210, 636,
636, 636, 636, 636, 1214, 636, 1216, 1219, 1220, 799,
798, 797, 796, 636, 636, 636, 636, 636, 794, 793,
792, 790, 789, 787, 785, 784, 780, 779, 778, 775,
774, 773, 772, 766, 765, 764, 763, 762, 761, 760,
759, 758, 756, 754, 750, 749, 748, 636, 746, 745,
743, 739, 738, 737, 736, 734, 733, 732, 731, 730,
729, 728, 727, 726, 725, 724, 723, 722, 721, 636,
636, 636, 741, 741, 720, 741, 741, 741, 719, 741,
741, 741, 741, 741, 718, 741, 716, 715, 714, 712,
710, 709, 708, 741, 741, 741, 741, 741, 707, 706,
705, 704, 703, 702, 701, 700, 699, 698, 697, 696,
694, 693, 692, 691, 690, 689, 688, 687, 686, 685,
684, 683, 681, 680, 679, 677, 675, 741, 673, 672,
671, 669, 668, 665, 661, 660, 659, 657, 655, 653,
652, 651, 649, 648, 647, 645, 644, 643, 642, 741,
741, 741, 752, 752, 640, 752, 752, 752, 639, 752,
752, 752, 752, 752, 635, 752, 634, 630, 629, 628,
627, 626, 624, 752, 752, 752, 752, 752, 623, 619,
618, 617, 613, 612, 611, 609, 608, 607, 606, 605,
604, 603, 602, 601, 600, 599, 597, 596, 595, 593,
592, 591, 590, 589, 587, 586, 584, 752, 583, 581,
580, 579, 578, 577, 576, 575, 574, 573, 572, 571,
570, 569, 568, 567, 566, 565, 564, 563, 562, 752,
752, 752, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223,
1223, 1223, 1223, 1224, 1224, 1224, 1224, 1224, 1224, 1224,
1224, 1224, 1224, 1224, 1225, 1225, 1225, 1225, 1225, 1225,
1225, 1225, 1225, 1225, 1225, 1226, 1226, 1226, 1226, 1226,
1226, 1226, 1226, 1226, 1226, 1226, 1227, 1227, 1227, 1227,
1227, 1227, 1227, 1227, 1227, 1227, 1227, 1228, 1228, 1228,
1228, 1228, 1228, 1228, 1228, 1228, 1228, 1228, 1229, 561,
1229, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1230,
1230, 1230, 1230, 1230, 1230, 1230, 1230, 1231, 560, 558,
557, 1231, 1231, 556, 1231, 1232, 555, 554, 553, 1232,
1232, 1232, 1232, 1233, 1233, 1233, 1233, 1233, 1233, 1233,
1233, 1233, 1233, 1233, 1234, 1234, 552, 1234, 1234, 1234,
1234, 1234, 1235, 551, 1235, 1235, 1235, 1235, 1235, 1235,
1235, 1235, 1235, 1236, 550, 1236, 1236, 1236, 1236, 1236,
1236, 1236, 1236, 1236, 1237, 1237, 1237, 1237, 1237, 1237,
1237, 1237, 1237, 1238, 549, 1238, 1238, 1239, 1239, 548,
547, 1239, 1239, 546, 1239, 1239, 1240, 1240, 1241, 1241,
1241, 1241, 1241, 1241, 1241, 1241, 1242, 1242, 1242, 1242,
1242, 1242, 1242, 1242, 1243, 545, 1243, 1243, 1243, 1243,
1243, 1243, 1243, 1243, 1243, 1244, 544, 1244, 1244, 1244,
1244, 1244, 1244, 1244, 1244, 1244, 1245, 543, 1245, 1245,
1245, 1245, 1245, 1245, 1245, 1245, 1245, 1246, 542, 1246,
1246, 1246, 1246, 1246, 1246, 1246, 1246, 1246, 541, 540,
538, 537, 536, 535, 533, 529, 528, 527, 526, 525,
524, 523, 522, 521, 520, 519, 518, 517, 516, 515,
514, 513, 512, 511, 510, 509, 508, 507, 506, 505,
504, 503, 502, 500, 499, 498, 496, 495, 494, 493,
492, 491, 490, 489, 488, 487, 486, 485, 483, 482,
481, 479, 477, 476, 475, 474, 473, 472, 471, 470,
469, 468, 467, 466, 465, 462, 461, 460, 459, 458,
457, 456, 454, 453, 452, 451, 450, 449, 448, 446,
445, 443, 438, 437, 436, 435, 434, 433, 432, 431,
430, 429, 428, 427, 426, 425, 424, 423, 422, 421,
420, 419, 417, 414, 413, 412, 411, 410, 409, 408,
407, 405, 404, 403, 402, 401, 400, 399, 398, 397,
396, 395, 394, 393, 392, 391, 390, 389, 381, 380,
378, 377, 376, 375, 374, 373, 372, 371, 369, 368,
367, 366, 365, 364, 356, 355, 354, 353, 352, 351,
350, 349, 348, 347, 346, 345, 342, 340, 339, 338,
337, 336, 335, 334, 333, 332, 331, 330, 329, 328,
325, 314, 312, 311, 310, 309, 308, 307, 306, 305,
304, 303, 301, 300, 299, 297, 295, 294, 290, 289,
286, 285, 280, 276, 270, 264, 260, 259, 258, 257,
256, 255, 254, 253, 252, 250, 249, 248, 247, 246,
245, 244, 242, 241, 240, 237, 236, 234, 233, 232,
231, 230, 229, 228, 227, 226, 225, 224, 223, 222,
220, 219, 218, 217, 216, 215, 214, 200, 199, 193,
187, 183, 182, 180, 179, 178, 177, 176, 174, 172,
170, 169, 168, 167, 166, 162, 160, 159, 158, 149,
147, 146, 145, 143, 134, 129, 127, 123, 122, 116,
114, 113, 108, 107, 99, 91, 89, 88, 81, 80,
79, 77, 75, 74, 69, 68, 65, 63, 62, 61,
60, 58, 52, 50, 46, 43, 41, 34, 32, 31,
28, 25, 22, 19, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222,
1222, 1222, 1222, 1222, 1222, 1222
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
extern int yy_flex_debug;
int yy_flex_debug = 0;
/* 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 "ldlex.l"
#line 4 "ldlex.l"
/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
Written by Steve Chamberlain of Cygnus Support.
This file is part of the GNU Binutils.
This program 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 3 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
#include "bfd.h"
#include "safe-ctype.h"
#include "bfdlink.h"
#include "ctf-api.h"
#include "ld.h"
#include "ldmisc.h"
#include "ldexp.h"
#include "ldlang.h"
#include <ldgram.h>
#include "ldfile.h"
#include "ldlex.h"
#include "ldmain.h"
#include "libiberty.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. */
unsigned int lineno;
/* 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) result = yy_input (buf, max_size)
#ifndef YY_NO_UNPUT
#define YY_NO_UNPUT
#endif
#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 sysrooted_stack[MAX_INCLUDE_DEPTH];
static unsigned int include_stack_ptr = 0;
static int vers_node_nesting = 0;
static int yy_input (char *, int);
static void comment (void);
static void lex_warn_invalid (char *where, char *what);
/* STATES
EXPRESSION in an expression
SCRIPT in a script
INPUTLIST in a script, a filename-list
MRI in an MRI script
WILD inside the braces of an output section or overlay,
for input section wildcards
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; }
#line 1430 "ldlex.c"
#line 1432 "ldlex.c"
#define INITIAL 0
#define SCRIPT 1
#define INPUTLIST 2
#define EXPRESSION 3
#define MRI 4
#define WILD 5
#define VERS_START 6
#define VERS_SCRIPT 7
#define VERS_NODE 8
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
#include <unistd.h>
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
static int yy_init_globals ( void );
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
int yylex_destroy ( void );
int yyget_debug ( void );
void yyset_debug ( int debug_flag );
YY_EXTRA_TYPE yyget_extra ( void );
void yyset_extra ( YY_EXTRA_TYPE user_defined );
FILE *yyget_in ( void );
void yyset_in ( FILE * _in_str );
FILE *yyget_out ( void );
void yyset_out ( FILE * _out_str );
int yyget_leng ( void );
char *yyget_text ( void );
int yyget_lineno ( void );
void yyset_lineno ( int _line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap ( void );
#else
extern int yywrap ( void );
#endif
#endif
#ifndef YY_NO_UNPUT
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy ( char *, const char *, int );
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen ( const char * );
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput ( void );
#else
static int input ( void );
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#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 do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
#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_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
int 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 \
{ \
errno=0; \
while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\
#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
/* end tables serialization structures and prototypes */
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int yylex (void);
#define YY_DECL int yylex (void)
#endif /* !YY_DECL */
/* 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 /*LINTED*/break;
#endif
#define YY_RULE_SETUP \
YY_USER_ACTION
/** The main scanner function which does all the work.
*/
YY_DECL
{
yy_state_type yy_current_state;
char *yy_cp, *yy_bp;
int yy_act;
if ( !(yy_init) )
{
(yy_init) = 1;
#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 ) {
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
yy_create_buffer( yyin, YY_BUF_SIZE );
}
yy_load_buffer_state( );
}
{
#line 114 "ldlex.l"
#line 117 "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_dynamic_list: return INPUT_DYNAMIC_LIST; break;
case input_defsym: return INPUT_DEFSYM; break;
default: abort ();
}
}
#line 1675 "ldlex.c"
while ( /*CONSTCOND*/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
{
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 >= 1223 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
++yy_cp;
}
while ( yy_base[yy_current_state] != 2135 );
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 133 "ldlex.l"
{
comment (); }
YY_BREAK
case 2:
YY_RULE_SETUP
#line 136 "ldlex.l"
{
yylval.integer = bfd_scan_vma (yytext + 1, 0, 16);
yylval.bigint.str = NULL;
return INT;
}
YY_BREAK
case 3:
YY_RULE_SETUP
#line 142 "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);
yylval.bigint.str = NULL;
return INT;
}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 167 "ldlex.l"
{
char *s = yytext;
int ibase = 0;
if (*s == '$')
{
++s;
ibase = 16;
}
yylval.integer = bfd_scan_vma (s, 0, ibase);
yylval.bigint.str = NULL;
if (yytext[yyleng - 1] == 'M'
|| yytext[yyleng - 1] == 'm')
{
yylval.integer *= 1024 * 1024;
}
else if (yytext[yyleng - 1] == 'K'
|| yytext[yyleng - 1]=='k')
{
yylval.integer *= 1024;
}
else if (yytext[0] == '0'
&& (yytext[1] == 'x'
|| yytext[1] == 'X'))
{
yylval.bigint.str = xstrdup (yytext + 2);
}
return INT;
}
YY_BREAK
/* Some tokens that only appear in expressions must be enabled for
states other than EXPRESSION, since parser lookahead means they
must be recognised before the parser switches the lexer out of
SCRIPT or WILD state into EXPRESSION state.
This sort of thing happens for example with NAME in ldgram.y
"section" rule, which is immediately followed by ldlex_expression.
However, if you follow the grammar from "sec_or_group_p1" you see
"assignment" appearing in "statement_anywhere". Now,
"assignment" also has NAME as its first token, just like
"section". So the parser can't know whether it is in the
"section" or the "assignment" rule until it has scanned the next
token to find an assignment operator. Thus the next token after
NAME in the "section" rule may be lexed before the lexer is
switched to EXPRESSION state, and there are quite a number of
optional components. The first token in all those components
must be able to be lexed in SCRIPT state, as well as the
assignment operators. In fact, due to "opt_exp_with_type",
anything that can appear on the left hand side of "exp" might
need to be lexed in SCRIPT state.
MRI mode tends to cover everything in MRI scripts.
*/
case 5:
YY_RULE_SETUP
#line 220 "ldlex.l"
{ RTOKEN(']'); }
YY_BREAK
case 6:
YY_RULE_SETUP
#line 221 "ldlex.l"
{ RTOKEN('['); }
YY_BREAK
case 7:
YY_RULE_SETUP
#line 222 "ldlex.l"
{ RTOKEN(LSHIFTEQ); }
YY_BREAK
case 8:
YY_RULE_SETUP
#line 223 "ldlex.l"
{ RTOKEN(RSHIFTEQ); }
YY_BREAK
case 9:
YY_RULE_SETUP
#line 224 "ldlex.l"
{ RTOKEN(OROR); }
YY_BREAK
case 10:
YY_RULE_SETUP
#line 225 "ldlex.l"
{ RTOKEN(EQ); }
YY_BREAK
case 11:
YY_RULE_SETUP
#line 226 "ldlex.l"
{ RTOKEN(NE); }
YY_BREAK
case 12:
YY_RULE_SETUP
#line 227 "ldlex.l"
{ RTOKEN(GE); }
YY_BREAK
case 13:
YY_RULE_SETUP
#line 228 "ldlex.l"
{ RTOKEN(LE); }
YY_BREAK
case 14:
YY_RULE_SETUP
#line 229 "ldlex.l"
{ RTOKEN(LSHIFT); }
YY_BREAK
case 15:
YY_RULE_SETUP
#line 230 "ldlex.l"
{ RTOKEN(RSHIFT); }
YY_BREAK
case 16:
YY_RULE_SETUP
#line 231 "ldlex.l"
{ RTOKEN(PLUSEQ); }
YY_BREAK
case 17:
YY_RULE_SETUP
#line 232 "ldlex.l"
{ RTOKEN(MINUSEQ); }
YY_BREAK
case 18:
YY_RULE_SETUP
#line 233 "ldlex.l"
{ RTOKEN(MULTEQ); }
YY_BREAK
case 19:
YY_RULE_SETUP
#line 234 "ldlex.l"
{ RTOKEN(DIVEQ); }
YY_BREAK
case 20:
YY_RULE_SETUP
#line 235 "ldlex.l"
{ RTOKEN(ANDEQ); }
YY_BREAK
case 21:
YY_RULE_SETUP
#line 236 "ldlex.l"
{ RTOKEN(OREQ); }
YY_BREAK
case 22:
YY_RULE_SETUP
#line 237 "ldlex.l"
{ RTOKEN(ANDAND); }
YY_BREAK
case 23:
YY_RULE_SETUP
#line 238 "ldlex.l"
{ RTOKEN('>'); }
YY_BREAK
case 24:
YY_RULE_SETUP
#line 239 "ldlex.l"
{ RTOKEN(','); }
YY_BREAK
case 25:
YY_RULE_SETUP
#line 240 "ldlex.l"
{ RTOKEN('&'); }
YY_BREAK
case 26:
YY_RULE_SETUP
#line 241 "ldlex.l"
{ RTOKEN('|'); }
YY_BREAK
case 27:
YY_RULE_SETUP
#line 242 "ldlex.l"
{ RTOKEN('~'); }
YY_BREAK
case 28:
YY_RULE_SETUP
#line 243 "ldlex.l"
{ RTOKEN('!'); }
YY_BREAK
case 29:
YY_RULE_SETUP
#line 244 "ldlex.l"
{ RTOKEN('?'); }
YY_BREAK
case 30:
YY_RULE_SETUP
#line 245 "ldlex.l"
{ RTOKEN('*'); }
YY_BREAK
case 31:
YY_RULE_SETUP
#line 246 "ldlex.l"
{ RTOKEN('+'); }
YY_BREAK
case 32:
YY_RULE_SETUP
#line 247 "ldlex.l"
{ RTOKEN('-'); }
YY_BREAK
case 33:
YY_RULE_SETUP
#line 248 "ldlex.l"
{ RTOKEN('/'); }
YY_BREAK
case 34:
YY_RULE_SETUP
#line 249 "ldlex.l"
{ RTOKEN('%'); }
YY_BREAK
case 35:
YY_RULE_SETUP
#line 250 "ldlex.l"
{ RTOKEN('<'); }
YY_BREAK
case 36:
YY_RULE_SETUP
#line 251 "ldlex.l"
{ RTOKEN('='); }
YY_BREAK
case 37:
YY_RULE_SETUP
#line 252 "ldlex.l"
{ RTOKEN('}'); }
YY_BREAK
case 38:
YY_RULE_SETUP
#line 253 "ldlex.l"
{ RTOKEN('{'); }
YY_BREAK
case 39:
YY_RULE_SETUP
#line 254 "ldlex.l"
{ RTOKEN(')'); }
YY_BREAK
case 40:
YY_RULE_SETUP
#line 255 "ldlex.l"
{ RTOKEN('('); }
YY_BREAK
case 41:
YY_RULE_SETUP
#line 256 "ldlex.l"
{ RTOKEN(':'); }
YY_BREAK
case 42:
YY_RULE_SETUP
#line 257 "ldlex.l"
{ RTOKEN(';'); }
YY_BREAK
case 43:
YY_RULE_SETUP
#line 258 "ldlex.l"
{ RTOKEN(MEMORY); }
YY_BREAK
case 44:
YY_RULE_SETUP
#line 259 "ldlex.l"
{ RTOKEN(REGION_ALIAS); }
YY_BREAK
case 45:
YY_RULE_SETUP
#line 260 "ldlex.l"
{ RTOKEN(LD_FEATURE); }
YY_BREAK
case 46:
YY_RULE_SETUP
#line 261 "ldlex.l"
{ RTOKEN(ORIGIN); }
YY_BREAK
case 47:
YY_RULE_SETUP
#line 262 "ldlex.l"
{ RTOKEN(VERSIONK); }
YY_BREAK
case 48:
YY_RULE_SETUP
#line 263 "ldlex.l"
{ RTOKEN(BLOCK); }
YY_BREAK
case 49:
YY_RULE_SETUP
#line 264 "ldlex.l"
{ RTOKEN(BIND); }
YY_BREAK
case 50:
YY_RULE_SETUP
#line 265 "ldlex.l"
{ RTOKEN(LENGTH); }
YY_BREAK
case 51:
YY_RULE_SETUP
#line 266 "ldlex.l"
{ RTOKEN(ALIGN_K); }
YY_BREAK
case 52:
YY_RULE_SETUP
#line 267 "ldlex.l"
{ RTOKEN(DATA_SEGMENT_ALIGN); }
YY_BREAK
case 53:
YY_RULE_SETUP
#line 268 "ldlex.l"
{ RTOKEN(DATA_SEGMENT_RELRO_END); }
YY_BREAK
case 54:
YY_RULE_SETUP
#line 269 "ldlex.l"
{ RTOKEN(DATA_SEGMENT_END); }
YY_BREAK
case 55:
YY_RULE_SETUP
#line 270 "ldlex.l"
{ RTOKEN(ADDR); }
YY_BREAK
case 56:
YY_RULE_SETUP
#line 271 "ldlex.l"
{ RTOKEN(LOADADDR); }
YY_BREAK
case 57:
YY_RULE_SETUP
#line 272 "ldlex.l"
{ RTOKEN(ALIGNOF); }
YY_BREAK
case 58:
YY_RULE_SETUP
#line 273 "ldlex.l"
{ RTOKEN(ABSOLUTE); }
YY_BREAK
case 59:
YY_RULE_SETUP
#line 274 "ldlex.l"
{ RTOKEN(MAX_K); }
YY_BREAK
case 60:
YY_RULE_SETUP
#line 275 "ldlex.l"
{ RTOKEN(MIN_K); }
YY_BREAK
case 61:
YY_RULE_SETUP
#line 276 "ldlex.l"
{ RTOKEN(LOG2CEIL); }
YY_BREAK
case 62:
YY_RULE_SETUP
#line 277 "ldlex.l"
{ RTOKEN(ASSERT_K); }
YY_BREAK
case 63:
YY_RULE_SETUP
#line 278 "ldlex.l"
{ RTOKEN(ENTRY); }
YY_BREAK
case 64:
YY_RULE_SETUP
#line 279 "ldlex.l"
{ RTOKEN(EXTERN); }
YY_BREAK
case 65:
YY_RULE_SETUP
#line 280 "ldlex.l"
{ RTOKEN(NEXT); }
YY_BREAK
case 66:
YY_RULE_SETUP
#line 281 "ldlex.l"
{ RTOKEN(SIZEOF_HEADERS); }
YY_BREAK
case 67:
YY_RULE_SETUP
#line 282 "ldlex.l"
{ RTOKEN(SEGMENT_START); }
YY_BREAK
case 68:
YY_RULE_SETUP
#line 283 "ldlex.l"
{ RTOKEN(MAP); }
YY_BREAK
case 69:
YY_RULE_SETUP
#line 284 "ldlex.l"
{ RTOKEN(SIZEOF); }
YY_BREAK
case 70:
YY_RULE_SETUP
#line 285 "ldlex.l"
{ RTOKEN(TARGET_K); }
YY_BREAK
case 71:
YY_RULE_SETUP
#line 286 "ldlex.l"
{ RTOKEN(SEARCH_DIR); }
YY_BREAK
case 72:
YY_RULE_SETUP
#line 287 "ldlex.l"
{ RTOKEN(OUTPUT); }
YY_BREAK
case 73:
YY_RULE_SETUP
#line 288 "ldlex.l"
{ RTOKEN(INPUT); }
YY_BREAK
case 74:
YY_RULE_SETUP
#line 289 "ldlex.l"
{ RTOKEN(GROUP); }
YY_BREAK
case 75:
YY_RULE_SETUP
#line 290 "ldlex.l"
{ RTOKEN(AS_NEEDED); }
YY_BREAK
case 76:
YY_RULE_SETUP
#line 291 "ldlex.l"
{ RTOKEN(DEFINED); }
YY_BREAK
case 77:
YY_RULE_SETUP
#line 292 "ldlex.l"
{ RTOKEN(CREATE_OBJECT_SYMBOLS); }
YY_BREAK
case 78:
YY_RULE_SETUP
#line 293 "ldlex.l"
{ RTOKEN(CONSTRUCTORS); }
YY_BREAK
case 79:
YY_RULE_SETUP
#line 294 "ldlex.l"
{ RTOKEN(FORCE_COMMON_ALLOCATION); }
YY_BREAK
case 80:
YY_RULE_SETUP
#line 295 "ldlex.l"
{ RTOKEN(FORCE_GROUP_ALLOCATION); }
YY_BREAK
case 81:
YY_RULE_SETUP
#line 296 "ldlex.l"
{ RTOKEN(INHIBIT_COMMON_ALLOCATION); }
YY_BREAK
case 82:
YY_RULE_SETUP
#line 297 "ldlex.l"
{ RTOKEN(SECTIONS); }
YY_BREAK
case 83:
YY_RULE_SETUP
#line 298 "ldlex.l"
{ RTOKEN(INSERT_K); }
YY_BREAK
case 84:
YY_RULE_SETUP
#line 299 "ldlex.l"
{ RTOKEN(AFTER); }
YY_BREAK
case 85:
YY_RULE_SETUP
#line 300 "ldlex.l"
{ RTOKEN(BEFORE); }
YY_BREAK
case 86:
YY_RULE_SETUP
#line 301 "ldlex.l"
{ RTOKEN(FILL); }
YY_BREAK
case 87:
YY_RULE_SETUP
#line 302 "ldlex.l"
{ RTOKEN(STARTUP); }
YY_BREAK
case 88:
YY_RULE_SETUP
#line 303 "ldlex.l"
{ RTOKEN(OUTPUT_FORMAT); }
YY_BREAK
case 89:
YY_RULE_SETUP
#line 304 "ldlex.l"
{ RTOKEN(OUTPUT_ARCH); }
YY_BREAK
case 90:
YY_RULE_SETUP
#line 305 "ldlex.l"
{ RTOKEN(HLL); }
YY_BREAK
case 91:
YY_RULE_SETUP
#line 306 "ldlex.l"
{ RTOKEN(SYSLIB); }
YY_BREAK
case 92:
YY_RULE_SETUP
#line 307 "ldlex.l"
{ RTOKEN(FLOAT); }
YY_BREAK
case 93:
YY_RULE_SETUP
#line 308 "ldlex.l"
{ RTOKEN(QUAD); }
YY_BREAK
case 94:
YY_RULE_SETUP
#line 309 "ldlex.l"
{ RTOKEN(SQUAD); }
YY_BREAK
case 95:
YY_RULE_SETUP
#line 310 "ldlex.l"
{ RTOKEN(LONG); }
YY_BREAK
case 96:
YY_RULE_SETUP
#line 311 "ldlex.l"
{ RTOKEN(SHORT); }
YY_BREAK
case 97:
YY_RULE_SETUP
#line 312 "ldlex.l"
{ RTOKEN(BYTE); }
YY_BREAK
case 98:
YY_RULE_SETUP
#line 313 "ldlex.l"
{ RTOKEN(ASCIZ); }
YY_BREAK
case 99:
YY_RULE_SETUP
#line 314 "ldlex.l"
{ RTOKEN(LINKER_VERSION); }
YY_BREAK
case 100:
YY_RULE_SETUP
#line 315 "ldlex.l"
{ RTOKEN(NOFLOAT); }
YY_BREAK
case 101:
YY_RULE_SETUP
#line 316 "ldlex.l"
{ RTOKEN(NOCROSSREFS); }
YY_BREAK
case 102:
YY_RULE_SETUP
#line 317 "ldlex.l"
{ RTOKEN(NOCROSSREFS_TO); }
YY_BREAK
case 103:
YY_RULE_SETUP
#line 318 "ldlex.l"
{ RTOKEN(OVERLAY); }
YY_BREAK
case 104:
YY_RULE_SETUP
#line 319 "ldlex.l"
{ RTOKEN(SORT_BY_NAME); }
YY_BREAK
case 105:
YY_RULE_SETUP
#line 320 "ldlex.l"
{ RTOKEN(SORT_BY_ALIGNMENT); }
YY_BREAK
case 106:
YY_RULE_SETUP
#line 321 "ldlex.l"
{ RTOKEN(SORT_BY_NAME); }
YY_BREAK
case 107:
YY_RULE_SETUP
#line 322 "ldlex.l"
{ RTOKEN(SORT_BY_INIT_PRIORITY); }
YY_BREAK
case 108:
YY_RULE_SETUP
#line 323 "ldlex.l"
{ RTOKEN(SORT_NONE); }
YY_BREAK
case 109:
YY_RULE_SETUP
#line 324 "ldlex.l"
{ RTOKEN(NOLOAD); }
YY_BREAK
case 110:
YY_RULE_SETUP
#line 325 "ldlex.l"
{ RTOKEN(READONLY); }
YY_BREAK
case 111:
YY_RULE_SETUP
#line 326 "ldlex.l"
{ RTOKEN(DSECT); }
YY_BREAK
case 112:
YY_RULE_SETUP
#line 327 "ldlex.l"
{ RTOKEN(COPY); }
YY_BREAK
case 113:
YY_RULE_SETUP
#line 328 "ldlex.l"
{ RTOKEN(INFO); }
YY_BREAK
case 114:
YY_RULE_SETUP
#line 329 "ldlex.l"
{ RTOKEN(TYPE); }
YY_BREAK
case 115:
YY_RULE_SETUP
#line 330 "ldlex.l"
{ RTOKEN(ONLY_IF_RO); }
YY_BREAK
case 116:
YY_RULE_SETUP
#line 331 "ldlex.l"
{ RTOKEN(ONLY_IF_RW); }
YY_BREAK
case 117:
YY_RULE_SETUP
#line 332 "ldlex.l"
{ RTOKEN(SPECIAL); }
YY_BREAK
case 118:
YY_RULE_SETUP
#line 333 "ldlex.l"
{ RTOKEN(ORIGIN); }
YY_BREAK
case 119:
YY_RULE_SETUP
#line 334 "ldlex.l"
{ RTOKEN(ORIGIN); }
YY_BREAK
case 120:
YY_RULE_SETUP
#line 335 "ldlex.l"
{ RTOKEN(LENGTH); }
YY_BREAK
case 121:
YY_RULE_SETUP
#line 336 "ldlex.l"
{ RTOKEN(LENGTH); }
YY_BREAK
case 122:
YY_RULE_SETUP
#line 337 "ldlex.l"
{ RTOKEN(INPUT_SECTION_FLAGS); }
YY_BREAK
case 123:
YY_RULE_SETUP
#line 338 "ldlex.l"
{ RTOKEN(INCLUDE);}
YY_BREAK
case 124:
YY_RULE_SETUP
#line 339 "ldlex.l"
{ RTOKEN(PHDRS); }
YY_BREAK
case 125:
YY_RULE_SETUP
#line 340 "ldlex.l"
{ RTOKEN(AT);}
YY_BREAK
case 126:
YY_RULE_SETUP
#line 341 "ldlex.l"
{ RTOKEN(ALIGN_WITH_INPUT);}
YY_BREAK
case 127:
YY_RULE_SETUP
#line 342 "ldlex.l"
{ RTOKEN(SUBALIGN);}
YY_BREAK
case 128:
YY_RULE_SETUP
#line 343 "ldlex.l"
{ RTOKEN(HIDDEN); }
YY_BREAK
case 129:
YY_RULE_SETUP
#line 344 "ldlex.l"
{ RTOKEN(PROVIDE); }
YY_BREAK
case 130:
YY_RULE_SETUP
#line 345 "ldlex.l"
{ RTOKEN(PROVIDE_HIDDEN); }
YY_BREAK
case 131:
YY_RULE_SETUP
#line 346 "ldlex.l"
{ RTOKEN(KEEP); }
YY_BREAK
case 132:
YY_RULE_SETUP
#line 347 "ldlex.l"
{ RTOKEN(EXCLUDE_FILE); }
YY_BREAK
case 133:
YY_RULE_SETUP
#line 348 "ldlex.l"
{ RTOKEN(CONSTANT);}
YY_BREAK
case 134:
/* rule 134 can match eol */
YY_RULE_SETUP
#line 350 "ldlex.l"
{ ++ lineno; }
YY_BREAK
case 135:
/* rule 135 can match eol */
YY_RULE_SETUP
#line 351 "ldlex.l"
{ ++ lineno; RTOKEN(NEWLINE); }
YY_BREAK
case 136:
YY_RULE_SETUP
#line 352 "ldlex.l"
{ /* Mri comment line */ }
YY_BREAK
case 137:
YY_RULE_SETUP
#line 353 "ldlex.l"
{ /* Mri comment line */ }
YY_BREAK
case 138:
YY_RULE_SETUP
#line 354 "ldlex.l"
{ RTOKEN(ENDWORD); }
YY_BREAK
case 139:
YY_RULE_SETUP
#line 355 "ldlex.l"
{ RTOKEN(ABSOLUTE); }
YY_BREAK
case 140:
YY_RULE_SETUP
#line 356 "ldlex.l"
{ RTOKEN(ALIGNMOD);}
YY_BREAK
case 141:
YY_RULE_SETUP
#line 357 "ldlex.l"
{ RTOKEN(ALIGN_K);}
YY_BREAK
case 142:
YY_RULE_SETUP
#line 358 "ldlex.l"
{ RTOKEN(CHIP); }
YY_BREAK
case 143:
YY_RULE_SETUP
#line 359 "ldlex.l"
{ RTOKEN(BASE); }
YY_BREAK
case 144:
YY_RULE_SETUP
#line 360 "ldlex.l"
{ RTOKEN(ALIAS); }
YY_BREAK
case 145:
YY_RULE_SETUP
#line 361 "ldlex.l"
{ RTOKEN(TRUNCATE); }
YY_BREAK
case 146:
YY_RULE_SETUP
#line 362 "ldlex.l"
{ RTOKEN(LOAD); }
YY_BREAK
case 147:
YY_RULE_SETUP
#line 363 "ldlex.l"
{ RTOKEN(PUBLIC); }
YY_BREAK
case 148:
YY_RULE_SETUP
#line 364 "ldlex.l"
{ RTOKEN(ORDER); }
YY_BREAK
case 149:
YY_RULE_SETUP
#line 365 "ldlex.l"
{ RTOKEN(NAMEWORD); }
YY_BREAK
case 150:
YY_RULE_SETUP
#line 366 "ldlex.l"
{ RTOKEN(FORMAT); }
YY_BREAK
case 151:
YY_RULE_SETUP
#line 367 "ldlex.l"
{ RTOKEN(CASE); }
YY_BREAK
case 152:
YY_RULE_SETUP
#line 368 "ldlex.l"
{ RTOKEN(START); }
YY_BREAK
case 153:
YY_RULE_SETUP
#line 369 "ldlex.l"
{ RTOKEN(LIST); /* LIST and ignore to end of line */ }
YY_BREAK
case 154:
YY_RULE_SETUP
#line 370 "ldlex.l"
{ RTOKEN(SECT); }
YY_BREAK
case 155:
YY_RULE_SETUP
#line 371 "ldlex.l"
{ RTOKEN(ENDWORD); }
YY_BREAK
case 156:
YY_RULE_SETUP
#line 372 "ldlex.l"
{ RTOKEN(ABSOLUTE); }
YY_BREAK
case 157:
YY_RULE_SETUP
#line 373 "ldlex.l"
{ RTOKEN(ALIGNMOD);}
YY_BREAK
case 158:
YY_RULE_SETUP
#line 374 "ldlex.l"
{ RTOKEN(ALIGN_K);}
YY_BREAK
case 159:
YY_RULE_SETUP
#line 375 "ldlex.l"
{ RTOKEN(CHIP); }
YY_BREAK
case 160:
YY_RULE_SETUP
#line 376 "ldlex.l"
{ RTOKEN(BASE); }
YY_BREAK
case 161:
YY_RULE_SETUP
#line 377 "ldlex.l"
{ RTOKEN(ALIAS); }
YY_BREAK
case 162:
YY_RULE_SETUP
#line 378 "ldlex.l"
{ RTOKEN(TRUNCATE); }
YY_BREAK
case 163:
YY_RULE_SETUP
#line 379 "ldlex.l"
{ RTOKEN(LOAD); }
YY_BREAK
case 164:
YY_RULE_SETUP
#line 380 "ldlex.l"
{ RTOKEN(PUBLIC); }
YY_BREAK
case 165:
YY_RULE_SETUP
#line 381 "ldlex.l"
{ RTOKEN(ORDER); }
YY_BREAK
case 166:
YY_RULE_SETUP
#line 382 "ldlex.l"
{ RTOKEN(NAMEWORD); }
YY_BREAK
case 167:
YY_RULE_SETUP
#line 383 "ldlex.l"
{ RTOKEN(FORMAT); }
YY_BREAK
case 168:
YY_RULE_SETUP
#line 384 "ldlex.l"
{ RTOKEN(CASE); }
YY_BREAK
case 169:
YY_RULE_SETUP
#line 385 "ldlex.l"
{ RTOKEN(EXTERN); }
YY_BREAK
case 170:
YY_RULE_SETUP
#line 386 "ldlex.l"
{ RTOKEN(START); }
YY_BREAK
case 171:
YY_RULE_SETUP
#line 387 "ldlex.l"
{ RTOKEN(LIST); /* LIST and ignore to end of line */ }
YY_BREAK
case 172:
YY_RULE_SETUP
#line 388 "ldlex.l"
{ RTOKEN(SECT); }
YY_BREAK
case 173:
YY_RULE_SETUP
#line 390 "ldlex.l"
{
/* Filename without commas, needed to parse mri stuff */
yylval.name = xstrdup (yytext);
return NAME;
}
YY_BREAK
case 174:
YY_RULE_SETUP
#line 397 "ldlex.l"
{
yylval.name = xstrdup (yytext);
return NAME;
}
YY_BREAK
case 175:
YY_RULE_SETUP
#line 401 "ldlex.l"
{
/* Filename to be prefixed by --sysroot or when non-sysrooted, nothing. */
yylval.name = xstrdup (yytext);
return NAME;
}
YY_BREAK
case 176:
YY_RULE_SETUP
#line 406 "ldlex.l"
{
yylval.name = xstrdup (yytext + 2);
return LNAME;
}
YY_BREAK
case 177:
YY_RULE_SETUP
#line 410 "ldlex.l"
{
yylval.name = xstrdup (yytext);
return NAME;
}
YY_BREAK
/* The following rule is to prevent a fill expression on the output
section before /DISCARD/ interpreting the '/' as a divide. */
case 178:
YY_RULE_SETUP
#line 416 "ldlex.l"
{
yylval.name = xstrdup (yytext);
return NAME;
}
YY_BREAK
case 179:
YY_RULE_SETUP
#line 420 "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 = xstrdup (yytext);
return NAME;
}
}
YY_BREAK
case 180:
/* rule 180 can match eol */
YY_RULE_SETUP
#line 437 "ldlex.l"
{
/* No matter the state, quotes give what's inside. */
yylval.name = xmemdup (yytext + 1, yyleng - 2, yyleng - 1);
return NAME;
}
YY_BREAK
case 181:
/* rule 181 can match eol */
YY_RULE_SETUP
#line 443 "ldlex.l"
{
lineno++; }
YY_BREAK
case 182:
YY_RULE_SETUP
#line 445 "ldlex.l"
{
/* Eat up whitespace */ }
YY_BREAK
case 183:
YY_RULE_SETUP
#line 447 "ldlex.l"
{
/* Eat up comments */ }
YY_BREAK
case 184:
YY_RULE_SETUP
#line 450 "ldlex.l"
{ return *yytext; }
YY_BREAK
case 185:
YY_RULE_SETUP
#line 452 "ldlex.l"
{ RTOKEN(GLOBAL); }
YY_BREAK
case 186:
YY_RULE_SETUP
#line 454 "ldlex.l"
{ RTOKEN(LOCAL); }
YY_BREAK
case 187:
YY_RULE_SETUP
#line 456 "ldlex.l"
{ RTOKEN(EXTERN); }
YY_BREAK
case 188:
YY_RULE_SETUP
#line 458 "ldlex.l"
{ yylval.name = xstrdup (yytext);
return VERS_IDENTIFIER; }
YY_BREAK
case 189:
YY_RULE_SETUP
#line 461 "ldlex.l"
{ yylval.name = xstrdup (yytext);
return VERS_TAG; }
YY_BREAK
case 190:
YY_RULE_SETUP
#line 464 "ldlex.l"
{ BEGIN(VERS_SCRIPT); return *yytext; }
YY_BREAK
case 191:
YY_RULE_SETUP
#line 466 "ldlex.l"
{ BEGIN(VERS_NODE);
vers_node_nesting = 0;
return *yytext;
}
YY_BREAK
case 192:
YY_RULE_SETUP
#line 470 "ldlex.l"
{ return *yytext; }
YY_BREAK
case 193:
YY_RULE_SETUP
#line 471 "ldlex.l"
{ vers_node_nesting++; return *yytext; }
YY_BREAK
case 194:
YY_RULE_SETUP
#line 472 "ldlex.l"
{ if (--vers_node_nesting < 0)
BEGIN(VERS_SCRIPT);
return *yytext;
}
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(SCRIPT):
case YY_STATE_EOF(INPUTLIST):
case YY_STATE_EOF(EXPRESSION):
case YY_STATE_EOF(MRI):
case YY_STATE_EOF(WILD):
case YY_STATE_EOF(VERS_START):
case YY_STATE_EOF(VERS_SCRIPT):
case YY_STATE_EOF(VERS_NODE):
#line 477 "ldlex.l"
{
include_stack_ptr--;
if (include_stack_ptr == 0)
{
lineno = 0;
yyterminate ();
}
else
yy_switch_to_buffer (include_stack[include_stack_ptr]);
lineno = lineno_stack[include_stack_ptr];
input_flags.sysrooted = sysrooted_stack[include_stack_ptr];
return END;
}
YY_BREAK
case 195:
YY_RULE_SETUP
#line 493 "ldlex.l"
lex_warn_invalid (_(" in script"), yytext);
YY_BREAK
case 196:
YY_RULE_SETUP
#line 494 "ldlex.l"
lex_warn_invalid (_(" in expression"), yytext);
YY_BREAK
case 197:
YY_RULE_SETUP
#line 496 "ldlex.l"
ECHO;
YY_BREAK
#line 2879 "ldlex.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_LVALUE->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_LVALUE->yy_n_chars;
YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
YY_CURRENT_BUFFER_LVALUE->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_LVALUE->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_LVALUE->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 user's declarations */
} /* 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 (void)
{
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
char *source = (yytext_ptr);
int number_to_move, i;
int ret_val;
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
if ( YY_CURRENT_BUFFER_LVALUE->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_LVALUE->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_LVALUE->yy_n_chars = (yy_n_chars) = 0;
else
{
int num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
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. */
yyrealloc( (void *) b->yy_ch_buf,
(yy_size_t) (b->yy_buf_size + 2) );
}
else
/* Can't grow it, we don't own it. */
b->yy_ch_buf = NULL;
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_LVALUE->yy_buf_size -
number_to_move - 1;
}
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
/* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
(yy_n_chars), num_to_read );
YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_buffer_status =
YY_BUFFER_EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
/* "- 2" to take care of EOB's */
YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
}
(yy_n_chars) += number_to_move;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->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 (void)
{
yy_state_type yy_current_state;
char *yy_cp;
yy_current_state = (yy_start);
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
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 >= 1223 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + 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 );
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
int yy_is_jam;
char *yy_cp = (yy_c_buf_p);
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 >= 1223 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
yy_is_jam = (yy_current_state == 1222);
return yy_is_jam ? 0 : yy_current_state;
}
#ifndef YY_NO_UNPUT
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
#else
static int input (void)
#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_LVALUE->yy_ch_buf[(yy_n_chars)] )
/* This was really a NUL. */
*(yy_c_buf_p) = '\0';
else
{ /* need more input */
int offset = (int) ((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 );
/*FALLTHROUGH*/
case EOB_ACT_END_OF_FILE:
{
if ( yywrap( ) )
return 0;
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;
}
#endif /* ifndef YY_NO_INPUT */
/** Immediately switch to a different input stream.
* @param input_file A readable stream.
*
* @note This function does not reset the start condition to @c INITIAL .
*/
void yyrestart (FILE * input_file )
{
if ( ! YY_CURRENT_BUFFER ){
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
yy_create_buffer( yyin, YY_BUF_SIZE );
}
yy_init_buffer( YY_CURRENT_BUFFER, input_file );
yy_load_buffer_state( );
}
/** Switch to a different input buffer.
* @param new_buffer The new input buffer.
*
*/
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
{
/* TODO. We should be able to replace this entire function body
* with
* yypop_buffer_state();
* yypush_buffer_state(new_buffer);
*/
yyensure_buffer_stack ();
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_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
YY_CURRENT_BUFFER_LVALUE = 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;
}
static void yy_load_buffer_state (void)
{
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
(yy_hold_char) = *(yy_c_buf_p);
}
/** Allocate and initialize an input buffer state.
* @param file A readable stream.
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
*
* @return the allocated buffer state.
*/
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yyalloc( 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 *) yyalloc( (yy_size_t) (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;
}
/** Destroy the buffer.
* @param b a buffer created with yy_create_buffer()
*
*/
void yy_delete_buffer (YY_BUFFER_STATE b )
{
if ( ! b )
return;
if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
yyfree( (void *) b->yy_ch_buf );
yyfree( (void *) b );
}
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a yyrestart() or at EOF.
*/
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
{
int oerrno = errno;
yy_flush_buffer( b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
/* If b is the current buffer, then yy_init_buffer was _probably_
* called from yyrestart() or through yy_get_next_buffer.
* In that case, we don't want to reset the lineno or column.
*/
if (b != YY_CURRENT_BUFFER){
b->yy_bs_lineno = 1;
b->yy_bs_column = 0;
}
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
errno = oerrno;
}
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
*
*/
void yy_flush_buffer (YY_BUFFER_STATE b )
{
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( );
}
/** Pushes the new state onto the stack. The new state becomes
* the current state. This function will allocate the stack
* if necessary.
* @param new_buffer The new state.
*
*/
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
{
if (new_buffer == NULL)
return;
yyensure_buffer_stack();
/* This block is copied from yy_switch_to_buffer. */
if ( YY_CURRENT_BUFFER )
{
/* Flush out information for old buffer. */
*(yy_c_buf_p) = (yy_hold_char);
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
/* Only push if top exists. Otherwise, replace top. */
if (YY_CURRENT_BUFFER)
(yy_buffer_stack_top)++;
YY_CURRENT_BUFFER_LVALUE = new_buffer;
/* copied from yy_switch_to_buffer. */
yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
/** Removes and deletes the top of the stack, if present.
* The next element becomes the new top.
*
*/
void yypop_buffer_state (void)
{
if (!YY_CURRENT_BUFFER)
return;
yy_delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
if ((yy_buffer_stack_top) > 0)
--(yy_buffer_stack_top);
if (YY_CURRENT_BUFFER) {
yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
}
/* Allocates the stack if it does not exist.
* Guarantees space for at least one push.
*/
static void yyensure_buffer_stack (void)
{
yy_size_t num_to_alloc;
if (!(yy_buffer_stack)) {
/* First allocation is just for 2 elements, since we don't know if this
* scanner will even need a stack. We use 2 instead of 1 to avoid an
* immediate realloc on the next call.
*/
num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
(yy_buffer_stack_top) = 0;
return;
}
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
/* Increase the buffer to prepare for a possible push. */
yy_size_t grow_size = 8 /* arbitrary grow size */;
num_to_alloc = (yy_buffer_stack_max) + grow_size;
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
((yy_buffer_stack),
num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
/* zero only the new slots.*/
memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
}
}
/** Setup the input buffer state to scan directly from a user-specified character buffer.
* @param base the character buffer
* @param size the size in bytes of the character buffer
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
{
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 NULL;
b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
b->yy_buf_size = (int) (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 = NULL;
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;
}
/** Setup the input buffer state to scan a string. The next call to yylex() will
* scan from a @e copy of @a str.
* @param yystr a NUL-terminated string to scan
*
* @return the newly allocated buffer state object.
* @note If you want to scan bytes that may contain NUL values, then use
* yy_scan_bytes() instead.
*/
YY_BUFFER_STATE yy_scan_string (const char * yystr )
{
return yy_scan_bytes( yystr, (int) strlen(yystr) );
}
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
* scan from a @e copy of @a bytes.
* @param yybytes the byte buffer to scan
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
int i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = (yy_size_t) (_yybytes_len + 2);
buf = (char *) yyalloc( n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
for ( i = 0; i < _yybytes_len; ++i )
buf[i] = yybytes[i];
buf[_yybytes_len] = buf[_yybytes_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;
}
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
static void yynoreturn yy_fatal_error (const char* msg )
{
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. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
/* Accessor methods (get/set functions) to struct members. */
/** Get the current line number.
*
*/
int yyget_lineno (void)
{
return yylineno;
}
/** Get the input stream.
*
*/
FILE *yyget_in (void)
{
return yyin;
}
/** Get the output stream.
*
*/
FILE *yyget_out (void)
{
return yyout;
}
/** Get the length of the current token.
*
*/
int yyget_leng (void)
{
return yyleng;
}
/** Get the current token.
*
*/
char *yyget_text (void)
{
return yytext;
}
/** Set the current line number.
* @param _line_number line number
*
*/
void yyset_lineno (int _line_number )
{
yylineno = _line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
* @param _in_str A readable stream.
*
* @see yy_switch_to_buffer
*/
void yyset_in (FILE * _in_str )
{
yyin = _in_str ;
}
void yyset_out (FILE * _out_str )
{
yyout = _out_str ;
}
int yyget_debug (void)
{
return yy_flex_debug;
}
void yyset_debug (int _bdebug )
{
yy_flex_debug = _bdebug ;
}
static int yy_init_globals (void)
{
/* Initialization is the same as for the non-reentrant scanner.
* This function is called from yylex_destroy(), so don't allocate here.
*/
(yy_buffer_stack) = NULL;
(yy_buffer_stack_top) = 0;
(yy_buffer_stack_max) = 0;
(yy_c_buf_p) = NULL;
(yy_init) = 0;
(yy_start) = 0;
/* Defined in main.c */
#ifdef YY_STDINIT
yyin = stdin;
yyout = stdout;
#else
yyin = NULL;
yyout = NULL;
#endif
/* For future reference: Set errno on error, since we are called by
* yylex_init()
*/
return 0;
}
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
int yylex_destroy (void)
{
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
yy_delete_buffer( YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
yypop_buffer_state();
}
/* Destroy the stack itself. */
yyfree((yy_buffer_stack) );
(yy_buffer_stack) = NULL;
/* Reset the globals. This is important in a non-reentrant scanner so the next time
* yylex() is called, initialization will occur. */
yy_init_globals( );
return 0;
}
/*
* Internal utility routines.
*/
#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, const char * s2, int n )
{
int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (const char * s )
{
int n;
for ( n = 0; s[n]; ++n )
;
return n;
}
#endif
void *yyalloc (yy_size_t size )
{
return malloc(size);
}
void *yyrealloc (void * ptr, yy_size_t size )
{
/* 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 realloc(ptr, size);
}
void yyfree (void * ptr )
{
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"
#line 496 "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 *file, const char *name, unsigned int sysrooted)
{
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] = lineno;
sysrooted_stack[include_stack_ptr] = input_flags.sysrooted;
include_stack[include_stack_ptr] = YY_CURRENT_BUFFER;
include_stack_ptr++;
lineno = 1;
input_flags.sysrooted = sysrooted;
yyin = file;
yy_switch_to_buffer (yy_create_buffer (yyin, YY_BUF_SIZE));
}
/* Return a newly created flex input buffer containing STRING,
which is SIZE bytes long. */
static YY_BUFFER_STATE
yy_create_string_buffer (const char *string, size_t size)
{
YY_BUFFER_STATE b;
b = xmalloc (sizeof (struct yy_buffer_state));
b->yy_input_file = 0;
b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
we need to put in 2 end-of-buffer characters. */
b->yy_ch_buf = xmalloc ((size_t) 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];
b->yy_is_our_buffer = 1;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
/* 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 (const char *string, const char *fake_filename, unsigned int count)
{
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] = fake_filename;
lineno_stack[include_stack_ptr] = lineno;
include_stack[include_stack_ptr] = YY_CURRENT_BUFFER;
include_stack_ptr++;
lineno = count;
tmp = yy_create_string_buffer (string, strlen (string));
yy_switch_to_buffer (tmp);
}
/* 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 (void)
{
*(state_stack_p)++ = yy_start;
BEGIN (SCRIPT);
}
void
ldlex_inputlist (void)
{
*(state_stack_p)++ = yy_start;
BEGIN (INPUTLIST);
}
void
ldlex_mri_script (void)
{
*(state_stack_p)++ = yy_start;
BEGIN (MRI);
}
void
ldlex_version_script (void)
{
*(state_stack_p)++ = yy_start;
BEGIN (VERS_START);
}
void
ldlex_version_file (void)
{
*(state_stack_p)++ = yy_start;
BEGIN (VERS_SCRIPT);
}
void
ldlex_expression (void)
{
*(state_stack_p)++ = yy_start;
BEGIN (EXPRESSION);
}
void
ldlex_wild (void)
{
*(state_stack_p)++ = yy_start;
BEGIN (WILD);
}
void
ldlex_popstate (void)
{
yy_start = *(--state_stack_p);
}
/* In cases where the parser needs to look ahead and the context
changes from expression to script or vice-versa, throw away a
NAME. What constitutes a NAME depends on context. */
void
ldlex_backup (void)
{
yyless (0);
}
/* Return the current file name, or the previous file if no file is
current. */
const char*
ldlex_filename (void)
{
return file_name_stack[include_stack_ptr - (include_stack_ptr != 0)];
}
/* Place up to MAX_SIZE characters in BUF and return
either the number of characters read, or 0 to indicate EOF. */
static int
yy_input (char *buf, int max_size)
{
int result = 0;
if (YY_CURRENT_BUFFER->yy_input_file)
{
if (yyin)
{
result = fread (buf, 1, max_size, yyin);
if (result < max_size && ferror (yyin))
einfo (_("%F%P: read in flex scanner failed\n"));
}
}
return result;
}
/* Eat the rest of a C-style comment. */
static void
comment (void)
{
int c;
while (1)
{
c = input();
while (c != '*' && c != 0)
{
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 == 0)
{
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 (char *where, char *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"), ldlex_filename ());
}
if (! ISPRINT (*what))
{
sprintf (buf, "\\%03o", *(unsigned char *) what);
what = buf;
}
einfo (_("%P:%pS: ignoring invalid character `%s'%s\n"), NULL, what, where);
}