/* [<][>][^][v][top][bottom][index][help] */
DEFINITIONS
This source file includes following definitions.
- dbg
- as3_file_input
- as3_buffer_input
- handleInclude
- do_unescape
- string_unescape
- handleCData
- handleRaw
- handleString
- m
- nrbuf
- setint
- setfloat
- handlefloat
- handleint
- handlehexfloat
- handlehex
- handleLabel
- handleregexp
- handleIdentifier
- yy_get_next_buffer
- yy_get_previous_state
- yy_try_NUL_trans
- yyunput
- yyinput
- as3_restart
- as3__switch_to_buffer
- as3__load_buffer_state
- as3__create_buffer
- as3__delete_buffer
- as3__init_buffer
- as3__flush_buffer
- as3_push_buffer_state
- as3_pop_buffer_state
- as3_ensure_buffer_stack
- as3__scan_buffer
- as3__scan_string
- as3__scan_bytes
- yy_fatal_error
- as3_get_lineno
- as3_get_in
- as3_get_out
- as3_get_leng
- as3_get_text
- as3_set_lineno
- as3_set_in
- as3_set_out
- as3_get_debug
- as3_set_debug
- yy_init_globals
- as3_lex_destroy
- yy_flex_strncpy
- yy_flex_strlen
- as3_alloc
- as3_realloc
- as3_free
- as3_wrap
- tokenerror
- token2string
- tokenizer_begin_xml
- tokenizer_begin_xmltext
- tokenizer_end_xmltext
- tokenizer_end_xml
- initialize_scanner
#line 2 "tokenizer.yy.c"
#line 4 "tokenizer.yy.c"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define yy_create_buffer as3__create_buffer
#define yy_delete_buffer as3__delete_buffer
#define yy_flex_debug as3__flex_debug
#define yy_init_buffer as3__init_buffer
#define yy_flush_buffer as3__flush_buffer
#define yy_load_buffer_state as3__load_buffer_state
#define yy_switch_to_buffer as3__switch_to_buffer
#define yyin as3_in
#define yyleng as3_leng
#define yylex as3_lex
#define yylineno as3_lineno
#define yyout as3_out
#define yyrestart as3_restart
#define yytext as3_text
#define yywrap as3_wrap
#define yyalloc as3_alloc
#define yyrealloc as3_realloc
#define yyfree as3_free
#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;
#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 */
/* 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 as3_restart(as3_in )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE 16384
#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 as3_leng;
extern FILE *as3_in, *as3_out;
#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 as3_text. */ \
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 as3_text 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 as3_restart()), so that the user can continue scanning by
* just pointing as3_in 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 as3_text is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
int as3_leng;
/* 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 as3_wrap()'s to do buffer switches
* instead of setting up a fresh as3_in. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
void as3_restart (FILE *input_file );
void as3__switch_to_buffer (YY_BUFFER_STATE new_buffer );
YY_BUFFER_STATE as3__create_buffer (FILE *file,int size );
void as3__delete_buffer (YY_BUFFER_STATE b );
void as3__flush_buffer (YY_BUFFER_STATE b );
void as3_push_buffer_state (YY_BUFFER_STATE new_buffer );
void as3_pop_buffer_state (void );
static void as3_ensure_buffer_stack (void );
static void as3__load_buffer_state (void );
static void as3__init_buffer (YY_BUFFER_STATE b,FILE *file );
#define YY_FLUSH_BUFFER as3__flush_buffer(YY_CURRENT_BUFFER )
YY_BUFFER_STATE as3__scan_buffer (char *base,yy_size_t size );
YY_BUFFER_STATE as3__scan_string (yyconst char *yy_str );
YY_BUFFER_STATE as3__scan_bytes (yyconst char *bytes,int len );
void *as3_alloc (yy_size_t );
void *as3_realloc (void *,yy_size_t );
void as3_free (void * );
#define yy_new_buffer as3__create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
as3_ensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
as3__create_buffer(as3_in,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
as3_ensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
as3__create_buffer(as3_in,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 *as3_in = (FILE *) 0, *as3_out = (FILE *) 0;
typedef int yy_state_type;
extern int as3_lineno;
int as3_lineno = 1;
extern char *as3_text;
#define yytext_ptr as3_text
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 as3_text.
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
as3_leng = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 130
#define YY_END_OF_BUFFER 131
/* 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[705] =
{ 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 131, 130, 31, 127, 130, 127, 127, 127,
130, 127, 128, 126, 127, 127, 73, 127, 130, 130,
130, 75, 127, 127, 127, 125, 125, 126, 127, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125, 29, 127, 126, 31,
130, 130, 125, 129, 31, 127, 129, 127, 127, 127,
129, 127, 128, 126, 127, 127, 73, 127, 129, 129,
129, 75, 127, 127, 127, 125, 125, 126, 127, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125, 28, 127, 126, 31,
129, 129, 125, 29, 127, 127, 73, 127, 129, 129,
129, 17, 17, 19, 20, 18, 16, 16, 129, 12,
15, 11, 14, 13, 10, 15, 15, 49, 0, 6,
0, 125, 0, 0, 61, 47, 64, 0, 0, 62,
56, 57, 55, 59, 72, 0, 3, 0, 60, 34,
34, 0, 0, 0, 0, 74, 0, 68, 54, 52,
53, 70, 0, 125, 0, 125, 125, 125, 58, 125,
124, 125, 125, 125, 125, 125, 44, 125, 125, 125,
125, 125, 125, 125, 125, 125, 123, 125, 122, 121,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 63, 48, 125, 31, 0, 122, 0, 0, 0,
0, 0, 3, 23, 60, 0, 26, 26, 0, 0,
0, 0, 17, 0, 0, 9, 15, 0, 15, 50,
125, 0, 71, 35, 0, 0, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 66, 51, 65, 69,
0, 0, 0, 0, 0, 0, 0, 125, 36, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 125, 125, 43, 125, 117, 125, 125, 125, 125,
125, 116, 125, 125, 125, 125, 125, 125, 125, 118,
125, 125, 125, 125, 125, 120, 125, 125, 115, 119,
125, 125, 125, 30, 125, 0, 26, 26, 0, 0,
27, 23, 0, 0, 0, 23, 0, 23, 23, 0,
0, 0, 0, 0, 0, 0, 15, 0, 0, 0,
2, 0, 33, 0, 32, 32, 0, 0, 67, 0,
0, 0, 0, 125, 125, 113, 125, 125, 125, 125,
125, 125, 125, 108, 112, 125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 111, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125, 110, 125, 125, 109,
125, 114, 125, 27, 0, 0, 0, 0, 23, 0,
23, 0, 0, 2, 0, 23, 23, 25, 0, 24,
24, 0, 0, 0, 0, 2, 37, 0, 39, 0,
0, 0, 125, 106, 103, 101, 102, 125, 125, 125,
125, 125, 105, 104, 125, 125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 107, 125,
100, 125, 125, 45, 125, 25, 0, 24, 24, 0,
0, 2, 0, 23, 23, 0, 0, 0, 0, 0,
0, 38, 0, 0, 125, 125, 125, 93, 125, 125,
125, 125, 125, 98, 125, 125, 125, 125, 96, 125,
125, 125, 125, 95, 94, 97, 46, 99, 125, 125,
23, 0, 0, 0, 0, 0, 0, 125, 125, 88,
91, 92, 87, 125, 125, 125, 125, 125, 125, 125,
89, 90, 125, 125, 125, 23, 8, 21, 0, 0,
0, 40, 125, 83, 0, 125, 125, 86, 125, 125,
125, 85, 125, 84, 125, 125, 0, 125, 125, 0,
0, 41, 82, 0, 125, 125, 125, 125, 78, 80,
79, 81, 0, 0, 0, 0, 0, 125, 125, 125,
0, 0, 0, 0, 125, 77, 76, 0, 5, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 5, 0, 0, 0, 0, 0, 0,
0, 0, 5, 0, 125, 0, 125, 125, 125, 0,
0, 0, 42, 42, 0, 0, 0, 4, 0, 0,
0, 0, 4, 0, 0, 5, 0, 0, 0, 0,
0, 0, 0, 0, 5, 0, 0, 0, 0, 0,
0, 0, 125, 125, 125, 125, 0, 7, 0, 0,
0, 39, 5, 39, 39, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 125, 22, 0, 7,
0, 38, 5, 38, 38, 0, 0, 0, 5, 0,
22, 0, 0, 0, 0, 40, 5, 40, 40, 41,
5, 41, 41, 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, 6, 7, 8, 9, 10, 11, 12, 13,
14, 15, 16, 13, 17, 18, 19, 20, 21, 21,
22, 21, 21, 21, 21, 21, 21, 23, 13, 24,
25, 26, 13, 13, 27, 28, 29, 30, 28, 28,
28, 28, 28, 28, 28, 28, 28, 31, 28, 28,
28, 28, 28, 32, 28, 28, 28, 28, 28, 28,
33, 34, 35, 36, 37, 8, 38, 39, 40, 41,
42, 43, 44, 45, 46, 28, 47, 48, 49, 50,
51, 52, 28, 53, 54, 55, 56, 57, 58, 59,
60, 28, 61, 62, 63, 13, 8, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 64,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 65, 37, 37, 37,
66, 37, 37, 67, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 68, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37
} ;
static yyconst flex_int32_t yy_meta[69] =
{ 0,
1, 2, 3, 2, 2, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 5, 4, 6,
6, 6, 7, 8, 4, 8, 9, 9, 9, 9,
9, 9, 4, 10, 4, 4, 11, 9, 9, 9,
9, 12, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 13, 9,
8, 4, 4, 11, 11, 11, 11, 11
} ;
static yyconst flex_int16_t yy_base[749] =
{ 0,
0, 1980, 68, 1979, 1963, 91, 122, 129, 150, 153,
214, 0, 2022, 3900, 3900, 1996, 147, 90, 1995, 144,
148, 3900, 3900, 1993, 143, 145, 143, 169, 265, 270,
275, 1994, 161, 1990, 146, 296, 300, 3900, 1944, 328,
138, 149, 153, 268, 299, 156, 293, 316, 256, 303,
272, 320, 326, 334, 345, 348, 3900, 286, 3900, 286,
1903, 1896, 354, 3900, 3900, 1931, 159, 298, 1903, 283,
356, 3900, 3900, 1896, 393, 399, 405, 413, 413, 419,
424, 1887, 424, 1878, 380, 397, 405, 3900, 1875, 0,
399, 416, 420, 437, 441, 446, 455, 464, 403, 469,
459, 473, 479, 484, 492, 495, 3900, 360, 3900, 428,
1818, 1814, 501, 3900, 164, 451, 538, 538, 146, 1811,
0, 0, 0, 1827, 3900, 3900, 3900, 3900, 1806, 3900,
1753, 3900, 3900, 3900, 3900, 1717, 297, 1712, 429, 3900,
1659, 0, 544, 547, 3900, 3900, 3900, 477, 1646, 3900,
3900, 3900, 3900, 3900, 1618, 550, 572, 532, 3900, 3900,
562, 1542, 568, 1572, 1526, 3900, 1510, 1502, 3900, 1455,
3900, 536, 591, 526, 595, 532, 549, 570, 3900, 562,
556, 565, 567, 573, 575, 587, 578, 589, 593, 591,
597, 612, 614, 603, 619, 621, 617, 625, 627, 630,
636, 634, 645, 652, 655, 650, 658, 660, 663, 669,
667, 678, 672, 674, 683, 688, 691, 685, 694, 697,
699, 3900, 3900, 702, 3900, 1411, 706, 742, 747, 752,
755, 629, 780, 812, 752, 759, 3900, 770, 1388, 780,
1421, 179, 0, 486, 1409, 3900, 1388, 0, 1381, 3900,
0, 783, 3900, 3900, 806, 821, 872, 1377, 754, 3900,
806, 857, 899, 962, 1370, 1325, 3900, 3900, 3900, 1311,
1244, 987, 1209, 1206, 1138, 1144, 1104, 726, 734, 776,
780, 793, 840, 766, 828, 946, 842, 955, 844, 952,
959, 784, 964, 832, 967, 929, 978, 961, 980, 985,
950, 957, 989, 982, 993, 995, 1002, 1005, 1007, 1011,
1013, 1020, 1016, 1024, 1030, 1026, 1034, 1039, 1032, 1036,
1041, 1043, 1053, 3900, 1051, 1080, 3900, 1088, 1091, 1142,
3900, 0, 1113, 1122, 1142, 1123, 1147, 0, 1163, 1098,
1113, 1223, 1286, 1114, 1112, 1092, 0, 495, 1168, 1312,
1084, 1322, 3900, 0, 3900, 0, 997, 1014, 3900, 0,
966, 890, 887, 1105, 1120, 1085, 1132, 1099, 1110, 1134,
1264, 1145, 1279, 1125, 1253, 1285, 1292, 1302, 1289, 1298,
1276, 1315, 1304, 1306, 1308, 1310, 1313, 1332, 1334, 1329,
1327, 1321, 1338, 1323, 1349, 1340, 1325, 1346, 1352, 1354,
1359, 1356, 1361, 3900, 1398, 1401, 1443, 1506, 0, 1525,
1569, 1532, 1559, 873, 1629, 1663, 0, 3900, 0, 3900,
0, 873, 871, 815, 1423, 3900, 3900, 804, 3900, 0,
758, 750, 1484, 1375, 1377, 1379, 1381, 1495, 1502, 1504,
1529, 1511, 1383, 1532, 1535, 1538, 1549, 1584, 1592, 1587,
1552, 1597, 1603, 1599, 1692, 1694, 1605, 1696, 1500, 1688,
1523, 1700, 1698, 1607, 1714, 3900, 0, 3900, 0, 1755,
1760, 0, 1780, 0, 0, 779, 318, 768, 374, 739,
717, 3900, 670, 660, 1685, 1724, 1718, 1712, 1747, 1732,
1737, 1751, 1754, 1739, 1758, 1765, 1768, 1771, 1762, 1776,
1778, 1781, 1773, 1783, 1785, 1787, 1789, 1791, 1796, 1805,
681, 467, 1110, 654, 627, 592, 0, 1798, 1812, 1858,
1802, 1814, 1816, 1821, 1823, 1830, 1838, 1832, 1841, 1845,
1835, 1843, 1848, 1851, 1904, 598, 3900, 3900, 578, 544,
0, 3900, 1860, 1862, 1915, 1870, 1873, 1877, 1879, 1888,
1893, 1890, 1898, 1895, 1909, 1912, 1973, 2040, 1906, 519,
512, 3900, 1901, 493, 1934, 1936, 1919, 1938, 1940, 1944,
1946, 1948, 2107, 627, 2112, 2123, 2116, 2189, 457, 0,
481, 451, 430, 381, 1955, 1951, 1953, 2256, 2260, 2264,
2268, 2272, 1977, 2276, 409, 1776, 2280, 2285, 2299, 2291,
2304, 2371, 2357, 2375, 2382, 2386, 2390, 2404, 2399, 2456,
2471, 2477, 2482, 2486, 0, 2493, 0, 346, 2560, 354,
342, 1149, 3900, 1959, 285, 2627, 2631, 2635, 254, 312,
1952, 2639, 2643, 2647, 2651, 2655, 2667, 225, 2734, 2659,
2725, 2759, 2770, 2776, 2813, 2782, 2805, 2849, 2827, 2853,
220, 2860, 0, 0, 0, 144, 1734, 3900, 1822, 137,
2871, 2884, 2893, 2897, 2901, 2968, 2941, 2950, 3007, 3016,
3031, 3038, 3023, 3050, 3074, 3044, 0, 3900, 1910, 143,
1984, 3056, 3089, 3122, 3126, 3130, 3140, 2122, 3144, 3157,
138, 1988, 3164, 3231, 3294, 3196, 3210, 3214, 3267, 3280,
3284, 3319, 3333, 3900, 3400, 3413, 3418, 3431, 3444, 3456,
3464, 3477, 3490, 3503, 3516, 3524, 3532, 3545, 3557, 3570,
3579, 3592, 3605, 3617, 3626, 3634, 3647, 3660, 3668, 3673,
3686, 3699, 3712, 3720, 3733, 3746, 3759, 3767, 3775, 3783,
3796, 3808, 3821, 3834, 3847, 3860, 3873, 3886
} ;
static yyconst flex_int16_t yy_def[749] =
{ 0,
704, 1, 704, 3, 3, 3, 3, 3, 705, 705,
704, 11, 704, 704, 704, 704, 706, 707, 704, 704,
708, 704, 704, 704, 704, 704, 704, 704, 709, 709,
709, 704, 704, 704, 704, 710, 710, 704, 704, 710,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 704, 704, 704, 40,
711, 711, 40, 704, 704, 704, 706, 707, 704, 704,
708, 704, 704, 704, 704, 704, 704, 712, 713, 713,
713, 704, 704, 704, 704, 40, 40, 704, 704, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 704, 704, 704, 40,
711, 711, 40, 704, 704, 704, 704, 704, 31, 31,
31, 714, 714, 704, 704, 704, 704, 704, 715, 704,
716, 704, 704, 704, 704, 716, 716, 704, 706, 704,
706, 717, 707, 707, 704, 704, 704, 708, 708, 704,
704, 704, 704, 704, 704, 718, 719, 720, 704, 704,
718, 31, 704, 721, 704, 704, 704, 704, 704, 704,
704, 704, 704, 40, 704, 40, 40, 40, 704, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 704, 704, 40, 704, 711, 40, 704, 722, 722,
723, 712, 724, 720, 712, 712, 704, 723, 81, 704,
725, 704, 714, 704, 715, 704, 716, 726, 716, 704,
717, 707, 704, 704, 719, 719, 727, 704, 720, 704,
718, 718, 704, 721, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 704, 40, 728, 704, 728, 704, 729,
704, 730, 724, 724, 731, 730, 724, 234, 712, 723,
723, 704, 725, 704, 704, 704, 726, 732, 719, 727,
704, 719, 704, 263, 704, 263, 704, 704, 704, 733,
704, 704, 704, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 704, 728, 728, 704, 729, 730, 734,
719, 724, 731, 730, 724, 704, 339, 704, 342, 704,
342, 735, 736, 704, 719, 704, 704, 704, 704, 737,
704, 704, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 704, 407, 704, 407, 724,
724, 730, 724, 411, 416, 735, 735, 736, 736, 704,
704, 704, 704, 704, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
339, 735, 736, 704, 704, 704, 738, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 411, 704, 704, 704, 704,
739, 704, 40, 40, 704, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 740, 704, 40, 704,
741, 704, 40, 704, 40, 40, 40, 40, 40, 40,
40, 40, 742, 743, 744, 742, 742, 704, 578, 558,
745, 741, 741, 704, 40, 40, 40, 704, 704, 742,
742, 742, 743, 704, 743, 746, 746, 744, 744, 742,
744, 744, 704, 704, 742, 742, 742, 742, 742, 742,
747, 704, 704, 742, 578, 742, 578, 578, 704, 745,
745, 741, 704, 40, 704, 742, 704, 704, 704, 746,
746, 704, 704, 742, 742, 746, 744, 704, 742, 742,
742, 742, 742, 740, 740, 742, 748, 744, 742, 742,
704, 742, 578, 578, 619, 578, 745, 704, 741, 704,
742, 704, 704, 742, 742, 639, 742, 742, 742, 743,
748, 748, 748, 748, 747, 742, 619, 704, 745, 741,
741, 704, 704, 742, 742, 742, 742, 743, 743, 748,
745, 745, 742, 639, 639, 704, 704, 742, 742, 704,
704, 742, 742, 0, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704
} ;
static yyconst flex_int16_t yy_nxt[3969] =
{ 0,
14, 15, 15, 15, 15, 16, 17, 14, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 36, 36, 36,
37, 36, 22, 14, 38, 39, 36, 40, 41, 42,
43, 44, 45, 46, 36, 47, 36, 36, 36, 48,
49, 50, 51, 52, 53, 54, 55, 56, 36, 36,
57, 58, 59, 60, 36, 36, 61, 62, 64, 65,
15, 65, 65, 66, 67, 64, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
82, 83, 84, 85, 86, 86, 86, 86, 87, 86,
72, 64, 88, 89, 86, 90, 91, 92, 93, 94,
95, 96, 86, 97, 86, 86, 86, 98, 99, 100,
101, 102, 103, 104, 105, 106, 86, 86, 107, 108,
109, 110, 86, 86, 111, 112, 113, 115, 116, 117,
118, 119, 120, 121, 115, 116, 117, 118, 119, 120,
121, 114, 123, 140, 146, 123, 143, 144, 151, 140,
155, 153, 156, 156, 156, 140, 167, 152, 147, 154,
171, 172, 621, 124, 113, 125, 124, 583, 125, 151,
141, 149, 114, 157, 168, 169, 183, 158, 152, 114,
182, 174, 141, 159, 186, 344, 184, 196, 704, 185,
632, 174, 174, 187, 164, 174, 174, 677, 174, 174,
126, 266, 188, 126, 64, 127, 128, 127, 127, 64,
129, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 130, 131, 131, 131, 64, 132, 133, 134,
131, 131, 131, 131, 131, 131, 64, 64, 64, 64,
131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
131, 131, 131, 131, 135, 64, 64, 136, 131, 131,
137, 131, 161, 612, 162, 162, 162, 161, 603, 162,
162, 162, 161, 146, 162, 162, 162, 173, 173, 173,
173, 173, 173, 173, 173, 189, 163, 147, 174, 174,
222, 163, 204, 208, 596, 190, 163, 627, 175, 248,
174, 174, 175, 164, 174, 174, 191, 165, 704, 173,
173, 173, 173, 704, 512, 197, 192, 178, 174, 174,
205, 198, 199, 704, 193, 174, 200, 223, 588, 194,
175, 174, 174, 201, 195, 206, 174, 202, 207, 176,
249, 209, 177, 176, 143, 144, 177, 140, 174, 174,
213, 203, 174, 174, 210, 211, 657, 212, 214, 174,
180, 181, 218, 216, 222, 215, 174, 217, 621, 149,
513, 176, 220, 221, 177, 219, 197, 174, 174, 704,
174, 174, 198, 227, 171, 172, 174, 200, 151, 653,
228, 593, 229, 230, 230, 153, 228, 152, 229, 230,
230, 223, 155, 154, 231, 231, 231, 233, 623, 242,
238, 234, 239, 239, 239, 140, 238, 235, 239, 239,
239, 238, 178, 239, 239, 239, 236, 168, 169, 174,
174, 182, 174, 183, 240, 174, 174, 174, 174, 204,
240, 186, 141, 184, 622, 240, 185, 153, 174, 174,
187, 241, 174, 174, 189, 154, 165, 704, 192, 188,
174, 174, 704, 512, 190, 583, 193, 196, 140, 174,
174, 194, 537, 174, 174, 191, 195, 197, 174, 174,
208, 201, 345, 198, 199, 202, 205, 174, 200, 425,
149, 174, 174, 426, 209, 621, 174, 174, 346, 203,
619, 206, 174, 213, 207, 174, 174, 210, 211, 218,
212, 214, 174, 216, 260, 260, 174, 217, 215, 220,
221, 584, 219, 197, 174, 174, 583, 174, 174, 198,
227, 581, 157, 174, 200, 155, 158, 156, 156, 156,
269, 270, 159, 142, 142, 142, 142, 142, 142, 156,
156, 156, 255, 255, 255, 255, 561, 142, 174, 174,
142, 261, 261, 261, 174, 174, 257, 262, 262, 262,
258, 163, 173, 173, 173, 173, 272, 272, 272, 272,
279, 174, 174, 163, 560, 280, 281, 704, 174, 174,
284, 252, 278, 175, 174, 174, 258, 174, 174, 174,
282, 283, 174, 174, 285, 174, 174, 174, 174, 286,
174, 174, 289, 594, 287, 273, 541, 274, 288, 174,
174, 174, 174, 174, 290, 174, 174, 332, 275, 174,
174, 291, 276, 540, 173, 294, 174, 271, 272, 292,
595, 277, 236, 293, 174, 174, 174, 174, 295, 174,
174, 174, 174, 174, 174, 296, 297, 174, 174, 174,
298, 299, 174, 174, 300, 539, 174, 174, 174, 174,
301, 302, 303, 304, 305, 306, 308, 174, 174, 536,
307, 517, 174, 174, 174, 174, 311, 174, 174, 516,
174, 174, 174, 174, 309, 174, 174, 310, 312, 174,
174, 174, 174, 313, 314, 174, 174, 174, 318, 315,
174, 174, 319, 316, 317, 174, 174, 320, 174, 321,
174, 174, 322, 174, 174, 325, 174, 174, 515, 174,
174, 174, 174, 323, 174, 174, 260, 260, 174, 298,
299, 326, 326, 326, 328, 514, 230, 230, 230, 328,
332, 230, 230, 230, 231, 231, 231, 339, 174, 174,
333, 333, 255, 333, 479, 236, 174, 174, 329, 340,
340, 340, 236, 329, 335, 477, 240, 484, 336, 341,
341, 341, 142, 142, 142, 330, 255, 255, 255, 255,
704, 240, 483, 337, 260, 260, 142, 365, 174, 368,
348, 255, 255, 255, 255, 261, 261, 261, 174, 174,
481, 364, 174, 174, 366, 348, 174, 377, 338, 338,
338, 338, 338, 338, 480, 174, 174, 163, 704, 338,
338, 338, 338, 338, 338, 338, 338, 338, 338, 338,
338, 338, 338, 338, 338, 338, 338, 338, 338, 338,
338, 338, 349, 349, 349, 349, 262, 262, 262, 367,
174, 369, 370, 372, 174, 174, 350, 479, 374, 477,
351, 352, 174, 174, 174, 174, 174, 174, 704, 353,
353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
353, 353, 353, 353, 353, 353, 353, 353, 354, 354,
354, 353, 353, 353, 353, 354, 354, 354, 354, 354,
354, 353, 432, 353, 353, 431, 354, 354, 354, 354,
354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
354, 354, 354, 354, 354, 354, 354, 354, 354, 353,
353, 353, 355, 355, 355, 355, 355, 355, 355, 355,
355, 355, 355, 355, 355, 355, 355, 355, 355, 356,
355, 174, 174, 371, 355, 355, 355, 355, 272, 272,
272, 272, 373, 375, 355, 385, 355, 355, 174, 174,
376, 378, 174, 174, 174, 174, 379, 174, 174, 174,
174, 174, 174, 174, 174, 382, 174, 174, 430, 174,
174, 383, 355, 355, 355, 380, 384, 273, 381, 274,
174, 174, 174, 174, 387, 174, 386, 174, 174, 388,
275, 174, 174, 428, 276, 174, 174, 174, 174, 427,
272, 389, 391, 277, 174, 174, 390, 174, 174, 174,
174, 394, 392, 174, 174, 174, 174, 393, 174, 174,
395, 397, 174, 174, 396, 398, 174, 174, 174, 174,
399, 400, 174, 174, 174, 174, 174, 174, 174, 174,
401, 174, 174, 174, 174, 174, 174, 402, 403, 326,
326, 326, 352, 174, 174, 174, 174, 405, 405, 405,
406, 406, 406, 333, 333, 255, 333, 340, 340, 340,
424, 329, 333, 333, 255, 333, 513, 410, 423, 329,
422, 411, 341, 341, 341, 538, 410, 174, 174, 240,
411, 352, 412, 412, 349, 412, 337, 333, 333, 255,
333, 174, 436, 433, 704, 337, 413, 174, 174, 407,
414, 410, 174, 174, 437, 416, 434, 272, 255, 255,
255, 255, 174, 174, 658, 415, 435, 174, 174, 438,
337, 332, 348, 659, 174, 174, 174, 174, 363, 417,
417, 417, 417, 417, 417, 362, 236, 174, 174, 440,
417, 417, 417, 417, 417, 417, 417, 417, 417, 417,
417, 417, 417, 417, 417, 417, 417, 417, 417, 417,
417, 417, 417, 418, 418, 418, 418, 418, 418, 418,
418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
418, 418, 419, 419, 419, 418, 418, 418, 418, 419,
419, 419, 419, 419, 419, 418, 361, 418, 418, 360,
419, 419, 419, 419, 419, 419, 419, 419, 419, 419,
419, 419, 419, 419, 419, 419, 419, 419, 419, 419,
419, 419, 419, 418, 418, 418, 420, 420, 420, 420,
420, 420, 420, 420, 420, 420, 420, 420, 420, 420,
420, 420, 420, 421, 420, 174, 174, 173, 420, 420,
420, 420, 349, 349, 349, 349, 174, 174, 420, 439,
420, 420, 255, 255, 255, 255, 350, 441, 447, 174,
351, 174, 174, 443, 442, 359, 348, 174, 174, 446,
258, 174, 174, 445, 174, 174, 420, 420, 420, 444,
174, 174, 448, 358, 174, 174, 449, 174, 174, 450,
174, 174, 174, 174, 451, 452, 174, 174, 174, 453,
455, 454, 456, 457, 174, 459, 174, 174, 174, 174,
174, 174, 174, 458, 174, 174, 174, 174, 460, 357,
174, 174, 174, 174, 463, 352, 462, 461, 174, 174,
464, 174, 174, 248, 174, 174, 174, 174, 174, 174,
248, 174, 174, 174, 174, 246, 465, 405, 405, 405,
406, 406, 406, 255, 255, 255, 255, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 348, 342, 329,
704, 351, 704, 466, 466, 466, 466, 466, 466, 466,
466, 466, 466, 466, 466, 466, 466, 466, 466, 466,
466, 466, 467, 467, 467, 466, 466, 466, 466, 467,
467, 467, 467, 467, 467, 466, 324, 466, 466, 268,
467, 467, 467, 467, 467, 467, 467, 467, 467, 467,
467, 467, 467, 467, 467, 467, 467, 467, 467, 467,
467, 467, 467, 466, 466, 466, 468, 468, 468, 468,
468, 468, 468, 468, 468, 468, 468, 468, 468, 468,
468, 468, 468, 469, 468, 485, 267, 352, 468, 468,
468, 468, 333, 333, 255, 333, 174, 174, 468, 471,
468, 468, 266, 472, 486, 488, 410, 174, 174, 487,
411, 490, 174, 174, 174, 174, 174, 174, 473, 412,
412, 349, 412, 174, 174, 337, 468, 468, 468, 255,
255, 255, 255, 413, 489, 174, 174, 414, 265, 491,
492, 174, 174, 348, 174, 174, 493, 174, 174, 263,
174, 174, 415, 499, 704, 474, 474, 474, 474, 474,
474, 174, 174, 494, 174, 174, 474, 474, 474, 474,
474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
474, 474, 474, 474, 474, 474, 474, 474, 474, 333,
333, 255, 333, 495, 496, 253, 174, 174, 498, 174,
174, 497, 500, 410, 174, 174, 501, 416, 148, 174,
174, 174, 174, 502, 505, 174, 174, 174, 174, 174,
174, 139, 337, 333, 333, 255, 333, 334, 334, 334,
334, 334, 334, 334, 334, 334, 334, 410, 334, 334,
334, 411, 334, 334, 334, 334, 334, 334, 334, 475,
475, 475, 475, 475, 475, 334, 337, 334, 334, 334,
475, 475, 475, 475, 475, 475, 475, 475, 475, 475,
475, 475, 475, 475, 475, 475, 475, 475, 475, 475,
475, 475, 475, 334, 334, 334, 334, 334, 334, 334,
334, 503, 507, 504, 518, 506, 250, 174, 174, 248,
174, 174, 508, 509, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 510, 333, 333, 255, 333, 678,
333, 333, 255, 333, 174, 174, 174, 174, 679, 410,
174, 174, 520, 336, 410, 248, 174, 174, 414, 519,
333, 333, 255, 333, 174, 522, 521, 594, 337, 174,
174, 174, 174, 337, 410, 525, 523, 526, 511, 174,
174, 524, 527, 174, 174, 528, 174, 174, 529, 630,
174, 174, 246, 337, 174, 174, 530, 174, 174, 531,
174, 174, 532, 174, 174, 174, 174, 533, 174, 174,
174, 174, 244, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 534, 535, 680, 174, 174,
174, 174, 543, 544, 174, 174, 681, 174, 174, 545,
545, 545, 545, 704, 174, 174, 174, 174, 174, 174,
548, 550, 549, 174, 174, 174, 174, 551, 226, 552,
553, 225, 174, 174, 174, 174, 554, 174, 174, 555,
174, 174, 556, 174, 174, 174, 174, 174, 174, 179,
174, 174, 170, 174, 174, 557, 557, 557, 557, 166,
174, 174, 174, 563, 174, 174, 173, 173, 173, 173,
150, 546, 174, 174, 547, 174, 174, 145, 565, 174,
174, 174, 174, 567, 569, 691, 566, 175, 568, 570,
174, 174, 174, 174, 692, 174, 174, 174, 174, 571,
174, 174, 572, 174, 174, 138, 174, 174, 174, 174,
226, 174, 174, 594, 174, 174, 225, 558, 179, 580,
559, 174, 586, 564, 557, 557, 557, 557, 173, 574,
587, 271, 585, 594, 575, 630, 174, 174, 174, 174,
174, 174, 174, 174, 565, 576, 174, 174, 174, 174,
174, 174, 624, 174, 174, 174, 174, 174, 174, 680,
595, 174, 174, 691, 170, 597, 166, 150, 622, 145,
138, 704, 657, 114, 113, 63, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 557, 704, 704, 577,
573, 557, 557, 557, 557, 573, 574, 573, 573, 573,
573, 575, 573, 573, 573, 573, 573, 573, 573, 578,
578, 578, 576, 573, 573, 573, 578, 578, 578, 578,
578, 578, 573, 578, 573, 573, 578, 578, 578, 578,
578, 578, 578, 578, 578, 578, 578, 578, 578, 578,
578, 578, 578, 578, 578, 578, 578, 578, 578, 578,
573, 573, 573, 558, 578, 578, 579, 578, 588, 589,
588, 590, 596, 597, 589, 597, 598, 588, 589, 588,
590, 704, 704, 600, 603, 604, 603, 605, 594, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 601, 704, 704, 704, 704,
704, 704, 704, 704, 704, 595, 704, 704, 704, 704,
704, 704, 704, 606, 704, 607, 704, 704, 704, 704,
590, 704, 704, 592, 704, 598, 608, 704, 602, 611,
609, 704, 592, 704, 704, 670, 605, 704, 704, 610,
612, 613, 612, 614, 591, 591, 591, 591, 591, 591,
591, 591, 591, 591, 591, 591, 591, 591, 615, 615,
615, 616, 591, 591, 591, 615, 615, 615, 615, 615,
615, 591, 615, 591, 591, 615, 615, 615, 615, 615,
615, 615, 615, 615, 615, 615, 615, 615, 615, 615,
615, 615, 615, 615, 615, 615, 615, 615, 615, 591,
591, 591, 617, 615, 615, 618, 615, 588, 589, 588,
588, 588, 589, 588, 588, 588, 589, 588, 590, 588,
589, 588, 590, 588, 589, 588, 590, 627, 628, 627,
627, 597, 589, 597, 597, 596, 597, 589, 597, 598,
704, 594, 632, 633, 632, 634, 600, 704, 704, 596,
597, 589, 597, 598, 596, 597, 636, 597, 598, 704,
600, 704, 704, 630, 704, 704, 704, 704, 601, 588,
704, 704, 625, 588, 704, 704, 625, 590, 704, 704,
592, 590, 601, 704, 592, 626, 704, 704, 592, 627,
704, 704, 629, 597, 704, 704, 631, 704, 598, 704,
704, 602, 704, 704, 634, 704, 704, 635, 603, 604,
603, 603, 598, 704, 704, 602, 704, 598, 704, 704,
602, 596, 597, 589, 597, 598, 603, 604, 603, 603,
704, 704, 600, 603, 604, 603, 605, 588, 589, 588,
590, 588, 589, 588, 590, 704, 704, 273, 704, 274,
588, 589, 588, 590, 601, 588, 589, 588, 590, 704,
275, 704, 704, 704, 276, 273, 704, 274, 704, 704,
603, 704, 606, 638, 607, 704, 704, 704, 275, 704,
704, 704, 276, 704, 637, 608, 639, 602, 603, 609,
640, 638, 704, 642, 704, 605, 704, 704, 610, 590,
704, 704, 592, 590, 704, 704, 592, 588, 589, 588,
590, 641, 590, 704, 704, 592, 704, 590, 704, 704,
592, 573, 644, 645, 644, 611, 704, 647, 612, 613,
612, 612, 648, 612, 613, 612, 612, 612, 613, 612,
614, 704, 704, 649, 603, 604, 603, 605, 704, 175,
704, 704, 704, 704, 175, 704, 704, 704, 616, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 643,
704, 704, 592, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 606, 611, 607, 704, 650, 704, 704,
612, 704, 704, 651, 704, 612, 608, 704, 651, 614,
609, 704, 652, 704, 704, 704, 605, 704, 704, 610,
573, 644, 645, 644, 611, 646, 647, 646, 646, 646,
646, 648, 646, 646, 646, 646, 646, 646, 646, 654,
654, 654, 649, 646, 646, 646, 654, 654, 654, 654,
654, 654, 646, 654, 646, 646, 654, 654, 654, 654,
654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
646, 646, 646, 655, 654, 654, 656, 654, 588, 589,
588, 590, 627, 628, 627, 627, 627, 628, 627, 627,
632, 633, 632, 632, 632, 633, 632, 632, 632, 633,
632, 634, 588, 589, 588, 590, 597, 589, 597, 597,
588, 589, 588, 590, 704, 704, 594, 596, 597, 589,
597, 598, 704, 704, 704, 704, 704, 704, 600, 704,
704, 704, 704, 704, 704, 704, 704, 704, 630, 704,
590, 704, 704, 592, 627, 704, 704, 629, 627, 704,
601, 629, 632, 704, 704, 660, 632, 704, 704, 660,
634, 666, 704, 635, 661, 704, 704, 592, 597, 704,
704, 631, 590, 704, 704, 592, 588, 589, 588, 590,
598, 704, 704, 602, 429, 662, 663, 662, 664, 665,
665, 665, 665, 665, 665, 665, 665, 665, 665, 665,
665, 665, 665, 704, 704, 704, 665, 665, 665, 665,
588, 589, 588, 590, 704, 704, 665, 704, 665, 665,
667, 603, 604, 603, 605, 704, 704, 644, 645, 644,
644, 704, 574, 588, 589, 588, 590, 575, 590, 704,
704, 592, 704, 704, 665, 665, 665, 590, 576, 704,
592, 704, 704, 704, 668, 593, 670, 589, 670, 671,
606, 600, 607, 704, 644, 645, 644, 644, 704, 574,
704, 704, 590, 608, 575, 592, 704, 609, 603, 604,
603, 605, 704, 605, 704, 576, 610, 704, 673, 644,
704, 704, 669, 704, 704, 590, 704, 704, 592, 596,
597, 589, 597, 598, 588, 589, 588, 590, 704, 704,
600, 588, 589, 588, 590, 704, 704, 606, 671, 607,
704, 674, 632, 633, 632, 634, 644, 704, 704, 669,
608, 704, 601, 704, 609, 588, 589, 588, 588, 704,
605, 704, 704, 610, 588, 589, 588, 588, 588, 589,
588, 590, 588, 589, 588, 590, 704, 704, 704, 704,
704, 704, 598, 704, 704, 602, 675, 704, 704, 592,
704, 704, 704, 676, 704, 704, 592, 704, 704, 704,
704, 704, 704, 704, 634, 704, 704, 635, 704, 704,
704, 704, 588, 589, 588, 590, 704, 588, 704, 704,
625, 588, 589, 588, 590, 704, 588, 704, 704, 625,
590, 704, 704, 592, 590, 704, 704, 592, 482, 682,
683, 682, 684, 685, 685, 685, 685, 685, 685, 685,
685, 685, 685, 685, 685, 685, 685, 704, 704, 704,
685, 685, 685, 685, 704, 686, 704, 687, 704, 704,
685, 704, 685, 685, 590, 704, 704, 592, 588, 589,
588, 590, 704, 590, 704, 704, 592, 670, 589, 670,
670, 704, 594, 593, 670, 689, 670, 671, 685, 685,
685, 593, 670, 589, 670, 671, 704, 600, 593, 670,
589, 670, 671, 704, 600, 612, 613, 612, 614, 595,
593, 670, 589, 670, 671, 704, 600, 588, 589, 588,
588, 704, 704, 704, 673, 704, 616, 704, 704, 704,
675, 673, 704, 592, 573, 644, 645, 644, 611, 670,
647, 704, 688, 673, 704, 648, 671, 704, 704, 674,
588, 589, 588, 588, 671, 704, 649, 674, 704, 704,
704, 671, 704, 704, 674, 704, 704, 614, 704, 704,
652, 704, 704, 690, 704, 704, 674, 704, 704, 588,
704, 704, 625, 588, 589, 588, 590, 588, 589, 588,
590, 588, 589, 588, 590, 704, 704, 611, 704, 704,
650, 588, 589, 588, 590, 670, 589, 670, 670, 704,
594, 704, 588, 704, 704, 625, 704, 593, 670, 589,
670, 671, 704, 600, 704, 588, 589, 588, 590, 693,
704, 704, 704, 704, 704, 704, 704, 595, 704, 704,
704, 694, 704, 704, 704, 590, 704, 704, 592, 590,
673, 704, 592, 590, 704, 704, 592, 588, 589, 588,
588, 704, 704, 590, 704, 704, 592, 670, 695, 704,
688, 588, 589, 588, 588, 588, 589, 588, 590, 704,
671, 704, 704, 674, 704, 704, 704, 590, 704, 704,
592, 542, 696, 697, 696, 698, 699, 699, 699, 699,
699, 699, 699, 699, 699, 699, 699, 699, 699, 699,
704, 704, 704, 699, 699, 699, 699, 704, 704, 588,
704, 704, 625, 699, 704, 699, 699, 704, 588, 589,
588, 590, 704, 588, 704, 704, 625, 590, 704, 704,
592, 588, 589, 588, 588, 588, 589, 588, 588, 704,
704, 699, 699, 699, 562, 700, 701, 700, 702, 703,
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
703, 703, 703, 704, 704, 704, 703, 703, 703, 703,
588, 589, 588, 590, 704, 704, 703, 704, 703, 703,
590, 704, 704, 592, 588, 589, 588, 590, 704, 704,
704, 704, 704, 588, 704, 704, 625, 588, 704, 704,
625, 704, 704, 704, 703, 703, 703, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 590, 704, 704, 592, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 590, 704, 704, 592,
122, 122, 122, 122, 122, 122, 122, 122, 122, 122,
122, 122, 122, 139, 139, 704, 139, 139, 139, 139,
139, 139, 139, 139, 139, 139, 142, 704, 142, 142,
142, 148, 148, 704, 148, 148, 148, 148, 148, 148,
148, 148, 148, 148, 160, 160, 160, 160, 160, 160,
160, 160, 704, 704, 704, 160, 160, 174, 174, 704,
704, 174, 174, 704, 174, 174, 174, 174, 174, 224,
704, 704, 224, 224, 224, 224, 224, 232, 232, 704,
232, 232, 232, 232, 232, 232, 232, 232, 232, 232,
237, 237, 237, 237, 237, 237, 237, 237, 704, 704,
704, 237, 237, 243, 243, 243, 243, 243, 243, 243,
704, 243, 243, 243, 243, 243, 245, 245, 245, 245,
245, 245, 245, 245, 245, 245, 245, 245, 245, 247,
247, 704, 247, 704, 247, 247, 247, 251, 704, 704,
251, 251, 251, 251, 251, 254, 254, 254, 254, 254,
254, 254, 254, 704, 704, 704, 254, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256, 256, 256,
259, 259, 259, 259, 259, 259, 259, 259, 259, 259,
259, 259, 259, 264, 264, 704, 704, 264, 704, 704,
264, 264, 327, 327, 327, 327, 327, 327, 327, 327,
704, 704, 704, 327, 327, 331, 331, 331, 331, 331,
331, 331, 331, 704, 704, 704, 331, 334, 334, 334,
334, 334, 334, 334, 334, 334, 334, 334, 334, 334,
343, 343, 704, 704, 343, 704, 704, 343, 343, 347,
704, 704, 347, 704, 347, 347, 347, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
404, 404, 404, 404, 404, 404, 404, 404, 704, 704,
704, 404, 408, 408, 704, 704, 408, 704, 704, 408,
408, 409, 704, 704, 409, 409, 333, 333, 333, 333,
333, 333, 333, 333, 333, 333, 333, 333, 333, 352,
352, 352, 352, 352, 352, 352, 352, 352, 352, 352,
352, 352, 429, 429, 429, 429, 429, 704, 429, 429,
470, 470, 470, 470, 470, 470, 470, 470, 470, 470,
470, 470, 470, 476, 476, 476, 476, 476, 476, 476,
476, 476, 476, 476, 476, 476, 478, 478, 478, 478,
478, 478, 478, 478, 478, 478, 478, 478, 478, 482,
482, 482, 482, 482, 704, 482, 482, 542, 542, 542,
542, 542, 704, 542, 542, 562, 562, 562, 562, 562,
704, 562, 562, 573, 573, 573, 573, 573, 573, 573,
573, 573, 573, 573, 573, 573, 582, 582, 582, 582,
582, 582, 582, 582, 582, 582, 582, 582, 582, 591,
591, 591, 591, 591, 591, 591, 591, 591, 591, 591,
591, 593, 593, 704, 593, 593, 593, 593, 593, 593,
593, 593, 593, 593, 599, 599, 599, 599, 599, 599,
599, 599, 599, 599, 599, 599, 599, 620, 620, 620,
620, 620, 620, 620, 620, 620, 620, 620, 620, 620,
596, 596, 704, 596, 596, 596, 596, 596, 596, 596,
596, 596, 596, 646, 646, 646, 646, 646, 646, 646,
646, 646, 646, 646, 646, 646, 672, 672, 672, 672,
672, 672, 672, 672, 672, 672, 672, 672, 672, 13,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704
} ;
static yyconst flex_int16_t yy_chk[3969] =
{ 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, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 6, 7, 7, 7,
7, 7, 7, 7, 8, 8, 8, 8, 8, 8,
8, 6, 9, 17, 20, 10, 18, 18, 25, 21,
27, 26, 27, 27, 27, 67, 33, 25, 20, 26,
35, 35, 691, 9, 8, 9, 10, 680, 10, 115,
17, 21, 7, 28, 33, 33, 42, 28, 115, 8,
41, 41, 67, 28, 43, 242, 42, 46, 119, 42,
660, 42, 42, 43, 119, 43, 43, 656, 46, 46,
9, 242, 43, 10, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 29, 651, 29, 29, 29, 30, 638, 30,
30, 30, 31, 70, 31, 31, 31, 36, 36, 36,
36, 37, 37, 37, 37, 44, 29, 70, 49, 49,
58, 30, 49, 51, 630, 44, 31, 629, 36, 137,
44, 44, 37, 29, 51, 51, 44, 31, 30, 40,
40, 40, 40, 31, 477, 47, 45, 37, 60, 60,
50, 47, 47, 477, 45, 47, 47, 58, 625, 45,
40, 45, 45, 48, 45, 50, 50, 48, 50, 36,
137, 52, 36, 37, 68, 68, 37, 71, 48, 48,
53, 48, 52, 52, 52, 52, 621, 52, 53, 53,
40, 40, 55, 54, 108, 53, 54, 54, 620, 71,
479, 40, 56, 56, 40, 55, 63, 55, 55, 479,
56, 56, 63, 63, 85, 85, 63, 63, 75, 618,
75, 595, 75, 75, 75, 76, 76, 75, 76, 76,
76, 108, 77, 76, 77, 77, 77, 78, 584, 83,
79, 78, 79, 79, 79, 139, 80, 78, 80, 80,
80, 81, 87, 81, 81, 81, 78, 83, 83, 86,
86, 91, 91, 92, 79, 99, 99, 87, 87, 99,
80, 93, 139, 92, 583, 81, 92, 116, 92, 92,
93, 79, 93, 93, 94, 116, 81, 80, 95, 93,
110, 110, 81, 512, 94, 582, 95, 96, 148, 94,
94, 95, 512, 95, 95, 94, 95, 97, 96, 96,
101, 98, 244, 97, 97, 98, 100, 97, 97, 348,
148, 101, 101, 348, 102, 581, 98, 98, 244, 98,
579, 100, 100, 103, 100, 102, 102, 102, 102, 105,
102, 103, 103, 104, 158, 158, 104, 104, 103, 106,
106, 564, 105, 113, 105, 105, 561, 106, 106, 113,
113, 560, 118, 113, 113, 117, 118, 117, 117, 117,
172, 172, 118, 143, 143, 143, 144, 144, 144, 156,
156, 156, 157, 157, 157, 157, 540, 143, 174, 174,
144, 161, 161, 161, 176, 176, 157, 163, 163, 163,
157, 156, 173, 173, 173, 173, 175, 175, 175, 175,
178, 177, 177, 161, 539, 180, 182, 143, 181, 181,
184, 144, 177, 173, 180, 180, 536, 182, 182, 183,
183, 183, 178, 178, 185, 184, 184, 185, 185, 186,
187, 187, 189, 574, 186, 175, 516, 175, 188, 186,
186, 188, 188, 190, 190, 189, 189, 232, 175, 191,
191, 191, 175, 515, 173, 194, 194, 173, 175, 192,
574, 175, 232, 193, 192, 192, 193, 193, 195, 197,
197, 195, 195, 196, 196, 196, 198, 198, 198, 199,
199, 199, 200, 200, 201, 514, 202, 202, 201, 201,
201, 202, 203, 204, 205, 206, 207, 203, 203, 511,
206, 484, 206, 206, 204, 204, 210, 205, 205, 483,
207, 207, 208, 208, 208, 209, 209, 209, 211, 211,
211, 210, 210, 212, 213, 213, 214, 214, 216, 214,
212, 212, 217, 214, 215, 215, 215, 218, 218, 219,
216, 216, 220, 217, 217, 227, 219, 219, 481, 220,
220, 221, 221, 221, 224, 224, 259, 259, 227, 227,
227, 228, 228, 228, 229, 480, 229, 229, 229, 230,
235, 230, 230, 230, 231, 231, 231, 236, 278, 278,
233, 233, 233, 233, 478, 235, 279, 279, 229, 238,
238, 238, 236, 230, 233, 476, 231, 432, 233, 240,
240, 240, 252, 252, 252, 229, 255, 255, 255, 255,
230, 238, 431, 233, 234, 234, 252, 281, 284, 284,
255, 256, 256, 256, 256, 261, 261, 261, 280, 280,
428, 280, 281, 281, 282, 256, 292, 292, 234, 234,
234, 234, 234, 234, 424, 282, 282, 261, 252, 234,
234, 234, 234, 234, 234, 234, 234, 234, 234, 234,
234, 234, 234, 234, 234, 234, 234, 234, 234, 234,
234, 234, 257, 257, 257, 257, 262, 262, 262, 283,
285, 285, 285, 287, 294, 294, 257, 423, 289, 422,
257, 414, 283, 283, 287, 287, 289, 289, 262, 263,
263, 263, 263, 263, 263, 263, 263, 263, 263, 263,
263, 263, 263, 263, 263, 263, 263, 263, 263, 263,
263, 263, 263, 263, 263, 263, 263, 263, 263, 263,
263, 263, 363, 263, 263, 362, 263, 263, 263, 263,
263, 263, 263, 263, 263, 263, 263, 263, 263, 263,
263, 263, 263, 263, 263, 263, 263, 263, 263, 263,
263, 263, 264, 264, 264, 264, 264, 264, 264, 264,
264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
264, 296, 296, 286, 264, 264, 264, 264, 272, 272,
272, 272, 288, 290, 264, 301, 264, 264, 286, 286,
291, 293, 301, 301, 290, 290, 295, 288, 288, 302,
302, 291, 291, 298, 298, 298, 293, 293, 361, 295,
295, 299, 264, 264, 264, 297, 300, 272, 297, 272,
297, 297, 299, 299, 304, 304, 303, 300, 300, 305,
272, 303, 303, 358, 272, 305, 305, 306, 306, 357,
272, 306, 308, 272, 307, 307, 307, 308, 308, 309,
309, 312, 309, 310, 310, 311, 311, 311, 313, 313,
313, 315, 312, 312, 314, 317, 314, 314, 316, 316,
318, 321, 315, 315, 319, 319, 317, 317, 320, 320,
322, 318, 318, 321, 321, 322, 322, 323, 325, 326,
326, 326, 351, 325, 325, 323, 323, 328, 328, 328,
329, 329, 329, 333, 333, 333, 333, 340, 340, 340,
346, 326, 334, 334, 334, 334, 513, 333, 345, 328,
344, 333, 341, 341, 341, 513, 334, 366, 366, 340,
334, 336, 335, 335, 335, 335, 333, 337, 337, 337,
337, 368, 368, 364, 341, 334, 335, 364, 364, 330,
335, 337, 369, 369, 369, 337, 365, 277, 349, 349,
349, 349, 365, 365, 622, 335, 367, 374, 374, 370,
337, 339, 349, 622, 367, 367, 370, 370, 276, 339,
339, 339, 339, 339, 339, 275, 339, 372, 372, 372,
339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
339, 339, 339, 342, 342, 342, 342, 342, 342, 342,
342, 342, 342, 342, 342, 342, 342, 342, 342, 342,
342, 342, 342, 342, 342, 342, 342, 342, 342, 342,
342, 342, 342, 342, 342, 342, 274, 342, 342, 273,
342, 342, 342, 342, 342, 342, 342, 342, 342, 342,
342, 342, 342, 342, 342, 342, 342, 342, 342, 342,
342, 342, 342, 342, 342, 342, 343, 343, 343, 343,
343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
343, 343, 343, 343, 343, 375, 375, 271, 343, 343,
343, 343, 350, 350, 350, 350, 371, 371, 343, 371,
343, 343, 352, 352, 352, 352, 350, 373, 381, 381,
350, 373, 373, 377, 376, 270, 352, 376, 376, 380,
352, 379, 379, 379, 377, 377, 343, 343, 343, 378,
380, 380, 382, 266, 378, 378, 383, 383, 384, 384,
385, 385, 386, 386, 385, 387, 387, 382, 382, 388,
390, 389, 391, 392, 392, 394, 394, 397, 397, 391,
391, 390, 390, 393, 388, 388, 389, 389, 395, 265,
393, 393, 396, 396, 399, 258, 398, 396, 398, 398,
401, 395, 395, 249, 399, 399, 400, 400, 402, 402,
247, 401, 401, 403, 403, 245, 403, 405, 405, 405,
406, 406, 406, 425, 425, 425, 425, 434, 434, 435,
435, 436, 436, 437, 437, 443, 443, 425, 241, 405,
239, 425, 406, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 226, 407, 407, 170,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 408, 408, 408, 408,
408, 408, 408, 408, 408, 408, 408, 408, 408, 408,
408, 408, 408, 408, 408, 433, 168, 410, 408, 408,
408, 408, 412, 412, 412, 412, 433, 433, 408, 410,
408, 408, 167, 410, 438, 440, 412, 438, 438, 439,
412, 442, 459, 459, 439, 439, 440, 440, 410, 413,
413, 413, 413, 442, 442, 412, 408, 408, 408, 411,
411, 411, 411, 413, 441, 461, 461, 413, 165, 444,
445, 441, 441, 411, 444, 444, 446, 445, 445, 164,
446, 446, 413, 451, 162, 411, 411, 411, 411, 411,
411, 447, 447, 447, 451, 451, 411, 411, 411, 411,
411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
411, 411, 411, 411, 411, 411, 411, 411, 411, 415,
415, 415, 415, 448, 449, 155, 448, 448, 450, 450,
450, 449, 452, 415, 449, 449, 453, 415, 149, 452,
452, 454, 454, 454, 457, 453, 453, 457, 457, 464,
464, 141, 415, 416, 416, 416, 416, 416, 416, 416,
416, 416, 416, 416, 416, 416, 416, 416, 416, 416,
416, 416, 416, 416, 416, 416, 416, 416, 416, 416,
416, 416, 416, 416, 416, 416, 416, 416, 416, 416,
416, 416, 416, 416, 416, 416, 416, 416, 416, 416,
416, 416, 416, 416, 416, 416, 416, 416, 416, 416,
416, 416, 416, 416, 416, 416, 416, 416, 416, 416,
416, 455, 460, 456, 485, 458, 138, 485, 485, 136,
460, 460, 462, 463, 455, 455, 456, 456, 458, 458,
463, 463, 462, 462, 465, 470, 470, 470, 470, 657,
471, 471, 471, 471, 488, 488, 465, 465, 657, 470,
487, 487, 487, 470, 471, 131, 486, 486, 471, 486,
473, 473, 473, 473, 490, 490, 489, 596, 470, 491,
491, 494, 494, 471, 473, 493, 491, 495, 473, 489,
489, 492, 496, 492, 492, 497, 493, 493, 498, 596,
495, 495, 129, 473, 499, 499, 500, 496, 496, 501,
497, 497, 502, 498, 498, 503, 503, 503, 500, 500,
501, 501, 124, 502, 502, 504, 504, 505, 505, 506,
506, 507, 507, 508, 508, 509, 510, 659, 509, 509,
518, 518, 518, 519, 521, 521, 659, 510, 510, 520,
520, 520, 520, 120, 519, 519, 522, 522, 523, 523,
524, 526, 525, 524, 524, 525, 525, 527, 112, 528,
529, 111, 526, 526, 528, 528, 530, 531, 531, 533,
527, 527, 534, 529, 529, 532, 532, 530, 530, 89,
533, 533, 84, 534, 534, 535, 535, 535, 535, 82,
520, 520, 543, 543, 544, 544, 545, 545, 545, 545,
74, 520, 546, 546, 520, 547, 547, 69, 546, 548,
548, 549, 549, 549, 551, 679, 547, 545, 550, 553,
550, 550, 552, 552, 679, 551, 551, 554, 554, 555,
553, 553, 556, 563, 563, 66, 535, 535, 559, 559,
62, 555, 555, 631, 556, 556, 61, 535, 39, 559,
535, 567, 567, 545, 557, 557, 557, 557, 545, 557,
568, 545, 565, 593, 557, 631, 565, 565, 566, 566,
568, 568, 569, 569, 566, 557, 570, 570, 571, 571,
572, 572, 585, 586, 586, 587, 587, 585, 585, 681,
593, 624, 624, 692, 34, 631, 32, 24, 681, 19,
16, 13, 692, 5, 4, 2, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 557, 0, 0, 557,
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
558, 558, 558, 558, 558, 558, 558, 558, 573, 573,
573, 573, 575, 575, 575, 575, 575, 577, 577, 577,
577, 0, 0, 575, 576, 576, 576, 576, 688, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 575, 0, 0, 0, 0,
0, 0, 0, 0, 0, 688, 0, 0, 0, 0,
0, 0, 0, 576, 0, 576, 0, 0, 0, 0,
573, 0, 0, 573, 0, 575, 576, 0, 575, 577,
576, 0, 577, 0, 0, 688, 576, 0, 0, 576,
578, 578, 578, 578, 578, 578, 578, 578, 578, 578,
578, 578, 578, 578, 578, 578, 578, 578, 578, 578,
578, 578, 578, 578, 578, 578, 578, 578, 578, 578,
578, 578, 578, 578, 578, 578, 578, 578, 578, 578,
578, 578, 578, 578, 578, 578, 578, 578, 578, 578,
578, 578, 578, 578, 578, 578, 578, 578, 578, 578,
578, 578, 578, 578, 578, 578, 578, 588, 588, 588,
588, 589, 589, 589, 589, 590, 590, 590, 590, 591,
591, 591, 591, 592, 592, 592, 592, 594, 594, 594,
594, 597, 597, 597, 597, 598, 598, 598, 598, 598,
0, 597, 600, 600, 600, 600, 598, 0, 0, 599,
599, 599, 599, 599, 601, 601, 601, 601, 601, 0,
599, 0, 0, 597, 0, 0, 0, 0, 598, 588,
0, 0, 588, 589, 0, 0, 589, 590, 0, 0,
590, 591, 599, 0, 591, 592, 0, 0, 592, 594,
0, 0, 594, 597, 0, 0, 597, 0, 598, 0,
0, 598, 0, 0, 600, 0, 0, 600, 603, 603,
603, 603, 599, 0, 0, 599, 0, 601, 0, 0,
601, 602, 602, 602, 602, 602, 604, 604, 604, 604,
0, 0, 602, 605, 605, 605, 605, 606, 606, 606,
606, 607, 607, 607, 607, 0, 0, 603, 0, 603,
609, 609, 609, 609, 602, 608, 608, 608, 608, 0,
603, 0, 0, 0, 603, 604, 0, 604, 0, 0,
603, 0, 605, 603, 605, 0, 0, 0, 604, 0,
0, 0, 604, 0, 602, 605, 606, 602, 604, 605,
607, 604, 0, 609, 0, 605, 0, 0, 605, 606,
0, 0, 606, 607, 0, 0, 607, 610, 610, 610,
610, 608, 609, 0, 0, 609, 0, 608, 0, 0,
608, 611, 611, 611, 611, 611, 0, 611, 612, 612,
612, 612, 611, 613, 613, 613, 613, 614, 614, 614,
614, 0, 0, 611, 616, 616, 616, 616, 0, 612,
0, 0, 0, 0, 613, 0, 0, 0, 614, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 610,
0, 0, 610, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 616, 611, 616, 0, 611, 0, 0,
612, 0, 0, 612, 0, 613, 616, 0, 613, 614,
616, 0, 614, 0, 0, 0, 616, 0, 0, 616,
619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
619, 619, 619, 619, 619, 619, 619, 619, 626, 626,
626, 626, 627, 627, 627, 627, 628, 628, 628, 628,
632, 632, 632, 632, 633, 633, 633, 633, 634, 634,
634, 634, 635, 635, 635, 635, 636, 636, 636, 636,
640, 640, 640, 640, 0, 0, 636, 637, 637, 637,
637, 637, 0, 0, 0, 0, 0, 0, 637, 0,
0, 0, 0, 0, 0, 0, 0, 0, 636, 0,
626, 0, 0, 626, 627, 0, 0, 627, 628, 0,
637, 628, 632, 0, 0, 632, 633, 0, 0, 633,
634, 640, 0, 634, 635, 0, 0, 635, 636, 0,
0, 636, 640, 0, 0, 640, 641, 641, 641, 641,
637, 0, 0, 637, 639, 639, 639, 639, 639, 639,
639, 639, 639, 639, 639, 639, 639, 639, 639, 639,
639, 639, 639, 0, 0, 0, 639, 639, 639, 639,
642, 642, 642, 642, 0, 0, 639, 0, 639, 639,
641, 643, 643, 643, 643, 0, 0, 644, 644, 644,
644, 0, 644, 646, 646, 646, 646, 644, 641, 0,
0, 641, 0, 0, 639, 639, 639, 639, 644, 0,
639, 0, 0, 0, 642, 647, 647, 647, 647, 647,
643, 647, 643, 0, 645, 645, 645, 645, 0, 645,
0, 0, 642, 643, 645, 642, 0, 643, 649, 649,
649, 649, 0, 643, 0, 645, 643, 0, 647, 644,
0, 0, 644, 0, 0, 646, 0, 0, 646, 648,
648, 648, 648, 648, 650, 650, 650, 650, 0, 0,
648, 652, 652, 652, 652, 0, 0, 649, 647, 649,
0, 647, 661, 661, 661, 661, 645, 0, 0, 645,
649, 0, 648, 0, 649, 662, 662, 662, 662, 0,
649, 0, 0, 649, 663, 663, 663, 663, 664, 664,
664, 664, 665, 665, 665, 665, 0, 0, 0, 0,
0, 0, 648, 0, 0, 648, 650, 0, 0, 650,
0, 0, 0, 652, 0, 0, 652, 0, 0, 0,
0, 0, 0, 0, 661, 0, 0, 661, 0, 0,
0, 0, 667, 667, 667, 667, 0, 662, 0, 0,
662, 668, 668, 668, 668, 0, 663, 0, 0, 663,
664, 0, 0, 664, 665, 0, 0, 665, 666, 666,
666, 666, 666, 666, 666, 666, 666, 666, 666, 666,
666, 666, 666, 666, 666, 666, 666, 0, 0, 0,
666, 666, 666, 666, 0, 667, 0, 668, 0, 0,
666, 0, 666, 666, 667, 0, 0, 667, 669, 669,
669, 669, 0, 668, 0, 0, 668, 670, 670, 670,
670, 0, 670, 673, 673, 673, 673, 673, 666, 666,
666, 671, 671, 671, 671, 671, 0, 671, 672, 672,
672, 672, 672, 0, 672, 676, 676, 676, 676, 670,
674, 674, 674, 674, 674, 0, 674, 682, 682, 682,
682, 0, 0, 0, 671, 0, 676, 0, 0, 0,
669, 672, 0, 669, 675, 675, 675, 675, 675, 670,
675, 0, 670, 674, 0, 675, 673, 0, 0, 673,
683, 683, 683, 683, 671, 0, 675, 671, 0, 0,
0, 672, 0, 0, 672, 0, 0, 676, 0, 0,
676, 0, 0, 674, 0, 0, 674, 0, 0, 682,
0, 0, 682, 684, 684, 684, 684, 685, 685, 685,
685, 686, 686, 686, 686, 0, 0, 675, 0, 0,
675, 687, 687, 687, 687, 689, 689, 689, 689, 0,
689, 0, 683, 0, 0, 683, 0, 690, 690, 690,
690, 690, 0, 690, 0, 693, 693, 693, 693, 686,
0, 0, 0, 0, 0, 0, 0, 689, 0, 0,
0, 687, 0, 0, 0, 684, 0, 0, 684, 685,
690, 0, 685, 686, 0, 0, 686, 696, 696, 696,
696, 0, 0, 687, 0, 0, 687, 689, 693, 0,
689, 697, 697, 697, 697, 698, 698, 698, 698, 0,
690, 0, 0, 690, 0, 0, 0, 693, 0, 0,
693, 694, 694, 694, 694, 694, 694, 694, 694, 694,
694, 694, 694, 694, 694, 694, 694, 694, 694, 694,
0, 0, 0, 694, 694, 694, 694, 0, 0, 696,
0, 0, 696, 694, 0, 694, 694, 0, 699, 699,
699, 699, 0, 697, 0, 0, 697, 698, 0, 0,
698, 700, 700, 700, 700, 701, 701, 701, 701, 0,
0, 694, 694, 694, 695, 695, 695, 695, 695, 695,
695, 695, 695, 695, 695, 695, 695, 695, 695, 695,
695, 695, 695, 0, 0, 0, 695, 695, 695, 695,
702, 702, 702, 702, 0, 0, 695, 0, 695, 695,
699, 0, 0, 699, 703, 703, 703, 703, 0, 0,
0, 0, 0, 700, 0, 0, 700, 701, 0, 0,
701, 0, 0, 0, 695, 695, 695, 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, 702, 0, 0, 702, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 703, 0, 0, 703,
705, 705, 705, 705, 705, 705, 705, 705, 705, 705,
705, 705, 705, 706, 706, 0, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 707, 0, 707, 707,
707, 708, 708, 0, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 709, 709, 709, 709, 709, 709,
709, 709, 0, 0, 0, 709, 709, 710, 710, 0,
0, 710, 710, 0, 710, 710, 710, 710, 710, 711,
0, 0, 711, 711, 711, 711, 711, 712, 712, 0,
712, 712, 712, 712, 712, 712, 712, 712, 712, 712,
713, 713, 713, 713, 713, 713, 713, 713, 0, 0,
0, 713, 713, 714, 714, 714, 714, 714, 714, 714,
0, 714, 714, 714, 714, 714, 715, 715, 715, 715,
715, 715, 715, 715, 715, 715, 715, 715, 715, 716,
716, 0, 716, 0, 716, 716, 716, 717, 0, 0,
717, 717, 717, 717, 717, 718, 718, 718, 718, 718,
718, 718, 718, 0, 0, 0, 718, 719, 719, 719,
719, 719, 719, 719, 719, 719, 719, 719, 719, 719,
720, 720, 720, 720, 720, 720, 720, 720, 720, 720,
720, 720, 720, 721, 721, 0, 0, 721, 0, 0,
721, 721, 722, 722, 722, 722, 722, 722, 722, 722,
0, 0, 0, 722, 722, 723, 723, 723, 723, 723,
723, 723, 723, 0, 0, 0, 723, 724, 724, 724,
724, 724, 724, 724, 724, 724, 724, 724, 724, 724,
725, 725, 0, 0, 725, 0, 0, 725, 725, 726,
0, 0, 726, 0, 726, 726, 726, 727, 727, 727,
727, 727, 727, 727, 727, 727, 727, 727, 727, 727,
728, 728, 728, 728, 728, 728, 728, 728, 0, 0,
0, 728, 729, 729, 0, 0, 729, 0, 0, 729,
729, 730, 0, 0, 730, 730, 731, 731, 731, 731,
731, 731, 731, 731, 731, 731, 731, 731, 731, 732,
732, 732, 732, 732, 732, 732, 732, 732, 732, 732,
732, 732, 733, 733, 733, 733, 733, 0, 733, 733,
734, 734, 734, 734, 734, 734, 734, 734, 734, 734,
734, 734, 734, 735, 735, 735, 735, 735, 735, 735,
735, 735, 735, 735, 735, 735, 736, 736, 736, 736,
736, 736, 736, 736, 736, 736, 736, 736, 736, 737,
737, 737, 737, 737, 0, 737, 737, 738, 738, 738,
738, 738, 0, 738, 738, 739, 739, 739, 739, 739,
0, 739, 739, 740, 740, 740, 740, 740, 740, 740,
740, 740, 740, 740, 740, 740, 741, 741, 741, 741,
741, 741, 741, 741, 741, 741, 741, 741, 741, 742,
742, 742, 742, 742, 742, 742, 742, 742, 742, 742,
742, 743, 743, 0, 743, 743, 743, 743, 743, 743,
743, 743, 743, 743, 744, 744, 744, 744, 744, 744,
744, 744, 744, 744, 744, 744, 744, 745, 745, 745,
745, 745, 745, 745, 745, 745, 745, 745, 745, 745,
746, 746, 0, 746, 746, 746, 746, 746, 746, 746,
746, 746, 746, 747, 747, 747, 747, 747, 747, 747,
747, 747, 747, 747, 747, 747, 748, 748, 748, 748,
748, 748, 748, 748, 748, 748, 748, 748, 748, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
704, 704, 704, 704, 704, 704, 704, 704
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
extern int as3__flex_debug;
int as3__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 *as3_text;
#line 1 "tokenizer.lex"
/* tokenizer.lex
Routines for compiling Flash2 AVM2 ABC Actionscript
Extension module for the rfxswf library.
Part of the swftools package.
Copyright (c) 2008 Matthias Kramm <kramm@quiss.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#line 24 "tokenizer.lex"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include "../utf8.h"
#include "common.h"
#include "tokenizer.h"
#include "files.h"
unsigned int as3_tokencount = 0;
static void dbg(const char*format, ...)
{
char buf[1024];
int l;
va_list arglist;
if(as3_verbosity<3)
return;
va_start(arglist, format);
vsnprintf(buf, sizeof(buf)-1, format, arglist);
va_end(arglist);
l = strlen(buf);
while(l && buf[l-1]=='\n') {
buf[l-1] = 0;
l--;
}
printf("(tokenizer) ");
printf("%s\n", buf);
fflush(stdout);
}
#ifndef YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER yy_current_buffer
#endif
static void*as3_buffer=0;
static int as3_buffer_pos=0;
static int as3_buffer_len=0;
void as3_file_input(FILE*fi)
{
as3_in = fi;
as3_buffer = 0;
}
void as3_buffer_input(void*buffer, int len)
{
if(!buffer)
syntaxerror("trying to parse zero bytearray");
as3_buffer = buffer;
as3_buffer_len = len;
as3_buffer_pos = 0;
as3_in = 0;
}
//#undef BEGIN
//#define BEGIN(x) {(yy_start) = 1 + 2 *x;dbg("entering state %d", x);}
#define YY_INPUT(buf,result,max_size) { \
if(!as3_buffer) { \
errno=0; \
while((result = fread(buf, 1, max_size, as3_in))==0 && ferror(as3_in)) \
{ if(errno != EINTR) {YY_FATAL_ERROR("input in flex scanner failed"); break;} \
errno=0; clearerr(as3_in); \
} \
} else { \
int to_read = max_size; \
if(to_read + as3_buffer_pos > as3_buffer_len) \
to_read = as3_buffer_len - as3_buffer_pos; \
memcpy(buf, as3_buffer+as3_buffer_pos, to_read); \
as3_buffer_pos += to_read; \
result=to_read; \
} \
}
void handleInclude(char*text, int len, char quotes)
{
char*filename = 0;
if(quotes) {
char*p1 = strchr(text, '"');
char*p2 = strrchr(text, '"');
if(!p1 || !p2 || p1==p2) {
syntaxerror("Invalid include in line %d\n", current_line);
}
*p2 = 0;
filename = strdup(p1+1);
} else {
int i1=0,i2=len;
// find start
while(!strchr(" \n\r\t\xa0", text[i1])) i1++;
// strip
while(strchr(" \n\r\t\xa0", text[i1])) i1++;
while(strchr(" \n\r\t\xa0", text[i2-1])) i2--;
if(i2!=len) text[i2]=0;
filename = strdup(&text[i1]);
}
char*fullfilename = find_file(filename, 1);
enter_file2(filename, fullfilename, YY_CURRENT_BUFFER);
as3_in = fopen(fullfilename, "rb");
if (!as3_in) {
syntaxerror("Couldn't open include file \"%s\"\n", fullfilename);
}
as3__switch_to_buffer(as3__create_buffer(as3_in,YY_BUF_SIZE ) );
//BEGIN(DEFAULT); keep context
}
static int do_unescape(const char*s, const char*end, char*n)
{
char*o = n;
int len=0;
while(s<end) {
if(*s!='\\') {
if(o) o[len] = *s;len++;
s++;
continue;
}
s++; //skip past '\'
if(s==end) syntaxerror("invalid \\ at end of string");
/* handle the various line endings (mac, dos, unix) */
if(*s=='\r') {
s++;
if(s==end) break;
if(*s=='\n')
s++;
continue;
}
if(*s=='\n') {
s++;
continue;
}
switch(*s) {
case '\\': if(o) o[len] = '\\';s++;len++; break;
case '"': if(o) o[len] = '"';s++;len++; break;
case '\'': if(o) o[len] = '\'';s++;len++; break;
case 'b': if(o) o[len] = '\b';s++;len++; break;
case 'f': if(o) o[len] = '\f';s++;len++; break;
case 'n': if(o) o[len] = '\n';s++;len++; break;
case 'r': if(o) o[len] = '\r';s++;len++; break;
case 't': if(o) o[len] = '\t';s++;len++; break;
case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': {
unsigned int num=0;
int nr = 0;
while(strchr("01234567", *s) && nr<3 && s<end) {
num <<= 3;
num |= *s-'0';
nr++;
s++;
}
if(num>256)
syntaxerror("octal number out of range (0-255): %d", num);
if(o) o[len] = num;len++;
continue;
}
case 'x': case 'u': {
int max=2;
char bracket = 0;
char unicode = 0;
if(*s == 'u') {
max = 6;
unicode = 1;
}
s++;
if(s==end) syntaxerror("invalid \\u or \\x at end of string");
if(*s == '{') {
s++;
if(s==end) syntaxerror("invalid \\u{ at end of string");
bracket=1;
}
unsigned int num=0;
int nr = 0;
while(strchr("0123456789abcdefABCDEF", *s) && (bracket || nr < max) && s<end) {
num <<= 4;
if(*s>='0' && *s<='9') num |= *s - '0';
if(*s>='a' && *s<='f') num |= *s - 'a' + 10;
if(*s>='A' && *s<='F') num |= *s - 'A' + 10;
nr++;
s++;
}
if(bracket) {
if(*s=='}' && s<end) {
s++;
} else {
syntaxerror("missing terminating '}'");
}
}
if(unicode) {
char*utf8 = getUTF8(num);
while(*utf8) {
if(o) o[len] = *utf8;utf8++;len++;
}
} else {
if(num>256)
syntaxerror("byte out of range (0-255): %d", num);
if(o) o[len] = num;len++;
}
break;
}
default: {
if(o) {
o[len+0] = '\\';
o[len+1] = *s;
}
s++;
len+=2;
break;
}
}
}
if(o) o[len]=0;
return len;
}
static string_t string_unescape(const char*in, int l)
{
const char*s = in;
const char*end = &in[l];
int len = do_unescape(s, end, 0);
char*n = (char*)malloc(len+1);
do_unescape(s, end, n);
string_t out = string_new(n, len);
return out;
}
static void handleCData(char*s, int len)
{
a3_lval.str.str = s+9; // <![CDATA[
a3_lval.str.len = len-9-3;// ]]>
a3_lval.str.str = strdup_n(a3_lval.str.str, a3_lval.str.len);
}
static void handleRaw(char*s, int len)
{
a3_lval.str.len = len;
a3_lval.str.str = strdup_n(s, a3_lval.str.len);
}
static void handleString(char*s, int len)
{
if(s[0]=='"') {
if(s[len-1]!='"') syntaxerror("String doesn't end with '\"'");
s++;len-=2;
}
else if(s[0]=='\'') {
if(s[len-1]!='\'') syntaxerror("String doesn't end with '\"'");
s++;len-=2;
}
else syntaxerror("String incorrectly terminated");
a3_lval.str = string_unescape(s, len);
}
char start_of_expression;
static inline int m(int type)
{
a3_lval.token = type;
return type;
}
static char numberbuf[64];
static char*nrbuf()
{
if(as3_leng>sizeof(numberbuf)-1)
syntaxerror("decimal number overflow");
char*s = numberbuf;
memcpy(s, as3_text, as3_leng);
s[as3_leng]=0;
return s;
}
static inline int setint(int v)
{
a3_lval.number_int = v;
return T_INT;
}
static inline int setfloat(double v)
{
a3_lval.number_float = v;
return T_FLOAT;
}
static inline int handlefloat()
{
char*s = nrbuf();
a3_lval.number_float = atof(s);
return T_FLOAT;
}
static inline int handleint()
{
char*s = nrbuf();
char l = (as3_text[0]=='-');
//char*max = l?"1073741824":"2147483647";
char*max = l?"2147483648":"2147483647";
if(as3_leng-l>10) {
as3_softwarning("integer overflow: %s (converted to Number)", s);
return handlefloat();
}
if(as3_leng-l==10) {
int t;
for(t=0;t<as3_leng-l;t++) {
if(as3_text[l+t]>max[t]) {
as3_softwarning("integer overflow: %s (converted to Number)", s);
return handlefloat();
}
else if(as3_text[l+t]<max[t])
break;
}
}
if(as3_text[0]=='-') {
int v = atoi(s);
return setint(v);
} else {
unsigned int v = 0;
int t;
for(t=0;t<as3_leng;t++) {
v*=10;
v+=as3_text[t]-'0';
}
return setint(v);
}
}
static inline int handlehexfloat()
{
char l = (as3_text[0]=='-')+2;
double d=0;
char dot=0;
double base=1;
int t;
for(t=l;t<as3_leng;t++) {
char c = as3_text[t];
if(c=='.') {
dot=1;
continue;
}
if(!dot) {
d*=16;
} else {
base*=1/16.0;
}
if(c>='0' && c<='9')
d+=(c&15)*base;
else if((c>='a' && c<='f') || (c>='A' && c<='F'))
d+=((c&0x0f)+9)*base;
}
return setfloat(d);
}
static inline int handlehex()
{
char l = (as3_text[0]=='-')+2;
int len = as3_leng;
if(len-l>8) {
char*s = nrbuf();
syntaxerror("integer overflow %s", s);
}
int t;
unsigned int v = 0;
for(t=l;t<len;t++) {
v<<=4;
char c = as3_text[t];
if(c>='0' && c<='9')
v|=(c&15);
else if((c>='a' && c<='f') || (c>='A' && c<='F'))
v|=(c&0x0f)+9;
}
if(l && v>=0x80000000) {
char*s = nrbuf();
as3_softwarning("integer overflow: %s (converted to Number)", s);
return setfloat(v);
}
if(!l && v>0x7fffffff) {
char*s = nrbuf();
as3_softwarning("integer overflow: %s (converted to Number)", s);
return setfloat(v);
}
if(l==3) {
return setint(-(int)v);
} else {
return setint(v);
}
}
void handleLabel(char*text, int len)
{
int t;
for(t=len-1;t>=0;--t) {
if(text[t]!=' ' &&
text[t]!=':')
break;
}
char*s = malloc(t+1);
memcpy(s, as3_text, t);
s[t]=0;
a3_lval.id = s;
}
static int handleregexp()
{
char*s = malloc(as3_leng);
int len=as3_leng-1;
memcpy(s, as3_text+1, len);
s[len] = 0;
int t;
for(t=len;t>=0;--t) {
if(s[t]=='/') {
s[t] = 0;
break;
}
}
a3_lval.regexp.pattern = s;
if(t==len) {
a3_lval.regexp.options = 0;
} else {
a3_lval.regexp.options = s+t+1;
}
return T_REGEXP;
}
void initialize_scanner();
#define YY_USER_INIT initialize_scanner();
/* count the number of lines+columns consumed by this token */
static inline void l() {
int t;
for(t=0;t<as3_leng;t++) {
if(as3_text[t]=='\n') {
current_line++;
current_column=0;
} else {
current_column++;
}
}
}
/* count the number of columns consumed by this token */
static inline void c() {
current_column+=as3_leng;
}
static inline int handleIdentifier()
{
char*s = malloc(as3_leng+1);
memcpy(s, as3_text, as3_leng);
s[as3_leng]=0;
a3_lval.id = s;
return T_IDENTIFIER;
}
static int tokenerror();
//Boolean {c();return m(KW_BOOLEAN);}
//int {c();return m(KW_INT);}
//uint {c();return m(KW_UINT);}
//Number {c();return m(KW_NUMBER);}
//XMLCOMMENT <!--([^->]|(-/[^-])|(--/[^>]))*-->
//{XMLCOMMENT}
#line 2080 "tokenizer.yy.c"
#define INITIAL 0
#define REGEXPOK 1
#define BEGINNING 2
#define DEFAULT 3
#define XMLTEXT 4
#define XML 5
#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 as3_lex_destroy (void );
int as3_get_debug (void );
void as3_set_debug (int debug_flag );
YY_EXTRA_TYPE as3_get_extra (void );
void as3_set_extra (YY_EXTRA_TYPE user_defined );
FILE *as3_get_in (void );
void as3_set_in (FILE * in_str );
FILE *as3_get_out (void );
void as3_set_out (FILE * out_str );
int as3_get_leng (void );
char *as3_get_text (void );
int as3_get_lineno (void );
void as3_set_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 as3_wrap (void );
#else
extern int as3_wrap (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
#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 fwrite( as3_text, as3_leng, 1, as3_out )
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
int n; \
for ( n = 0; n < max_size && \
(c = getc( as3_in )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( as3_in ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, as3_in))==0 && ferror(as3_in)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(as3_in); \
} \
}\
\
#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 as3_lex (void);
#define YY_DECL int as3_lex (void)
#endif /* !YY_DECL */
/* Code executed at the beginning of each rule, after as3_text and as3_leng
* 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 ( as3_leng > 0 ) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
(as3_text[as3_leng - 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 536 "tokenizer.lex"
#line 2274 "tokenizer.yy.c"
if ( !(yy_init) )
{
(yy_init) = 1;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! (yy_start) )
(yy_start) = 1; /* first start state */
if ( ! as3_in )
as3_in = stdin;
if ( ! as3_out )
as3_out = stdout;
if ( ! YY_CURRENT_BUFFER ) {
as3_ensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
as3__create_buffer(as3_in,YY_BUF_SIZE );
}
as3__load_buffer_state( );
}
while ( 1 ) /* loops until end-of-file is reached */
{
yy_cp = (yy_c_buf_p);
/* Support of as3_text. */
*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 >= 705 )
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_current_state != 704 );
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
yy_find_action:
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:
/* rule 1 can match eol */
YY_RULE_SETUP
#line 539 "tokenizer.lex"
{l(); /* single line comment */}
YY_BREAK
case 2:
/* rule 2 can match eol */
YY_RULE_SETUP
#line 540 "tokenizer.lex"
{l(); /* multi line comment */}
YY_BREAK
case 3:
YY_RULE_SETUP
#line 541 "tokenizer.lex"
{syntaxerror("syntax error: unterminated comment", as3_text);}
YY_BREAK
case 4:
/* rule 4 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 543 "tokenizer.lex"
{l();handleInclude(as3_text, as3_leng, 1);}
YY_BREAK
case 5:
/* rule 5 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 544 "tokenizer.lex"
{l();handleInclude(as3_text, as3_leng, 0);}
YY_BREAK
case 6:
/* rule 6 can match eol */
YY_RULE_SETUP
#line 545 "tokenizer.lex"
{l(); BEGIN(DEFAULT);handleString(as3_text, as3_leng);return T_STRING;}
YY_BREAK
case 7:
/* rule 7 can match eol */
YY_RULE_SETUP
#line 546 "tokenizer.lex"
{l(); BEGIN(DEFAULT);handleCData(as3_text, as3_leng);return T_STRING;}
YY_BREAK
case 8:
/* rule 8 can match eol */
YY_RULE_SETUP
#line 549 "tokenizer.lex"
{l(); BEGIN(DEFAULT);handleRaw(as3_text, as3_leng);return T_STRING;}
YY_BREAK
case 9:
/* rule 9 can match eol */
YY_RULE_SETUP
#line 553 "tokenizer.lex"
{l(); handleRaw(as3_text, as3_leng);return T_STRING;}
YY_BREAK
case 10:
YY_RULE_SETUP
#line 554 "tokenizer.lex"
{c(); BEGIN(REGEXPOK);return m('{');}
YY_BREAK
case 11:
YY_RULE_SETUP
#line 555 "tokenizer.lex"
{c(); return m('<');}
YY_BREAK
case 12:
YY_RULE_SETUP
#line 556 "tokenizer.lex"
{c(); return m('/');}
YY_BREAK
case 13:
YY_RULE_SETUP
#line 557 "tokenizer.lex"
{c(); return m('>');}
YY_BREAK
case 14:
YY_RULE_SETUP
#line 558 "tokenizer.lex"
{c(); return m('=');}
YY_BREAK
case 15:
YY_RULE_SETUP
#line 559 "tokenizer.lex"
{c(); handleRaw(as3_text, as3_leng);return T_IDENTIFIER;}
YY_BREAK
case 16:
/* rule 16 can match eol */
YY_RULE_SETUP
#line 560 "tokenizer.lex"
{l();}
YY_BREAK
case YY_STATE_EOF(XML):
#line 561 "tokenizer.lex"
{syntaxerror("unexpected end of file");}
YY_BREAK
case 17:
/* rule 17 can match eol */
YY_RULE_SETUP
#line 565 "tokenizer.lex"
{l(); handleRaw(as3_text, as3_leng);return T_STRING;}
YY_BREAK
case 18:
YY_RULE_SETUP
#line 566 "tokenizer.lex"
{c(); BEGIN(REGEXPOK);return m('{');}
YY_BREAK
case 19:
YY_RULE_SETUP
#line 567 "tokenizer.lex"
{c(); BEGIN(XML);return m('<');}
YY_BREAK
case 20:
YY_RULE_SETUP
#line 568 "tokenizer.lex"
{c(); return m('>');}
YY_BREAK
case 21:
/* rule 21 can match eol */
YY_RULE_SETUP
#line 569 "tokenizer.lex"
{l(); handleRaw(as3_text, as3_leng);return T_STRING;}
YY_BREAK
case 22:
/* rule 22 can match eol */
YY_RULE_SETUP
#line 570 "tokenizer.lex"
{l(); handleRaw(as3_text, as3_leng);return T_STRING;}
YY_BREAK
case YY_STATE_EOF(XMLTEXT):
#line 571 "tokenizer.lex"
{syntaxerror("unexpected end of file");}
YY_BREAK
case 23:
YY_RULE_SETUP
#line 575 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return handleregexp();}
YY_BREAK
case 24:
/* rule 24 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 576 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return handlehex();}
YY_BREAK
case 25:
/* rule 25 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 577 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return handlehexfloat();}
YY_BREAK
case 26:
/* rule 26 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 578 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return handleint();}
YY_BREAK
case 27:
/* rule 27 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 579 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return handlefloat();}
YY_BREAK
case 28:
YY_RULE_SETUP
#line 582 "tokenizer.lex"
{c(); BEGIN(REGEXPOK);return m(T_DICTSTART);}
YY_BREAK
case 29:
YY_RULE_SETUP
#line 583 "tokenizer.lex"
{c(); BEGIN(DEFAULT); return m('{');}
YY_BREAK
case 30:
YY_RULE_SETUP
#line 585 "tokenizer.lex"
{/* utf 8 bom (0xfeff) */}
YY_BREAK
case 31:
/* rule 31 can match eol */
YY_RULE_SETUP
#line 586 "tokenizer.lex"
{l();}
YY_BREAK
case 32:
/* rule 32 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 588 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return handlehex();}
YY_BREAK
case 33:
/* rule 33 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 589 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return handlehexfloat();}
YY_BREAK
case 34:
/* rule 34 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 590 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return handleint();}
YY_BREAK
case 35:
/* rule 35 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 591 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return handlefloat();}
YY_BREAK
case 36:
YY_RULE_SETUP
#line 592 "tokenizer.lex"
{c(); BEGIN(DEFAULT);return m(KW_NAN);}
YY_BREAK
case 37:
YY_RULE_SETUP
#line 594 "tokenizer.lex"
{/* for debugging: generates a tokenizer-level error */
syntaxerror("3rr0r");}
YY_BREAK
case 38:
/* rule 38 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 597 "tokenizer.lex"
{l();BEGIN(DEFAULT);handleLabel(as3_text, as3_leng-3);return T_FOR;}
YY_BREAK
case 39:
/* rule 39 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 598 "tokenizer.lex"
{l();BEGIN(DEFAULT);handleLabel(as3_text, as3_leng-2);return T_DO;}
YY_BREAK
case 40:
/* rule 40 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 599 "tokenizer.lex"
{l();BEGIN(DEFAULT);handleLabel(as3_text, as3_leng-5);return T_WHILE;}
YY_BREAK
case 41:
/* rule 41 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up as3_text */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up as3_text again */
YY_RULE_SETUP
#line 600 "tokenizer.lex"
{l();BEGIN(DEFAULT);handleLabel(as3_text, as3_leng-6);return T_SWITCH;}
YY_BREAK
case 42:
/* rule 42 can match eol */
YY_RULE_SETUP
#line 601 "tokenizer.lex"
{l();BEGIN(DEFAULT);return m(KW_DEFAULT_XML);}
YY_BREAK
case 43:
YY_RULE_SETUP
#line 602 "tokenizer.lex"
{c();BEGIN(DEFAULT);a3_lval.id="";return T_FOR;}
YY_BREAK
case 44:
YY_RULE_SETUP
#line 603 "tokenizer.lex"
{c();BEGIN(DEFAULT);a3_lval.id="";return T_DO;}
YY_BREAK
case 45:
YY_RULE_SETUP
#line 604 "tokenizer.lex"
{c();BEGIN(DEFAULT);a3_lval.id="";return T_WHILE;}
YY_BREAK
case 46:
YY_RULE_SETUP
#line 605 "tokenizer.lex"
{c();BEGIN(DEFAULT);a3_lval.id="";return T_SWITCH;}
YY_BREAK
case 47:
YY_RULE_SETUP
#line 607 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_ANDAND);}
YY_BREAK
case 48:
YY_RULE_SETUP
#line 608 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_OROR);}
YY_BREAK
case 49:
YY_RULE_SETUP
#line 609 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_NE);}
YY_BREAK
case 50:
YY_RULE_SETUP
#line 610 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_NEE);}
YY_BREAK
case 51:
YY_RULE_SETUP
#line 611 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_EQEQEQ);}
YY_BREAK
case 52:
YY_RULE_SETUP
#line 612 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_EQEQ);}
YY_BREAK
case 53:
YY_RULE_SETUP
#line 613 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_GE);}
YY_BREAK
case 54:
YY_RULE_SETUP
#line 614 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_LE);}
YY_BREAK
case 55:
YY_RULE_SETUP
#line 615 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(T_MINUSMINUS);}
YY_BREAK
case 56:
YY_RULE_SETUP
#line 616 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(T_PLUSPLUS);}
YY_BREAK
case 57:
YY_RULE_SETUP
#line 617 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_PLUSBY);}
YY_BREAK
case 58:
YY_RULE_SETUP
#line 618 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_XORBY);}
YY_BREAK
case 59:
YY_RULE_SETUP
#line 619 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_MINUSBY);}
YY_BREAK
case 60:
YY_RULE_SETUP
#line 620 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_DIVBY);}
YY_BREAK
case 61:
YY_RULE_SETUP
#line 621 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_MODBY);}
YY_BREAK
case 62:
YY_RULE_SETUP
#line 622 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_MULBY);}
YY_BREAK
case 63:
YY_RULE_SETUP
#line 623 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_ORBY);}
YY_BREAK
case 64:
YY_RULE_SETUP
#line 624 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_ANDBY);}
YY_BREAK
case 65:
YY_RULE_SETUP
#line 625 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_SHRBY);}
YY_BREAK
case 66:
YY_RULE_SETUP
#line 626 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_SHLBY);}
YY_BREAK
case 67:
YY_RULE_SETUP
#line 627 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_USHRBY);}
YY_BREAK
case 68:
YY_RULE_SETUP
#line 628 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_SHL);}
YY_BREAK
case 69:
YY_RULE_SETUP
#line 629 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_USHR);}
YY_BREAK
case 70:
YY_RULE_SETUP
#line 630 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_SHR);}
YY_BREAK
case 71:
YY_RULE_SETUP
#line 631 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_DOTDOTDOT);}
YY_BREAK
case 72:
YY_RULE_SETUP
#line 632 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_DOTDOT);}
YY_BREAK
case 73:
YY_RULE_SETUP
#line 633 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m('.');}
YY_BREAK
case 74:
YY_RULE_SETUP
#line 634 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(T_COLONCOLON);}
YY_BREAK
case 75:
YY_RULE_SETUP
#line 635 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(':');}
YY_BREAK
case 76:
YY_RULE_SETUP
#line 636 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_INSTANCEOF);}
YY_BREAK
case 77:
YY_RULE_SETUP
#line 637 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_IMPLEMENTS);}
YY_BREAK
case 78:
YY_RULE_SETUP
#line 638 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_INTERFACE);}
YY_BREAK
case 79:
YY_RULE_SETUP
#line 639 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_PROTECTED);}
YY_BREAK
case 80:
YY_RULE_SETUP
#line 640 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_NAMESPACE);}
YY_BREAK
case 81:
YY_RULE_SETUP
#line 641 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_UNDEFINED);}
YY_BREAK
case 82:
YY_RULE_SETUP
#line 642 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_ARGUMENTS);}
YY_BREAK
case 83:
YY_RULE_SETUP
#line 643 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_CONTINUE);}
YY_BREAK
case 84:
YY_RULE_SETUP
#line 644 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_OVERRIDE);}
YY_BREAK
case 85:
YY_RULE_SETUP
#line 645 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_INTERNAL);}
YY_BREAK
case 86:
YY_RULE_SETUP
#line 646 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_FUNCTION);}
YY_BREAK
case 87:
YY_RULE_SETUP
#line 647 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_FINALLY);}
YY_BREAK
case 88:
YY_RULE_SETUP
#line 648 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_DEFAULT);}
YY_BREAK
case 89:
YY_RULE_SETUP
#line 649 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_PACKAGE);}
YY_BREAK
case 90:
YY_RULE_SETUP
#line 650 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_PRIVATE);}
YY_BREAK
case 91:
YY_RULE_SETUP
#line 651 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_DYNAMIC);}
YY_BREAK
case 92:
YY_RULE_SETUP
#line 652 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_EXTENDS);}
YY_BREAK
case 93:
YY_RULE_SETUP
#line 653 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_DELETE);}
YY_BREAK
case 94:
YY_RULE_SETUP
#line 654 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_RETURN);}
YY_BREAK
case 95:
YY_RULE_SETUP
#line 655 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_PUBLIC);}
YY_BREAK
case 96:
YY_RULE_SETUP
#line 656 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_NATIVE);}
YY_BREAK
case 97:
YY_RULE_SETUP
#line 657 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_STATIC);}
YY_BREAK
case 98:
YY_RULE_SETUP
#line 658 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_IMPORT);}
YY_BREAK
case 99:
YY_RULE_SETUP
#line 659 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_TYPEOF);}
YY_BREAK
case 100:
YY_RULE_SETUP
#line 660 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_THROW);}
YY_BREAK
case 101:
YY_RULE_SETUP
#line 661 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_CLASS);}
YY_BREAK
case 102:
YY_RULE_SETUP
#line 662 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_CONST);}
YY_BREAK
case 103:
YY_RULE_SETUP
#line 663 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_CATCH);}
YY_BREAK
case 104:
YY_RULE_SETUP
#line 664 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_FINAL);}
YY_BREAK
case 105:
YY_RULE_SETUP
#line 665 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_FALSE);}
YY_BREAK
case 106:
YY_RULE_SETUP
#line 666 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_BREAK);}
YY_BREAK
case 107:
YY_RULE_SETUP
#line 667 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_SUPER);}
YY_BREAK
case 108:
YY_RULE_SETUP
#line 668 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_EACH);}
YY_BREAK
case 109:
YY_RULE_SETUP
#line 669 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_VOID);}
YY_BREAK
case 110:
YY_RULE_SETUP
#line 670 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_TRUE);}
YY_BREAK
case 111:
YY_RULE_SETUP
#line 671 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_NULL);}
YY_BREAK
case 112:
YY_RULE_SETUP
#line 672 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_ELSE);}
YY_BREAK
case 113:
YY_RULE_SETUP
#line 673 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_CASE);}
YY_BREAK
case 114:
YY_RULE_SETUP
#line 674 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_WITH);}
YY_BREAK
case 115:
YY_RULE_SETUP
#line 675 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_USE);}
YY_BREAK
case 116:
YY_RULE_SETUP
#line 676 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_NEW);}
YY_BREAK
case 117:
YY_RULE_SETUP
#line 677 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_GET);}
YY_BREAK
case 118:
YY_RULE_SETUP
#line 678 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_SET);}
YY_BREAK
case 119:
YY_RULE_SETUP
#line 679 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_VAR);}
YY_BREAK
case 120:
YY_RULE_SETUP
#line 680 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_TRY);}
YY_BREAK
case 121:
YY_RULE_SETUP
#line 681 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_IS) ;}
YY_BREAK
case 122:
YY_RULE_SETUP
#line 682 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_IN) ;}
YY_BREAK
case 123:
YY_RULE_SETUP
#line 683 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(KW_IF) ;}
YY_BREAK
case 124:
YY_RULE_SETUP
#line 684 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(KW_AS);}
YY_BREAK
case 125:
YY_RULE_SETUP
#line 685 "tokenizer.lex"
{c();BEGIN(DEFAULT);return handleIdentifier();}
YY_BREAK
case 126:
YY_RULE_SETUP
#line 687 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(as3_text[0]);}
YY_BREAK
case 127:
YY_RULE_SETUP
#line 688 "tokenizer.lex"
{c();BEGIN(REGEXPOK);return m(as3_text[0]);}
YY_BREAK
case 128:
YY_RULE_SETUP
#line 689 "tokenizer.lex"
{c();BEGIN(DEFAULT);return m(as3_text[0]);}
YY_BREAK
case 129:
YY_RULE_SETUP
#line 692 "tokenizer.lex"
{tokenerror();}
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(REGEXPOK):
case YY_STATE_EOF(BEGINNING):
case YY_STATE_EOF(DEFAULT):
#line 694 "tokenizer.lex"
{l();
void*b = leave_file();
if (!b) {
yyterminate();
as3__delete_buffer(YY_CURRENT_BUFFER);
return m(T_EOF);
} else {
as3__delete_buffer(YY_CURRENT_BUFFER);
as3__switch_to_buffer(b);
}
}
YY_BREAK
case 130:
YY_RULE_SETUP
#line 706 "tokenizer.lex"
ECHO;
YY_BREAK
#line 3108 "tokenizer.yy.c"
case YY_END_OF_BUFFER:
{
/* Amount of text matched not including the EOB char. */
int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
/* Undo the effects of YY_DO_BEFORE_ACTION. */
*yy_cp = (yy_hold_char);
YY_RESTORE_YY_MORE_OFFSET
if ( YY_CURRENT_BUFFER_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 as3_in at a new source and called
* as3_lex(). 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 = as3_in;
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_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
goto yy_find_action;
}
}
else switch ( yy_get_next_buffer( ) )
{
case EOB_ACT_END_OF_FILE:
{
(yy_did_buffer_switch_on_eof) = 0;
if ( as3_wrap( ) )
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
* as3_text, 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 as3_lex */
/* 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. */
as3_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
}
else
/* Can't grow it, we don't own it. */
b->yy_ch_buf = 0;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
"fatal error - scanner input buffer overflow" );
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
num_to_read = YY_CURRENT_BUFFER_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;
as3_restart(as3_in );
}
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 *) as3_realloc((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 >= 705 )
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 >= 705 )
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 == 704);
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 as3_text */
*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. */
as3_restart(as3_in );
/*FALLTHROUGH*/
case EOB_ACT_END_OF_FILE:
{
if ( as3_wrap( ) )
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 as3_text */
(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 as3_restart (FILE * input_file )
{
if ( ! YY_CURRENT_BUFFER ){
as3_ensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
as3__create_buffer(as3_in,YY_BUF_SIZE );
}
as3__init_buffer(YY_CURRENT_BUFFER,input_file );
as3__load_buffer_state( );
}
/** Switch to a different input buffer.
* @param new_buffer The new input buffer.
*
*/
void as3__switch_to_buffer (YY_BUFFER_STATE new_buffer )
{
/* TODO. We should be able to replace this entire function body
* with
* as3_pop_buffer_state();
* as3_push_buffer_state(new_buffer);
*/
as3_ensure_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;
as3__load_buffer_state( );
/* We don't actually know whether we did this switch during
* EOF (as3_wrap()) processing, but the only time this flag
* is looked at is after as3_wrap() is called, so it's safe
* to go ahead and always set it.
*/
(yy_did_buffer_switch_on_eof) = 1;
}
static void as3__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;
as3_in = 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 as3__create_buffer (FILE * file, int size )
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) as3_alloc(sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in as3__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 *) as3_alloc(b->yy_buf_size + 2 );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in as3__create_buffer()" );
b->yy_is_our_buffer = 1;
as3__init_buffer(b,file );
return b;
}
/** Destroy the buffer.
* @param b a buffer created with as3__create_buffer()
*
*/
void as3__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 )
as3_free((void *) b->yy_ch_buf );
as3_free((void *) b );
}
#ifndef _UNISTD_H /* assume unistd.h has isatty() for us */
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __THROW /* this is a gnuism */
extern int isatty (int ) __THROW;
#else
extern int isatty (int );
#endif
#ifdef __cplusplus
}
#endif
#endif
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a as3_restart() or at EOF.
*/
static void as3__init_buffer (YY_BUFFER_STATE b, FILE * file )
{
int oerrno = errno;
as3__flush_buffer(b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
/* If b is the current buffer, then as3__init_buffer was _probably_
* called from as3_restart() 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 as3__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 )
as3__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 as3_push_buffer_state (YY_BUFFER_STATE new_buffer )
{
if (new_buffer == NULL)
return;
as3_ensure_buffer_stack();
/* This block is copied from as3__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 as3__switch_to_buffer. */
as3__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 as3_pop_buffer_state (void)
{
if (!YY_CURRENT_BUFFER)
return;
as3__delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
if ((yy_buffer_stack_top) > 0)
--(yy_buffer_stack_top);
if (YY_CURRENT_BUFFER) {
as3__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 as3_ensure_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**)as3_alloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in as3_ensure_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**)as3_realloc
((yy_buffer_stack),
num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in as3_ensure_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 as3__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) as3_alloc(sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in as3__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;
as3__switch_to_buffer(b );
return b;
}
/** Setup the input buffer state to scan a string. The next call to as3_lex() 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
* as3__scan_bytes() instead.
*/
YY_BUFFER_STATE as3__scan_string (yyconst char * yystr )
{
return as3__scan_bytes(yystr,strlen(yystr) );
}
/** Setup the input buffer state to scan the given bytes. The next call to as3_lex() 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 as3__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 *) as3_alloc(n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in as3__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 = as3__scan_buffer(buf,n );
if ( ! b )
YY_FATAL_ERROR( "bad buffer in as3__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 as3_text. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
as3_text[as3_leng] = (yy_hold_char); \
(yy_c_buf_p) = as3_text + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
as3_leng = yyless_macro_arg; \
} \
while ( 0 )
/* Accessor methods (get/set functions) to struct members. */
/** Get the current line number.
*
*/
int as3_get_lineno (void)
{
return as3_lineno;
}
/** Get the input stream.
*
*/
FILE *as3_get_in (void)
{
return as3_in;
}
/** Get the output stream.
*
*/
FILE *as3_get_out (void)
{
return as3_out;
}
/** Get the length of the current token.
*
*/
int as3_get_leng (void)
{
return as3_leng;
}
/** Get the current token.
*
*/
char *as3_get_text (void)
{
return as3_text;
}
/** Set the current line number.
* @param line_number
*
*/
void as3_set_lineno (int line_number )
{
as3_lineno = line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
* @param in_str A readable stream.
*
* @see as3__switch_to_buffer
*/
void as3_set_in (FILE * in_str )
{
as3_in = in_str ;
}
void as3_set_out (FILE * out_str )
{
as3_out = out_str ;
}
int as3_get_debug (void)
{
return as3__flex_debug;
}
void as3_set_debug (int bdebug )
{
as3__flex_debug = bdebug ;
}
static int yy_init_globals (void)
{
/* Initialization is the same as for the non-reentrant scanner.
* This function is called from as3_lex_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
as3_in = stdin;
as3_out = stdout;
#else
as3_in = (FILE *) 0;
as3_out = (FILE *) 0;
#endif
/* For future reference: Set errno on error, since we are called by
* as3_lex_init()
*/
return 0;
}
/* as3_lex_destroy is for both reentrant and non-reentrant scanners. */
int as3_lex_destroy (void)
{
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
as3__delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
as3_pop_buffer_state();
}
/* Destroy the stack itself. */
as3_free((yy_buffer_stack) );
(yy_buffer_stack) = NULL;
/* Reset the globals. This is important in a non-reentrant scanner so the next time
* as3_lex() 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 *as3_alloc (yy_size_t size )
{
return (void *) malloc( size );
}
void *as3_realloc (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 as3_free (void * ptr )
{
free( (char *) ptr ); /* see as3_realloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"
#line 706 "tokenizer.lex"
int as3_wrap()
{
return 1;
}
static int tokenerror()
{
char c1=as3_text[0];
char buf[128];
buf[0] = as3_text[0];
int t;
for(t=1;t<128;t++) {
char c = buf[t]=input();
if(c=='\n' || c==EOF) {
buf[t] = 0;
break;
}
}
if(c1>='0' && c1<='9')
syntaxerror("syntax error: %s (identifiers must not start with a digit)");
else
syntaxerror("syntax error [state=%d]: %s", (yy_start-1)/2, buf);
printf("\n");
exit(1);
yyterminate();
}
static char mbuf[256];
char*token2string(enum yytokentype nr, YYSTYPE v)
{
if(nr==T_STRING) {
char*s = malloc(v.str.len+10);
strcpy(s, "<string>");
memcpy(s+8, v.str.str, v.str.len);
sprintf(s+8+v.str.len, " (%d bytes)", v.str.len);
return s;
}
else if(nr==T_REGEXP) {
char*s = malloc(strlen(v.regexp.pattern)+10);
sprintf(s, "<regexp>%s", v.regexp.pattern);
return s;
}
else if(nr==T_IDENTIFIER) {
char*s = malloc(strlen(v.id)+10);
sprintf(s, "<ID>%s", v.id);
return s;
}
else if(nr==T_INT) return "<int>";
else if(nr==T_UINT) return "<uint>";
else if(nr==T_FLOAT) return "<float>";
else if(nr==T_EOF) return "***END***";
else if(nr==T_GE) return ">=";
else if(nr==T_LE) return "<=";
else if(nr==T_MINUSMINUS) return "--";
else if(nr==T_PLUSPLUS) return "++";
else if(nr==KW_IMPLEMENTS) return "implements";
else if(nr==KW_INTERFACE) return "interface";
else if(nr==KW_NAMESPACE) return "namespace";
else if(nr==KW_PROTECTED) return "protected";
else if(nr==KW_OVERRIDE) return "override";
else if(nr==KW_INTERNAL) return "internal";
else if(nr==KW_FUNCTION) return "function";
else if(nr==KW_PACKAGE) return "package";
else if(nr==KW_PRIVATE) return "private";
else if(nr==KW_BOOLEAN) return "Boolean";
else if(nr==KW_DYNAMIC) return "dynamic";
else if(nr==KW_EXTENDS) return "extends";
else if(nr==KW_PUBLIC) return "public";
else if(nr==KW_NATIVE) return "native";
else if(nr==KW_STATIC) return "static";
else if(nr==KW_IMPORT) return "import";
else if(nr==KW_NUMBER) return "number";
else if(nr==KW_CLASS) return "class";
else if(nr==KW_CONST) return "const";
else if(nr==KW_FINAL) return "final";
else if(nr==KW_FALSE) return "False";
else if(nr==KW_TRUE) return "True";
else if(nr==KW_UINT) return "uint";
else if(nr==KW_NULL) return "null";
else if(nr==KW_ELSE) return "else";
else if(nr==KW_USE) return "use";
else if(nr==KW_INT) return "int";
else if(nr==KW_NEW) return "new";
else if(nr==KW_GET) return "get";
else if(nr==KW_SET) return "set";
else if(nr==KW_VAR) return "var";
else if(nr==KW_IS) return "is";
else if(nr==KW_AS) return "as";
else {
sprintf(mbuf, "%d", nr);
return mbuf;
}
}
void tokenizer_begin_xml()
{
dbg("begin reading xml");
BEGIN(XML);
}
void tokenizer_begin_xmltext()
{
dbg("begin reading xml text");
BEGIN(XMLTEXT);
}
void tokenizer_end_xmltext()
{
dbg("end reading xml text");
BEGIN(XML);
}
void tokenizer_end_xml()
{
dbg("end reading xml");
BEGIN(DEFAULT);
}
void initialize_scanner()
{
BEGIN(BEGINNING);
}