You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sip4-tqt/sipgen/lexer.c

3500 lines
106 KiB

#line 3 "<stdout>"
#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 5
#define YY_FLEX_SUBMINOR_VERSION 35
#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
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
#ifdef __cplusplus
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#else /* ! __cplusplus */
/* C99 requires __STDC__ to be defined as 1. */
#if defined (__STDC__)
#define YY_USE_CONST
#endif /* defined (__STDC__) */
#endif /* ! __cplusplus */
#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
/* Promotes a possibly negative, possibly signed char to an unsigned
* integer for use as an array index. If the signed char is negative,
* we want to instead treat it as an 8-bit unsigned char, hence the
* double cast.
*/
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
/* Enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN.
*/
#define BEGIN (yy_start) = 1 + 2 *
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state. The YYSTATE alias is for lex
* compatibility.
*/
#define YY_START (((yy_start) - 1) / 2)
#define YYSTATE YY_START
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart(yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#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
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)
/* 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_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
#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.
*/
yy_size_t yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
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 = 0; /**< 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 = (char *) 0;
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 (yyconst char *yy_str );
YY_BUFFER_STATE yy_scan_bytes (yyconst 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 */
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern int yylineno;
int yylineno = 1;
extern char *yytext;
#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 yy_fatal_error (yyconst char msg[] );
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
yyleng = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 125
#define YY_END_OF_BUFFER 126
/* 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 yyconst flex_int16_t yy_accept[859] =
{ 0,
0, 0, 0, 0, 0, 0, 126, 124, 74, 75,
124, 124, 124, 78, 124, 77, 77, 124, 80, 80,
80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
80, 80, 80, 80, 80, 80, 80, 124, 74, 124,
123, 122, 123, 87, 85, 87, 0, 82, 0, 83,
78, 77, 0, 81, 78, 81, 81, 78, 84, 76,
78, 0, 56, 80, 80, 80, 80, 80, 80, 80,
80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
80, 80, 80, 80, 57, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 86, 78, 0, 73, 0,
0, 78, 76, 79, 80, 80, 80, 80, 80, 80,
80, 80, 80, 80, 80, 80, 36, 80, 80, 80,
80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
80, 80, 80, 80, 80, 80, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 17, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 78, 49, 80, 80, 80,
34, 32, 80, 80, 80, 42, 80, 80, 80, 37,
80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
80, 80, 47, 80, 80, 80, 40, 80, 0, 0,
0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 115, 20, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
121, 80, 80, 80, 80, 80, 80, 80, 21, 45,
80, 80, 48, 38, 80, 80, 80, 80, 80, 35,
80, 80, 29, 80, 80, 80, 53, 80, 80, 80,
80, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
80, 31, 80, 80, 80, 80, 80, 80, 39, 80,
80, 80, 80, 80, 23, 80, 43, 46, 22, 80,
80, 80, 80, 80, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 80, 30, 80, 80, 80, 80, 80,
80, 80, 80, 80, 80, 80, 80, 80, 80, 25,
80, 26, 80, 50, 80, 41, 33, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 6, 0,
0, 0, 0, 0, 0, 7, 0, 0, 0, 3,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
28, 80, 80, 80, 80, 80, 80, 80, 80, 80,
80, 80, 66, 54, 80, 52, 80, 55, 44, 7,
0, 0, 0, 0, 0, 0, 0, 8, 0, 0,
0, 88, 0, 0, 0, 0, 13, 0, 0, 119,
4, 0, 14, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 120, 0, 0, 0, 0,
0, 27, 80, 80, 80, 80, 80, 80, 80, 80,
80, 80, 80, 80, 51, 24, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 117, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 11, 100,
0, 98, 0, 80, 80, 61, 60, 80, 80, 80,
64, 80, 80, 65, 80, 80, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
114, 16, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 12, 0, 0, 0, 113, 0, 0,
67, 80, 80, 63, 59, 72, 80, 80, 80, 80,
118, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
15, 101, 99, 0, 0, 111, 0, 0, 0, 0,
0, 80, 58, 80, 80, 70, 71, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 116, 0, 104, 0, 0, 0, 0, 0, 0,
0, 0, 0, 80, 68, 69, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
62, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 112, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
103, 0, 0, 0, 0, 0, 94, 0, 105, 0,
0, 0, 0, 0, 10, 0, 0, 0, 0, 2,
18, 0, 0, 0, 0, 5, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 19, 0,
0, 93, 0, 0, 0, 0, 0, 109, 0, 0,
0, 0, 0, 90, 0, 0, 0, 0, 0, 0,
0, 0, 0, 9, 0, 0, 92, 96, 0, 0,
102, 110, 107, 0, 106, 89, 0, 0, 0, 108,
0, 0, 0, 91, 0, 95, 97, 0
} ;
static yyconst flex_int32_t yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 1, 5, 1, 1, 6, 1, 7, 1,
1, 8, 9, 1, 10, 11, 12, 13, 14, 14,
14, 14, 14, 14, 14, 14, 14, 15, 1, 1,
1, 1, 1, 1, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 26,
1, 1, 1, 1, 41, 1, 42, 43, 44, 45,
46, 47, 48, 49, 50, 26, 51, 52, 53, 54,
55, 56, 26, 57, 58, 59, 60, 61, 62, 63,
64, 26, 1, 65, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
static yyconst flex_int32_t yy_meta[66] =
{ 0,
1, 1, 2, 1, 1, 1, 1, 1, 1, 3,
3, 3, 4, 4, 1, 4, 4, 4, 4, 4,
4, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 4, 4, 4, 4, 4, 4, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 1
} ;
static yyconst flex_int16_t yy_base[867] =
{ 0,
0, 64, 1770, 65, 64, 66, 1772, 1774, 1774, 1774,
70, 73, 68, 73, 80, 84, 88, 1756, 79, 96,
100, 103, 106, 111, 114, 118, 126, 132, 138, 141,
144, 147, 163, 177, 184, 180, 187, 1705, 94, 226,
1774, 1774, 1749, 1774, 1774, 1756, 159, 1774, 164, 1774,
219, 256, 167, 191, 261, 170, 196, 204, 1774, 0,
1774, 0, 1774, 207, 268, 217, 273, 276, 279, 282,
286, 289, 299, 302, 305, 308, 315, 318, 322, 325,
331, 334, 340, 343, 350, 354, 357, 368, 372, 377,
382, 387, 391, 396, 1774, 218, 430, 102, 1743, 49,
130, 195, 1720, 218, 362, 1715, 358, 1708, 362, 1721,
1716, 120, 1707, 1710, 1705, 1774, 409, 425, 408, 126,
414, 454, 0, 0, 459, 466, 462, 469, 472, 477,
484, 487, 494, 497, 500, 503, 506, 512, 515, 521,
526, 529, 540, 543, 552, 555, 558, 561, 564, 569,
572, 579, 583, 586, 591, 597, 1727, 197, 1711, 284,
389, 213, 1704, 1705, 1730, 1709, 112, 1697, 490, 1704,
1706, 1704, 329, 1706, 287, 1688, 1774, 1690, 326, 1701,
396, 1685, 1698, 1683, 1697, 460, 1682, 1693, 1688, 1678,
1683, 1679, 1684, 1676, 1687, 591, 616, 619, 632, 636,
639, 643, 646, 649, 653, 661, 664, 667, 670, 673,
676, 679, 682, 685, 688, 691, 699, 705, 708, 715,
725, 732, 736, 741, 744, 750, 754, 757, 409, 1687,
1686, 1673, 1683, 1774, 1681, 1680, 1679, 1679, 1667, 498,
1658, 1679, 1662, 1774, 1673, 1663, 1658, 1664, 1658, 1696,
1658, 1660, 1652, 1664, 1663, 1652, 1658, 1646, 1655, 1653,
1644, 1654, 1642, 461, 1642, 1681, 1652, 1651, 1637, 1636,
1774, 760, 763, 768, 771, 789, 792, 796, 805, 814,
817, 822, 825, 828, 831, 834, 837, 840, 844, 847,
850, 858, 861, 864, 867, 870, 879, 887, 894, 899,
903, 1636, 1633, 1634, 1632, 1638, 1629, 1633, 1632, 1640,
1635, 1624, 1624, 1626, 1624, 1620, 1633, 1636, 1622, 1619,
1615, 1624, 1619, 1625, 1625, 1615, 1617, 1613, 1615, 1619,
1615, 1640, 1609, 1598, 1615, 1605, 1607, 592, 1640, 1597,
906, 909, 913, 920, 917, 946, 949, 952, 925, 955,
958, 962, 967, 973, 976, 979, 982, 985, 991, 996,
999, 1004, 1008, 1011, 1604, 1597, 1007, 1608, 1601, 1594,
1599, 1593, 1595, 1596, 1590, 1587, 1586, 1587, 1601, 1581,
1596, 1581, 1594, 1596, 1579, 1586, 1590, 1589, 1587, 1578,
1585, 1575, 1575, 1574, 1577, 1567, 1607, 1579, 1573, 1567,
1575, 1565, 1577, 1016, 1019, 1023, 1037, 1051, 1054, 1057,
1061, 1069, 1072, 1075, 1079, 1083, 1088, 1091, 1100, 1103,
1109, 1112, 1115, 1118, 1121, 1126, 1129, 1572, 1599, 1556,
1566, 1568, 1567, 1555, 1569, 1564, 1559, 1558, 1548, 1558,
1546, 1554, 1553, 1556, 1555, 1543, 1553, 1552, 1774, 1551,
1544, 1549, 1542, 1558, 1574, 593, 1549, 1572, 1532, 1774,
1538, 1528, 1537, 1530, 1538, 1529, 1537, 1539, 1535, 1527,
1133, 1138, 1141, 1152, 1148, 1161, 1164, 1167, 1173, 1179,
1182, 1185, 1198, 1201, 1204, 1207, 1210, 1213, 1216, 1774,
1523, 1530, 1534, 1533, 1526, 1523, 1514, 1774, 1512, 1525,
513, 1774, 756, 1515, 1513, 1522, 1774, 1548, 1508, 1774,
1774, 1514, 1774, 1517, 1498, 1506, 1505, 1513, 1506, 1502,
1503, 1496, 1504, 1498, 1507, 1774, 1505, 1504, 1504, 1502,
1529, 1219, 1222, 1226, 1230, 1233, 1236, 1248, 1251, 1259,
1262, 1265, 1271, 1274, 1277, 1284, 1501, 1498, 1487, 1498,
1524, 1482, 1494, 1493, 1496, 1480, 1481, 1481, 1488, 1473,
1484, 1477, 253, 1475, 1471, 1470, 1774, 1471, 1481, 1480,
1482, 1499, 1477, 1463, 1470, 1477, 1464, 1471, 1774, 1774,
1470, 1774, 1473, 1289, 1292, 1299, 1302, 1305, 1308, 1315,
1319, 1322, 1326, 1329, 1336, 1339, 1468, 1467, 1495, 1494,
1455, 1463, 1491, 1479, 1447, 1450, 551, 1460, 1444, 1446,
1774, 1774, 1446, 1454, 1454, 1452, 1455, 1450, 1449, 1448,
1448, 1438, 1445, 1774, 1448, 1437, 1470, 1774, 1430, 1427,
1342, 1348, 1357, 1360, 1363, 1366, 1369, 1372, 1375, 1378,
1774, 1428, 1424, 1423, 1422, 1464, 1420, 1424, 1432, 1424,
1416, 1411, 1419, 1431, 1426, 1427, 1428, 1423, 1450, 1408,
1774, 1774, 1774, 1420, 1421, 1774, 1410, 1386, 1379, 1405,
1378, 1383, 1390, 1395, 1403, 1406, 1409, 1393, 1362, 1361,
1349, 1338, 1350, 1346, 1319, 1327, 1318, 1300, 1310, 1284,
1285, 1774, 1277, 1774, 1266, 1257, 1248, 1245, 1241, 1232,
1222, 1209, 1208, 1415, 1418, 1421, 1199, 1204, 1202, 1176,
1159, 1158, 1143, 1174, 1136, 1169, 1135, 1130, 1105, 1097,
1108, 1101, 1087, 1116, 1057, 1058, 1065, 1060, 1059, 1050,
1428, 1032, 1030, 1013, 1040, 1009, 1008, 1000, 996, 988,
990, 1021, 984, 980, 948, 947, 953, 944, 926, 935,
933, 893, 1774, 905, 892, 900, 888, 885, 885, 861,
844, 854, 850, 848, 850, 831, 837, 837, 811, 847,
1774, 846, 808, 784, 763, 771, 1774, 800, 1774, 795,
794, 764, 748, 778, 1774, 735, 775, 733, 743, 1774,
1774, 741, 730, 702, 703, 1774, 690, 684, 678, 677,
675, 682, 705, 667, 660, 652, 648, 620, 1774, 595,
592, 1774, 580, 580, 587, 578, 577, 1774, 564, 568,
553, 532, 539, 1774, 482, 473, 446, 473, 413, 407,
391, 386, 375, 1774, 344, 301, 1774, 1774, 330, 284,
1774, 1774, 1774, 277, 1774, 1774, 261, 247, 192, 1774,
175, 166, 119, 1774, 57, 1774, 1774, 1774, 1440, 1444,
1448, 1452, 1454, 1456, 1460, 74
} ;
static yyconst flex_int16_t yy_def[867] =
{ 0,
858, 1, 859, 859, 860, 860, 858, 858, 858, 858,
861, 862, 858, 863, 858, 858, 858, 858, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 858, 858, 858,
858, 858, 858, 858, 858, 858, 861, 858, 862, 858,
858, 858, 863, 863, 863, 863, 863, 863, 858, 865,
858, 866, 858, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 863, 858,
863, 863, 865, 866, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 864, 864, 864, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 864, 864, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 864, 864, 864, 864, 864, 864, 864,
864, 864, 864, 864, 864, 864, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 864, 864, 864, 864, 864, 864, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 864, 864, 864, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
864, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 0, 858, 858,
858, 858, 858, 858, 858, 858
} ;
static yyconst flex_int16_t yy_nxt[1840] =
{ 0,
8, 9, 10, 9, 11, 8, 12, 8, 8, 13,
14, 15, 16, 17, 18, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 20, 19,
19, 21, 19, 22, 19, 19, 19, 19, 19, 19,
19, 19, 23, 24, 25, 26, 27, 19, 19, 28,
19, 29, 19, 30, 31, 32, 19, 33, 34, 35,
36, 37, 19, 19, 38, 39, 45, 42, 45, 40,
43, 46, 48, 46, 48, 50, 168, 124, 51, 50,
52, 52, 53, 54, 53, 55, 55, 59, 53, 56,
53, 60, 57, 58, 51, 96, 52, 52, 51, 97,
52, 52, 857, 169, 61, 53, 56, 53, 61, 53,
56, 53, 53, 56, 53, 53, 56, 53, 57, 58,
53, 56, 53, 53, 56, 53, 67, 53, 56, 53,
61, 65, 165, 236, 61, 53, 56, 53, 196, 196,
66, 53, 56, 53, 237, 166, 62, 53, 56, 53,
53, 56, 53, 53, 56, 53, 53, 56, 53, 69,
68, 48, 70, 48, 856, 71, 50, 75, 72, 191,
50, 73, 53, 56, 53, 170, 53, 76, 53, 53,
74, 53, 79, 192, 171, 77, 53, 56, 53, 53,
56, 53, 78, 53, 56, 53, 53, 56, 53, 80,
53, 119, 53, 81, 120, 121, 82, 53, 122, 122,
855, 83, 84, 53, 85, 53, 53, 56, 53, 96,
854, 86, 87, 97, 168, 88, 53, 56, 53, 92,
94, 117, 117, 89, 93, 175, 853, 91, 118, 61,
90, 98, 99, 100, 101, 102, 103, 104, 172, 105,
126, 229, 106, 107, 232, 108, 109, 173, 110, 111,
112, 113, 114, 176, 118, 61, 51, 233, 52, 52,
53, 613, 53, 55, 55, 614, 61, 53, 56, 53,
57, 58, 53, 56, 53, 53, 56, 53, 53, 56,
53, 53, 56, 53, 125, 53, 56, 53, 53, 56,
53, 852, 61, 127, 248, 851, 57, 58, 53, 56,
53, 53, 56, 53, 53, 56, 53, 53, 56, 53,
129, 249, 850, 130, 53, 56, 53, 53, 56, 53,
128, 53, 56, 53, 53, 56, 53, 172, 849, 131,
53, 56, 53, 53, 56, 53, 230, 848, 132, 53,
56, 53, 53, 56, 53, 847, 135, 134, 133, 53,
56, 53, 136, 53, 56, 53, 53, 56, 53, 252,
140, 138, 245, 137, 139, 253, 143, 53, 56, 53,
141, 53, 56, 53, 246, 142, 53, 56, 53, 846,
145, 53, 56, 53, 144, 147, 53, 56, 53, 181,
53, 56, 53, 182, 146, 53, 56, 53, 177, 149,
148, 185, 183, 186, 178, 179, 187, 53, 188, 53,
845, 117, 117, 53, 150, 53, 122, 122, 118, 61,
844, 151, 152, 120, 120, 177, 843, 196, 196, 153,
155, 178, 231, 154, 156, 157, 255, 158, 159, 160,
103, 256, 842, 161, 118, 61, 106, 162, 841, 108,
163, 239, 302, 53, 164, 53, 122, 122, 53, 56,
53, 53, 56, 53, 58, 53, 56, 53, 53, 56,
53, 53, 56, 53, 333, 197, 53, 56, 53, 198,
840, 334, 199, 53, 56, 53, 53, 56, 53, 839,
58, 261, 200, 53, 56, 53, 53, 56, 53, 53,
56, 53, 53, 56, 53, 53, 56, 53, 838, 262,
201, 53, 56, 53, 53, 56, 53, 837, 202, 205,
53, 56, 53, 556, 203, 53, 56, 53, 53, 56,
53, 204, 239, 240, 209, 241, 206, 557, 207, 53,
56, 53, 53, 56, 53, 309, 836, 208, 310, 210,
211, 53, 56, 53, 53, 56, 53, 53, 56, 53,
53, 56, 53, 53, 56, 53, 835, 212, 53, 56,
53, 53, 56, 53, 651, 652, 213, 214, 53, 56,
53, 215, 53, 56, 53, 53, 56, 53, 834, 216,
53, 56, 53, 196, 196, 217, 53, 56, 53, 400,
517, 61, 833, 218, 401, 518, 219, 223, 832, 221,
220, 831, 830, 222, 224, 53, 56, 53, 53, 56,
53, 829, 225, 828, 827, 227, 826, 61, 228, 825,
272, 53, 56, 53, 226, 53, 56, 53, 53, 56,
53, 274, 53, 56, 53, 53, 56, 53, 53, 56,
53, 273, 53, 56, 53, 824, 275, 276, 277, 278,
53, 56, 53, 53, 56, 53, 53, 56, 53, 53,
56, 53, 53, 56, 53, 53, 56, 53, 53, 56,
53, 53, 56, 53, 53, 56, 53, 53, 56, 53,
53, 56, 53, 279, 281, 823, 822, 280, 53, 56,
53, 821, 283, 282, 53, 56, 53, 53, 56, 53,
286, 820, 819, 287, 53, 56, 53, 818, 284, 817,
288, 816, 815, 285, 53, 56, 53, 289, 814, 813,
291, 53, 56, 53, 292, 53, 56, 53, 812, 290,
53, 56, 53, 53, 56, 53, 811, 294, 295, 53,
56, 53, 293, 53, 56, 53, 53, 56, 53, 53,
56, 53, 53, 56, 53, 558, 296, 53, 56, 53,
53, 56, 53, 559, 810, 298, 809, 808, 341, 560,
807, 299, 806, 297, 805, 804, 343, 342, 53, 56,
53, 53, 56, 53, 803, 53, 56, 53, 802, 300,
344, 801, 800, 301, 53, 56, 53, 799, 345, 347,
798, 797, 348, 53, 56, 53, 53, 56, 53, 796,
346, 53, 56, 53, 53, 56, 53, 53, 56, 53,
53, 56, 53, 53, 56, 53, 53, 56, 53, 53,
56, 53, 795, 53, 56, 53, 53, 56, 53, 53,
56, 53, 349, 794, 793, 350, 792, 53, 56, 53,
53, 56, 53, 53, 56, 53, 53, 56, 53, 53,
56, 53, 791, 354, 790, 789, 351, 355, 53, 56,
53, 788, 352, 787, 786, 353, 53, 56, 53, 785,
784, 356, 357, 53, 56, 53, 783, 358, 53, 56,
53, 360, 53, 56, 53, 53, 56, 53, 53, 56,
53, 404, 53, 56, 53, 359, 53, 56, 53, 53,
56, 53, 361, 413, 53, 56, 53, 407, 408, 782,
363, 781, 405, 364, 780, 779, 409, 362, 778, 410,
777, 776, 406, 411, 412, 53, 56, 53, 53, 56,
53, 53, 56, 53, 53, 56, 53, 53, 56, 53,
415, 53, 56, 53, 775, 414, 53, 56, 53, 774,
773, 416, 53, 56, 53, 53, 56, 53, 53, 56,
53, 53, 56, 53, 53, 56, 53, 772, 771, 418,
53, 56, 53, 770, 417, 53, 56, 53, 53, 56,
53, 769, 420, 53, 56, 53, 419, 53, 56, 53,
53, 56, 53, 430, 431, 53, 56, 53, 53, 56,
53, 421, 53, 56, 53, 768, 422, 767, 766, 432,
433, 765, 471, 764, 434, 424, 53, 56, 53, 425,
763, 762, 473, 761, 423, 760, 472, 759, 758, 426,
53, 56, 53, 53, 56, 53, 53, 56, 53, 427,
53, 56, 53, 476, 474, 757, 756, 475, 53, 56,
53, 53, 56, 53, 53, 56, 53, 477, 53, 56,
53, 481, 53, 56, 53, 755, 480, 53, 56, 53,
53, 56, 53, 754, 478, 753, 752, 482, 479, 53,
56, 53, 53, 56, 53, 751, 750, 483, 53, 56,
53, 53, 56, 53, 53, 56, 53, 53, 56, 53,
53, 56, 53, 749, 485, 53, 56, 53, 53, 56,
53, 748, 53, 56, 53, 747, 484, 53, 56, 53,
53, 56, 53, 746, 487, 745, 486, 53, 56, 53,
488, 53, 56, 53, 533, 489, 532, 534, 744, 535,
53, 56, 53, 53, 56, 53, 53, 56, 53, 743,
742, 536, 53, 56, 53, 537, 741, 538, 53, 56,
53, 53, 56, 53, 53, 56, 53, 539, 541, 740,
543, 739, 738, 540, 737, 736, 542, 53, 56, 53,
53, 56, 53, 53, 56, 53, 53, 56, 53, 53,
56, 53, 53, 56, 53, 53, 56, 53, 53, 56,
53, 53, 56, 53, 735, 53, 56, 53, 544, 53,
56, 53, 53, 56, 53, 53, 56, 53, 734, 545,
733, 584, 585, 732, 546, 588, 730, 53, 56, 53,
53, 56, 53, 729, 586, 589, 728, 587, 53, 56,
53, 53, 56, 53, 53, 56, 53, 590, 591, 592,
53, 56, 53, 53, 56, 53, 53, 56, 53, 727,
726, 595, 596, 53, 56, 53, 725, 594, 53, 56,
53, 53, 56, 53, 724, 593, 723, 632, 53, 56,
53, 53, 56, 53, 53, 56, 53, 53, 56, 53,
722, 721, 633, 631, 53, 56, 53, 634, 53, 56,
53, 53, 56, 53, 635, 53, 56, 53, 53, 56,
53, 720, 719, 637, 638, 53, 56, 53, 53, 56,
53, 53, 56, 53, 718, 717, 636, 53, 56, 53,
716, 715, 640, 714, 672, 639, 53, 56, 53, 53,
56, 53, 53, 56, 53, 53, 56, 53, 53, 56,
53, 53, 56, 53, 53, 56, 53, 53, 56, 53,
713, 673, 53, 56, 53, 675, 712, 711, 674, 53,
56, 53, 710, 676, 53, 56, 53, 709, 708, 704,
707, 677, 53, 56, 53, 53, 56, 53, 53, 56,
53, 703, 702, 705, 53, 56, 53, 53, 56, 53,
53, 56, 53, 701, 731, 700, 706, 53, 56, 53,
41, 41, 41, 41, 44, 44, 44, 44, 47, 47,
47, 47, 49, 49, 49, 49, 56, 56, 64, 64,
123, 699, 123, 123, 698, 697, 696, 695, 694, 693,
692, 691, 690, 689, 688, 687, 686, 685, 684, 683,
682, 681, 680, 679, 678, 671, 670, 669, 668, 667,
666, 665, 664, 663, 662, 661, 660, 659, 658, 657,
656, 655, 654, 653, 650, 649, 648, 647, 646, 645,
644, 643, 642, 641, 630, 629, 628, 627, 626, 625,
624, 623, 622, 621, 620, 619, 618, 617, 616, 615,
612, 611, 610, 609, 608, 607, 606, 605, 604, 603,
602, 601, 600, 599, 598, 597, 583, 582, 581, 580,
579, 578, 577, 576, 575, 574, 573, 572, 571, 570,
569, 568, 567, 566, 565, 564, 563, 562, 561, 555,
554, 553, 552, 551, 550, 549, 548, 547, 531, 530,
529, 528, 527, 526, 525, 524, 523, 522, 521, 520,
519, 516, 515, 514, 513, 512, 511, 510, 509, 508,
507, 506, 505, 504, 503, 502, 501, 500, 499, 498,
497, 496, 495, 494, 493, 492, 491, 490, 470, 469,
468, 467, 466, 465, 464, 463, 462, 461, 460, 459,
458, 457, 456, 455, 454, 453, 452, 451, 450, 449,
448, 447, 446, 445, 444, 443, 442, 441, 440, 439,
438, 437, 436, 435, 429, 428, 403, 402, 399, 398,
397, 396, 395, 394, 393, 392, 391, 390, 389, 388,
387, 386, 385, 384, 383, 382, 381, 380, 379, 378,
377, 376, 375, 374, 373, 372, 371, 370, 369, 368,
367, 366, 365, 309, 340, 339, 338, 337, 336, 335,
332, 331, 330, 329, 328, 327, 326, 325, 324, 323,
322, 321, 320, 319, 318, 317, 316, 315, 314, 313,
312, 311, 308, 307, 306, 305, 304, 303, 256, 252,
245, 271, 270, 269, 268, 267, 266, 265, 264, 263,
260, 259, 258, 257, 254, 251, 250, 247, 244, 243,
242, 238, 235, 234, 191, 186, 170, 165, 195, 194,
193, 190, 189, 184, 180, 174, 167, 116, 115, 95,
63, 858, 42, 7, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858
} ;
static yyconst flex_int16_t yy_chk[1840] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 2, 5, 4, 6, 2,
4, 5, 11, 6, 11, 12, 100, 866, 13, 12,
13, 13, 14, 14, 14, 14, 14, 15, 19, 19,
19, 15, 14, 14, 16, 39, 16, 16, 17, 39,
17, 17, 855, 100, 16, 20, 20, 20, 17, 21,
21, 21, 22, 22, 22, 23, 23, 23, 14, 14,
24, 24, 24, 25, 25, 25, 22, 26, 26, 26,
16, 20, 98, 167, 17, 27, 27, 27, 120, 120,
21, 28, 28, 28, 167, 98, 16, 29, 29, 29,
30, 30, 30, 31, 31, 31, 32, 32, 32, 24,
23, 47, 24, 47, 853, 24, 49, 27, 25, 112,
49, 26, 33, 33, 33, 101, 53, 27, 53, 56,
26, 56, 30, 112, 101, 28, 34, 34, 34, 36,
36, 36, 29, 35, 35, 35, 37, 37, 37, 31,
54, 54, 54, 32, 57, 57, 32, 57, 57, 57,
852, 33, 33, 58, 33, 58, 64, 64, 64, 96,
851, 33, 34, 96, 158, 34, 66, 66, 66, 36,
37, 51, 51, 34, 36, 104, 849, 35, 51, 51,
34, 40, 40, 40, 40, 40, 40, 40, 102, 40,
66, 158, 40, 40, 162, 40, 40, 102, 40, 40,
40, 40, 40, 104, 51, 51, 52, 162, 52, 52,
55, 563, 55, 55, 55, 563, 52, 65, 65, 65,
55, 55, 67, 67, 67, 68, 68, 68, 69, 69,
69, 70, 70, 70, 65, 71, 71, 71, 72, 72,
72, 848, 52, 67, 175, 847, 55, 55, 73, 73,
73, 74, 74, 74, 75, 75, 75, 76, 76, 76,
69, 175, 844, 70, 77, 77, 77, 78, 78, 78,
68, 79, 79, 79, 80, 80, 80, 160, 840, 71,
81, 81, 81, 82, 82, 82, 160, 839, 72, 83,
83, 83, 84, 84, 84, 836, 75, 74, 73, 85,
85, 85, 76, 86, 86, 86, 87, 87, 87, 179,
80, 78, 173, 77, 79, 179, 82, 88, 88, 88,
81, 89, 89, 89, 173, 81, 90, 90, 90, 835,
84, 91, 91, 91, 83, 86, 92, 92, 92, 107,
93, 93, 93, 107, 85, 94, 94, 94, 105, 87,
86, 109, 107, 109, 105, 105, 109, 119, 109, 119,
833, 117, 117, 121, 88, 121, 121, 121, 117, 117,
832, 89, 90, 118, 118, 161, 831, 118, 118, 91,
93, 161, 161, 92, 94, 97, 181, 97, 97, 97,
97, 181, 830, 97, 117, 117, 97, 97, 829, 97,
97, 229, 229, 122, 97, 122, 122, 122, 125, 125,
125, 127, 127, 127, 122, 126, 126, 126, 128, 128,
128, 129, 129, 129, 264, 125, 130, 130, 130, 126,
828, 264, 126, 131, 131, 131, 132, 132, 132, 827,
122, 186, 127, 133, 133, 133, 134, 134, 134, 135,
135, 135, 136, 136, 136, 137, 137, 137, 826, 186,
128, 138, 138, 138, 139, 139, 139, 825, 129, 132,
140, 140, 140, 501, 130, 141, 141, 141, 142, 142,
142, 131, 169, 169, 136, 169, 133, 501, 134, 143,
143, 143, 144, 144, 144, 240, 823, 135, 240, 138,
139, 145, 145, 145, 146, 146, 146, 147, 147, 147,
148, 148, 148, 149, 149, 149, 822, 140, 150, 150,
150, 151, 151, 151, 607, 607, 141, 142, 152, 152,
152, 143, 153, 153, 153, 154, 154, 154, 821, 144,
155, 155, 155, 196, 196, 145, 156, 156, 156, 338,
456, 196, 820, 146, 338, 456, 147, 151, 819, 149,
148, 817, 816, 150, 152, 197, 197, 197, 198, 198,
198, 815, 153, 814, 813, 155, 811, 196, 156, 810,
198, 199, 199, 199, 154, 200, 200, 200, 201, 201,
201, 200, 202, 202, 202, 203, 203, 203, 204, 204,
204, 199, 205, 205, 205, 808, 200, 200, 200, 200,
206, 206, 206, 207, 207, 207, 208, 208, 208, 209,
209, 209, 210, 210, 210, 211, 211, 211, 212, 212,
212, 213, 213, 213, 214, 214, 214, 215, 215, 215,
216, 216, 216, 203, 205, 807, 806, 204, 217, 217,
217, 805, 208, 207, 218, 218, 218, 219, 219, 219,
212, 804, 803, 213, 220, 220, 220, 802, 209, 801,
214, 800, 799, 211, 221, 221, 221, 215, 798, 797,
217, 222, 222, 222, 217, 223, 223, 223, 795, 216,
224, 224, 224, 225, 225, 225, 794, 219, 220, 226,
226, 226, 218, 227, 227, 227, 228, 228, 228, 272,
272, 272, 273, 273, 273, 503, 221, 274, 274, 274,
275, 275, 275, 503, 793, 224, 792, 789, 272, 503,
788, 225, 787, 222, 786, 784, 274, 273, 276, 276,
276, 277, 277, 277, 783, 278, 278, 278, 782, 226,
275, 781, 780, 228, 279, 279, 279, 778, 276, 278,
776, 775, 278, 280, 280, 280, 281, 281, 281, 774,
277, 282, 282, 282, 283, 283, 283, 284, 284, 284,
285, 285, 285, 286, 286, 286, 287, 287, 287, 288,
288, 288, 773, 289, 289, 289, 290, 290, 290, 291,
291, 291, 281, 772, 770, 282, 769, 292, 292, 292,
293, 293, 293, 294, 294, 294, 295, 295, 295, 296,
296, 296, 768, 288, 767, 766, 285, 289, 297, 297,
297, 765, 286, 764, 763, 287, 298, 298, 298, 762,
761, 291, 292, 299, 299, 299, 760, 294, 300, 300,
300, 296, 301, 301, 301, 341, 341, 341, 342, 342,
342, 341, 343, 343, 343, 295, 345, 345, 345, 344,
344, 344, 298, 345, 349, 349, 349, 344, 344, 759,
300, 758, 342, 301, 757, 756, 344, 299, 755, 344,
754, 752, 343, 344, 344, 346, 346, 346, 347, 347,
347, 348, 348, 348, 350, 350, 350, 351, 351, 351,
347, 352, 352, 352, 751, 346, 353, 353, 353, 750,
749, 348, 354, 354, 354, 355, 355, 355, 356, 356,
356, 357, 357, 357, 358, 358, 358, 748, 747, 351,
359, 359, 359, 746, 350, 360, 360, 360, 361, 361,
361, 745, 353, 362, 362, 362, 352, 363, 363, 363,
364, 364, 364, 367, 367, 404, 404, 404, 405, 405,
405, 354, 406, 406, 406, 744, 356, 743, 742, 367,
367, 741, 404, 740, 367, 361, 407, 407, 407, 362,
739, 738, 407, 737, 360, 736, 406, 735, 734, 363,
408, 408, 408, 409, 409, 409, 410, 410, 410, 364,
411, 411, 411, 410, 408, 733, 732, 409, 412, 412,
412, 413, 413, 413, 414, 414, 414, 411, 415, 415,
415, 414, 416, 416, 416, 730, 413, 417, 417, 417,
418, 418, 418, 729, 412, 728, 727, 415, 412, 419,
419, 419, 420, 420, 420, 726, 725, 416, 421, 421,
421, 422, 422, 422, 423, 423, 423, 424, 424, 424,
425, 425, 425, 724, 418, 426, 426, 426, 427, 427,
427, 723, 471, 471, 471, 722, 417, 472, 472, 472,
473, 473, 473, 721, 421, 720, 419, 475, 475, 475,
423, 474, 474, 474, 472, 425, 471, 473, 719, 474,
476, 476, 476, 477, 477, 477, 478, 478, 478, 718,
717, 475, 479, 479, 479, 476, 716, 477, 480, 480,
480, 481, 481, 481, 482, 482, 482, 478, 480, 715,
482, 714, 713, 479, 712, 711, 481, 483, 483, 483,
484, 484, 484, 485, 485, 485, 486, 486, 486, 487,
487, 487, 488, 488, 488, 489, 489, 489, 532, 532,
532, 533, 533, 533, 710, 534, 534, 534, 483, 535,
535, 535, 536, 536, 536, 537, 537, 537, 709, 485,
708, 533, 534, 707, 487, 537, 703, 538, 538, 538,
539, 539, 539, 702, 535, 538, 701, 536, 540, 540,
540, 541, 541, 541, 542, 542, 542, 539, 540, 541,
543, 543, 543, 544, 544, 544, 545, 545, 545, 700,
699, 544, 544, 546, 546, 546, 698, 543, 584, 584,
584, 585, 585, 585, 697, 542, 696, 585, 586, 586,
586, 587, 587, 587, 588, 588, 588, 589, 589, 589,
695, 693, 588, 584, 590, 590, 590, 589, 591, 591,
591, 592, 592, 592, 590, 593, 593, 593, 594, 594,
594, 691, 690, 593, 593, 595, 595, 595, 596, 596,
596, 631, 631, 631, 689, 688, 592, 632, 632, 632,
687, 686, 596, 685, 632, 595, 633, 633, 633, 634,
634, 634, 635, 635, 635, 636, 636, 636, 637, 637,
637, 638, 638, 638, 639, 639, 639, 640, 640, 640,
684, 633, 672, 672, 672, 638, 683, 682, 637, 673,
673, 673, 681, 639, 674, 674, 674, 680, 679, 672,
678, 640, 675, 675, 675, 676, 676, 676, 677, 677,
677, 671, 670, 674, 704, 704, 704, 705, 705, 705,
706, 706, 706, 669, 704, 668, 675, 731, 731, 731,
859, 859, 859, 859, 860, 860, 860, 860, 861, 861,
861, 861, 862, 862, 862, 862, 863, 863, 864, 864,
865, 667, 865, 865, 665, 664, 660, 659, 658, 657,
656, 655, 654, 653, 652, 651, 650, 649, 648, 647,
646, 645, 644, 643, 642, 630, 629, 627, 626, 625,
623, 622, 621, 620, 619, 618, 617, 616, 615, 614,
613, 610, 609, 608, 606, 605, 604, 603, 602, 601,
600, 599, 598, 597, 583, 581, 578, 577, 576, 575,
574, 573, 572, 571, 570, 569, 568, 566, 565, 564,
562, 561, 560, 559, 558, 557, 556, 555, 554, 553,
552, 551, 550, 549, 548, 547, 531, 530, 529, 528,
527, 525, 524, 523, 522, 521, 520, 519, 518, 517,
516, 515, 514, 512, 509, 508, 506, 505, 504, 500,
499, 497, 496, 495, 494, 493, 492, 491, 470, 469,
468, 467, 466, 465, 464, 463, 462, 461, 459, 458,
457, 455, 454, 453, 452, 451, 450, 448, 447, 446,
445, 444, 443, 442, 441, 440, 439, 438, 437, 436,
435, 434, 433, 432, 431, 430, 429, 428, 403, 402,
401, 400, 399, 398, 397, 396, 395, 394, 393, 392,
391, 390, 389, 388, 387, 386, 385, 384, 383, 382,
381, 380, 379, 378, 377, 376, 375, 374, 373, 372,
371, 370, 369, 368, 366, 365, 340, 339, 337, 336,
335, 334, 333, 332, 331, 330, 329, 328, 327, 326,
325, 324, 323, 322, 321, 320, 319, 318, 317, 316,
315, 314, 313, 312, 311, 310, 309, 308, 307, 306,
305, 304, 303, 302, 270, 269, 268, 267, 266, 265,
263, 262, 261, 260, 259, 258, 257, 256, 255, 254,
253, 252, 251, 250, 249, 248, 247, 246, 245, 243,
242, 241, 239, 238, 237, 236, 235, 233, 232, 231,
230, 195, 194, 193, 192, 191, 190, 189, 188, 187,
185, 184, 183, 182, 180, 178, 176, 174, 172, 171,
170, 168, 166, 165, 164, 163, 159, 157, 115, 114,
113, 111, 110, 108, 106, 103, 99, 46, 43, 38,
18, 7, 3, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858, 858,
858, 858, 858, 858, 858, 858, 858, 858, 858
} ;
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 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
/*
* The SIP lexer.
*
* Copyright (c) 2010 Riverbank Computing Limited <info@riverbankcomputing.com>
*
* This file is part of SIP.
*
* This copy of SIP is licensed for use under the terms of the SIP License
* Agreement. See the file LICENSE for more details.
*
* This copy of SIP may also used under the terms of the GNU General Public
* License v2 or v3 as published by the Free Software Foundation which can be
* found in the files LICENSE-GPL2 and LICENSE-GPL3 included in this package.
*
* SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#line 20 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "sip.h"
#include "parser.h"
#ifndef FLEX_SCANNER
#error "Only flex is supported at the moment"
#endif
#define YY_NO_UNISTD_H
#define YY_FATAL_ERROR(s) fatallex(s)
#define MAX_INCLUDE_DEPTH 10
#define MAX_CODE_LINE_LENGTH 1000
static struct inputFile {
int lineno; /* The line number. */
YY_BUFFER_STATE bs; /* The flex buffer state handle. */
char *name; /* The file name. */
char *cwd; /* The path part of the file name. */
parserContext pc; /* The parser context. */
} inputFileStack[MAX_INCLUDE_DEPTH];
static int currentFile = -1; /* Index of the current input file. */
static char codeLine[MAX_CODE_LINE_LENGTH + 2]; /* The current code line. */
static int codeIdx = -1; /* Index of next code character. */
static FILE *openFile(const char *);
static void fatallex(char *);
#line 1202 "<stdout>"
#define INITIAL 0
#define code 1
#define ccomment 2
#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
static void yyunput (int c,char *buf_ptr );
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst 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, 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 = '*'; \
size_t 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 = fread(buf, 1, 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 break;
#endif
#define YY_RULE_SETUP \
if ( yyleng > 0 ) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
(yytext[yyleng - 1] == '\n'); \
YY_USER_ACTION
/** The main scanner function which does all the work.
*/
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
#line 60 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
#line 1397 "<stdout>"
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( );
}
while ( 1 ) /* loops until end-of-file is reached */
{
yy_cp = (yy_c_buf_p);
/* Support of yytext. */
*yy_cp = (yy_hold_char);
/* yy_bp points to the position in yy_ch_buf of the start of
* the current run.
*/
yy_bp = yy_cp;
yy_current_state = (yy_start);
yy_current_state += YY_AT_BOL();
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 859 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
while ( yy_base[yy_current_state] != 1774 );
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 62 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_API;}
YY_BREAK
case 2:
YY_RULE_SETUP
#line 63 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_DEFENCODING;}
YY_BREAK
case 3:
YY_RULE_SETUP
#line 64 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PLUGIN;}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 65 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_INCLUDE;}
YY_BREAK
case 5:
YY_RULE_SETUP
#line 66 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_OPTINCLUDE;}
YY_BREAK
case 6:
YY_RULE_SETUP
#line 67 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_IMPORT;}
YY_BREAK
case 7:
YY_RULE_SETUP
#line 68 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_MODULE;}
YY_BREAK
case 8:
YY_RULE_SETUP
#line 69 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_CMODULE;}
YY_BREAK
case 9:
YY_RULE_SETUP
#line 70 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_CONSMODULE;}
YY_BREAK
case 10:
YY_RULE_SETUP
#line 71 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_COMPOMODULE;}
YY_BREAK
case 11:
YY_RULE_SETUP
#line 72 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_TIMELINE;}
YY_BREAK
case 12:
YY_RULE_SETUP
#line 73 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PLATFORMS;}
YY_BREAK
case 13:
YY_RULE_SETUP
#line 74 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_FEATURE;}
YY_BREAK
case 14:
YY_RULE_SETUP
#line 75 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_LICENSE;}
YY_BREAK
case 15:
YY_RULE_SETUP
#line 76 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_MAPPEDTYPE;}
YY_BREAK
case 16:
YY_RULE_SETUP
#line 77 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_EXCEPTION;}
YY_BREAK
case 17:
YY_RULE_SETUP
#line 78 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_IF;}
YY_BREAK
case 18:
YY_RULE_SETUP
#line 79 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_DEFMETATYPE;}
YY_BREAK
case 19:
YY_RULE_SETUP
#line 80 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_DEFSUPERTYPE;}
YY_BREAK
case 20:
YY_RULE_SETUP
#line 81 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_END;}
YY_BREAK
case 21:
YY_RULE_SETUP
#line 82 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_CLASS;}
YY_BREAK
case 22:
YY_RULE_SETUP
#line 83 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_STRUCT;}
YY_BREAK
case 23:
YY_RULE_SETUP
#line 84 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PUBLIC;}
YY_BREAK
case 24:
YY_RULE_SETUP
#line 85 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PROTECTED;}
YY_BREAK
case 25:
YY_RULE_SETUP
#line 86 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PRIVATE;}
YY_BREAK
case 26:
YY_RULE_SETUP
#line 87 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIGNALS;}
YY_BREAK
case 27:
YY_RULE_SETUP
#line 88 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIGNALS;}
YY_BREAK
case 28:
YY_RULE_SETUP
#line 89 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIGNAL_METHOD;}
YY_BREAK
case 29:
YY_RULE_SETUP
#line 90 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SLOTS;}
YY_BREAK
case 30:
YY_RULE_SETUP
#line 91 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SLOTS;}
YY_BREAK
case 31:
YY_RULE_SETUP
#line 92 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SLOT_METHOD;}
YY_BREAK
case 32:
YY_RULE_SETUP
#line 93 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_CHAR;}
YY_BREAK
case 33:
YY_RULE_SETUP
#line 94 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_WCHAR_T;}
YY_BREAK
case 34:
YY_RULE_SETUP
#line 95 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_BOOL;}
YY_BREAK
case 35:
YY_RULE_SETUP
#line 96 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SHORT;}
YY_BREAK
case 36:
YY_RULE_SETUP
#line 97 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_INT;}
YY_BREAK
case 37:
YY_RULE_SETUP
#line 98 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_LONG;}
YY_BREAK
case 38:
YY_RULE_SETUP
#line 99 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_FLOAT;}
YY_BREAK
case 39:
YY_RULE_SETUP
#line 100 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_DOUBLE;}
YY_BREAK
case 40:
YY_RULE_SETUP
#line 101 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_VOID;}
YY_BREAK
case 41:
YY_RULE_SETUP
#line 102 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_VIRTUAL;}
YY_BREAK
case 42:
YY_RULE_SETUP
#line 103 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_ENUM;}
YY_BREAK
case 43:
YY_RULE_SETUP
#line 104 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIGNED;}
YY_BREAK
case 44:
YY_RULE_SETUP
#line 105 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_UNSIGNED;}
YY_BREAK
case 45:
YY_RULE_SETUP
#line 106 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_CONST;}
YY_BREAK
case 46:
YY_RULE_SETUP
#line 107 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_STATIC;}
YY_BREAK
case 47:
YY_RULE_SETUP
#line 108 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_TRUE;}
YY_BREAK
case 48:
YY_RULE_SETUP
#line 109 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_FALSE;}
YY_BREAK
case 49:
YY_RULE_SETUP
#line 110 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_NULL;}
YY_BREAK
case 50:
YY_RULE_SETUP
#line 111 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_TYPEDEF;}
YY_BREAK
case 51:
YY_RULE_SETUP
#line 112 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_NAMESPACE;}
YY_BREAK
case 52:
YY_RULE_SETUP
#line 113 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_OPERATOR;}
YY_BREAK
case 53:
YY_RULE_SETUP
#line 114 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_THROW;}
YY_BREAK
case 54:
YY_RULE_SETUP
#line 115 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_EXPLICIT;}
YY_BREAK
case 55:
YY_RULE_SETUP
#line 116 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_TEMPLATE;}
YY_BREAK
case 56:
YY_RULE_SETUP
#line 117 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SCOPE;}
YY_BREAK
case 57:
YY_RULE_SETUP
#line 118 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_LOGICAL_OR;}
YY_BREAK
case 58:
YY_RULE_SETUP
#line 119 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PYOBJECT;}
YY_BREAK
case 59:
YY_RULE_SETUP
#line 120 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PYTUPLE;}
YY_BREAK
case 60:
YY_RULE_SETUP
#line 121 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PYLIST;}
YY_BREAK
case 61:
YY_RULE_SETUP
#line 122 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PYDICT;}
YY_BREAK
case 62:
YY_RULE_SETUP
#line 123 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PYCALLABLE;}
YY_BREAK
case 63:
YY_RULE_SETUP
#line 124 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PYSLICE;}
YY_BREAK
case 64:
YY_RULE_SETUP
#line 125 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_PYTYPE;}
YY_BREAK
case 65:
YY_RULE_SETUP
#line 126 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIPSIGNAL;}
YY_BREAK
case 66:
YY_RULE_SETUP
#line 127 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIPSLOT;}
YY_BREAK
case 67:
YY_RULE_SETUP
#line 128 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIPANYSLOT;}
YY_BREAK
case 68:
YY_RULE_SETUP
#line 129 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIPRXCON;}
YY_BREAK
case 69:
YY_RULE_SETUP
#line 130 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIPRXDIS;}
YY_BREAK
case 70:
YY_RULE_SETUP
#line 131 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIPSLOTCON;}
YY_BREAK
case 71:
YY_RULE_SETUP
#line 132 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_SIPSLOTDIS;}
YY_BREAK
case 72:
YY_RULE_SETUP
#line 133 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_TQOBJECT;}
YY_BREAK
case 73:
YY_RULE_SETUP
#line 134 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{return TK_ELLIPSIS;}
YY_BREAK
case 74:
YY_RULE_SETUP
#line 137 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* Ignore whitespace. */
;
}
YY_BREAK
case 75:
/* rule 75 can match eol */
YY_RULE_SETUP
#line 141 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* Maintain the line number. */
++inputFileStack[currentFile].lineno;
if (codeIdx == 0)
{
BEGIN code;
}
}
YY_BREAK
case 76:
YY_RULE_SETUP
#line 150 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* Ignore C++ style comments. */
;
}
YY_BREAK
case 77:
YY_RULE_SETUP
#line 155 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* A signed decimal number. */
yylval.number = strtol(yytext,NULL,0);
return TK_NUMBER;
}
YY_BREAK
case 78:
YY_RULE_SETUP
#line 161 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{/* A floating point number. */
yylval.real = strtod(yytext,NULL);
return TK_REAL;
}
YY_BREAK
case 79:
YY_RULE_SETUP
#line 167 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* An unsigned hexadecimal number. */
yylval.number = strtol(yytext,NULL,16);
return TK_NUMBER;
}
YY_BREAK
case 80:
YY_RULE_SETUP
#line 173 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* An identifier name. */
yylval.text = sipStrdup(yytext);
return TK_NAME;
}
YY_BREAK
case 81:
YY_RULE_SETUP
#line 179 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* A relative pathname. */
yylval.text = sipStrdup(yytext);
return TK_PATHNAME;
}
YY_BREAK
case 82:
/* rule 82 can match eol */
YY_RULE_SETUP
#line 185 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* A double-quoted string. */
char *dp, *sp;
/* Copy the string without the quotes. */
yylval.text = sipMalloc(strlen(yytext) + 1);
dp = yylval.text;
sp = yytext;
while (*sp != '\0')
{
if (*sp != '"')
*dp++ = *sp;
++sp;
}
*dp = '\0';
return TK_STRING;
}
YY_BREAK
case 83:
/* rule 83 can match eol */
YY_RULE_SETUP
#line 209 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* A single-quoted character. */
if (strlen(yytext) != 3)
fatallex("Exactly one character expected between single quotes");
yylval.qchar = yytext[1];
return TK_TQCHAR;
}
YY_BREAK
case 84:
YY_RULE_SETUP
#line 219 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* Ignore C-style comments. */
BEGIN ccomment;
}
YY_BREAK
case 85:
/* rule 85 can match eol */
YY_RULE_SETUP
#line 222 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{
++inputFileStack[currentFile].lineno;
}
YY_BREAK
case 86:
YY_RULE_SETUP
#line 225 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{
BEGIN INITIAL;
}
YY_BREAK
case 87:
YY_RULE_SETUP
#line 228 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{
;
}
YY_BREAK
case 88:
YY_RULE_SETUP
#line 233 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The software license. */
codeIdx = 0;
return TK_COPYING;
}
YY_BREAK
case 89:
YY_RULE_SETUP
#line 238 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a from-type code block. */
codeIdx = 0;
return TK_FROMTYPE;
}
YY_BREAK
case 90:
YY_RULE_SETUP
#line 243 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a to-type code block. */
codeIdx = 0;
return TK_TOTYPE;
}
YY_BREAK
case 91:
YY_RULE_SETUP
#line 248 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a to-sub-class code block. */
codeIdx = 0;
return TK_TOSUBCLASS;
}
YY_BREAK
case 92:
YY_RULE_SETUP
#line 253 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of an exported header code block. */
codeIdx = 0;
return TK_EXPHEADERCODE;
}
YY_BREAK
case 93:
YY_RULE_SETUP
#line 258 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a module header code block. */
codeIdx = 0;
return TK_MODHEADERCODE;
}
YY_BREAK
case 94:
YY_RULE_SETUP
#line 263 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a type header code block. */
codeIdx = 0;
return TK_TYPEHEADERCODE;
}
YY_BREAK
case 95:
YY_RULE_SETUP
#line 268 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a pre-initialisation code block. */
codeIdx = 0;
return TK_PREINITCODE;
}
YY_BREAK
case 96:
YY_RULE_SETUP
#line 273 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of an initialisation code block. */
codeIdx = 0;
return TK_INITCODE;
}
YY_BREAK
case 97:
YY_RULE_SETUP
#line 278 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a post-initialisation code block. */
codeIdx = 0;
return TK_POSTINITCODE;
}
YY_BREAK
case 98:
YY_RULE_SETUP
#line 283 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a unit code block. */
codeIdx = 0;
return TK_UNITCODE;
}
YY_BREAK
case 99:
YY_RULE_SETUP
#line 288 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a module code block. */
codeIdx = 0;
return TK_MODCODE;
}
YY_BREAK
case 100:
YY_RULE_SETUP
#line 293 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a type code block. */
codeIdx = 0;
return TK_TYPECODE;
}
YY_BREAK
case 101:
YY_RULE_SETUP
#line 298 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a C++ method code block. */
codeIdx = 0;
return TK_METHODCODE;
}
YY_BREAK
case 102:
YY_RULE_SETUP
#line 303 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a C++ virtual code block. */
codeIdx = 0;
return TK_VIRTUALCATCHERCODE;
}
YY_BREAK
case 103:
YY_RULE_SETUP
#line 308 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a traverse code block. */
codeIdx = 0;
return TK_TRAVERSECODE;
}
YY_BREAK
case 104:
YY_RULE_SETUP
#line 313 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a clear code block. */
codeIdx = 0;
return TK_CLEARCODE;
}
YY_BREAK
case 105:
YY_RULE_SETUP
#line 318 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a get buffer code block. */
codeIdx = 0;
return TK_GETBUFFERCODE;
}
YY_BREAK
case 106:
YY_RULE_SETUP
#line 323 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a release buffer code block. */
codeIdx = 0;
return TK_RELEASEBUFFERCODE;
}
YY_BREAK
case 107:
YY_RULE_SETUP
#line 328 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a read buffer code block. */
codeIdx = 0;
return TK_READBUFFERCODE;
}
YY_BREAK
case 108:
YY_RULE_SETUP
#line 333 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a write buffer code block. */
codeIdx = 0;
return TK_WRITEBUFFERCODE;
}
YY_BREAK
case 109:
YY_RULE_SETUP
#line 338 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a segment count code block. */
codeIdx = 0;
return TK_SEGCOUNTCODE;
}
YY_BREAK
case 110:
YY_RULE_SETUP
#line 343 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a char buffer code block. */
codeIdx = 0;
return TK_CHARBUFFERCODE;
}
YY_BREAK
case 111:
YY_RULE_SETUP
#line 348 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a pickle code block. */
codeIdx = 0;
return TK_PICKLECODE;
}
YY_BREAK
case 112:
YY_RULE_SETUP
#line 353 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a pre-Python code block. */
codeIdx = 0;
return TK_PREPYCODE;
}
YY_BREAK
case 113:
YY_RULE_SETUP
#line 358 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a raise exception code block. */
codeIdx = 0;
return TK_RAISECODE;
}
YY_BREAK
case 114:
YY_RULE_SETUP
#line 363 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a docstring block. */
codeIdx = 0;
return TK_DOCSTRING;
}
YY_BREAK
case 115:
YY_RULE_SETUP
#line 368 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a documentation block. */
codeIdx = 0;
return TK_DOC;
}
YY_BREAK
case 116:
YY_RULE_SETUP
#line 373 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of an exported documentation block. */
codeIdx = 0;
return TK_EXPORTEDDOC;
}
YY_BREAK
case 117:
YY_RULE_SETUP
#line 378 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a Makefile code block. */
codeIdx = 0;
return TK_MAKEFILE;
}
YY_BREAK
case 118:
YY_RULE_SETUP
#line 383 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of an access code block. */
codeIdx = 0;
return TK_ACCESSCODE;
}
YY_BREAK
case 119:
YY_RULE_SETUP
#line 388 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a get code block. */
codeIdx = 0;
return TK_GETCODE;
}
YY_BREAK
case 120:
YY_RULE_SETUP
#line 393 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The start of a set code block. */
codeIdx = 0;
return TK_SETCODE;
}
YY_BREAK
case 121:
YY_RULE_SETUP
#line 398 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The end of a code block. */
BEGIN INITIAL;
codeIdx = -1;
return TK_END;
}
YY_BREAK
case 122:
/* rule 122 can match eol */
YY_RULE_SETUP
#line 404 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The end of a code line . */
struct inputFile *ifp;
codeLine[codeIdx] = '\n';
codeLine[codeIdx + 1] = '\0';
codeIdx = 0;
ifp = &inputFileStack[currentFile];
yylval.codeb = sipMalloc(sizeof (codeBlock));
yylval.codeb -> frag = sipStrdup(codeLine);
yylval.codeb -> linenr = ifp -> lineno++;
yylval.codeb -> filename = sipStrdup(ifp -> name);
yylval.codeb -> next = NULL;
return TK_CODELINE;
}
YY_BREAK
case 123:
YY_RULE_SETUP
#line 423 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* The contents of a code line. */
if (codeIdx == MAX_CODE_LINE_LENGTH)
fatallex("Line is too long");
codeLine[codeIdx++] = yytext[0];
}
YY_BREAK
case 124:
YY_RULE_SETUP
#line 430 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
{ /* Anything else is returned as is. */
return yytext[0];
}
YY_BREAK
case 125:
YY_RULE_SETUP
#line 434 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
ECHO;
YY_BREAK
#line 2300 "<stdout>"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(code):
case YY_STATE_EOF(ccomment):
yyterminate();
case YY_END_OF_BUFFER:
{
/* Amount of text matched not including the EOB char. */
int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
/* Undo the effects of YY_DO_BEFORE_ACTION. */
*yy_cp = (yy_hold_char);
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 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)
{
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
register char *source = (yytext_ptr);
register int number_to_move, i;
int ret_val;
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_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;
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,b->yy_buf_size + 2 );
}
else
/* Can't grow it, we don't own it. */
b->yy_ch_buf = 0;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
"fatal error - scanner input buffer overflow" );
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
num_to_read = YY_CURRENT_BUFFER_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), (size_t) 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_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
yy_size_t 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,new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
}
(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)
{
register yy_state_type yy_current_state;
register char *yy_cp;
yy_current_state = (yy_start);
yy_current_state += YY_AT_BOL();
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 859 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
}
return yy_current_state;
}
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
register int yy_is_jam;
register char *yy_cp = (yy_c_buf_p);
register YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 859 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 858);
return yy_is_jam ? 0 : yy_current_state;
}
static void yyunput (int c, register char * yy_bp )
{
register char *yy_cp;
yy_cp = (yy_c_buf_p);
/* undo effects of setting up yytext */
*yy_cp = (yy_hold_char);
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
register int number_to_move = (yy_n_chars) + 2;
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
register char *source =
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
*--dest = *--source;
yy_cp += (int) (dest - source);
yy_bp += (int) (dest - source);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
YY_FATAL_ERROR( "flex scanner push-back overflow" );
}
*--yy_cp = (char) c;
(yytext_ptr) = yy_bp;
(yy_hold_char) = *yy_cp;
(yy_c_buf_p) = yy_cp;
}
#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 = (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 EOF;
if ( ! (yy_did_buffer_switch_on_eof) )
YY_NEW_FILE;
#ifdef __cplusplus
return yyinput();
#else
return input();
#endif
}
case EOB_ACT_CONTINUE_SCAN:
(yy_c_buf_p) = (yytext_ptr) + offset;
break;
}
}
}
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
*(yy_c_buf_p) = '\0'; /* preserve yytext */
(yy_hold_char) = *++(yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
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(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 );
}
#ifndef __cplusplus
extern int isatty (int );
#endif /* __cplusplus */
/* 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)
{
int 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;
(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. */
int 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 0;
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 = size - 2; /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
b->yy_input_file = 0;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
yy_switch_to_buffer(b );
return b;
}
/** 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 (yyconst char * yystr )
{
return yy_scan_bytes(yystr,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 (yyconst 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 = _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 yy_fatal_error (yyconst char* msg )
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
/* Redefine yyless() so it works in section 3 code. */
#undef yyless
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
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
*
*/
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) = 0;
(yy_buffer_stack_top) = 0;
(yy_buffer_stack_max) = 0;
(yy_c_buf_p) = (char *) 0;
(yy_init) = 0;
(yy_start) = 0;
/* Defined in main.c */
#ifdef YY_STDINIT
yyin = stdin;
yyout = stdout;
#else
yyin = (FILE *) 0;
yyout = (FILE *) 0;
#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, yyconst char * s2, int n )
{
register int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * s )
{
register int n;
for ( n = 0; s[n]; ++n )
;
return n;
}
#endif
void *yyalloc (yy_size_t size )
{
return (void *) 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 (void *) realloc( (char *) ptr, size );
}
void yyfree (void * ptr )
{
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"
#line 434 "/TEMP2/sip4-tqt-3.5.14/sipgen/lexer.l"
/*
* Hook into EOF handling. Return 0 if there is more to process.
*/
int yywrap()
{
char *cwd;
struct inputFile *ifp;
if ((cwd = inputFileStack[currentFile].cwd) != NULL)
free(cwd);
ifp = &inputFileStack[currentFile--];
/* Tell the parser if this is the end of a file. */
parserEOF(ifp -> name, &ifp -> pc);
/* Tidy up this file. */
fclose(yyin);
free(ifp -> name);
/* See if this was the original file. */
if (currentFile < 0)
return 1;
yy_delete_buffer(YY_CURRENT_BUFFER);
yy_switch_to_buffer(ifp -> bs);
return 0;
}
/*
* Set up an input file to be read by the lexer, opening it if necessary. TRUE
* is returned if the file has not already been read.
*/
int setInputFile(FILE *open_fp, parserContext *pc, int optional)
{
static stringList *all = NULL;
char *cwd, *fullname = NULL;
FILE *fp = open_fp;
if (currentFile >= MAX_INCLUDE_DEPTH - 1)
fatal("Too many nested %%Include, %%OptionalInclude or %%Import statements\n");
if (fp != NULL || (fp = openFile(pc->filename)) != NULL)
fullname = sipStrdup(pc->filename);
else
{
char *cwd;
/* Try the directory that contains the current file. */
if (currentFile >= 0 && (cwd = inputFileStack[currentFile].cwd) != NULL)
{
fullname = concat(cwd, "/", pc->filename, NULL);
if ((fp = openFile(fullname)) == NULL)
{
free(fullname);
fullname = NULL;
}
}
}
/* Try the include path if we haven't found anything yet. */
if (fullname == NULL)
{
stringList *sl;
fullname = NULL;
for (sl = includeDirList; sl != NULL; sl = sl -> next)
{
if (fullname != NULL)
free(fullname);
fullname = concat(sl->s, "/", pc->filename, NULL);
if ((fp = openFile(fullname)) != NULL)
break;
}
if (fp == NULL)
{
if (optional)
return FALSE;
fatal("Unable to find file \"%s\"\n", pc->filename);
}
}
/*
* If we have just opened the file, make sure that we haven't already read
* it. While it should never happen with normal modules (if the user
* doesn't specify recursive %Imports or %Includes) it is likely to happen
* with consolidated modules.
*/
if (open_fp == NULL)
{
stringList *sl;
for (sl = all; sl != NULL; sl = sl->next)
if (strcmp(sl->s, fullname) == 0)
{
fclose(fp);
return FALSE;
}
}
/* Remember the filename. */
appendString(&all, sipStrdup(fullname));
yyin = fp;
++currentFile;
/* Remember the directory containing the new file and make it "current". */
if ((cwd = strchr(fullname, '/')) != NULL)
{
cwd = sipStrdup(fullname);
*strrchr(cwd,'/') = '\0';
}
inputFileStack[currentFile].lineno = 1;
inputFileStack[currentFile].name = fullname;
inputFileStack[currentFile].pc = *pc;
inputFileStack[currentFile].cwd = cwd;
if (currentFile > 0)
{
inputFileStack[currentFile].bs = YY_CURRENT_BUFFER;
yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE));
}
return TRUE;
}
/*
* Open a file for reading or return NULL if it doesn't exist. Any other error
* is fatal.
*/
static FILE *openFile(const char *name)
{
FILE *fp;
if ((fp = fopen(name,"r")) == NULL && errno != ENOENT)
fatal("Error in opening file %s\n",name);
return fp;
}
/*
* Handle fatal yacc errors.
*/
void yyerror(char *s)
{
if (currentFile < 0)
fatal("%s\n", s);
fatal("%s:%d: %s\n",
inputFileStack[currentFile].name,
inputFileStack[currentFile].lineno,
s);
}
/*
* Handle warnings while parsing.
*/
void yywarning(char *s)
{
warning("%s:%d: %s\n",
inputFileStack[currentFile].name,
inputFileStack[currentFile].lineno,
s);
}
/*
* Handle fatal lex errors.
*/
static void fatallex(char *s)
{
fatal("%s:%d: Lexical analyser error: %s\n",
inputFileStack[currentFile].name,
inputFileStack[currentFile].lineno,
s);
}