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.
2778 lines
95 KiB
2778 lines
95 KiB
#line 2 "lex.yy.c"
|
|
|
|
#line 4 "lex.yy.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 5
|
|
#define YY_FLEX_SUBMINOR_VERSION 31
|
|
#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
|
|
#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;
|
|
#endif /* ! C99 */
|
|
|
|
/* 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 /* ! FLEXINT_H */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
/* The "const" storage-class-modifier is valid. */
|
|
#define YY_USE_CONST
|
|
|
|
#else /* ! __cplusplus */
|
|
|
|
#if __STDC__
|
|
|
|
#define YY_USE_CONST
|
|
|
|
#endif /* __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
|
|
#define YY_BUF_SIZE 16384
|
|
#endif
|
|
|
|
#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
|
|
|
|
/* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
|
|
* access to the local variable yy_act. Since yyless() is a macro, it would break
|
|
* existing scanners that call yyless() from OUTSIDE yylex.
|
|
* One obvious solution it to make yy_act a global. I tried that, and saw
|
|
* a 5% performance hit in a non-yylineno scanner, because yy_act is
|
|
* normally declared as a register variable-- so it is not worth it.
|
|
*/
|
|
#define YY_LESS_LINENO(n) \
|
|
do { \
|
|
int yyl;\
|
|
for ( yyl = n; yyl < yyleng; ++yyl )\
|
|
if ( yytext[yyl] == '\n' )\
|
|
--yylineno;\
|
|
}while(0)
|
|
|
|
/* 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) )
|
|
|
|
/* The following is because we cannot portably get our hands on size_t
|
|
* (without autoconf's help, which isn't available because we want
|
|
* flex-generated scanners to compile on their own).
|
|
*/
|
|
|
|
#ifndef YY_TYPEDEF_YY_SIZE_T
|
|
#define YY_TYPEDEF_YY_SIZE_T
|
|
typedef unsigned int 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 = 1; /* whether we need to initialize */
|
|
static int yy_start = 0; /* start state number */
|
|
|
|
/* Flag which is used to allow yywrap()'s to do buffer switches
|
|
* instead of setting up a fresh yyin. A bit of a hack ...
|
|
*/
|
|
static int yy_did_buffer_switch_on_eof;
|
|
|
|
void yyrestart (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 80
|
|
#define YY_END_OF_BUFFER 81
|
|
/* 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[697] =
|
|
{ 0,
|
|
0, 0, 81, 79, 75, 75, 79, 78, 79, 70,
|
|
74, 74, 76, 77, 74, 74, 74, 74, 74, 74,
|
|
74, 74, 74, 74, 74, 75, 9, 9, 79, 79,
|
|
0, 1, 11, 70, 0, 0, 74, 74, 74, 0,
|
|
0, 74, 74, 74, 74, 74, 74, 74, 74, 74,
|
|
74, 74, 74, 74, 74, 74, 74, 74, 74, 74,
|
|
74, 0, 9, 0, 0, 72, 10, 71, 11, 0,
|
|
74, 0, 0, 14, 74, 74, 74, 74, 74, 74,
|
|
74, 74, 30, 74, 74, 74, 74, 74, 74, 74,
|
|
74, 74, 74, 74, 73, 10, 10, 10, 10, 0,
|
|
|
|
74, 74, 74, 36, 74, 74, 74, 74, 74, 0,
|
|
74, 74, 33, 74, 74, 74, 74, 74, 74, 74,
|
|
74, 74, 35, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 73, 73, 10, 10, 10, 10, 10, 10,
|
|
0, 74, 74, 74, 26, 38, 74, 31, 74, 0,
|
|
0, 74, 74, 0, 74, 74, 74, 74, 74, 74,
|
|
32, 74, 74, 74, 74, 0, 0, 73, 73, 73,
|
|
73, 73, 73, 73, 73, 73, 73, 73, 10, 10,
|
|
10, 10, 10, 10, 10, 0, 74, 74, 74, 0,
|
|
34, 41, 0, 0, 74, 74, 0, 0, 74, 74,
|
|
|
|
74, 74, 74, 27, 0, 74, 74, 42, 74, 74,
|
|
0, 0, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 73, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 2, 0, 74, 12, 24, 0, 0, 0, 0,
|
|
20, 74, 0, 0, 18, 74, 74, 28, 74, 0,
|
|
74, 0, 74, 74, 37, 0, 0, 0, 73, 73,
|
|
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 73, 73, 73, 73, 73, 10, 10, 10,
|
|
10, 10, 10, 10, 12, 74, 0, 20, 0, 0,
|
|
74, 19, 18, 0, 21, 39, 74, 0, 17, 0,
|
|
|
|
74, 40, 0, 0, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 73, 73, 10, 10, 10, 3, 10, 10,
|
|
74, 0, 0, 19, 74, 21, 0, 74, 29, 17,
|
|
0, 74, 0, 0, 73, 73, 73, 73, 73, 73,
|
|
44, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 73, 73, 3, 10, 10, 3, 10, 10,
|
|
69, 0, 0, 15, 0, 74, 0, 74, 0, 25,
|
|
0, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 73, 73, 73, 73, 73, 73, 73, 12,
|
|
|
|
3, 10, 10, 10, 10, 0, 22, 0, 23, 25,
|
|
0, 73, 73, 47, 73, 73, 73, 0, 0, 73,
|
|
46, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
10, 10, 10, 10, 22, 23, 0, 73, 73, 73,
|
|
73, 73, 0, 13, 73, 73, 73, 73, 73, 45,
|
|
67, 73, 73, 73, 10, 10, 10, 10, 0, 0,
|
|
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 10, 10, 10, 10, 10, 10, 10, 0, 16,
|
|
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
|
|
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 10, 10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 54, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 8, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
50, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
|
73, 73, 10, 10, 10, 10, 8, 10, 10, 10,
|
|
10, 8, 73, 53, 49, 73, 73, 73, 73, 64,
|
|
51, 73, 48, 73, 73, 73, 73, 63, 73, 73,
|
|
|
|
73, 10, 10, 10, 10, 8, 10, 10, 10, 10,
|
|
73, 59, 60, 61, 62, 73, 55, 56, 57, 58,
|
|
73, 73, 73, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 73, 73, 73, 73, 73, 10, 10, 10, 10,
|
|
7, 10, 10, 10, 43, 73, 68, 73, 73, 7,
|
|
10, 10, 10, 7, 10, 5, 6, 73, 73, 73,
|
|
7, 10, 5, 6, 10, 5, 6, 73, 73, 73,
|
|
10, 5, 6, 10, 73, 73, 66, 10, 4, 73,
|
|
73, 4, 4, 73, 73, 4, 73, 65, 73, 73,
|
|
73, 73, 73, 73, 52, 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, 5, 1, 6, 7, 1, 1, 8, 1, 9,
|
|
10, 11, 1, 8, 8, 12, 13, 14, 15, 16,
|
|
17, 18, 15, 19, 15, 15, 15, 20, 21, 1,
|
|
8, 1, 1, 1, 22, 23, 24, 25, 26, 27,
|
|
28, 29, 30, 29, 31, 32, 33, 34, 35, 36,
|
|
29, 37, 38, 39, 40, 41, 42, 43, 44, 29,
|
|
45, 1, 46, 1, 47, 1, 48, 49, 50, 51,
|
|
|
|
52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
|
|
62, 63, 29, 64, 65, 66, 67, 68, 69, 29,
|
|
70, 29, 8, 1, 8, 8, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 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[71] =
|
|
{ 0,
|
|
1, 2, 3, 2, 2, 4, 1, 1, 1, 5,
|
|
1, 1, 1, 6, 6, 6, 6, 6, 6, 1,
|
|
7, 6, 6, 6, 6, 6, 6, 6, 6, 6,
|
|
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
|
|
6, 6, 6, 6, 1, 1, 6, 6, 6, 6,
|
|
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
|
|
6, 6, 6, 6, 6, 6, 6, 6, 6, 6
|
|
} ;
|
|
|
|
static yyconst flex_int16_t yy_base[722] =
|
|
{ 0,
|
|
0, 69, 1490, 1491, 1491, 1491, 0, 1491, 64, 69,
|
|
1442, 42, 88, 1491, 52, 53, 32, 50, 49, 33,
|
|
54, 55, 71, 64, 73, 128, 1491, 1491, 1485, 110,
|
|
1481, 1491, 0, 128, 1439, 87, 1438, 102, 93, 148,
|
|
174, 111, 112, 108, 113, 101, 127, 110, 124, 134,
|
|
122, 135, 139, 149, 123, 150, 155, 152, 158, 159,
|
|
126, 205, 1491, 1471, 1480, 1491, 206, 1491, 0, 169,
|
|
1435, 221, 0, 1491, 183, 166, 167, 174, 181, 185,
|
|
188, 186, 238, 190, 198, 200, 203, 201, 202, 204,
|
|
205, 207, 206, 208, 252, 251, 0, 245, 1442, 237,
|
|
|
|
251, 229, 234, 1433, 231, 240, 242, 241, 248, 308,
|
|
255, 261, 316, 257, 267, 275, 276, 277, 278, 279,
|
|
282, 281, 335, 1432, 284, 286, 295, 302, 294, 303,
|
|
287, 304, 312, 332, 0, 340, 1439, 328, 1425, 1433,
|
|
329, 342, 324, 351, 349, 1428, 331, 1427, 330, 1411,
|
|
1417, 333, 337, 383, 343, 344, 345, 346, 211, 350,
|
|
405, 354, 366, 356, 367, 416, 424, 375, 376, 377,
|
|
393, 383, 384, 394, 397, 399, 389, 411, 421, 1419,
|
|
1427, 1447, 1442, 1402, 1463, 410, 420, 417, 415, 466,
|
|
1418, 1417, 1402, 1400, 348, 416, 1400, 1398, 418, 425,
|
|
|
|
419, 426, 427, 1412, 485, 430, 492, 1411, 451, 445,
|
|
497, 507, 459, 428, 481, 435, 473, 511, 477, 474,
|
|
438, 478, 491, 1435, 1430, 1390, 1451, 1420, 1428, 1401,
|
|
1447, 1491, 484, 507, 1402, 1401, 557, 1381, 1392, 1381,
|
|
561, 485, 1378, 1382, 1395, 486, 483, 1394, 498, 1379,
|
|
489, 565, 524, 432, 1392, 570, 579, 587, 546, 510,
|
|
530, 538, 539, 547, 548, 549, 553, 554, 557, 566,
|
|
556, 569, 560, 586, 577, 580, 582, 1405, 1413, 1386,
|
|
1432, 1408, 1394, 1368, 1384, 585, 1372, 632, 1363, 639,
|
|
583, 1381, 1491, 1373, 645, 1379, 604, 1359, 1377, 1368,
|
|
|
|
591, 1375, 654, 662, 605, 613, 506, 614, 615, 623,
|
|
625, 628, 634, 636, 621, 637, 629, 638, 640, 647,
|
|
650, 627, 672, 662, 1395, 1381, 1355, 0, 1388, 1361,
|
|
656, 703, 1354, 1491, 664, 710, 718, 670, 1368, 1491,
|
|
1366, 663, 730, 1351, 679, 681, 682, 689, 691, 671,
|
|
1365, 692, 697, 698, 701, 702, 703, 704, 705, 708,
|
|
709, 716, 713, 607, 0, 1381, 1354, 0, 1374, 1345,
|
|
1360, 779, 783, 1491, 1345, 717, 1344, 725, 1340, 1356,
|
|
1346, 732, 722, 731, 742, 747, 743, 790, 749, 754,
|
|
756, 750, 760, 755, 762, 763, 764, 766, 768, 1354,
|
|
|
|
0, 1365, 1336, 1364, 1331, 1342, 1348, 1328, 1346, 1491,
|
|
1341, 720, 782, 1344, 772, 777, 775, 831, 1380, 795,
|
|
1342, 778, 794, 779, 787, 796, 798, 563, 811, 800,
|
|
1354, 1321, 1381, 1329, 1491, 1491, 850, 809, 801, 824,
|
|
829, 849, 1374, 1491, 822, 839, 826, 841, 861, 1336,
|
|
1335, 828, 836, 834, 1376, 1324, 865, 1317, 902, 890,
|
|
850, 854, 864, 868, 876, 884, 885, 886, 873, 852,
|
|
877, 879, 880, 889, 901, 902, 904, 891, 893, 894,
|
|
896, 920, 1316, 1329, 1324, 1323, 1322, 1312, 957, 1491,
|
|
895, 900, 903, 916, 917, 921, 923, 925, 927, 928,
|
|
|
|
929, 931, 934, 939, 941, 943, 946, 948, 935, 933,
|
|
952, 1324, 1319, 1318, 1317, 1307, 1299, 1301, 1313, 1312,
|
|
1343, 1315, 953, 954, 956, 955, 957, 959, 961, 963,
|
|
967, 968, 988, 969, 974, 975, 976, 981, 970, 997,
|
|
989, 990, 1293, 1295, 1307, 1306, 1337, 1304, 1305, 1349,
|
|
1348, 0, 907, 992, 994, 995, 996, 998, 999, 1002,
|
|
1305, 1003, 1004, 1005, 1006, 1008, 1010, 1011, 1014, 1000,
|
|
1021, 1022, 1299, 1300, 1344, 1343, 0, 1299, 1282, 1323,
|
|
1296, 0, 1024, 1296, 1295, 1031, 1033, 1034, 1035, 1294,
|
|
1293, 1032, 1292, 1036, 1038, 1039, 1040, 1291, 1042, 1043,
|
|
|
|
1056, 1289, 1272, 1313, 1286, 0, 1267, 1276, 1268, 1261,
|
|
1044, 1266, 1259, 1252, 1245, 1058, 1238, 1231, 1224, 1217,
|
|
1059, 1062, 1078, 1184, 1189, 1185, 1178, 1160, 1148, 1139,
|
|
1132, 1065, 1066, 1067, 1068, 1073, 1119, 1115, 1112, 1111,
|
|
0, 1109, 1112, 1111, 1125, 1075, 1124, 1079, 1083, 0,
|
|
1103, 1106, 1105, 0, 1108, 0, 0, 1077, 1102, 1089,
|
|
0, 1028, 0, 0, 1011, 0, 0, 1103, 1092, 1090,
|
|
829, 0, 0, 788, 1069, 1094, 726, 655, 0, 1098,
|
|
1095, 0, 0, 1096, 1099, 0, 1104, 496, 1100, 1123,
|
|
1110, 1113, 1115, 1118, 387, 1491, 1180, 286, 130, 1187,
|
|
|
|
1194, 1201, 92, 1208, 1215, 1221, 1227, 1234, 1240, 1247,
|
|
1254, 1261, 1268, 1275, 1282, 1289, 1296, 1303, 1310, 1317,
|
|
1324
|
|
} ;
|
|
|
|
static yyconst flex_int16_t yy_def[722] =
|
|
{ 0,
|
|
696, 1, 696, 696, 696, 696, 697, 696, 696, 698,
|
|
699, 699, 696, 696, 699, 699, 699, 699, 699, 699,
|
|
699, 699, 699, 699, 699, 696, 696, 696, 700, 696,
|
|
697, 696, 701, 698, 698, 698, 699, 699, 699, 696,
|
|
696, 699, 699, 699, 699, 699, 699, 699, 699, 699,
|
|
699, 699, 699, 699, 699, 699, 699, 699, 699, 699,
|
|
699, 696, 696, 696, 700, 696, 702, 696, 701, 698,
|
|
699, 696, 41, 696, 699, 699, 699, 699, 699, 699,
|
|
699, 699, 699, 699, 699, 699, 699, 699, 699, 699,
|
|
699, 699, 699, 699, 703, 704, 702, 702, 702, 698,
|
|
|
|
699, 699, 699, 699, 699, 699, 699, 699, 699, 696,
|
|
699, 699, 699, 699, 699, 699, 699, 699, 699, 699,
|
|
699, 699, 699, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 704, 704, 704, 702, 702, 702,
|
|
698, 699, 699, 699, 699, 699, 699, 699, 699, 696,
|
|
696, 699, 699, 696, 699, 699, 699, 699, 699, 699,
|
|
699, 699, 699, 699, 699, 696, 696, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 704, 704,
|
|
704, 702, 702, 702, 705, 698, 699, 699, 699, 696,
|
|
699, 699, 696, 696, 699, 699, 696, 696, 699, 699,
|
|
|
|
699, 699, 699, 699, 696, 699, 699, 699, 699, 699,
|
|
696, 706, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 704, 704, 704, 707, 702, 702, 702,
|
|
705, 696, 698, 699, 699, 699, 696, 696, 696, 696,
|
|
699, 699, 696, 696, 699, 699, 699, 699, 699, 696,
|
|
699, 696, 699, 699, 699, 696, 696, 706, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 704, 704, 704,
|
|
707, 702, 702, 702, 698, 699, 696, 696, 696, 696,
|
|
699, 699, 696, 696, 699, 699, 699, 696, 699, 696,
|
|
|
|
699, 699, 696, 696, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 704, 704, 704, 708, 702, 702,
|
|
699, 709, 696, 696, 699, 696, 696, 699, 699, 696,
|
|
696, 699, 696, 696, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 710, 704, 704, 708, 702, 702,
|
|
699, 696, 709, 696, 696, 699, 696, 699, 696, 699,
|
|
696, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
|
|
710, 704, 704, 702, 702, 696, 699, 696, 699, 696,
|
|
696, 703, 703, 703, 703, 703, 703, 696, 711, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
704, 704, 702, 702, 696, 696, 696, 703, 703, 703,
|
|
703, 703, 711, 696, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 704, 704, 702, 702, 696, 696,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 704, 704, 702, 702, 702, 702, 702, 696, 696,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 704, 704, 704, 704, 704, 702, 702, 702, 702,
|
|
702, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 704, 704, 704, 704, 704, 702, 702, 702,
|
|
702, 712, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 704, 704, 704, 704, 713, 702, 702, 702,
|
|
702, 712, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
|
|
703, 704, 704, 704, 704, 713, 702, 702, 702, 702,
|
|
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
|
|
703, 703, 703, 704, 704, 704, 704, 702, 702, 702,
|
|
702, 703, 703, 703, 703, 703, 704, 704, 704, 704,
|
|
714, 702, 702, 702, 703, 703, 703, 703, 703, 715,
|
|
704, 704, 704, 714, 702, 716, 717, 703, 703, 703,
|
|
715, 704, 718, 719, 702, 716, 717, 703, 703, 703,
|
|
704, 718, 719, 702, 703, 703, 703, 704, 720, 703,
|
|
703, 721, 720, 703, 703, 721, 703, 703, 703, 703,
|
|
703, 703, 703, 703, 703, 0, 696, 696, 696, 696,
|
|
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696
|
|
} ;
|
|
|
|
static yyconst flex_int16_t yy_nxt[1562] =
|
|
{ 0,
|
|
4, 5, 6, 5, 5, 7, 4, 8, 8, 8,
|
|
8, 8, 9, 10, 10, 10, 10, 10, 10, 8,
|
|
8, 11, 11, 11, 11, 11, 11, 11, 11, 11,
|
|
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
|
|
12, 11, 11, 11, 13, 14, 15, 11, 11, 16,
|
|
17, 11, 18, 11, 11, 19, 11, 11, 20, 11,
|
|
11, 21, 22, 11, 23, 11, 24, 25, 11, 11,
|
|
26, 27, 28, 26, 32, 29, 33, 42, 38, 38,
|
|
39, 30, 34, 34, 34, 34, 34, 34, 38, 40,
|
|
40, 40, 40, 47, 51, 38, 38, 124, 43, 38,
|
|
|
|
38, 38, 41, 41, 41, 41, 41, 44, 48, 50,
|
|
38, 45, 70, 49, 46, 36, 52, 38, 53, 38,
|
|
32, 54, 67, 71, 58, 55, 56, 42, 59, 62,
|
|
63, 63, 62, 36, 60, 37, 57, 42, 61, 38,
|
|
64, 34, 34, 34, 34, 34, 34, 38, 38, 40,
|
|
40, 40, 40, 75, 38, 77, 38, 38, 38, 38,
|
|
78, 79, 41, 41, 41, 41, 41, 76, 38, 38,
|
|
38, 81, 38, 38, 36, 72, 72, 72, 72, 82,
|
|
38, 38, 84, 95, 89, 38, 85, 73, 73, 73,
|
|
73, 73, 73, 80, 86, 38, 38, 88, 38, 83,
|
|
|
|
87, 38, 91, 90, 38, 38, 62, 63, 63, 62,
|
|
98, 100, 38, 38, 94, 36, 92, 64, 102, 74,
|
|
38, 93, 72, 72, 72, 72, 103, 38, 99, 38,
|
|
104, 38, 38, 107, 38, 108, 38, 109, 105, 110,
|
|
110, 110, 110, 113, 38, 106, 38, 38, 38, 38,
|
|
38, 38, 38, 38, 38, 136, 138, 38, 123, 117,
|
|
203, 114, 121, 143, 119, 118, 74, 115, 116, 139,
|
|
120, 122, 141, 137, 125, 38, 42, 38, 126, 127,
|
|
38, 128, 142, 36, 38, 129, 38, 38, 38, 130,
|
|
131, 35, 132, 133, 38, 145, 111, 38, 134, 144,
|
|
|
|
147, 38, 112, 38, 157, 146, 148, 38, 149, 110,
|
|
110, 110, 110, 38, 158, 153, 152, 154, 154, 154,
|
|
154, 38, 38, 38, 38, 38, 159, 38, 38, 162,
|
|
134, 160, 134, 134, 163, 164, 166, 166, 166, 166,
|
|
134, 134, 161, 167, 169, 168, 170, 165, 134, 134,
|
|
134, 179, 171, 190, 173, 172, 175, 178, 134, 176,
|
|
188, 182, 38, 186, 180, 183, 150, 187, 174, 189,
|
|
38, 155, 151, 177, 156, 36, 38, 38, 134, 38,
|
|
192, 38, 191, 38, 154, 154, 154, 154, 38, 38,
|
|
38, 38, 38, 195, 38, 38, 38, 38, 196, 204,
|
|
|
|
38, 241, 38, 199, 207, 200, 205, 205, 205, 205,
|
|
201, 202, 38, 38, 210, 208, 209, 166, 166, 166,
|
|
166, 134, 134, 134, 167, 211, 211, 211, 211, 134,
|
|
134, 216, 236, 134, 212, 134, 213, 214, 197, 134,
|
|
134, 198, 215, 134, 219, 134, 233, 234, 217, 218,
|
|
221, 38, 222, 223, 224, 235, 36, 134, 225, 220,
|
|
206, 38, 38, 38, 38, 38, 38, 237, 237, 237,
|
|
237, 38, 38, 38, 134, 260, 38, 248, 38, 242,
|
|
247, 134, 302, 245, 134, 246, 205, 205, 205, 205,
|
|
251, 38, 249, 252, 252, 252, 252, 38, 211, 211,
|
|
|
|
211, 211, 254, 255, 265, 134, 275, 212, 256, 256,
|
|
256, 256, 266, 261, 273, 262, 257, 259, 263, 134,
|
|
134, 264, 285, 134, 134, 274, 277, 134, 286, 38,
|
|
36, 38, 38, 238, 267, 38, 276, 134, 38, 295,
|
|
250, 253, 134, 268, 38, 269, 296, 270, 271, 297,
|
|
292, 272, 134, 38, 299, 347, 134, 134, 237, 237,
|
|
237, 237, 290, 290, 290, 290, 252, 252, 252, 252,
|
|
38, 256, 256, 256, 256, 306, 134, 307, 301, 257,
|
|
303, 303, 303, 303, 134, 134, 308, 304, 256, 256,
|
|
256, 256, 134, 134, 134, 134, 257, 305, 310, 134,
|
|
|
|
134, 314, 134, 134, 309, 315, 134, 38, 331, 134,
|
|
311, 313, 134, 312, 300, 134, 324, 316, 320, 291,
|
|
318, 317, 321, 134, 238, 319, 134, 452, 134, 38,
|
|
323, 38, 134, 290, 290, 290, 290, 38, 342, 322,
|
|
290, 290, 290, 290, 335, 400, 337, 337, 337, 337,
|
|
38, 134, 345, 134, 339, 303, 303, 303, 303, 134,
|
|
134, 134, 304, 343, 343, 343, 343, 134, 346, 134,
|
|
348, 134, 350, 134, 134, 134, 351, 355, 349, 352,
|
|
134, 353, 134, 134, 134, 354, 134, 358, 362, 356,
|
|
333, 38, 357, 134, 360, 363, 134, 333, 364, 371,
|
|
|
|
338, 361, 38, 359, 372, 372, 372, 372, 134, 38,
|
|
38, 337, 337, 337, 337, 682, 38, 134, 134, 337,
|
|
337, 337, 337, 374, 376, 134, 380, 134, 134, 344,
|
|
378, 343, 343, 343, 343, 134, 387, 134, 134, 382,
|
|
385, 383, 388, 134, 134, 384, 386, 134, 134, 134,
|
|
134, 134, 391, 392, 134, 134, 389, 396, 393, 134,
|
|
395, 390, 134, 38, 412, 377, 134, 438, 134, 394,
|
|
407, 38, 134, 377, 399, 413, 397, 134, 134, 398,
|
|
372, 372, 372, 372, 372, 372, 372, 372, 134, 134,
|
|
409, 415, 414, 134, 418, 134, 134, 344, 419, 374,
|
|
|
|
134, 134, 134, 374, 417, 422, 134, 416, 134, 134,
|
|
134, 420, 134, 423, 134, 421, 425, 439, 134, 428,
|
|
424, 134, 426, 134, 134, 134, 427, 445, 134, 430,
|
|
441, 429, 448, 134, 453, 418, 134, 440, 442, 419,
|
|
134, 134, 134, 446, 134, 447, 134, 134, 679, 450,
|
|
449, 459, 459, 459, 459, 134, 463, 134, 461, 451,
|
|
460, 464, 462, 454, 465, 466, 467, 468, 134, 470,
|
|
134, 471, 134, 473, 134, 134, 474, 475, 476, 477,
|
|
134, 469, 134, 479, 481, 134, 472, 134, 484, 485,
|
|
678, 489, 489, 478, 489, 134, 134, 480, 134, 490,
|
|
|
|
134, 500, 486, 459, 459, 459, 459, 134, 495, 492,
|
|
134, 493, 460, 491, 134, 494, 496, 497, 498, 134,
|
|
499, 504, 134, 134, 501, 134, 134, 503, 502, 487,
|
|
134, 134, 134, 505, 506, 134, 507, 134, 508, 134,
|
|
134, 134, 134, 512, 513, 583, 134, 134, 134, 134,
|
|
134, 511, 524, 134, 509, 510, 522, 514, 489, 489,
|
|
523, 489, 134, 134, 526, 525, 490, 134, 527, 134,
|
|
528, 134, 529, 134, 134, 134, 530, 134, 532, 134,
|
|
134, 134, 533, 534, 515, 134, 535, 134, 536, 134,
|
|
537, 531, 134, 538, 134, 540, 541, 539, 134, 134,
|
|
|
|
134, 134, 134, 134, 556, 134, 557, 134, 558, 134,
|
|
559, 563, 542, 134, 134, 134, 134, 554, 553, 555,
|
|
134, 134, 134, 565, 566, 567, 560, 134, 561, 570,
|
|
568, 562, 564, 569, 134, 134, 134, 572, 134, 571,
|
|
134, 134, 134, 134, 134, 134, 134, 599, 134, 134,
|
|
134, 134, 134, 584, 134, 585, 134, 134, 586, 587,
|
|
134, 588, 589, 590, 591, 592, 593, 134, 134, 594,
|
|
134, 595, 674, 596, 597, 598, 600, 134, 134, 134,
|
|
134, 134, 134, 671, 134, 134, 134, 601, 134, 134,
|
|
134, 621, 612, 611, 613, 614, 615, 617, 616, 618,
|
|
|
|
619, 620, 134, 622, 134, 134, 632, 623, 134, 635,
|
|
636, 134, 134, 134, 134, 134, 645, 680, 633, 134,
|
|
649, 134, 634, 134, 134, 134, 658, 668, 647, 134,
|
|
659, 646, 660, 648, 669, 134, 134, 675, 134, 676,
|
|
134, 134, 134, 681, 134, 134, 134, 687, 134, 134,
|
|
134, 677, 670, 689, 684, 691, 134, 692, 685, 134,
|
|
688, 134, 693, 665, 134, 690, 664, 663, 662, 134,
|
|
134, 134, 657, 656, 655, 653, 652, 651, 694, 695,
|
|
31, 31, 31, 650, 31, 31, 31, 65, 65, 65,
|
|
65, 65, 65, 65, 69, 69, 644, 69, 69, 69,
|
|
|
|
69, 97, 97, 643, 97, 97, 97, 97, 135, 135,
|
|
642, 135, 135, 135, 135, 231, 231, 231, 231, 231,
|
|
231, 231, 258, 258, 641, 258, 258, 281, 281, 281,
|
|
281, 281, 281, 281, 368, 368, 640, 368, 368, 368,
|
|
368, 373, 373, 639, 638, 373, 373, 401, 401, 637,
|
|
401, 401, 401, 401, 443, 443, 443, 443, 443, 443,
|
|
443, 582, 582, 134, 582, 582, 582, 582, 606, 606,
|
|
134, 606, 606, 606, 606, 654, 654, 134, 654, 654,
|
|
654, 654, 661, 661, 134, 661, 661, 661, 661, 666,
|
|
666, 134, 666, 666, 666, 666, 667, 667, 134, 667,
|
|
|
|
667, 667, 667, 672, 672, 134, 672, 672, 672, 672,
|
|
673, 673, 134, 673, 673, 673, 673, 683, 683, 631,
|
|
683, 683, 683, 683, 686, 686, 630, 686, 686, 686,
|
|
686, 629, 628, 627, 626, 625, 624, 134, 134, 134,
|
|
134, 134, 134, 610, 609, 608, 607, 605, 604, 603,
|
|
602, 134, 581, 580, 579, 578, 577, 576, 575, 574,
|
|
573, 134, 552, 551, 550, 549, 548, 547, 546, 545,
|
|
544, 543, 521, 520, 519, 518, 517, 516, 488, 483,
|
|
482, 134, 134, 444, 458, 457, 456, 455, 134, 444,
|
|
134, 437, 38, 436, 38, 435, 434, 433, 432, 431,
|
|
|
|
134, 411, 38, 410, 408, 406, 38, 405, 404, 403,
|
|
402, 134, 381, 379, 38, 375, 370, 369, 367, 366,
|
|
365, 38, 341, 38, 340, 38, 336, 38, 334, 332,
|
|
36, 330, 329, 328, 232, 327, 326, 325, 38, 298,
|
|
38, 38, 294, 293, 289, 288, 287, 38, 38, 232,
|
|
284, 283, 282, 232, 280, 279, 278, 38, 38, 244,
|
|
243, 240, 239, 38, 38, 232, 230, 229, 228, 227,
|
|
226, 194, 193, 38, 38, 185, 184, 181, 134, 38,
|
|
140, 101, 66, 96, 38, 36, 68, 66, 38, 696,
|
|
3, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696
|
|
} ;
|
|
|
|
static yyconst flex_int16_t yy_chk[1562] =
|
|
{ 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, 1, 1, 1, 1, 1,
|
|
2, 2, 2, 2, 9, 2, 9, 15, 17, 20,
|
|
12, 2, 10, 10, 10, 10, 10, 10, 12, 13,
|
|
13, 13, 13, 17, 20, 19, 18, 703, 15, 16,
|
|
|
|
21, 22, 13, 13, 13, 13, 13, 16, 18, 19,
|
|
24, 16, 36, 18, 16, 10, 21, 23, 22, 25,
|
|
30, 22, 30, 39, 24, 23, 23, 38, 25, 26,
|
|
26, 26, 26, 36, 25, 699, 23, 43, 25, 39,
|
|
26, 34, 34, 34, 34, 34, 34, 46, 38, 40,
|
|
40, 40, 40, 42, 44, 44, 48, 42, 43, 45,
|
|
45, 46, 40, 40, 40, 40, 40, 43, 51, 55,
|
|
49, 48, 61, 47, 34, 41, 41, 41, 41, 49,
|
|
50, 52, 51, 61, 55, 53, 52, 41, 41, 41,
|
|
41, 41, 41, 47, 53, 54, 56, 54, 58, 50,
|
|
|
|
53, 57, 57, 56, 59, 60, 62, 62, 62, 62,
|
|
67, 70, 76, 77, 60, 70, 58, 62, 75, 41,
|
|
78, 59, 72, 72, 72, 72, 76, 79, 67, 75,
|
|
77, 80, 82, 80, 81, 81, 84, 82, 78, 83,
|
|
83, 83, 83, 84, 85, 79, 86, 88, 89, 87,
|
|
90, 91, 93, 92, 94, 96, 98, 159, 94, 88,
|
|
159, 85, 92, 102, 90, 89, 72, 86, 87, 98,
|
|
91, 93, 100, 96, 95, 102, 101, 105, 95, 95,
|
|
103, 95, 101, 100, 83, 95, 106, 108, 107, 95,
|
|
95, 698, 95, 95, 109, 105, 83, 101, 95, 103,
|
|
|
|
107, 111, 83, 114, 114, 106, 108, 112, 109, 110,
|
|
110, 110, 110, 115, 115, 112, 111, 113, 113, 113,
|
|
113, 116, 117, 118, 119, 120, 116, 122, 121, 119,
|
|
125, 117, 126, 131, 120, 121, 123, 123, 123, 123,
|
|
129, 127, 118, 123, 126, 125, 127, 122, 128, 130,
|
|
132, 136, 128, 145, 130, 129, 131, 134, 133, 132,
|
|
143, 138, 113, 141, 136, 138, 110, 142, 130, 144,
|
|
143, 113, 110, 133, 113, 141, 149, 147, 134, 152,
|
|
149, 123, 147, 153, 154, 154, 154, 154, 142, 155,
|
|
156, 157, 158, 152, 195, 145, 160, 144, 153, 160,
|
|
|
|
162, 195, 164, 155, 162, 156, 161, 161, 161, 161,
|
|
157, 158, 163, 165, 165, 163, 164, 166, 166, 166,
|
|
166, 168, 169, 170, 166, 167, 167, 167, 167, 172,
|
|
173, 171, 189, 695, 167, 177, 168, 169, 154, 171,
|
|
174, 154, 170, 175, 174, 176, 186, 187, 172, 173,
|
|
176, 161, 177, 178, 179, 188, 186, 178, 179, 175,
|
|
161, 189, 196, 188, 199, 201, 187, 190, 190, 190,
|
|
190, 200, 202, 203, 214, 214, 206, 202, 254, 196,
|
|
201, 216, 254, 199, 221, 200, 205, 205, 205, 205,
|
|
206, 210, 203, 207, 207, 207, 207, 209, 211, 211,
|
|
|
|
211, 211, 209, 210, 216, 213, 221, 211, 212, 212,
|
|
212, 212, 217, 215, 219, 215, 212, 213, 215, 217,
|
|
220, 215, 233, 219, 222, 220, 223, 215, 234, 247,
|
|
233, 242, 246, 190, 218, 251, 222, 223, 207, 246,
|
|
205, 207, 688, 218, 249, 218, 247, 218, 218, 249,
|
|
242, 218, 307, 234, 251, 307, 260, 218, 237, 237,
|
|
237, 237, 241, 241, 241, 241, 252, 252, 252, 252,
|
|
253, 256, 256, 256, 256, 260, 261, 261, 253, 256,
|
|
257, 257, 257, 257, 262, 263, 262, 257, 258, 258,
|
|
258, 258, 259, 264, 265, 266, 258, 259, 264, 267,
|
|
|
|
268, 268, 271, 269, 263, 269, 273, 241, 286, 428,
|
|
265, 267, 270, 266, 252, 272, 277, 270, 274, 241,
|
|
272, 271, 274, 275, 237, 273, 276, 428, 277, 291,
|
|
276, 286, 274, 288, 288, 288, 288, 301, 301, 275,
|
|
290, 290, 290, 290, 291, 364, 295, 295, 295, 295,
|
|
297, 305, 305, 364, 297, 303, 303, 303, 303, 306,
|
|
308, 309, 303, 304, 304, 304, 304, 315, 306, 310,
|
|
308, 311, 310, 322, 312, 317, 311, 315, 309, 312,
|
|
313, 313, 314, 316, 318, 314, 319, 318, 322, 316,
|
|
288, 295, 317, 320, 320, 323, 321, 290, 324, 331,
|
|
|
|
295, 321, 331, 319, 332, 332, 332, 332, 324, 342,
|
|
335, 336, 336, 336, 336, 678, 338, 350, 323, 337,
|
|
337, 337, 337, 332, 335, 345, 342, 346, 347, 304,
|
|
338, 343, 343, 343, 343, 348, 350, 349, 352, 345,
|
|
348, 346, 352, 353, 354, 347, 349, 355, 356, 357,
|
|
358, 359, 355, 356, 360, 361, 353, 360, 357, 363,
|
|
359, 354, 362, 376, 382, 336, 412, 412, 383, 358,
|
|
376, 378, 677, 337, 363, 383, 361, 384, 382, 362,
|
|
372, 372, 372, 372, 373, 373, 373, 373, 385, 387,
|
|
378, 385, 384, 386, 388, 389, 392, 343, 388, 372,
|
|
|
|
390, 394, 391, 373, 387, 391, 393, 386, 395, 396,
|
|
397, 389, 398, 392, 399, 390, 394, 413, 415, 397,
|
|
393, 417, 395, 416, 422, 424, 396, 420, 413, 399,
|
|
416, 398, 424, 425, 429, 418, 388, 415, 417, 418,
|
|
423, 420, 426, 422, 427, 423, 430, 439, 674, 426,
|
|
425, 437, 437, 437, 437, 438, 440, 429, 438, 427,
|
|
437, 441, 439, 430, 442, 442, 442, 442, 445, 445,
|
|
440, 446, 447, 448, 452, 441, 449, 449, 449, 449,
|
|
454, 442, 453, 452, 454, 446, 447, 448, 457, 457,
|
|
671, 460, 460, 449, 460, 442, 461, 453, 470, 460,
|
|
|
|
462, 470, 457, 459, 459, 459, 459, 449, 465, 462,
|
|
463, 463, 459, 461, 464, 464, 466, 467, 468, 469,
|
|
469, 474, 465, 471, 471, 472, 473, 473, 472, 457,
|
|
466, 467, 468, 475, 476, 474, 477, 478, 478, 479,
|
|
480, 491, 481, 482, 482, 553, 492, 475, 476, 493,
|
|
477, 481, 493, 553, 479, 480, 491, 482, 489, 489,
|
|
492, 489, 494, 495, 495, 494, 489, 496, 496, 497,
|
|
497, 498, 498, 499, 500, 501, 499, 502, 501, 510,
|
|
503, 509, 502, 503, 482, 504, 504, 505, 505, 506,
|
|
506, 500, 507, 507, 508, 509, 510, 508, 511, 523,
|
|
|
|
524, 526, 525, 527, 526, 528, 527, 529, 528, 530,
|
|
529, 533, 511, 531, 532, 534, 539, 524, 523, 525,
|
|
535, 536, 537, 535, 536, 537, 530, 538, 531, 540,
|
|
538, 532, 534, 539, 533, 541, 542, 542, 554, 541,
|
|
555, 556, 557, 540, 558, 559, 570, 570, 560, 562,
|
|
563, 564, 565, 554, 566, 555, 567, 568, 556, 557,
|
|
569, 558, 559, 560, 562, 563, 564, 571, 572, 565,
|
|
583, 566, 665, 567, 568, 569, 571, 586, 592, 587,
|
|
588, 589, 594, 662, 595, 596, 597, 572, 599, 600,
|
|
611, 599, 586, 583, 587, 588, 589, 594, 592, 595,
|
|
|
|
596, 597, 601, 600, 616, 621, 611, 601, 622, 622,
|
|
623, 632, 633, 634, 635, 675, 632, 675, 616, 636,
|
|
636, 646, 621, 658, 623, 648, 646, 658, 634, 649,
|
|
648, 633, 649, 635, 659, 660, 670, 668, 669, 669,
|
|
676, 681, 684, 676, 680, 685, 689, 684, 659, 668,
|
|
687, 670, 660, 687, 680, 690, 691, 691, 681, 692,
|
|
685, 693, 692, 655, 694, 689, 653, 652, 651, 690,
|
|
647, 645, 644, 643, 642, 640, 639, 638, 693, 694,
|
|
697, 697, 697, 637, 697, 697, 697, 700, 700, 700,
|
|
700, 700, 700, 700, 701, 701, 631, 701, 701, 701,
|
|
|
|
701, 702, 702, 630, 702, 702, 702, 702, 704, 704,
|
|
629, 704, 704, 704, 704, 705, 705, 705, 705, 705,
|
|
705, 705, 706, 706, 628, 706, 706, 707, 707, 707,
|
|
707, 707, 707, 707, 708, 708, 627, 708, 708, 708,
|
|
708, 709, 709, 626, 625, 709, 709, 710, 710, 624,
|
|
710, 710, 710, 710, 711, 711, 711, 711, 711, 711,
|
|
711, 712, 712, 620, 712, 712, 712, 712, 713, 713,
|
|
619, 713, 713, 713, 713, 714, 714, 618, 714, 714,
|
|
714, 714, 715, 715, 617, 715, 715, 715, 715, 716,
|
|
716, 615, 716, 716, 716, 716, 717, 717, 614, 717,
|
|
|
|
717, 717, 717, 718, 718, 613, 718, 718, 718, 718,
|
|
719, 719, 612, 719, 719, 719, 719, 720, 720, 610,
|
|
720, 720, 720, 720, 721, 721, 609, 721, 721, 721,
|
|
721, 608, 607, 605, 604, 603, 602, 598, 593, 591,
|
|
590, 585, 584, 581, 580, 579, 578, 576, 575, 574,
|
|
573, 561, 551, 550, 549, 548, 547, 546, 545, 544,
|
|
543, 522, 521, 520, 519, 518, 517, 516, 515, 514,
|
|
513, 512, 488, 487, 486, 485, 484, 483, 458, 456,
|
|
455, 451, 450, 443, 434, 433, 432, 431, 421, 419,
|
|
414, 411, 409, 408, 407, 406, 405, 404, 403, 402,
|
|
|
|
400, 381, 380, 379, 377, 375, 371, 370, 369, 367,
|
|
366, 351, 344, 341, 339, 333, 330, 329, 327, 326,
|
|
325, 302, 300, 299, 298, 296, 294, 292, 289, 287,
|
|
285, 284, 283, 282, 281, 280, 279, 278, 255, 250,
|
|
248, 245, 244, 243, 240, 239, 238, 236, 235, 231,
|
|
230, 229, 228, 227, 226, 225, 224, 208, 204, 198,
|
|
197, 194, 193, 192, 191, 185, 184, 183, 182, 181,
|
|
180, 151, 150, 148, 146, 140, 139, 137, 124, 104,
|
|
99, 71, 65, 64, 37, 35, 31, 29, 11, 3,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696, 696, 696, 696, 696, 696, 696, 696, 696, 696,
|
|
696
|
|
} ;
|
|
|
|
/* Table of booleans, true if rule could match eol. */
|
|
static yyconst flex_int32_t yy_rule_can_match_eol[81] =
|
|
{ 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 0, 1, 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, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0,
|
|
0, };
|
|
|
|
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 "vtkParse.l"
|
|
#line 3 "vtkParse.l"
|
|
|
|
/*
|
|
|
|
This file must be translated to C and modified to build everywhere.
|
|
|
|
Run flex like this:
|
|
|
|
flex -olex.yy.c vtkParse.l
|
|
|
|
Modify lex.yy.c:
|
|
- remove yyunput function
|
|
- remove TABs
|
|
|
|
*/
|
|
|
|
/* We do not care of interactive mode */
|
|
#define YY_NEVER_INTERACTIVE 1
|
|
#define YY_NO_UNPUT 1
|
|
|
|
/* Do not include unistd.h in generated source. */
|
|
#define YY_NO_UNISTD_H
|
|
|
|
/* Skip declaring this function. It is a macro. */
|
|
#define YY_SKIP_YYWRAP
|
|
|
|
#ifdef _WIN32
|
|
#pragma warning ( disable : 4127 )
|
|
#pragma warning ( disable : 4131 )
|
|
#pragma warning ( disable : 4244 )
|
|
#pragma warning ( disable : 4251 )
|
|
#pragma warning ( disable : 4267 )
|
|
#pragma warning ( disable : 4305 )
|
|
#pragma warning ( disable : 4309 )
|
|
#pragma warning ( disable : 4706 )
|
|
#pragma warning ( disable : 4786 )
|
|
#endif
|
|
|
|
#line 1084 "lex.yy.c"
|
|
|
|
#define INITIAL 0
|
|
|
|
#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
|
|
|
|
/* 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 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
|
|
#define YY_READ_BUF_SIZE 8192
|
|
#endif
|
|
|
|
/* Copy whatever the last rule matched to the standard output. */
|
|
#ifndef ECHO
|
|
/* This used to be an fputs(), but since the string might contain NUL's,
|
|
* we now use fwrite().
|
|
*/
|
|
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
|
|
#endif
|
|
|
|
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
|
|
* is returned in "result".
|
|
*/
|
|
#ifndef YY_INPUT
|
|
#define YY_INPUT(buf,result,max_size) \
|
|
if ( YY_CURRENT_BUFFER_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 43 "vtkParse.l"
|
|
|
|
|
|
#line 1241 "lex.yy.c"
|
|
|
|
if ( (yy_init) )
|
|
{
|
|
(yy_init) = 0;
|
|
|
|
#ifdef YY_USER_INIT
|
|
YY_USER_INIT;
|
|
#endif
|
|
|
|
if ( ! (yy_start) )
|
|
(yy_start) = 1; /* first start state */
|
|
|
|
if ( ! yyin )
|
|
yyin = stdin;
|
|
|
|
if ( ! yyout )
|
|
yyout = stdout;
|
|
|
|
if ( ! YY_CURRENT_BUFFER ) {
|
|
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 >= 697 )
|
|
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] != 1491 );
|
|
|
|
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;
|
|
|
|
if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
|
|
{
|
|
int yyl;
|
|
for ( yyl = 0; yyl < yyleng; ++yyl )
|
|
if ( yytext[yyl] == '\n' )
|
|
|
|
yylineno++;
|
|
;
|
|
}
|
|
|
|
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 45 "vtkParse.l"
|
|
{ int c1 = 0, c2 = input();
|
|
for (;;)
|
|
{
|
|
if (c2 == 0)
|
|
{
|
|
fprintf(yyout,"Cannot find closing comment.\n");
|
|
break;
|
|
}
|
|
if (c1 == '*' && c2 == '/') break;
|
|
c1 = c2; c2 = input();
|
|
}
|
|
};
|
|
YY_BREAK
|
|
case 2:
|
|
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
|
|
(yy_c_buf_p) = yy_cp -= 1;
|
|
YY_DO_BEFORE_ACTION; /* set up yytext again */
|
|
YY_RULE_SETUP
|
|
#line 58 "vtkParse.l"
|
|
{
|
|
int c1 = 0, c2 = 0, c3 = 0, c4 = 0, c5 = input();
|
|
for (;;)
|
|
{
|
|
if (c5 == 0)
|
|
{
|
|
fprintf(yyout,"Cannot find matching //ETX.\n");
|
|
break;
|
|
}
|
|
if (c1 == '/' && c2 == '/' && c3 == 'E' && c4 == 'T' && c5 == 'X') break;
|
|
c1 = c2; c2 = c3; c3 = c4; c4 = c5; c5 = input();
|
|
}
|
|
for (;;)
|
|
{
|
|
if (c5 == 0) break;
|
|
if (c5 == '\n') break;
|
|
c5 = input();
|
|
}
|
|
};
|
|
YY_BREAK
|
|
case 3:
|
|
YY_RULE_SETUP
|
|
#line 78 "vtkParse.l"
|
|
{
|
|
int pos = 1;
|
|
while (yytext[pos-1] != 'M' || yytext[pos] != 'E')
|
|
{
|
|
pos++;
|
|
}
|
|
yylval.str = (char *)malloc(yyleng + 1 - pos - 1);
|
|
memcpy(yylval.str,yytext+ pos + 1,yyleng - pos - 1);
|
|
yylval.str[yyleng - pos - 1] = '\0';
|
|
data.NameComment = vtkstrdup(yylval.str);
|
|
};
|
|
YY_BREAK
|
|
case 4:
|
|
YY_RULE_SETUP
|
|
#line 90 "vtkParse.l"
|
|
{
|
|
CommentState = 1;
|
|
data.Description = (char*)malloc(100000);
|
|
data.Description[0] = '\0';
|
|
};
|
|
YY_BREAK
|
|
case 5:
|
|
YY_RULE_SETUP
|
|
#line 96 "vtkParse.l"
|
|
{
|
|
CommentState = 3;
|
|
data.SeeAlso = (char*)malloc(100000);
|
|
data.SeeAlso[0] = '\0';
|
|
};
|
|
YY_BREAK
|
|
case 6:
|
|
YY_RULE_SETUP
|
|
#line 102 "vtkParse.l"
|
|
{
|
|
CommentState = 3;
|
|
data.SeeAlso = (char*)malloc(100000);
|
|
data.SeeAlso[0] = '\0';
|
|
};
|
|
YY_BREAK
|
|
case 7:
|
|
YY_RULE_SETUP
|
|
#line 108 "vtkParse.l"
|
|
{
|
|
CommentState = 4;
|
|
data.Caveats = (char*)malloc(100000);
|
|
data.Caveats[0] = '\0';
|
|
};
|
|
YY_BREAK
|
|
case 8:
|
|
YY_RULE_SETUP
|
|
#line 114 "vtkParse.l"
|
|
{
|
|
CommentState = 2;
|
|
HaveComment = 1;
|
|
CommentText[0] = '\0';
|
|
};
|
|
YY_BREAK
|
|
case 9:
|
|
/* rule 9 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 120 "vtkParse.l"
|
|
{
|
|
HaveComment = 0;
|
|
CommentState = 0;
|
|
};
|
|
YY_BREAK
|
|
case 10:
|
|
YY_RULE_SETUP
|
|
#line 125 "vtkParse.l"
|
|
{
|
|
int pos = 1;
|
|
while (yytext[pos-1] != '/' || yytext[pos] != '/') pos++;
|
|
yylval.str = (char *)malloc(yyleng + 1 - pos - 1 + 1);
|
|
memcpy(yylval.str,yytext+ pos + 1,yyleng - pos - 1);
|
|
yylval.str[yyleng - pos - 1] = '\n';
|
|
yylval.str[yyleng - pos] = '\0';
|
|
switch (CommentState)
|
|
{
|
|
case 1: strcat(data.Description,yylval.str); break;
|
|
case 2: strcat(CommentText,yylval.str); break;
|
|
case 3: strcat(data.SeeAlso,yylval.str); break;
|
|
case 4: strcat(data.Caveats,yylval.str); break;
|
|
}
|
|
};
|
|
YY_BREAK
|
|
case 11:
|
|
YY_RULE_SETUP
|
|
#line 141 "vtkParse.l"
|
|
;
|
|
YY_BREAK
|
|
case 12:
|
|
YY_RULE_SETUP
|
|
#line 143 "vtkParse.l"
|
|
;
|
|
YY_BREAK
|
|
case 13:
|
|
/* rule 13 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 145 "vtkParse.l"
|
|
;
|
|
YY_BREAK
|
|
case 14:
|
|
/* rule 14 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 147 "vtkParse.l"
|
|
{
|
|
sscanf(yytext+1,"%d",&yylval.integer); return(ARRAY_NUM);}
|
|
YY_BREAK
|
|
case 15:
|
|
/* rule 15 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 151 "vtkParse.l"
|
|
return(CLASS_REF);
|
|
YY_BREAK
|
|
case 16:
|
|
/* rule 16 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 153 "vtkParse.l"
|
|
return(VAR_FUNCTION);
|
|
YY_BREAK
|
|
case 17:
|
|
/* rule 17 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 155 "vtkParse.l"
|
|
return(SHORT);
|
|
YY_BREAK
|
|
case 18:
|
|
/* rule 18 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 156 "vtkParse.l"
|
|
return(LONG);
|
|
YY_BREAK
|
|
case 19:
|
|
/* rule 19 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 157 "vtkParse.l"
|
|
return(SHORT);
|
|
YY_BREAK
|
|
case 20:
|
|
/* rule 20 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 158 "vtkParse.l"
|
|
return(LONG);
|
|
YY_BREAK
|
|
case 21:
|
|
/* rule 21 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 160 "vtkParse.l"
|
|
return(LONG_LONG);
|
|
YY_BREAK
|
|
case 22:
|
|
/* rule 22 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 161 "vtkParse.l"
|
|
return(LONG_LONG);
|
|
YY_BREAK
|
|
case 23:
|
|
/* rule 23 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 162 "vtkParse.l"
|
|
return(LONG_LONG);
|
|
YY_BREAK
|
|
case 24:
|
|
YY_RULE_SETUP
|
|
#line 164 "vtkParse.l"
|
|
return(INT64__);
|
|
YY_BREAK
|
|
case 25:
|
|
/* rule 25 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 166 "vtkParse.l"
|
|
return(SIGNED_CHAR);
|
|
YY_BREAK
|
|
case 26:
|
|
YY_RULE_SETUP
|
|
#line 168 "vtkParse.l"
|
|
return(CLASS);
|
|
YY_BREAK
|
|
case 27:
|
|
YY_RULE_SETUP
|
|
#line 169 "vtkParse.l"
|
|
return(PUBLIC);
|
|
YY_BREAK
|
|
case 28:
|
|
YY_RULE_SETUP
|
|
#line 170 "vtkParse.l"
|
|
return(PRIVATE);
|
|
YY_BREAK
|
|
case 29:
|
|
YY_RULE_SETUP
|
|
#line 171 "vtkParse.l"
|
|
return(PROTECTED);
|
|
YY_BREAK
|
|
case 30:
|
|
YY_RULE_SETUP
|
|
#line 172 "vtkParse.l"
|
|
return(INT);
|
|
YY_BREAK
|
|
case 31:
|
|
YY_RULE_SETUP
|
|
#line 173 "vtkParse.l"
|
|
return(FLOAT);
|
|
YY_BREAK
|
|
case 32:
|
|
YY_RULE_SETUP
|
|
#line 174 "vtkParse.l"
|
|
return(SHORT);
|
|
YY_BREAK
|
|
case 33:
|
|
YY_RULE_SETUP
|
|
#line 175 "vtkParse.l"
|
|
return(LONG);
|
|
YY_BREAK
|
|
case 34:
|
|
YY_RULE_SETUP
|
|
#line 176 "vtkParse.l"
|
|
return(DOUBLE);
|
|
YY_BREAK
|
|
case 35:
|
|
YY_RULE_SETUP
|
|
#line 177 "vtkParse.l"
|
|
return(VOID);
|
|
YY_BREAK
|
|
case 36:
|
|
YY_RULE_SETUP
|
|
#line 178 "vtkParse.l"
|
|
return(CHAR);
|
|
YY_BREAK
|
|
case 37:
|
|
YY_RULE_SETUP
|
|
#line 179 "vtkParse.l"
|
|
return(VIRTUAL);
|
|
YY_BREAK
|
|
case 38:
|
|
YY_RULE_SETUP
|
|
#line 180 "vtkParse.l"
|
|
return(CONST);
|
|
YY_BREAK
|
|
case 39:
|
|
YY_RULE_SETUP
|
|
#line 181 "vtkParse.l"
|
|
return(OPERATOR);
|
|
YY_BREAK
|
|
case 40:
|
|
YY_RULE_SETUP
|
|
#line 182 "vtkParse.l"
|
|
return(UNSIGNED);
|
|
YY_BREAK
|
|
case 41:
|
|
YY_RULE_SETUP
|
|
#line 183 "vtkParse.l"
|
|
return(FRIEND);
|
|
YY_BREAK
|
|
case 42:
|
|
YY_RULE_SETUP
|
|
#line 184 "vtkParse.l"
|
|
return(STATIC);
|
|
YY_BREAK
|
|
case 43:
|
|
YY_RULE_SETUP
|
|
#line 186 "vtkParse.l"
|
|
return(DOUBLE);
|
|
YY_BREAK
|
|
case 44:
|
|
YY_RULE_SETUP
|
|
#line 187 "vtkParse.l"
|
|
return(IdType);
|
|
YY_BREAK
|
|
case 45:
|
|
YY_RULE_SETUP
|
|
#line 188 "vtkParse.l"
|
|
return(StdString);
|
|
YY_BREAK
|
|
case 46:
|
|
YY_RULE_SETUP
|
|
#line 189 "vtkParse.l"
|
|
return(SetMacro);
|
|
YY_BREAK
|
|
case 47:
|
|
YY_RULE_SETUP
|
|
#line 190 "vtkParse.l"
|
|
return(GetMacro);
|
|
YY_BREAK
|
|
case 48:
|
|
YY_RULE_SETUP
|
|
#line 191 "vtkParse.l"
|
|
return(SetStringMacro);
|
|
YY_BREAK
|
|
case 49:
|
|
YY_RULE_SETUP
|
|
#line 192 "vtkParse.l"
|
|
return(GetStringMacro);
|
|
YY_BREAK
|
|
case 50:
|
|
YY_RULE_SETUP
|
|
#line 193 "vtkParse.l"
|
|
return(SetClampMacro);
|
|
YY_BREAK
|
|
case 51:
|
|
YY_RULE_SETUP
|
|
#line 194 "vtkParse.l"
|
|
return(SetObjectMacro);
|
|
YY_BREAK
|
|
case 52:
|
|
YY_RULE_SETUP
|
|
#line 195 "vtkParse.l"
|
|
return(SetReferenceCountedObjectMacro);
|
|
YY_BREAK
|
|
case 53:
|
|
YY_RULE_SETUP
|
|
#line 196 "vtkParse.l"
|
|
return(GetObjectMacro);
|
|
YY_BREAK
|
|
case 54:
|
|
YY_RULE_SETUP
|
|
#line 197 "vtkParse.l"
|
|
return(BooleanMacro);
|
|
YY_BREAK
|
|
case 55:
|
|
YY_RULE_SETUP
|
|
#line 198 "vtkParse.l"
|
|
return(SetVector2Macro);
|
|
YY_BREAK
|
|
case 56:
|
|
YY_RULE_SETUP
|
|
#line 199 "vtkParse.l"
|
|
return(SetVector3Macro);
|
|
YY_BREAK
|
|
case 57:
|
|
YY_RULE_SETUP
|
|
#line 200 "vtkParse.l"
|
|
return(SetVector4Macro);
|
|
YY_BREAK
|
|
case 58:
|
|
YY_RULE_SETUP
|
|
#line 201 "vtkParse.l"
|
|
return(SetVector6Macro);
|
|
YY_BREAK
|
|
case 59:
|
|
YY_RULE_SETUP
|
|
#line 202 "vtkParse.l"
|
|
return(GetVector2Macro);
|
|
YY_BREAK
|
|
case 60:
|
|
YY_RULE_SETUP
|
|
#line 203 "vtkParse.l"
|
|
return(GetVector3Macro);
|
|
YY_BREAK
|
|
case 61:
|
|
YY_RULE_SETUP
|
|
#line 204 "vtkParse.l"
|
|
return(GetVector4Macro);
|
|
YY_BREAK
|
|
case 62:
|
|
YY_RULE_SETUP
|
|
#line 205 "vtkParse.l"
|
|
return(GetVector6Macro);
|
|
YY_BREAK
|
|
case 63:
|
|
YY_RULE_SETUP
|
|
#line 206 "vtkParse.l"
|
|
return(SetVectorMacro);
|
|
YY_BREAK
|
|
case 64:
|
|
YY_RULE_SETUP
|
|
#line 207 "vtkParse.l"
|
|
return(GetVectorMacro);
|
|
YY_BREAK
|
|
case 65:
|
|
YY_RULE_SETUP
|
|
#line 208 "vtkParse.l"
|
|
return(ViewportCoordinateMacro);
|
|
YY_BREAK
|
|
case 66:
|
|
YY_RULE_SETUP
|
|
#line 209 "vtkParse.l"
|
|
return(WorldCoordinateMacro);
|
|
YY_BREAK
|
|
case 67:
|
|
YY_RULE_SETUP
|
|
#line 210 "vtkParse.l"
|
|
return(TypeMacro);
|
|
YY_BREAK
|
|
case 68:
|
|
YY_RULE_SETUP
|
|
#line 211 "vtkParse.l"
|
|
return(TypeMacro);
|
|
YY_BREAK
|
|
case 69:
|
|
YY_RULE_SETUP
|
|
#line 212 "vtkParse.l"
|
|
return(VTK_LEGACY);
|
|
YY_BREAK
|
|
case 70:
|
|
YY_RULE_SETUP
|
|
#line 214 "vtkParse.l"
|
|
{ sscanf(yytext,"%d",&yylval.integer); return(NUM);}
|
|
YY_BREAK
|
|
case 71:
|
|
/* rule 71 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 216 "vtkParse.l"
|
|
{
|
|
yylval.str = vtkstrdup(yytext + 1);
|
|
yylval.str[strlen(yytext)-2] = '\0';
|
|
return(STRING);
|
|
}
|
|
YY_BREAK
|
|
case 72:
|
|
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
|
|
(yy_c_buf_p) = yy_cp -= 1;
|
|
YY_DO_BEFORE_ACTION; /* set up yytext again */
|
|
YY_RULE_SETUP
|
|
#line 222 "vtkParse.l"
|
|
;
|
|
YY_BREAK
|
|
case 73:
|
|
YY_RULE_SETUP
|
|
#line 225 "vtkParse.l"
|
|
{ yylval.str = (char *)malloc(yyleng + 1);
|
|
memcpy(yylval.str,yytext,yyleng);
|
|
yylval.str[yyleng] = '\0';
|
|
return(VTK_ID);
|
|
}
|
|
YY_BREAK
|
|
case 74:
|
|
YY_RULE_SETUP
|
|
#line 231 "vtkParse.l"
|
|
{ yylval.str = (char *)malloc(yyleng + 1);
|
|
memcpy(yylval.str,yytext,yyleng);
|
|
yylval.str[yyleng] = '\0';
|
|
return(ID);
|
|
}
|
|
YY_BREAK
|
|
case 75:
|
|
/* rule 75 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 237 "vtkParse.l"
|
|
;
|
|
YY_BREAK
|
|
case 76:
|
|
YY_RULE_SETUP
|
|
#line 240 "vtkParse.l"
|
|
return(yytext[0]);
|
|
YY_BREAK
|
|
case 77:
|
|
YY_RULE_SETUP
|
|
#line 241 "vtkParse.l"
|
|
return(yytext[0]);
|
|
YY_BREAK
|
|
case 78:
|
|
YY_RULE_SETUP
|
|
#line 244 "vtkParse.l"
|
|
{ return(yytext[0]); }
|
|
YY_BREAK
|
|
case 79:
|
|
YY_RULE_SETUP
|
|
#line 246 "vtkParse.l"
|
|
return(OTHER);
|
|
YY_BREAK
|
|
case 80:
|
|
YY_RULE_SETUP
|
|
#line 247 "vtkParse.l"
|
|
ECHO;
|
|
YY_BREAK
|
|
#line 1845 "lex.yy.c"
|
|
case YY_STATE_EOF(INITIAL):
|
|
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
|
|
{
|
|
size_t 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), 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;
|
|
|
|
(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 >= 697 )
|
|
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 >= 697 )
|
|
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 == 696);
|
|
|
|
return yy_is_jam ? 0 : yy_current_state;
|
|
}
|
|
|
|
#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');
|
|
if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol )
|
|
|
|
yylineno++;
|
|
;
|
|
|
|
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*)
|
|
);
|
|
|
|
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*)
|
|
);
|
|
|
|
/* 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 str 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 * yy_str )
|
|
{
|
|
|
|
return yy_scan_bytes(yy_str,strlen(yy_str) );
|
|
}
|
|
|
|
/** 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 bytes the byte buffer to scan
|
|
* @param 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 * bytes, int 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 = len + 2;
|
|
buf = (char *) yyalloc(n );
|
|
if ( ! buf )
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
|
|
|
|
for ( i = 0; i < len; ++i )
|
|
buf[i] = bytes[i];
|
|
|
|
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
b = yy_scan_buffer(buf,n );
|
|
if ( ! b )
|
|
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
|
|
|
|
/* It's okay to grow etc. this buffer, and we should throw it
|
|
* away when we're done.
|
|
*/
|
|
b->yy_is_our_buffer = 1;
|
|
|
|
return b;
|
|
}
|
|
|
|
#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 ;
|
|
}
|
|
|
|
/* 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;
|
|
|
|
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"
|
|
|
|
#undef YY_NEW_FILE
|
|
#undef YY_FLUSH_BUFFER
|
|
#undef yy_set_bol
|
|
#undef yy_new_buffer
|
|
#undef yy_set_interactive
|
|
#undef yytext_ptr
|
|
#undef YY_DO_BEFORE_ACTION
|
|
|
|
#ifdef YY_DECL_IS_OURS
|
|
#undef YY_DECL_IS_OURS
|
|
#undef YY_DECL
|
|
#endif
|
|
#line 247 "vtkParse.l"
|
|
|