X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/1656cfade4879af0cb003e3847e58264caa5781f..8445442abc02fc325a9ce228759403113583818c:/src/lexer.c diff --git a/src/lexer.c b/src/lexer.c index 2f0c716..4d15ce3 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -1,67 +1,113 @@ -/* A lexical scanner generated by flex */ -/* Scanner skeleton version: - * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ - */ +#line 3 "lexer.c" + +#define YY_INT_ALIGNED short int + +/* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 +#define YY_FLEX_SUBMINOR_VERSION 37 +#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 +#include +#include +#include +/* end standard C headers. */ -/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ -#ifdef c_plusplus -#ifndef __cplusplus -#define __cplusplus -#endif +/* flex integer type definitions */ + +#ifndef FLEXINT_H +#define FLEXINT_H + +/* C99 systems have . 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 +typedef int8_t flex_int8_t; +typedef uint8_t flex_uint8_t; +typedef int16_t flex_int16_t; +typedef uint16_t flex_uint16_t; +typedef int32_t flex_int32_t; +typedef uint32_t flex_uint32_t; +#else +typedef signed char flex_int8_t; +typedef short int flex_int16_t; +typedef int flex_int32_t; +typedef unsigned char flex_uint8_t; +typedef unsigned short int flex_uint16_t; +typedef unsigned int flex_uint32_t; + +/* Limits of integral types. */ +#ifndef INT8_MIN +#define INT8_MIN (-128) +#endif +#ifndef INT16_MIN +#define INT16_MIN (-32767-1) +#endif +#ifndef INT32_MIN +#define INT32_MIN (-2147483647-1) +#endif +#ifndef INT8_MAX +#define INT8_MAX (127) +#endif +#ifndef INT16_MAX +#define INT16_MAX (32767) +#endif +#ifndef INT32_MAX +#define INT32_MAX (2147483647) +#endif +#ifndef UINT8_MAX +#define UINT8_MAX (255U) +#endif +#ifndef UINT16_MAX +#define UINT16_MAX (65535U) +#endif +#ifndef UINT32_MAX +#define UINT32_MAX (4294967295U) +#endif -#ifdef __cplusplus +#endif /* ! C99 */ -#include -#include +#endif /* ! FLEXINT_H */ -/* Use prototypes in function declarations. */ -#define YY_USE_PROTOS +#ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ -#if __STDC__ +/* C99 requires __STDC__ to be defined as 1. */ +#if defined (__STDC__) -#define YY_USE_PROTOS #define YY_USE_CONST -#endif /* __STDC__ */ +#endif /* defined (__STDC__) */ #endif /* ! __cplusplus */ -#ifdef __TURBOC__ - #pragma warn -rch - #pragma warn -use -#include -#include -#define YY_USE_CONST -#define YY_USE_PROTOS -#endif - #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif - -#ifdef YY_USE_PROTOS -#define YY_PROTO(proto) proto -#else -#define YY_PROTO(proto) () -#endif - /* Returned upon end-of-file. */ #define YY_NULL 0 @@ -76,71 +122,70 @@ * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ -#define BEGIN yy_start = 1 + 2 * +#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 YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart( yyin ) +#define YY_NEW_FILE yyrestart(yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ +#ifndef YY_BUF_SIZE #define YY_BUF_SIZE 16384 +#endif + +/* The state buf must be large enough to hold one state per character in the main buffer. + */ +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) +#ifndef YY_TYPEDEF_YY_BUFFER_STATE +#define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; +#endif + +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif + +extern yy_size_t yyleng; -extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 -/* The funky do-while in the following #define is used to turn the definition - * int a single C statement (which needs a semi-colon terminator). This - * avoids problems with code like: - * - * if ( condition_holds ) - * yyless( 5 ); - * else - * do_something_else(); - * - * Prior to using the do-while the compiler would get upset at the - * "else" because it interpreted the "if" statement as being all - * done when it reached the ';' after the yyless() call. - */ - -/* Return all but the first 'n' matched characters back to the input stream. */ - + #define YY_LESS_LINENO(n) + +/* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ - *yy_cp = yy_hold_char; \ + 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 + n - YY_MORE_ADJ; \ + (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) -#define unput(c) yyunput( c, yytext_ptr ) - -/* The following is because we cannot portably get our hands on size_t - * (without autoconf's help, which isn't available because we want - * flex-generated scanners to compile on their own). - */ -typedef unsigned int yy_size_t; - +#define unput(c) yyunput( c, (yytext_ptr) ) +#ifndef YY_STRUCT_YY_BUFFER_STATE +#define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; @@ -156,7 +201,7 @@ struct yy_buffer_state /* Number of characters read into yy_ch_buf, not including EOB * characters. */ - int yy_n_chars; + yy_size_t 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 @@ -177,12 +222,16 @@ struct yy_buffer_state */ 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 @@ -196,28 +245,38 @@ struct yy_buffer_state * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 + }; +#endif /* !YY_STRUCT_YY_BUFFER_STATE */ -static YY_BUFFER_STATE yy_current_buffer = 0; +/* 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_current_buffer +#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ + ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ + : NULL) +/* Same as previous macro, but useful when we know that the buffer stack is not + * NULL or when we need an lvalue. For internal use only. + */ +#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; - -static int yy_n_chars; /* number of characters read into yy_ch_buf */ - - -int yyleng; +static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ +yy_size_t yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; -static int yy_init = 1; /* whether we need to initialize */ +static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches @@ -225,178 +284,249 @@ static int yy_start = 0; /* start state number */ */ static int yy_did_buffer_switch_on_eof; -void yyrestart YY_PROTO(( FILE *input_file )); +void yyrestart (FILE *input_file ); +void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); +YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); +void yy_delete_buffer (YY_BUFFER_STATE b ); +void yy_flush_buffer (YY_BUFFER_STATE b ); +void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); +void yypop_buffer_state (void ); -void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); -void yy_load_buffer_state YY_PROTO(( void )); -YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); -void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); -void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); -void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); -#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) +static void yyensure_buffer_stack (void ); +static void yy_load_buffer_state (void ); +static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); -YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); -YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); -YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); +#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) -static void *yy_flex_alloc YY_PROTO(( yy_size_t )); -static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); -static void yy_flex_free YY_PROTO(( void * )); +YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); +YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); +YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); + +void *yyalloc (yy_size_t ); +void *yyrealloc (void *,yy_size_t ); +void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ - if ( ! yy_current_buffer ) \ - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ - yy_current_buffer->yy_is_interactive = is_interactive; \ + if ( ! YY_CURRENT_BUFFER ){ \ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer(yyin,YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ - if ( ! yy_current_buffer ) \ - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ - yy_current_buffer->yy_at_bol = at_bol; \ + if ( ! YY_CURRENT_BUFFER ){\ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer(yyin,YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } -#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) +#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) +/* Begin user sect3 */ -#define YY_USES_REJECT typedef unsigned char YY_CHAR; + FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; + typedef int yy_state_type; + +extern int yylineno; + +int yylineno = 1; + extern char *yytext; #define yytext_ptr yytext -static yy_state_type yy_get_previous_state YY_PROTO(( void )); -static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); -static int yy_get_next_buffer YY_PROTO(( void )); -static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); +static yy_state_type yy_get_previous_state (void ); +static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); +static int yy_get_next_buffer (void ); +static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ - yytext_ptr = yy_bp; \ - yyleng = (int) (yy_cp - yy_bp); \ - yy_hold_char = *yy_cp; \ + (yytext_ptr) = yy_bp; \ + yyleng = (size_t) (yy_cp - yy_bp); \ + (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ - yy_c_buf_p = yy_cp; + (yy_c_buf_p) = yy_cp; -#define YY_NUM_RULES 85 -#define YY_END_OF_BUFFER 86 -static yyconst short int yy_acclist[422] = +#define YY_NUM_RULES 124 +#define YY_END_OF_BUFFER 125 +/* 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_acclist[660] = { 0, - 86, 83, 85, 82, 83, 85, 1, 84, 85, 83, - 84, 85, 83, 85, 83, 85, 83, 85, 82, 83, - 85, 83, 85, 83, 85, 26, 83, 85, 1, 27, - 84, 85, 26, 83, 84, 85, 26, 83, 85, 26, - 83, 85, 47, 83, 85, 1, 48, 84, 85, 47, - 83, 84, 85, 40, 47, 83, 85, 47, 83, 85, - 47, 83, 85, 47, 83, 85, 47, 83, 85, 45, - 47, 83, 85, 46, 47, 83, 85, 47, 83, 85, - 47, 83, 85, 43, 83, 85, 1, 44, 84, 85, - 43, 83, 84, 85, 42, 43, 83, 85, 43, 83, - - 85, 43, 83, 85, 83, 85, 83, 85, 77, 83, - 85, 77, 83, 85, 77, 83, 85, 77, 83, 85, - 77, 83, 85, 79, 83, 85, 83, 85, 83, 85, - 75, 83, 85, 75, 83, 85, 83, 85, 77, 83, - 85, 77, 83, 85, 77, 83, 85, 77, 83, 85, - 77, 83, 85, 77, 83, 85, 77, 83, 85, 77, - 83, 85, 77, 83, 85, 77, 83, 85, 77, 83, - 85, 77, 83, 85, 80, 83, 85, 81, 83, 85, - 9, 83, 85, 9, 83, 84, 85, 9, 83, 85, - 9, 83, 85, 9, 83, 85, 9, 83, 85, 14, - - 83, 85, 14, 83, 84, 85, 14, 83, 85, 14, - 83, 85, 14, 83, 85, 14, 83, 85, 17, 83, - 85, 17, 83, 84, 85, 17, 83, 85, 17, 83, - 85, 21, 31, 25, 22, 39, 32, 41, 23, 77, - 76, 77, 77, 77, 77, 75, 24, 75, 75, 78, - 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, - 77, 77, 77, 77, 77, 77, 77, 77, 8, 6, - 13, 10, 12, 11, 13, 16, 15, 3, 30, 37, - 33, 35, 18, 19, 76, 77, 77, 77, 77, 66, - 75, 20, 75, 75, 77, 77, 77, 77, 77, 77, - - 61, 77, 77, 77, 77, 77, 77, 77, 77, 77, - 77, 77, 77, 77, 77, 11, 28, 29, 38, 34, - 36, 77, 77, 52, 77, 51, 77, 5, 77, 64, - 77, 77, 77, 56, 77, 77, 59, 77, 77, 77, - 77, 77, 77, 77, 77, 77, 77, 77, 77, 53, - 77, 7, 49, 77, 77, 65, 77, 77, 62, 77, - 77, 77, 77, 77, 77, 60, 77, 77, 77, 77, - 55, 77, 77, 77, 77, 77, 63, 77, 77, 77, - 77, 77, 67, 77, 72, 77, 57, 77, 54, 77, - 77, 77, 77, 77, 74, 77, 77, 68, 77, 77, - - 77, 71, 77, 77, 70, 77, 73, 77, 77, 58, - 77, 77, 69, 77, 77, 4, 77, 2, 2, 77, - 50 + 125, 122, 124, 120, 122, 124, 1, 121, 124, 121, + 122, 124, 122, 124, 122, 124, 122, 124, 109, 122, + 124, 109, 122, 124, 122, 124, 113, 122, 124, 113, + 122, 124, 113, 122, 124, 113, 122, 124, 120, 122, + 124, 122, 124, 122, 124, 113, 122, 124, 113, 122, + 124, 29, 122, 124, 1, 30, 121, 124, 29, 121, + 122, 124, 29, 122, 124, 29, 122, 124, 29, 122, + 124, 55, 122, 124, 1, 56, 121, 124, 55, 121, + 122, 124, 47, 55, 122, 124, 55, 122, 124, 55, + 122, 124, 55, 122, 124, 53, 55, 122, 124, 54, + + 55, 122, 124, 55, 122, 124, 55, 122, 124, 51, + 122, 124, 1, 52, 121, 124, 51, 121, 122, 124, + 50, 51, 122, 124, 51, 122, 124, 51, 122, 124, + 64, 122, 124, 122, 124, 113, 122, 124, 113, 122, + 124, 113, 122, 124, 117, 122, 124, 67, 122, 124, + 1, 68, 121, 124, 67, 121, 122, 124, 66, 67, + 122, 124, 67, 122, 124, 67, 122, 124, 69, 122, + 124, 122, 124, 122, 124, 122, 124, 122, 124, 113, + 122, 124, 113, 122, 124, 113, 122, 124, 113, 122, + 124, 113, 122, 124, 113, 122, 124, 113, 122, 124, + + 113, 122, 124, 113, 122, 124, 113, 122, 124, 113, + 122, 124, 113, 122, 124, 118, 122, 124, 119, 122, + 124, 106, 122, 124, 48, 122, 124, 107, 122, 124, + 108, 122, 124, 122, 124, 113, 122, 124, 113, 122, + 124, 113, 122, 124, 113, 122, 124, 113, 122, 124, + 113, 122, 124, 113, 122, 124, 113, 122, 124, 113, + 122, 124, 113, 122, 124, 113, 122, 124, 113, 122, + 124, 10, 122, 124, 10, 121, 122, 124, 10, 122, + 124, 10, 122, 124, 10, 122, 124, 10, 122, 124, + 15, 122, 124, 15, 121, 122, 124, 15, 122, 124, + + 15, 122, 124, 15, 122, 124, 15, 122, 124, 18, + 122, 124, 18, 121, 122, 124, 18, 122, 124, 18, + 122, 124, 109, 23, 109, 109, 112, 113, 113, 113, + 113, 113, 36, 113, 113, 28, 24, 46, 39, 49, + 25, 113, 113, 113, 65, 26, 116, 115, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 27, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 9, 7, 14, 13, 11, 12, 14, 17, 16, 114, + 114, 109, 3, 109, 109, 112, 110, 111, 113, 113, + + 113, 113, 31, 35, 113, 113, 44, 40, 42, 19, + 20, 113, 113, 113, 83, 21, 113, 113, 113, 113, + 113, 113, 113, 78, 113, 113, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 22, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 12, 112, 110, 111, 113, 59, 113, 113, 113, + 38, 32, 37, 33, 34, 113, 113, 45, 41, 43, + 113, 63, 113, 62, 113, 6, 113, 81, 113, 113, + 113, 113, 73, 113, 113, 76, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 70, 113, + + 113, 113, 113, 73, 113, 113, 113, 113, 94, 113, + 93, 113, 113, 113, 113, 100, 113, 8, 112, 57, + 113, 58, 113, 60, 113, 113, 113, 113, 62, 113, + 82, 113, 113, 79, 113, 113, 113, 113, 113, 113, + 77, 113, 113, 113, 113, 72, 113, 113, 113, 95, + 113, 113, 113, 113, 99, 113, 113, 113, 113, 113, + 113, 113, 113, 113, 80, 113, 113, 113, 113, 113, + 84, 113, 90, 113, 74, 113, 71, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 4, 113, + 113, 113, 113, 113, 85, 113, 113, 113, 113, 89, + + 113, 113, 113, 113, 113, 96, 113, 97, 113, 113, + 113, 113, 113, 88, 113, 113, 91, 113, 92, 113, + 113, 75, 113, 113, 113, 113, 113, 113, 113, 87, + 113, 86, 113, 113, 113, 102, 113, 113, 113, 113, + 4, 2, 104, 113, 113, 101, 113, 113, 103, 113, + 123, 5, 113, 105, 113, 113, 98, 113, 61 } ; -static yyconst short int yy_accept[362] = +static yyconst flex_int16_t yy_accept[571] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, - 4, 7, 10, 13, 15, 17, 19, 22, 24, 26, - 29, 33, 37, 40, 43, 46, 50, 54, 58, 61, - 64, 67, 70, 74, 78, 81, 84, 87, 91, 95, - 99, 102, 105, 107, 109, 112, 115, 118, 121, 124, - 127, 129, 131, 134, 137, 139, 142, 145, 148, 151, - 154, 157, 160, 163, 166, 169, 172, 175, 178, 181, - 184, 188, 191, 194, 197, 200, 203, 207, 210, 213, - 216, 219, 222, 226, 229, 232, 233, 233, 233, 233, - - 233, 233, 233, 233, 234, 234, 235, 235, 235, 235, - 235, 236, 236, 237, 237, 237, 238, 239, 240, 240, - 240, 241, 242, 243, 244, 245, 246, 246, 247, 248, - 248, 248, 249, 249, 249, 250, 250, 251, 252, 253, - 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, - 264, 265, 266, 267, 268, 269, 270, 270, 270, 270, - 271, 271, 272, 272, 272, 272, 273, 274, 274, 276, - 277, 278, 278, 279, 279, 279, 279, 279, 280, 280, - 280, 280, 281, 281, 281, 281, 282, 283, 283, 284, - 284, 284, 285, 285, 286, 287, 288, 289, 290, 291, - - 292, 292, 292, 293, 294, 295, 295, 296, 297, 298, - 299, 300, 301, 303, 304, 305, 306, 307, 308, 309, - 310, 311, 312, 313, 314, 315, 316, 316, 317, 317, - 317, 317, 318, 319, 319, 319, 320, 321, 322, 322, - 323, 324, 326, 328, 328, 329, 330, 332, 333, 334, - 336, 337, 339, 340, 341, 342, 343, 344, 345, 346, - 347, 348, 349, 350, 352, 352, 353, 353, 353, 353, - 354, 354, 354, 354, 354, 355, 356, 358, 359, 361, - 362, 363, 364, 365, 366, 368, 369, 370, 371, 373, - 374, 375, 375, 375, 375, 375, 375, 376, 377, 379, - - 380, 381, 382, 383, 385, 387, 389, 391, 392, 393, - 393, 393, 393, 393, 393, 394, 395, 397, 398, 400, - 401, 402, 404, 404, 404, 404, 404, 404, 405, 407, - 409, 410, 412, 412, 412, 412, 412, 412, 413, 415, - 415, 415, 415, 415, 416, 416, 416, 416, 416, 417, - 418, 419, 419, 419, 421, 421, 421, 421, 421, 422, - 422 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 2, 4, 7, 10, 13, + 15, 17, 19, 22, 25, 27, 30, 33, 36, 39, + 42, 44, 46, 49, 52, 55, 59, 63, 66, 69, + 72, 75, 79, 83, 87, 90, 93, 96, 100, 104, + 107, 110, 113, 117, 121, 125, 128, 131, 134, 136, + 139, 142, 145, 148, 151, 155, 159, 163, 166, 169, + 172, 174, 176, 178, 180, 183, 186, 189, 192, 195, + 198, 201, 204, 207, 210, 213, 216, 219, 222, 225, + + 228, 231, 234, 236, 239, 242, 245, 248, 251, 254, + 257, 260, 263, 266, 269, 272, 275, 279, 282, 285, + 288, 291, 294, 298, 301, 304, 307, 310, 313, 317, + 320, 323, 323, 323, 324, 325, 325, 325, 326, 326, + 326, 327, 328, 329, 329, 330, 331, 332, 333, 333, + 333, 333, 333, 333, 333, 333, 333, 333, 334, 335, + 336, 337, 337, 337, 337, 337, 337, 338, 338, 339, + 339, 339, 340, 341, 342, 342, 343, 344, 345, 346, + 346, 347, 347, 348, 348, 348, 349, 350, 351, 352, + 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, + + 363, 364, 365, 366, 367, 368, 368, 369, 370, 371, + 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, + 382, 382, 382, 382, 383, 383, 384, 384, 384, 385, + 386, 386, 388, 389, 390, 391, 391, 392, 393, 393, + 394, 395, 396, 397, 397, 398, 399, 400, 401, 402, + 403, 403, 403, 403, 403, 403, 403, 403, 404, 404, + 404, 404, 405, 405, 405, 406, 407, 407, 408, 408, + 408, 408, 409, 410, 410, 411, 411, 411, 412, 413, + 414, 415, 416, 416, 416, 417, 417, 417, 418, 419, + 420, 421, 422, 423, 424, 426, 427, 428, 429, 430, + + 431, 432, 433, 434, 435, 436, 437, 438, 438, 439, + 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, + 450, 451, 452, 452, 453, 453, 454, 455, 455, 456, + 456, 457, 459, 460, 461, 461, 461, 461, 462, 462, + 462, 463, 463, 464, 464, 465, 466, 466, 467, 468, + 468, 469, 470, 471, 471, 472, 474, 476, 476, 477, + 478, 480, 481, 482, 483, 485, 486, 488, 489, 490, + 491, 492, 493, 494, 495, 496, 497, 498, 499, 501, + 502, 503, 504, 506, 507, 508, 509, 511, 513, 514, + 515, 516, 518, 518, 519, 519, 519, 520, 522, 524, + + 526, 526, 526, 526, 526, 526, 526, 526, 526, 527, + 528, 528, 528, 529, 531, 533, 534, 536, 537, 538, + 539, 540, 541, 543, 544, 545, 546, 548, 549, 550, + 552, 553, 554, 555, 557, 558, 559, 560, 561, 561, + 561, 561, 561, 561, 561, 561, 562, 563, 563, 563, + 564, 565, 567, 568, 569, 570, 571, 573, 575, 577, + 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, + 589, 589, 589, 590, 590, 590, 590, 591, 592, 592, + 592, 593, 594, 595, 597, 598, 599, 600, 602, 603, + 604, 605, 606, 608, 610, 611, 612, 612, 612, 612, + + 612, 612, 612, 613, 614, 614, 614, 616, 617, 619, + 621, 622, 624, 625, 626, 627, 628, 629, 630, 630, + 630, 630, 630, 630, 630, 630, 630, 630, 630, 630, + 632, 634, 635, 636, 638, 639, 640, 641, 641, 642, + 642, 642, 642, 642, 642, 643, 643, 645, 646, 648, + 649, 651, 651, 651, 652, 652, 652, 653, 654, 656, + 656, 656, 657, 657, 657, 659, 659, 659, 660, 660 } ; -static yyconst int yy_ec[256] = +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, 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 5, 1, 6, 7, 1, 8, 1, 9, 1, - 1, 10, 1, 1, 1, 11, 12, 13, 14, 14, - 14, 14, 14, 14, 14, 15, 15, 16, 1, 17, - 1, 18, 1, 1, 19, 19, 20, 19, 21, 22, - 23, 24, 23, 23, 25, 23, 26, 23, 27, 23, - 23, 28, 23, 29, 30, 23, 23, 23, 23, 23, - 31, 32, 33, 1, 23, 1, 34, 35, 36, 37, - - 38, 39, 40, 41, 42, 23, 23, 43, 44, 45, - 46, 47, 48, 49, 50, 51, 52, 53, 23, 54, - 23, 23, 55, 1, 56, 1, 1, 1, 1, 1, + 1, 6, 1, 7, 8, 1, 9, 1, 10, 11, + 12, 13, 1, 1, 1, 14, 15, 16, 17, 18, + 18, 18, 18, 18, 18, 19, 19, 20, 1, 21, + 1, 22, 1, 1, 23, 23, 23, 23, 24, 23, + 25, 25, 26, 25, 25, 25, 25, 25, 25, 25, + 25, 27, 28, 25, 25, 25, 25, 25, 25, 25, + 29, 30, 31, 1, 32, 1, 33, 34, 35, 36, + + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, + 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, + 57, 25, 58, 1, 59, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -413,324 +543,503 @@ static yyconst int yy_ec[256] = 1, 1, 1, 1, 1 } ; -static yyconst int yy_meta[57] = +static yyconst flex_int32_t yy_meta[60] = { 0, - 1, 2, 3, 1, 2, 1, 1, 1, 1, 1, - 1, 1, 4, 4, 4, 5, 1, 1, 6, 6, - 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, - 1, 1, 1, 6, 6, 6, 6, 6, 6, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 1, 1 + 1, 2, 3, 4, 5, 2, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 6, 6, 6, 6, 7, + 1, 1, 8, 8, 9, 9, 9, 9, 1, 1, + 10, 9, 8, 8, 8, 8, 8, 8, 9, 9, + 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, + 9, 9, 9, 9, 9, 9, 9, 1, 1 } ; -static yyconst short int yy_base[382] = +static yyconst flex_int16_t yy_base[604] = { 0, - 0, 35, 3, 5, 82, 136, 16, 24, 192, 0, - 238, 0, 7, 49, 31, 63, 66, 77, 806, 807, - 807, 807, 807, 4, 778, 761, 44, 17, 765, 807, - 807, 807, 790, 774, 807, 807, 807, 807, 68, 11, - 773, 0, 807, 807, 77, 743, 807, 807, 807, 807, - 771, 0, 50, 0, 781, 28, 2, 47, 61, 807, - 84, 94, 96, 102, 113, 85, 89, 74, 67, 106, - 102, 105, 113, 115, 136, 109, 117, 807, 807, 807, - 807, 784, 768, 151, 167, 807, 807, 782, 766, 155, - 171, 789, 788, 168, 251, 807, 787, 760, 754, 253, - - 749, 228, 141, 807, 738, 807, 776, 130, 775, 774, - 807, 779, 807, 254, 736, 807, 807, 807, 777, 763, - 762, 761, 159, 248, 241, 244, 765, 248, 765, 771, - 284, 290, 295, 0, 300, 303, 742, 249, 291, 139, - 276, 279, 254, 296, 303, 304, 305, 307, 306, 308, - 310, 311, 313, 316, 314, 807, 335, 356, 364, 807, - 368, 807, 370, 374, 380, 807, 385, 760, 807, 807, - 807, 768, 807, 746, 719, 734, 712, 807, 711, 723, - 712, 807, 754, 753, 752, 807, 807, 757, 807, 723, - 755, 807, 741, 740, 8, 318, 330, 328, 807, 378, - - 392, 752, 807, 385, 0, 388, 365, 373, 346, 317, - 388, 323, 738, 389, 390, 391, 392, 393, 394, 397, - 319, 395, 396, 399, 398, 411, 448, 807, 732, 702, - 714, 807, 807, 697, 707, 807, 807, 807, 705, 252, - 402, 731, 730, 421, 807, 412, 729, 403, 400, 728, - 404, 727, 409, 414, 441, 422, 417, 415, 445, 446, - 420, 451, 418, 726, 466, 807, 471, 475, 713, 807, - 702, 705, 689, 685, 456, 465, 720, 469, 719, 470, - 472, 473, 474, 476, 718, 477, 478, 479, 717, 480, - 483, 710, 682, 679, 691, 691, 482, 481, 711, 484, - - 485, 489, 486, 710, 709, 708, 707, 490, 492, 692, - 216, 679, 656, 667, 493, 495, 685, 502, 637, 503, - 497, 630, 571, 544, 548, 527, 534, 522, 571, 567, - 515, 562, 552, 523, 515, 542, 537, 533, 535, 500, - 401, 548, 542, 529, 323, 301, 551, 561, 807, 552, - 807, 151, 558, 125, 29, 561, 579, 583, 807, 807, - 594, 601, 608, 615, 622, 629, 636, 643, 650, 652, - 656, 663, 670, 677, 681, 685, 692, 696, 701, 707, - 714 + 0, 58, 58, 65, 69, 126, 80, 85, 74, 87, + 93, 113, 179, 1361, 129, 138, 232, 1360, 100, 149, + 145, 166, 175, 187, 1367, 1370, 1370, 1370, 1370, 1336, + 185, 62, 232, 238, 0, 1345, 42, 161, 60, 239, + 63, 257, 97, 77, 1370, 1370, 1370, 1349, 216, 1335, + 1370, 1370, 1370, 1370, 176, 146, 0, 1370, 1370, 257, + 1303, 1370, 1370, 1370, 1370, 0, 256, 1370, 150, 169, + 110, 157, 1370, 1370, 1370, 1370, 1370, 0, 259, 1370, + 277, 206, 290, 294, 178, 279, 162, 190, 185, 282, + 284, 171, 222, 294, 296, 297, 1370, 1370, 1370, 1370, + + 1370, 1370, 305, 301, 307, 302, 304, 220, 310, 320, + 321, 332, 316, 62, 312, 1370, 1370, 1346, 356, 327, + 361, 1370, 1370, 1345, 364, 372, 377, 1356, 1355, 357, + 379, 1347, 1346, 370, 1370, 1352, 377, 383, 389, 0, + 395, 1334, 1333, 1332, 371, 117, 378, 397, 413, 1301, + 1313, 416, 1308, 388, 1296, 373, 231, 1370, 400, 204, + 1370, 0, 1337, 377, 1336, 1335, 1370, 1341, 1370, 427, + 1297, 1370, 1370, 1370, 1339, 401, 407, 418, 1370, 1327, + 1327, 1336, 425, 431, 1307, 1308, 419, 431, 432, 433, + 425, 435, 436, 437, 446, 447, 449, 452, 450, 454, + + 453, 457, 455, 460, 1370, 1333, 456, 317, 461, 462, + 467, 465, 471, 474, 475, 482, 484, 486, 487, 1370, + 510, 524, 526, 1370, 534, 1370, 536, 541, 549, 1370, + 1320, 1370, 1370, 1370, 1370, 1324, 1323, 541, 1329, 1370, + 545, 0, 1311, 0, 1310, 1309, 502, 500, 519, 511, + 1291, 1278, 1280, 1267, 1272, 1279, 1264, 1370, 518, 1288, + 1262, 1370, 1261, 1277, 513, 521, 1290, 1370, 1306, 1305, + 1304, 1370, 1370, 1310, 1370, 1277, 1308, 1370, 528, 547, + 548, 1370, 567, 1307, 1370, 1278, 564, 551, 552, 555, + 557, 564, 558, 567, 1288, 566, 565, 568, 569, 570, + + 573, 574, 571, 581, 577, 587, 576, 1304, 1370, 590, + 589, 596, 591, 593, 605, 607, 610, 599, 613, 611, + 614, 615, 635, 1370, 651, 1286, 1285, 1284, 1283, 1282, + 623, 1281, 625, 629, 1267, 1246, 1261, 1370, 1260, 604, + 1370, 1248, 1370, 1259, 1370, 1370, 1240, 638, 631, 1267, + 1370, 1370, 1370, 1248, 639, 1271, 1270, 661, 1370, 641, + 1269, 645, 646, 648, 1268, 649, 1267, 650, 651, 656, + 657, 658, 653, 669, 668, 661, 665, 659, 1266, 663, + 675, 667, 689, 671, 688, 690, 1265, 1264, 693, 694, + 695, 1263, 721, 1370, 723, 728, 1262, 1261, 1260, 1259, + + 1234, 1236, 136, 1226, 1228, 1216, 1236, 1239, 696, 697, + 0, 1218, 699, 698, 1250, 717, 1249, 718, 721, 722, + 725, 726, 1248, 724, 728, 729, 1247, 730, 732, 1246, + 731, 735, 736, 737, 738, 742, 746, 750, 1221, 1214, + 783, 1227, 1214, 1211, 1208, 747, 755, 1230, 1216, 751, + 763, 1224, 754, 766, 757, 758, 1223, 1222, 1212, 1201, + 776, 764, 760, 767, 773, 785, 786, 787, 791, 794, + 1173, 1168, 822, 1167, 763, 1166, 798, 796, 1191, 1149, + 797, 800, 805, 1127, 802, 806, 809, 1116, 807, 824, + 814, 815, 1097, 1091, 828, 830, 1067, 1041, 1075, 1031, + + 942, 948, 849, 851, 848, 852, 967, 840, 966, 965, + 832, 964, 841, 843, 853, 850, 854, 855, 876, 877, + 976, 937, 919, 914, 889, 898, 902, 910, 878, 930, + 929, 856, 861, 921, 864, 876, 872, 932, 1370, 862, + 869, 928, 919, 936, 1370, 903, 866, 868, 498, 903, + 493, 475, 954, 1370, 945, 936, 1370, 912, 355, 245, + 952, 922, 224, 956, 81, 974, 976, 1370, 1370, 993, + 1003, 1013, 1023, 1033, 1043, 1053, 1063, 1066, 1070, 1079, + 1089, 1099, 1104, 1114, 1124, 1129, 1132, 1135, 1144, 1154, + 1164, 1174, 1179, 1189, 1198, 1200, 1204, 1208, 1216, 1220, + + 1229, 1239, 1249 } ; -static yyconst short int yy_def[382] = +static yyconst flex_int16_t yy_def[604] = { 0, - 361, 361, 362, 362, 363, 363, 364, 364, 360, 9, - 9, 11, 365, 365, 366, 366, 367, 367, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 368, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 369, 360, 370, 371, 371, 371, 371, 371, 360, - 360, 360, 360, 360, 360, 371, 371, 371, 371, 371, - 371, 371, 371, 371, 371, 371, 371, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 372, 360, 360, 360, - - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 373, 360, 360, 360, 360, 360, 360, 374, 375, - 371, 376, 371, 371, 371, 371, 360, 360, 360, 377, - 360, 360, 360, 378, 360, 360, 360, 371, 371, 371, - 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, - 371, 371, 371, 371, 371, 360, 360, 360, 360, 360, - 379, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 372, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 373, 360, 360, - 374, 360, 375, 376, 371, 371, 371, 371, 360, 360, - - 360, 377, 360, 360, 378, 360, 371, 371, 371, 371, - 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, - 371, 371, 371, 371, 371, 371, 380, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 371, - 371, 371, 371, 360, 360, 371, 371, 371, 371, 371, - 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, - 371, 371, 371, 371, 360, 360, 380, 360, 360, 360, - 360, 360, 360, 360, 371, 371, 371, 371, 371, 371, - 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, - 371, 360, 360, 360, 360, 360, 371, 371, 371, 371, - - 371, 371, 371, 371, 371, 371, 371, 371, 371, 360, - 360, 360, 360, 360, 371, 371, 371, 371, 371, 371, - 371, 371, 360, 360, 360, 360, 360, 371, 371, 371, - 371, 371, 360, 360, 360, 360, 360, 371, 371, 360, - 360, 360, 381, 371, 360, 360, 360, 381, 360, 371, - 360, 360, 360, 371, 360, 360, 360, 360, 360, 0, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360 + 569, 1, 570, 570, 571, 571, 572, 572, 1, 1, + 573, 573, 1, 13, 1, 1, 1, 17, 574, 574, + 575, 575, 576, 576, 569, 569, 569, 569, 569, 577, + 569, 569, 569, 569, 578, 579, 579, 579, 579, 569, + 569, 569, 579, 579, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 580, 569, 569, 569, + 569, 569, 569, 569, 569, 581, 569, 569, 569, 579, + 579, 579, 569, 569, 569, 569, 569, 582, 569, 569, + 569, 569, 578, 583, 579, 579, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 569, 569, 569, 569, + + 569, 569, 569, 579, 579, 579, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 584, 569, 569, 585, 569, 569, 569, 586, + 569, 587, 579, 588, 579, 579, 579, 579, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 579, 579, + 569, 589, 569, 569, 569, 569, 569, 590, 569, 569, + 569, 569, 569, 569, 591, 579, 579, 579, 569, 569, + 569, 592, 569, 569, 593, 569, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + + 579, 579, 579, 579, 569, 594, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 569, + 569, 569, 569, 569, 595, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 585, 569, + 569, 586, 587, 596, 597, 598, 579, 579, 579, 579, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 579, 579, 569, 569, 569, 569, + 569, 569, 569, 590, 569, 569, 591, 569, 579, 579, + 579, 569, 569, 592, 569, 593, 583, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + + 579, 579, 579, 579, 579, 579, 579, 594, 569, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + 579, 579, 599, 569, 569, 600, 597, 569, 598, 588, + 579, 579, 579, 579, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 579, 579, 569, + 569, 569, 569, 569, 579, 579, 579, 569, 569, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + 579, 579, 569, 569, 599, 569, 600, 579, 579, 579, + + 569, 569, 569, 569, 569, 569, 569, 569, 579, 579, + 601, 569, 579, 579, 579, 579, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 569, 569, + 569, 569, 569, 569, 569, 579, 579, 569, 569, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + 569, 569, 569, 569, 569, 569, 579, 579, 569, 569, + 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 569, 569, 569, 569, + + 569, 569, 579, 579, 569, 569, 579, 579, 579, 579, + 579, 579, 579, 579, 579, 579, 579, 579, 569, 569, + 602, 569, 569, 569, 569, 569, 569, 569, 569, 579, + 579, 579, 579, 579, 579, 579, 579, 602, 569, 569, + 569, 569, 569, 569, 569, 603, 579, 579, 579, 579, + 579, 569, 569, 569, 569, 603, 569, 579, 579, 569, + 569, 579, 569, 569, 579, 569, 569, 569, 0, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + + 569, 569, 569 } ; -static yyconst short int yy_nxt[864] = +static yyconst flex_int16_t yy_nxt[1430] = { 0, - 360, 21, 22, 23, 21, 31, 32, 31, 32, 22, - 81, 24, 33, 96, 33, 97, 82, 122, 48, 49, - 111, 50, 112, 122, 360, 25, 48, 49, 34, 50, - 34, 240, 83, 22, 87, 26, 27, 22, 23, 27, - 88, 51, 28, 122, 124, 100, 24, 52, 100, 51, - 84, 22, 81, 84, 123, 52, 89, 102, 85, 118, - 25, 119, 122, 103, 90, 22, 87, 90, 22, 93, - 26, 104, 91, 107, 83, 94, 122, 179, 114, 22, - 93, 114, 122, 29, 36, 37, 94, 38, 89, 122, - 39, 95, 101, 40, 127, 125, 128, 128, 128, 108, - - 122, 126, 95, 129, 122, 130, 131, 41, 132, 132, - 133, 142, 131, 42, 135, 135, 135, 122, 115, 141, - 122, 122, 109, 110, 122, 136, 136, 136, 122, 139, - 122, 124, 122, 138, 140, 183, 43, 44, 36, 37, - 122, 38, 45, 46, 39, 137, 144, 40, 143, 134, - 145, 122, 157, 153, 122, 157, 163, 146, 154, 163, - 158, 41, 155, 148, 164, 147, 149, 42, 159, 160, - 170, 161, 165, 166, 122, 167, 150, 151, 156, 171, - 168, 179, 169, 209, 184, 185, 152, 195, 355, 180, - 43, 44, 20, 21, 22, 23, 21, 20, 20, 20, - - 20, 20, 20, 53, 20, 20, 20, 54, 20, 20, - 55, 55, 55, 55, 55, 55, 55, 56, 55, 55, - 55, 55, 20, 20, 20, 55, 55, 57, 55, 55, - 58, 55, 55, 55, 55, 55, 55, 55, 55, 55, - 55, 55, 59, 55, 55, 55, 60, 20, 61, 62, - 63, 64, 64, 170, 100, 114, 122, 100, 114, 122, - 200, 200, 200, 122, 122, 176, 324, 122, 65, 122, - 178, 66, 275, 67, 68, 69, 70, 98, 177, 71, - 72, 196, 178, 73, 74, 198, 197, 75, 207, 76, - 77, 122, 78, 79, 122, 115, 204, 204, 204, 212, - - 131, 101, 132, 132, 133, 131, 122, 133, 133, 133, - 131, 122, 135, 135, 135, 136, 136, 136, 122, 122, - 122, 122, 122, 122, 208, 122, 122, 210, 122, 122, - 211, 122, 122, 122, 122, 137, 157, 352, 122, 157, - 219, 215, 216, 122, 158, 122, 213, 214, 217, 221, - 351, 249, 218, 220, 223, 226, 251, 159, 160, 222, - 161, 122, 224, 259, 225, 159, 160, 241, 159, 159, - 160, 163, 159, 242, 163, 165, 166, 243, 167, 164, - 122, 165, 166, 168, 165, 228, 165, 166, 122, 165, - 200, 200, 200, 244, 245, 248, 244, 204, 204, 204, - - 136, 136, 136, 122, 122, 122, 122, 122, 122, 122, - 122, 122, 122, 122, 122, 122, 246, 122, 122, 122, - 137, 247, 244, 245, 122, 244, 122, 122, 252, 122, - 122, 250, 122, 122, 346, 122, 257, 122, 253, 254, - 262, 261, 278, 256, 255, 258, 260, 264, 263, 265, - 266, 243, 265, 277, 279, 276, 122, 280, 284, 283, - 122, 122, 281, 268, 289, 285, 122, 265, 266, 291, - 265, 122, 265, 266, 282, 265, 265, 266, 286, 265, - 122, 288, 287, 297, 122, 122, 268, 122, 122, 122, - 290, 122, 122, 122, 122, 122, 122, 122, 122, 122, - - 122, 122, 298, 315, 122, 122, 299, 122, 122, 303, - 122, 304, 122, 301, 306, 300, 309, 122, 122, 305, - 345, 318, 328, 302, 308, 316, 319, 321, 336, 307, - 122, 336, 317, 332, 322, 337, 320, 122, 337, 330, - 331, 338, 343, 336, 122, 329, 336, 349, 122, 350, - 122, 339, 341, 343, 342, 342, 342, 344, 347, 349, - 342, 342, 342, 353, 353, 353, 349, 122, 356, 177, - 353, 353, 353, 357, 357, 357, 340, 122, 349, 354, - 358, 359, 122, 358, 358, 359, 122, 358, 335, 334, - 333, 357, 357, 357, 20, 20, 20, 20, 20, 20, - - 20, 30, 30, 30, 30, 30, 30, 30, 35, 35, - 35, 35, 35, 35, 35, 47, 47, 47, 47, 47, - 47, 47, 80, 80, 80, 80, 80, 80, 80, 86, - 86, 86, 86, 86, 86, 86, 92, 92, 92, 92, - 92, 92, 92, 113, 113, 122, 113, 113, 113, 113, - 117, 117, 122, 117, 117, 117, 117, 120, 120, 121, - 121, 121, 121, 172, 172, 172, 172, 172, 172, 172, - 188, 188, 188, 188, 188, 188, 188, 191, 191, 191, - 191, 191, 191, 191, 193, 193, 193, 193, 194, 194, - 194, 194, 202, 202, 202, 202, 202, 202, 202, 205, - - 122, 205, 227, 227, 327, 326, 227, 227, 267, 267, - 267, 267, 267, 267, 348, 348, 325, 348, 348, 348, - 348, 323, 122, 122, 122, 122, 122, 314, 313, 312, - 311, 310, 122, 122, 122, 122, 296, 295, 294, 293, - 292, 122, 122, 122, 122, 122, 122, 274, 273, 272, - 271, 270, 269, 122, 203, 122, 122, 192, 239, 189, - 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, - 173, 228, 206, 203, 201, 199, 122, 122, 122, 192, - 190, 189, 187, 186, 182, 181, 105, 175, 174, 173, - 170, 170, 98, 162, 98, 156, 122, 98, 116, 98, - - 98, 106, 105, 99, 98, 360, 19, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360 + 26, 27, 28, 27, 29, 27, 26, 26, 26, 30, + 26, 26, 26, 31, 32, 33, 34, 34, 34, 35, + 26, 26, 36, 36, 36, 36, 36, 36, 26, 26, + 26, 36, 36, 36, 37, 36, 38, 39, 36, 36, + 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, + 36, 36, 36, 36, 36, 36, 36, 26, 26, 40, + 46, 144, 47, 40, 152, 41, 42, 46, 152, 47, + 48, 52, 49, 53, 135, 54, 136, 48, 55, 144, + 68, 144, 63, 56, 64, 145, 65, 63, 69, 64, + 50, 65, 67, 68, 41, 75, 144, 76, 57, 77, + + 144, 69, 28, 148, 117, 43, 153, 44, 70, 66, + 36, 71, 118, 160, 66, 75, 144, 76, 219, 77, + 79, 70, 78, 36, 71, 72, 58, 59, 52, 144, + 53, 73, 54, 60, 61, 55, 144, 441, 72, 99, + 56, 441, 78, 26, 73, 41, 159, 28, 99, 123, + 119, 28, 26, 117, 119, 57, 120, 124, 167, 177, + 168, 121, 174, 36, 175, 36, 36, 125, 28, 248, + 123, 125, 36, 126, 36, 36, 144, 28, 127, 129, + 144, 144, 163, 58, 59, 80, 97, 130, 144, 28, + 144, 129, 81, 82, 131, 97, 178, 144, 83, 130, + + 134, 134, 134, 134, 144, 164, 146, 84, 191, 144, + 147, 85, 176, 86, 87, 88, 89, 152, 181, 90, + 182, 152, 91, 144, 196, 92, 93, 187, 193, 94, + 72, 95, 96, 165, 166, 192, 97, 98, 100, 144, + 149, 144, 101, 102, 149, 137, 103, 138, 138, 138, + 139, 137, 266, 141, 141, 141, 141, 152, 170, 153, + 152, 152, 170, 211, 152, 104, 105, 106, 107, 108, + 263, 197, 90, 263, 198, 91, 109, 110, 111, 112, + 264, 563, 113, 114, 95, 115, 150, 140, 151, 154, + 180, 155, 134, 134, 134, 134, 156, 171, 144, 153, + + 153, 144, 153, 144, 157, 183, 183, 183, 183, 184, + 184, 184, 184, 144, 158, 144, 144, 205, 188, 206, + 144, 144, 189, 144, 186, 190, 144, 194, 152, 144, + 195, 144, 152, 199, 200, 144, 144, 203, 209, 144, + 144, 202, 212, 204, 207, 201, 188, 208, 191, 210, + 213, 144, 214, 190, 216, 199, 218, 221, 204, 233, + 215, 221, 223, 224, 217, 227, 225, 201, 222, 227, + 153, 234, 311, 152, 144, 220, 228, 152, 229, 230, + 152, 233, 229, 269, 152, 238, 238, 238, 238, 231, + 144, 232, 241, 241, 241, 241, 137, 144, 138, 138, + + 138, 139, 137, 247, 139, 139, 139, 139, 137, 260, + 141, 141, 141, 141, 149, 153, 144, 152, 149, 144, + 144, 152, 153, 254, 261, 255, 144, 249, 170, 250, + 262, 256, 170, 279, 270, 271, 265, 144, 144, 257, + 183, 183, 183, 183, 144, 258, 184, 184, 184, 184, + 144, 144, 144, 280, 144, 144, 144, 288, 281, 153, + 150, 186, 151, 289, 290, 144, 144, 171, 144, 144, + 153, 144, 144, 144, 144, 144, 144, 292, 291, 144, + 144, 144, 294, 297, 144, 300, 144, 293, 295, 298, + 144, 296, 302, 144, 144, 299, 301, 304, 312, 314, + + 307, 144, 303, 144, 306, 144, 144, 305, 310, 318, + 560, 221, 144, 294, 313, 221, 316, 144, 317, 144, + 315, 144, 222, 319, 321, 223, 224, 223, 224, 225, + 144, 223, 144, 320, 322, 223, 224, 227, 144, 223, + 144, 227, 229, 230, 332, 348, 229, 144, 228, 334, + 325, 230, 331, 231, 325, 324, 238, 238, 238, 238, + 241, 241, 241, 241, 342, 333, 144, 144, 358, 359, + 144, 144, 358, 349, 144, 343, 144, 144, 355, 184, + 184, 184, 184, 144, 144, 144, 144, 144, 144, 144, + 144, 356, 144, 144, 186, 144, 144, 364, 357, 366, + + 144, 361, 365, 360, 367, 362, 144, 363, 144, 144, + 144, 379, 144, 372, 368, 144, 370, 377, 144, 374, + 371, 369, 373, 375, 144, 381, 144, 376, 382, 144, + 144, 384, 144, 144, 144, 383, 393, 394, 378, 380, + 393, 388, 144, 390, 144, 385, 387, 386, 144, 389, + 144, 392, 325, 230, 396, 405, 325, 144, 144, 391, + 144, 258, 358, 359, 144, 144, 358, 144, 144, 144, + 144, 410, 144, 398, 399, 144, 144, 144, 144, 400, + 144, 409, 144, 419, 144, 413, 144, 144, 144, 357, + 144, 416, 420, 421, 144, 414, 430, 415, 422, 418, + + 417, 424, 426, 428, 423, 425, 427, 144, 144, 144, + 431, 429, 144, 144, 144, 144, 144, 144, 144, 432, + 433, 434, 393, 394, 393, 394, 393, 437, 393, 393, + 394, 425, 435, 393, 436, 450, 144, 144, 438, 446, + 144, 144, 396, 144, 144, 144, 447, 144, 144, 144, + 144, 144, 451, 452, 144, 144, 144, 144, 453, 456, + 457, 144, 463, 459, 462, 144, 144, 458, 466, 144, + 144, 455, 454, 144, 144, 461, 144, 144, 464, 144, + 460, 470, 144, 144, 441, 144, 144, 465, 441, 483, + 467, 478, 144, 477, 468, 144, 481, 469, 473, 473, + + 473, 473, 484, 482, 144, 144, 144, 488, 485, 486, + 144, 489, 487, 144, 501, 144, 144, 144, 490, 144, + 262, 144, 495, 499, 144, 144, 144, 499, 144, 491, + 493, 494, 503, 144, 144, 508, 492, 473, 473, 473, + 473, 509, 511, 144, 512, 496, 504, 144, 507, 144, + 525, 144, 526, 529, 525, 514, 526, 529, 510, 144, + 144, 515, 144, 513, 527, 528, 528, 531, 144, 144, + 144, 516, 144, 144, 144, 144, 530, 525, 526, 517, + 144, 525, 526, 144, 546, 144, 518, 144, 532, 534, + 525, 144, 547, 548, 525, 144, 533, 535, 546, 526, + + 549, 552, 537, 526, 542, 542, 542, 542, 551, 557, + 536, 558, 254, 543, 543, 543, 543, 544, 544, 544, + 544, 545, 144, 550, 557, 544, 544, 544, 544, 553, + 554, 144, 555, 553, 543, 543, 543, 543, 539, 559, + 144, 144, 557, 542, 542, 542, 542, 545, 144, 144, + 541, 544, 544, 544, 544, 553, 554, 557, 565, 553, + 561, 561, 561, 561, 562, 564, 261, 561, 561, 561, + 561, 566, 566, 566, 566, 567, 568, 567, 568, 567, + 540, 567, 539, 144, 144, 144, 144, 524, 523, 566, + 566, 566, 566, 45, 45, 45, 45, 45, 45, 45, + + 45, 45, 45, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 116, 116, 116, 116, 116, 116, 116, + 116, 116, 116, 122, 122, 122, 122, 122, 122, 122, + 122, 122, 122, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 132, 132, 522, 132, 132, 132, 132, + 132, 132, 132, 142, 142, 143, 143, 143, 143, 169, + 169, 521, 169, 169, 169, 169, 169, 169, 169, 173, + 173, 520, 173, 173, 173, 173, 173, 173, 173, 179, + + 179, 519, 179, 179, 179, 179, 179, 179, 179, 185, + 144, 185, 185, 185, 236, 236, 144, 236, 236, 236, + 236, 236, 236, 236, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 242, 144, 242, 243, 243, 243, + 243, 246, 246, 246, 267, 267, 144, 267, 267, 267, + 267, 267, 267, 267, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 277, 277, 277, 277, 277, 277, + 277, 277, 277, 277, 284, 284, 284, 284, 284, 284, + 284, 284, 284, 284, 286, 506, 286, 286, 286, 308, + 308, 308, 308, 308, 308, 308, 308, 308, 308, 323, + + 323, 505, 502, 500, 498, 323, 323, 326, 326, 327, + 327, 327, 327, 329, 329, 329, 329, 395, 395, 497, + 144, 395, 395, 395, 395, 397, 397, 397, 397, 448, + 448, 144, 448, 448, 448, 448, 448, 448, 448, 538, + 538, 144, 144, 144, 538, 538, 538, 538, 538, 556, + 556, 480, 556, 479, 556, 556, 556, 556, 556, 476, + 475, 257, 474, 472, 471, 144, 144, 144, 144, 144, + 449, 445, 444, 343, 443, 442, 440, 439, 144, 144, + 144, 244, 144, 144, 144, 144, 144, 144, 144, 144, + 144, 412, 411, 408, 407, 406, 404, 403, 402, 401, + + 144, 569, 330, 245, 328, 244, 309, 144, 186, 285, + 278, 354, 275, 353, 352, 351, 350, 347, 346, 345, + 344, 341, 340, 339, 338, 337, 336, 335, 330, 328, + 244, 240, 235, 235, 324, 309, 287, 186, 285, 283, + 282, 278, 276, 275, 273, 272, 268, 259, 253, 252, + 251, 245, 144, 244, 240, 237, 235, 233, 233, 226, + 220, 172, 162, 161, 144, 133, 569, 41, 41, 25, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569 } ; -static yyconst short int yy_chk[864] = +static yyconst flex_int16_t yy_chk[1430] = { 0, - 0, 1, 1, 1, 1, 3, 3, 4, 4, 13, - 13, 1, 3, 24, 4, 24, 13, 57, 7, 7, - 40, 7, 40, 195, 0, 1, 8, 8, 3, 8, - 4, 195, 13, 15, 15, 1, 2, 2, 2, 2, - 15, 7, 2, 56, 57, 27, 2, 7, 27, 8, - 14, 14, 14, 14, 56, 8, 15, 28, 14, 53, - 2, 53, 58, 28, 16, 16, 16, 16, 17, 17, - 2, 28, 16, 39, 14, 17, 59, 355, 45, 18, - 18, 45, 69, 2, 5, 5, 18, 5, 16, 68, - 5, 17, 27, 5, 61, 58, 61, 61, 61, 39, - - 66, 59, 18, 62, 67, 62, 63, 5, 63, 63, - 63, 69, 64, 5, 64, 64, 64, 71, 45, 68, - 72, 70, 39, 39, 76, 65, 65, 65, 73, 67, - 74, 67, 77, 66, 67, 108, 5, 5, 6, 6, - 354, 6, 6, 6, 6, 65, 71, 6, 70, 63, - 72, 75, 84, 76, 140, 84, 90, 73, 77, 90, - 84, 6, 77, 74, 90, 73, 74, 6, 85, 85, - 94, 85, 91, 91, 123, 91, 75, 75, 85, 94, - 91, 103, 91, 140, 108, 108, 75, 123, 352, 103, - 6, 6, 9, 9, 9, 9, 9, 9, 9, 9, - - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, - 11, 11, 11, 95, 100, 114, 125, 100, 114, 126, - 128, 128, 128, 124, 138, 102, 311, 240, 11, 143, - 311, 11, 240, 11, 11, 11, 11, 95, 102, 11, - 11, 124, 102, 11, 11, 126, 125, 11, 138, 11, - 11, 141, 11, 11, 142, 114, 131, 131, 131, 143, - - 132, 100, 132, 132, 132, 133, 139, 133, 133, 133, - 135, 144, 135, 135, 135, 136, 136, 136, 145, 146, - 147, 149, 148, 150, 139, 151, 152, 141, 153, 155, - 142, 154, 210, 196, 221, 136, 157, 346, 212, 157, - 149, 146, 147, 198, 157, 197, 144, 145, 148, 151, - 345, 210, 148, 150, 153, 155, 212, 158, 158, 152, - 158, 209, 153, 221, 154, 159, 159, 196, 159, 161, - 161, 163, 161, 197, 163, 164, 164, 198, 164, 163, - 207, 165, 165, 164, 165, 164, 167, 167, 208, 167, - 200, 200, 200, 201, 201, 209, 201, 204, 204, 204, - - 206, 206, 206, 211, 214, 215, 216, 217, 218, 219, - 222, 223, 220, 225, 224, 249, 207, 241, 248, 251, - 206, 208, 244, 244, 253, 244, 226, 246, 214, 254, - 258, 211, 257, 263, 341, 261, 219, 256, 215, 216, - 224, 223, 249, 218, 217, 220, 222, 226, 225, 227, - 227, 241, 227, 248, 251, 246, 255, 253, 257, 256, - 259, 260, 254, 227, 261, 258, 262, 265, 265, 263, - 265, 275, 267, 267, 255, 267, 268, 268, 259, 268, - 276, 260, 259, 275, 278, 280, 267, 281, 282, 283, - 262, 284, 286, 287, 288, 290, 298, 297, 291, 300, - - 301, 303, 276, 297, 302, 308, 278, 309, 315, 283, - 316, 284, 321, 281, 287, 280, 291, 318, 320, 286, - 340, 301, 315, 282, 290, 298, 302, 308, 326, 288, - 331, 326, 300, 321, 309, 327, 303, 328, 327, 318, - 320, 328, 337, 336, 344, 316, 336, 343, 338, 344, - 339, 331, 335, 337, 336, 336, 336, 338, 342, 343, - 342, 342, 342, 347, 347, 347, 348, 350, 353, 334, - 353, 353, 353, 356, 356, 356, 333, 332, 348, 350, - 357, 357, 330, 357, 358, 358, 329, 358, 325, 324, - 323, 357, 357, 357, 361, 361, 361, 361, 361, 361, - - 361, 362, 362, 362, 362, 362, 362, 362, 363, 363, - 363, 363, 363, 363, 363, 364, 364, 364, 364, 364, - 364, 364, 365, 365, 365, 365, 365, 365, 365, 366, - 366, 366, 366, 366, 366, 366, 367, 367, 367, 367, - 367, 367, 367, 368, 368, 322, 368, 368, 368, 368, - 369, 369, 319, 369, 369, 369, 369, 370, 370, 371, - 371, 371, 371, 372, 372, 372, 372, 372, 372, 372, - 373, 373, 373, 373, 373, 373, 373, 374, 374, 374, - 374, 374, 374, 374, 375, 375, 375, 375, 376, 376, - 376, 376, 377, 377, 377, 377, 377, 377, 377, 378, - - 317, 378, 379, 379, 314, 313, 379, 379, 380, 380, - 380, 380, 380, 380, 381, 381, 312, 381, 381, 381, - 381, 310, 307, 306, 305, 304, 299, 296, 295, 294, - 293, 292, 289, 285, 279, 277, 274, 273, 272, 271, - 269, 264, 252, 250, 247, 243, 242, 239, 235, 234, - 231, 230, 229, 213, 202, 194, 193, 191, 190, 188, - 185, 184, 183, 181, 180, 179, 177, 176, 175, 174, - 172, 168, 137, 130, 129, 127, 122, 121, 120, 119, - 115, 112, 110, 109, 107, 105, 101, 99, 98, 97, - 93, 92, 89, 88, 83, 82, 55, 51, 46, 41, - - 34, 33, 29, 26, 25, 19, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, + 3, 37, 3, 2, 41, 2, 2, 4, 41, 4, + 3, 5, 4, 5, 32, 5, 32, 4, 5, 39, + 9, 114, 7, 5, 7, 37, 7, 8, 9, 8, + 4, 8, 8, 10, 10, 11, 44, 11, 5, 11, + + 565, 10, 19, 39, 19, 2, 41, 2, 9, 7, + 9, 9, 19, 44, 8, 12, 43, 12, 114, 12, + 12, 10, 11, 10, 10, 9, 5, 5, 6, 71, + 6, 9, 6, 6, 6, 6, 146, 403, 10, 15, + 6, 403, 12, 15, 10, 16, 43, 21, 16, 21, + 20, 20, 16, 20, 20, 6, 20, 21, 56, 71, + 56, 20, 69, 15, 69, 15, 15, 22, 22, 146, + 22, 22, 16, 22, 16, 16, 72, 23, 22, 23, + 38, 87, 55, 6, 6, 13, 15, 23, 70, 24, + 92, 24, 13, 13, 24, 16, 72, 85, 13, 24, + + 31, 31, 31, 31, 89, 55, 38, 13, 87, 88, + 38, 13, 70, 13, 13, 13, 13, 49, 82, 13, + 82, 49, 13, 160, 92, 13, 13, 85, 89, 13, + 13, 13, 13, 55, 55, 88, 13, 13, 17, 108, + 40, 93, 17, 17, 40, 33, 17, 33, 33, 33, + 33, 34, 160, 34, 34, 34, 34, 67, 60, 49, + 79, 67, 60, 108, 79, 17, 17, 17, 17, 17, + 157, 93, 17, 563, 93, 17, 17, 17, 17, 17, + 157, 560, 17, 17, 17, 17, 40, 33, 40, 42, + 81, 42, 81, 81, 81, 81, 42, 60, 86, 67, + + 60, 90, 79, 91, 42, 83, 83, 83, 83, 84, + 84, 84, 84, 94, 42, 95, 96, 103, 86, 103, + 104, 106, 86, 107, 84, 86, 105, 90, 120, 109, + 91, 115, 120, 94, 94, 113, 208, 96, 106, 110, + 111, 95, 109, 96, 104, 94, 105, 104, 106, 107, + 109, 112, 110, 105, 111, 113, 113, 119, 115, 130, + 110, 119, 121, 121, 112, 125, 121, 113, 119, 125, + 120, 130, 208, 126, 559, 121, 125, 126, 127, 127, + 131, 131, 127, 164, 131, 134, 134, 134, 134, 127, + 145, 127, 137, 137, 137, 137, 138, 147, 138, 138, + + 138, 138, 139, 145, 139, 139, 139, 139, 141, 156, + 141, 141, 141, 141, 149, 126, 148, 152, 149, 159, + 176, 152, 131, 154, 156, 154, 177, 147, 170, 148, + 156, 154, 170, 176, 164, 164, 159, 178, 187, 154, + 183, 183, 183, 183, 191, 154, 184, 184, 184, 184, + 188, 189, 190, 177, 192, 193, 194, 187, 178, 152, + 149, 184, 149, 188, 189, 195, 196, 170, 197, 199, + 170, 198, 201, 200, 203, 207, 202, 191, 190, 204, + 209, 210, 193, 196, 212, 198, 211, 192, 194, 197, + 213, 195, 200, 214, 215, 197, 199, 202, 209, 211, + + 204, 216, 201, 217, 203, 218, 219, 202, 207, 215, + 552, 221, 551, 211, 210, 221, 213, 549, 214, 248, + 212, 247, 221, 216, 218, 222, 222, 223, 223, 222, + 250, 223, 265, 217, 219, 225, 225, 227, 249, 225, + 266, 227, 228, 228, 248, 265, 228, 279, 227, 250, + 229, 229, 247, 228, 229, 228, 238, 238, 238, 238, + 241, 241, 241, 241, 259, 249, 280, 281, 283, 283, + 288, 289, 283, 266, 290, 259, 291, 293, 279, 287, + 287, 287, 287, 292, 297, 296, 294, 298, 299, 300, + 303, 280, 301, 302, 287, 307, 305, 292, 281, 294, + + 304, 289, 293, 288, 296, 290, 306, 291, 311, 310, + 313, 307, 314, 300, 297, 312, 299, 305, 318, 302, + 299, 298, 301, 303, 315, 311, 316, 304, 312, 317, + 320, 314, 319, 321, 322, 313, 323, 323, 306, 310, + 323, 318, 331, 320, 333, 315, 317, 316, 334, 319, + 349, 322, 325, 325, 323, 340, 325, 348, 355, 321, + 360, 340, 358, 358, 362, 363, 358, 364, 366, 368, + 369, 349, 373, 331, 333, 370, 371, 372, 378, 334, + 376, 348, 380, 369, 377, 360, 382, 375, 374, 355, + 384, 364, 370, 371, 381, 362, 380, 363, 372, 368, + + 366, 374, 375, 377, 373, 374, 376, 385, 383, 386, + 381, 378, 389, 390, 391, 409, 410, 414, 413, 382, + 383, 384, 393, 393, 395, 395, 393, 389, 395, 396, + 396, 391, 385, 396, 386, 413, 416, 418, 390, 409, + 419, 420, 395, 424, 421, 422, 410, 425, 426, 428, + 431, 429, 414, 416, 432, 433, 434, 435, 418, 421, + 422, 436, 431, 425, 429, 437, 446, 424, 434, 438, + 450, 420, 419, 453, 447, 428, 455, 456, 432, 463, + 426, 438, 451, 462, 441, 454, 464, 433, 441, 453, + 435, 447, 465, 446, 436, 461, 450, 437, 441, 441, + + 441, 441, 454, 451, 466, 467, 468, 462, 455, 456, + 469, 463, 461, 470, 475, 478, 481, 477, 464, 482, + 475, 485, 469, 473, 483, 486, 489, 473, 487, 465, + 467, 468, 477, 491, 492, 482, 466, 473, 473, 473, + 473, 483, 486, 490, 487, 470, 478, 495, 481, 496, + 503, 511, 504, 506, 503, 490, 504, 506, 485, 508, + 513, 491, 514, 489, 505, 505, 505, 511, 503, 516, + 504, 492, 515, 517, 518, 532, 508, 519, 520, 495, + 533, 519, 520, 535, 529, 547, 496, 548, 513, 515, + 525, 537, 532, 533, 525, 536, 514, 516, 529, 526, + + 535, 541, 518, 526, 525, 525, 525, 525, 537, 546, + 517, 548, 540, 526, 526, 526, 526, 527, 527, 527, + 527, 528, 550, 536, 546, 528, 528, 528, 528, 542, + 542, 558, 543, 542, 543, 543, 543, 543, 538, 550, + 534, 562, 556, 542, 542, 542, 542, 544, 531, 530, + 524, 544, 544, 544, 544, 553, 553, 556, 562, 553, + 555, 555, 555, 555, 558, 561, 523, 561, 561, 561, + 561, 564, 564, 564, 564, 566, 566, 567, 567, 566, + 522, 567, 521, 512, 510, 509, 507, 502, 501, 566, + 566, 566, 566, 570, 570, 570, 570, 570, 570, 570, + + 570, 570, 570, 571, 571, 571, 571, 571, 571, 571, + 571, 571, 571, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 573, 573, 573, 573, 573, 573, 573, + 573, 573, 573, 574, 574, 574, 574, 574, 574, 574, + 574, 574, 574, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 576, 576, 576, 576, 576, 576, 576, + 576, 576, 576, 577, 577, 500, 577, 577, 577, 577, + 577, 577, 577, 578, 578, 579, 579, 579, 579, 580, + 580, 499, 580, 580, 580, 580, 580, 580, 580, 581, + 581, 498, 581, 581, 581, 581, 581, 581, 581, 582, + + 582, 497, 582, 582, 582, 582, 582, 582, 582, 583, + 494, 583, 583, 583, 584, 584, 493, 584, 584, 584, + 584, 584, 584, 584, 585, 585, 585, 585, 585, 585, + 585, 585, 585, 585, 586, 488, 586, 587, 587, 587, + 587, 588, 588, 588, 589, 589, 484, 589, 589, 589, + 589, 589, 589, 589, 590, 590, 590, 590, 590, 590, + 590, 590, 590, 590, 591, 591, 591, 591, 591, 591, + 591, 591, 591, 591, 592, 592, 592, 592, 592, 592, + 592, 592, 592, 592, 593, 480, 593, 593, 593, 594, + 594, 594, 594, 594, 594, 594, 594, 594, 594, 595, + + 595, 479, 476, 474, 472, 595, 595, 596, 596, 597, + 597, 597, 597, 598, 598, 598, 598, 599, 599, 471, + 460, 599, 599, 599, 599, 600, 600, 600, 600, 601, + 601, 459, 601, 601, 601, 601, 601, 601, 601, 602, + 602, 458, 457, 452, 602, 602, 602, 602, 602, 603, + 603, 449, 603, 448, 603, 603, 603, 603, 603, 445, + 444, 443, 442, 440, 439, 430, 427, 423, 417, 415, + 412, 408, 407, 406, 405, 404, 402, 401, 400, 399, + 398, 397, 392, 388, 387, 379, 367, 365, 361, 357, + 356, 354, 350, 347, 344, 342, 339, 337, 336, 335, + + 332, 330, 329, 328, 327, 326, 308, 295, 286, 284, + 277, 276, 274, 271, 270, 269, 267, 264, 263, 261, + 260, 257, 256, 255, 254, 253, 252, 251, 246, 245, + 243, 239, 237, 236, 231, 206, 186, 185, 182, 181, + 180, 175, 171, 168, 166, 165, 163, 155, 153, 151, + 150, 144, 143, 142, 136, 133, 132, 129, 128, 124, + 118, 61, 50, 48, 36, 30, 25, 18, 14, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569 } ; -static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr; +extern int yy_flex_debug; +int yy_flex_debug = 0; + +static yy_state_type *yy_state_buf=0, *yy_state_ptr=0; static char *yy_full_match; static int yy_lp; #define REJECT \ { \ -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \ -yy_cp = yy_full_match; /* restore poss. backed-over text */ \ -++yy_lp; \ +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \ +yy_cp = (yy_full_match); /* restore poss. backed-over text */ \ +++(yy_lp); \ goto find_rule; \ } + #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "lexer.l" -#define INITIAL 0 /* GOB C Preprocessor - * Copyright (C) 1999 the Free Software Foundation. + * Copyright (C) 1999-2000 the Free Software Foundation. + * Copyright (C) 2000 Eazel, Inc. + * Copyright (C) 2001-2011 George (Jiri) Lebl * * Author: George Lebl * @@ -749,20 +1058,31 @@ char *yytext; * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * USA. */ -#line 22 "lexer.l" +#line 24 "lexer.l" -#include "config.h" -#include +#include "config.h" +#include #include +#include +#include +#include "treefuncs.h" #include "parse.h" #include "main.h" #include "util.h" static int parenth_depth = 0; -static int before_comment = INITIAL; +static int before_comment +/* New flex is on drugs */ +#if defined(FLEX_SCANNER) && ! defined(INITIAL) + = 0; +#else + = INITIAL; +#endif static gboolean class_after_c = FALSE; static int code_type = CCODE; +static int before_string; +static int property_paren_depth = 0; /* GTK+ doc stuff */ static char *gtk_doc_func = NULL; /* current gtk-doc func */ @@ -776,14 +1096,16 @@ GList *include_files = NULL; static int look_for_includes = 0; int line_no = 1; +/* last filename parsed from a #line directive */ +char *hline_filename = NULL; static void clear_cbuf(void) { if(!cbuf) { - cbuf = g_string_new(""); + cbuf = g_string_new(NULL); } else { - cbuf = g_string_assign(cbuf,""); + cbuf = g_string_assign(cbuf, ""); } } @@ -811,24 +1133,80 @@ add_gtk_doc_func(void) gtk_doc_func = NULL; } +/* Ugly warning / error avoidings */ +#ifdef FLEX_SCANNER +int yylex(void); +int yywrap(void) { return 1; } +#endif + + + -#define COMMENT 1 -#define C_CODE 2 -#define C_CODE_STRING 3 + + + + + +#line 1154 "lexer.c" + +#define INITIAL 0 +#define COMMENT 1 +#define C_CODE 2 +#define CODE_STRING 3 #define CLASS_CODE 4 +#define CLASS_STRING 5 +#define CLASS_CODE_I 6 +#define PROPERTY_CODE 7 +#define PROPERTY_CODE_I 8 +#define GTK_DOC_BEFORE_NAME 9 +#define GTK_DOC 10 +#define GTK_DOC_LINE 11 + +#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 +#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. */ -#define CLASS_CODE_I 5 +int yylex_destroy (void ); -#define GTK_DOC_BEFORE_NAME 6 +int yyget_debug (void ); -#define GTK_DOC 7 +void yyset_debug (int debug_flag ); -#define GTK_DOC_LINE 8 +YY_EXTRA_TYPE yyget_extra (void ); -#line 832 "lex.yy.c" +void yyset_extra (YY_EXTRA_TYPE user_defined ); + +FILE *yyget_in (void ); + +void yyset_in (FILE * in_str ); + +FILE *yyget_out (void ); + +void yyset_out (FILE * out_str ); + +yy_size_t yyget_leng (void ); + +char *yyget_text (void ); + +int yyget_lineno (void ); + +void yyset_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. @@ -836,65 +1214,30 @@ add_gtk_doc_func(void) #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus -extern "C" int yywrap YY_PROTO(( void )); +extern "C" int yywrap (void ); #else -extern int yywrap YY_PROTO(( void )); +extern int yywrap (void ); #endif #endif -#ifndef YY_NO_UNPUT -static void yyunput YY_PROTO(( int c, char *buf_ptr )); -#endif - + static void yyunput (int c,char *buf_ptr ); + #ifndef yytext_ptr -static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); +static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen YY_PROTO(( yyconst char * )); +static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT -#ifdef __cplusplus -static int yyinput YY_PROTO(( void )); -#else -static int input YY_PROTO(( void )); -#endif -#endif - -#if YY_STACK_USED -static int yy_start_stack_ptr = 0; -static int yy_start_stack_depth = 0; -static int *yy_start_stack = 0; -#ifndef YY_NO_PUSH_STATE -static void yy_push_state YY_PROTO(( int new_state )); -#endif -#ifndef YY_NO_POP_STATE -static void yy_pop_state YY_PROTO(( void )); -#endif -#ifndef YY_NO_TOP_STATE -static int yy_top_state YY_PROTO(( void )); -#endif +#ifdef __cplusplus +static int yyinput (void ); #else -#define YY_NO_PUSH_STATE 1 -#define YY_NO_POP_STATE 1 -#define YY_NO_TOP_STATE 1 +static int input (void ); #endif -#ifdef YY_MALLOC_DECL -YY_MALLOC_DECL -#else -#if __STDC__ -#ifndef __cplusplus -#include -#endif -#else -/* Just try to get by without declaring the routines. This will fail - * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) - * or sizeof(void*) != sizeof(int). - */ -#endif #endif /* Amount of stuff to slurp up with each read. */ @@ -903,12 +1246,11 @@ YY_MALLOC_DECL #endif /* Copy whatever the last rule matched to the standard output. */ - #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) +#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -916,9 +1258,10 @@ YY_MALLOC_DECL */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ - if ( yy_current_buffer->yy_is_interactive ) \ + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ - int c = '*', n; \ + int c = '*'; \ + size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -928,9 +1271,22 @@ YY_MALLOC_DECL YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ - else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ - && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); + else \ + { \ + errno=0; \ + while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ + { \ + if( errno != EINTR) \ + { \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + break; \ + } \ + errno=0; \ + clearerr(yyin); \ + } \ + }\ +\ + #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - @@ -951,12 +1307,18 @@ YY_MALLOC_DECL #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 int yylex YY_PROTO(( void )) -#endif +#define YY_DECL_IS_OURS 1 + +extern int yylex (void); + +#define YY_DECL int yylex (void) +#endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. @@ -972,31 +1334,47 @@ YY_MALLOC_DECL #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ - yy_current_buffer->yy_at_bol = \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION +/** The main scanner function which does all the work. + */ YY_DECL - { +{ register yy_state_type yy_current_state; - register char *yy_cp = NULL, *yy_bp = NULL; + register char *yy_cp, *yy_bp; register int yy_act; + +#line 120 "lexer.l" + -#line 95 "lexer.l" + +/* Avoid warning from flex, cuz flex sucks */ +#ifdef FLEX_SCANNER +yy_current_state = 0; +#endif -#line 989 "lex.yy.c" - if ( yy_init ) +#line 1361 "lexer.c" + + if ( !(yy_init) ) { - yy_init = 0; + (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif - if ( ! yy_start ) - yy_start = 1; /* first start state */ + /* Create the reject buffer large enough to save one state per allowed character. */ + if ( ! (yy_state_buf) ) + (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE ); + if ( ! (yy_state_buf) ) + YY_FATAL_ERROR( "out of dynamic memory in yylex()" ); + + if ( ! (yy_start) ) + (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin = stdin; @@ -1004,29 +1382,33 @@ YY_DECL if ( ! yyout ) yyout = stdout; - if ( ! yy_current_buffer ) - yy_current_buffer = - yy_create_buffer( yyin, YY_BUF_SIZE ); + if ( ! YY_CURRENT_BUFFER ) { + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer(yyin,YY_BUF_SIZE ); + } - yy_load_buffer_state(); + yy_load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { - yy_cp = yy_c_buf_p; + yy_cp = (yy_c_buf_p); /* Support of yytext. */ - *yy_cp = yy_hold_char; + *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_start); yy_current_state += YY_AT_BOL(); - yy_state_ptr = yy_state_buf; - *yy_state_ptr++ = yy_current_state; + + (yy_state_ptr) = (yy_state_buf); + *(yy_state_ptr)++ = yy_current_state; + yy_match: do { @@ -1034,63 +1416,125 @@ yy_match: 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 >= 361 ) + if ( yy_current_state >= 570 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - *yy_state_ptr++ = yy_current_state; + *(yy_state_ptr)++ = yy_current_state; ++yy_cp; } - while ( yy_base[yy_current_state] != 807 ); + while ( yy_base[yy_current_state] != 1370 ); yy_find_action: - yy_current_state = *--yy_state_ptr; - yy_lp = yy_accept[yy_current_state]; + yy_current_state = *--(yy_state_ptr); + (yy_lp) = yy_accept[yy_current_state]; find_rule: /* we branch to this label when backing up */ for ( ; ; ) /* until we find what rule we matched */ { - if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] ) + if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] ) { - yy_act = yy_acclist[yy_lp]; + yy_act = yy_acclist[(yy_lp)]; { - yy_full_match = yy_cp; + (yy_full_match) = yy_cp; break; } } --yy_cp; - yy_current_state = *--yy_state_ptr; - yy_lp = yy_accept[yy_current_state]; + yy_current_state = *--(yy_state_ptr); + (yy_lp) = 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 1: +/* rule 1 can match eol */ YY_RULE_SETUP -#line 97 "lexer.l" +#line 130 "lexer.l" { line_no++; REJECT; } YY_BREAK case 2: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 99 "lexer.l" -{ fprintf(stderr,"You are a bad bad person!\n"); REJECT; } +#line 132 "lexer.l" +{ +/* Thy evil easter egg */ +#define QQ(x) long x +#define KK(x) =atoi(__(&,,x,)) +#define MM(x,a) {QQ(i);for(i=2;i'); - *p = '\0'; - include_files = g_list_prepend(include_files,g_strdup(file)); - g_free(str); + if (p != NULL) { + *p = '\0'; + include_files = g_list_prepend(include_files,g_strdup(file)); + g_free(str); + } } REJECT; } YY_BREAK -case 5: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 6: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 119 "lexer.l" +#line 212 "lexer.l" { /* eat out gtk doc stuff */ BEGIN(GTK_DOC_BEFORE_NAME); clear_cbuf(); } YY_BREAK -case 6: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 7: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 124 "lexer.l" +#line 217 "lexer.l" { /* empty doc lines */ ; } YY_BREAK -case 7: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 8: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 128 "lexer.l" +#line 221 "lexer.l" { char *p; BEGIN(GTK_DOC); @@ -1148,304 +1594,385 @@ YY_RULE_SETUP g_strstrip(gtk_doc_func); } YY_BREAK -case 8: +case 9: YY_RULE_SETUP -#line 138 "lexer.l" +#line 231 "lexer.l" { BEGIN(CLASS_CODE_I); } YY_BREAK -case 9: +case 10: YY_RULE_SETUP -#line 141 "lexer.l" +#line 234 "lexer.l" { BEGIN(COMMENT); before_comment = CLASS_CODE_I; } YY_BREAK -case 10: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 11: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 145 "lexer.l" +#line 238 "lexer.l" { /* empty doc lines */ add_to_cbuf(" *\n"); } YY_BREAK -case 11: +case 12: YY_RULE_SETUP -#line 149 "lexer.l" +#line 242 "lexer.l" { BEGIN(CLASS_CODE_I); add_gtk_doc_func(); } YY_BREAK -case 12: +case 13: YY_RULE_SETUP -#line 153 "lexer.l" +#line 246 "lexer.l" { fflush(stdout); add_to_cbuf(" * "); BEGIN(GTK_DOC_LINE); } YY_BREAK -case 13: +case 14: YY_RULE_SETUP -#line 158 "lexer.l" +#line 251 "lexer.l" { BEGIN(CLASS_CODE_I); } YY_BREAK -case 14: +case 15: YY_RULE_SETUP -#line 161 "lexer.l" +#line 254 "lexer.l" { BEGIN(COMMENT); before_comment = CLASS_CODE_I; } YY_BREAK -case 15: +case 16: YY_RULE_SETUP -#line 165 "lexer.l" +#line 258 "lexer.l" { BEGIN(CLASS_CODE_I); add_to_cbuf("\n"); add_gtk_doc_func(); } YY_BREAK -case 16: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 17: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 170 "lexer.l" +#line 263 "lexer.l" { BEGIN(GTK_DOC); add_to_cbuf(yytext); add_to_cbuf("\n"); } YY_BREAK -case 17: +case 18: YY_RULE_SETUP -#line 175 "lexer.l" +#line 268 "lexer.l" { fflush(stdout); add_to_cbuf(yytext); } YY_BREAK -case 18: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 19: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 180 "lexer.l" +#line 273 "lexer.l" { add_to_cbuf(yytext); /*comment, ignore*/ } YY_BREAK -case 19: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 20: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 181 "lexer.l" +#line 274 "lexer.l" { ; /*comment, ignore*/ } YY_BREAK -case 20: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 21: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 182 "lexer.l" +#line 275 "lexer.l" { ; /*comment, ignore*/ } YY_BREAK -case 21: +case 22: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 276 "lexer.l" +{ ; /*comment, ignore*/ } + YY_BREAK +case 23: YY_RULE_SETUP -#line 183 "lexer.l" +#line 277 "lexer.l" {BEGIN(COMMENT); before_comment = INITIAL; } YY_BREAK -case 22: +case 24: YY_RULE_SETUP -#line 184 "lexer.l" +#line 278 "lexer.l" { add_to_cbuf(yytext); BEGIN(COMMENT); before_comment = C_CODE; } YY_BREAK -case 23: +case 25: YY_RULE_SETUP -#line 189 "lexer.l" +#line 283 "lexer.l" {BEGIN(COMMENT); before_comment = CLASS_CODE; } YY_BREAK -case 24: +case 26: YY_RULE_SETUP -#line 190 "lexer.l" +#line 284 "lexer.l" {BEGIN(COMMENT); before_comment = CLASS_CODE_I; } YY_BREAK -case 25: +case 27: +YY_RULE_SETUP +#line 285 "lexer.l" +{BEGIN(COMMENT); before_comment = PROPERTY_CODE_I; } + YY_BREAK +case 28: YY_RULE_SETUP -#line 191 "lexer.l" +#line 286 "lexer.l" { if(before_comment == C_CODE) add_to_cbuf(yytext); BEGIN(before_comment); } YY_BREAK -case 26: +case 29: YY_RULE_SETUP -#line 195 "lexer.l" +#line 290 "lexer.l" { /* comment, ignore */ if(before_comment == C_CODE) add_to_cbuf(yytext); } YY_BREAK -case 27: +case 30: +/* rule 30 can match eol */ YY_RULE_SETUP -#line 199 "lexer.l" +#line 294 "lexer.l" { /* comment, ignore */ if(before_comment == C_CODE) add_to_cbuf(yytext); } YY_BREAK -case 28: +case 31: YY_RULE_SETUP -#line 204 "lexer.l" +#line 299 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; - code_type = HTCODE; + code_type = ACODE; clear_cbuf(); ccode_line = line_no; } YY_BREAK -case 29: +case 32: YY_RULE_SETUP -#line 212 "lexer.l" +#line 307 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; - code_type = PHCODE; + code_type = ATCODE; clear_cbuf(); ccode_line = line_no; } YY_BREAK -case 30: +case 33: YY_RULE_SETUP -#line 220 "lexer.l" +#line 316 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; - code_type = HCODE; + code_type = HTCODE; clear_cbuf(); ccode_line = line_no; } YY_BREAK -case 31: +case 34: YY_RULE_SETUP -#line 228 "lexer.l" +#line 324 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; - code_type = CCODE; + code_type = PHCODE; clear_cbuf(); ccode_line = line_no; - if(look_for_includes==0) - look_for_includes=1; } YY_BREAK -case 32: +case 35: YY_RULE_SETUP -#line 238 "lexer.l" +#line 332 "lexer.l" { - BEGIN(INITIAL); - yylval.cbuf = cbuf; - cbuf = NULL; - if(look_for_includes==1) - look_for_includes=0; - return code_type; - } - YY_BREAK -case 33: + BEGIN(C_CODE); + parenth_depth = 1; + class_after_c = FALSE; + code_type = HCODE; + clear_cbuf(); + ccode_line = line_no; + } + YY_BREAK +case 36: +YY_RULE_SETUP +#line 340 "lexer.l" +{ + BEGIN(C_CODE); + parenth_depth = 1; + class_after_c = FALSE; + code_type = CCODE; + clear_cbuf(); + ccode_line = line_no; + if(look_for_includes==0) + look_for_includes=1; + } + YY_BREAK +case 37: +YY_RULE_SETUP +#line 350 "lexer.l" +{ + BEGIN(C_CODE); + parenth_depth = 1; + class_after_c = FALSE; + code_type = CTCODE; + clear_cbuf(); + ccode_line = line_no; + if(look_for_includes==0) + look_for_includes=1; + } + YY_BREAK +case 38: +YY_RULE_SETUP +#line 360 "lexer.l" +{ + BEGIN(C_CODE); + parenth_depth = 1; + class_after_c = FALSE; + code_type = ADCODE; + clear_cbuf(); + ccode_line = line_no; + } + YY_BREAK +case 39: +YY_RULE_SETUP +#line 368 "lexer.l" +{ + BEGIN(INITIAL); + yylval.cbuf = cbuf; + cbuf = NULL; + if(look_for_includes==1) + look_for_includes=0; + return code_type; + } + YY_BREAK +case 40: YY_RULE_SETUP -#line 247 "lexer.l" +#line 377 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 34: +case 41: YY_RULE_SETUP -#line 248 "lexer.l" +#line 378 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 35: +case 42: YY_RULE_SETUP -#line 249 "lexer.l" +#line 379 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 36: +case 43: YY_RULE_SETUP -#line 250 "lexer.l" +#line 380 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 37: +case 44: YY_RULE_SETUP -#line 251 "lexer.l" +#line 381 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 38: +case 45: YY_RULE_SETUP -#line 252 "lexer.l" +#line 382 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 39: +case 46: YY_RULE_SETUP -#line 254 "lexer.l" +#line 384 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 40: +case 47: YY_RULE_SETUP -#line 255 "lexer.l" +#line 387 "lexer.l" { - BEGIN(C_CODE_STRING); + BEGIN(CODE_STRING); + before_string = C_CODE; add_to_cbuf(yytext); } YY_BREAK -case 41: +case 48: +YY_RULE_SETUP +#line 392 "lexer.l" +{ + BEGIN(CODE_STRING); + before_string = PROPERTY_CODE_I; + add_to_cbuf(yytext); + } + YY_BREAK +case 49: YY_RULE_SETUP -#line 259 "lexer.l" +#line 397 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 42: +case 50: YY_RULE_SETUP -#line 260 "lexer.l" +#line 398 "lexer.l" { - BEGIN(C_CODE); - add_to_cbuf(yytext); + BEGIN(before_string); + add_to_cbuf(yytext); + if (before_string == PROPERTY_CODE_I) { + yylval.id = cbuf->str; + g_string_free (cbuf, FALSE); + cbuf = NULL; + return STRING; } + } YY_BREAK -case 43: +case 51: YY_RULE_SETUP -#line 264 "lexer.l" +#line 408 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 44: +case 52: +/* rule 52 can match eol */ YY_RULE_SETUP -#line 265 "lexer.l" +#line 409 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 45: +case 53: YY_RULE_SETUP -#line 267 "lexer.l" +#line 411 "lexer.l" { parenth_depth++; add_to_cbuf(yytext); } YY_BREAK -case 46: +case 54: YY_RULE_SETUP -#line 271 "lexer.l" +#line 415 "lexer.l" { parenth_depth--; if(parenth_depth<0) { @@ -1459,236 +1986,457 @@ YY_RULE_SETUP add_to_cbuf(yytext); } YY_BREAK -case 47: +case 55: YY_RULE_SETUP -#line 284 "lexer.l" +#line 428 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 48: +case 56: +/* rule 56 can match eol */ YY_RULE_SETUP -#line 285 "lexer.l" +#line 429 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 49: +case 57: YY_RULE_SETUP -#line 287 "lexer.l" +#line 431 "lexer.l" { static int found_classes = 0; look_for_includes = 2; BEGIN(CLASS_CODE); if(++found_classes > 1) { - print_error(FALSE, - "Only one class per file allowed", - line_no); + error_print(GOB_ERROR, line_no, + "Only one class per file allowed"); } return CLASS; } YY_BREAK -case 50: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 58: +YY_RULE_SETUP +#line 444 "lexer.l" +{ return ERROR; } + YY_BREAK +case 59: +YY_RULE_SETUP +#line 445 "lexer.l" +{ return ENUM; } + YY_BREAK +case 60: +YY_RULE_SETUP +#line 446 "lexer.l" +{ return FLAGS; } + YY_BREAK +case 61: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 301 "lexer.l" +#line 448 "lexer.l" { - int maj = 0,min = 0,pl = 0; - int rmaj = 0,rmin = 0,rpl = 0; + int maj = 0, min = 0, pl = 0; + int rmaj = 0, rmin = 0, rpl = 0; + int effective_maj = 0; + int effective_rmaj = 0; char *p; - sscanf(VERSION,"%d.%d.%d",&rmaj,&rmin,&rpl); - p = strchr(yytext,'r'); - g_assert(p); /* we MUST have found it */ - sscanf(p,"requires %d.%d.%d",&maj,&min,&pl); + sscanf (VERSION, "%d.%d.%d", &rmaj, &rmin, &rpl); + effective_rmaj = rmaj; + if (rmin >= 90) + effective_rmaj = rmaj + 1; + + p = strchr (yytext,'r'); + g_assert (p); /* we MUST have found it */ + sscanf (p, "requires %d.%d.%d", &maj, &min, &pl); + effective_maj = maj; + if (min >= 90) + effective_maj = maj + 1; + if(rmaj < maj || (rmaj == maj && rmin < min) || (rmaj == maj && rmin == min && rpl < pl)) { - char *s; - s = g_strdup_printf( - "GOB version %d.%d.%d required " - "(this is %s)\n" - "To upgrade your gob, see: " - "http://www.5z.com/jirka/gob.html", - maj,min,pl,VERSION); - print_error(FALSE, s, line_no); - g_free(s); + error_printf (GOB_ERROR, line_no, + "GOB version at least %d.%d.%d required " + "(this is %s)\n" + "To upgrade your gob, see: " + "http://www.5z.com/jirka/gob.html", + maj, min, pl, VERSION); + } + + if(effective_rmaj != effective_maj) { + error_printf(GOB_ERROR, line_no, + "GOB major version %d required " + "(this is %s)\n" + "To upgrade your gob, see: " + "http://www.5z.com/jirka/gob.html", + effective_maj, VERSION); } + } YY_BREAK -case 51: +case 62: YY_RULE_SETUP -#line 325 "lexer.l" +#line 489 "lexer.l" { if(for_cpp) { - char *s; - s = g_strdup_printf("'%s' keyword should not " - "be used when generating " - "C++ code",yytext); - print_error(TRUE, s, line_no); - g_free(s); + error_printf(GOB_WARN, line_no, + "'%s' keyword should not " + "be used when generating " + "C++ code", yytext); } REJECT; } YY_BREAK -case 52: +case 63: YY_RULE_SETUP -#line 337 "lexer.l" +#line 499 "lexer.l" {return FROM;} YY_BREAK -case 53: +case 64: +YY_RULE_SETUP +#line 500 "lexer.l" +{ + BEGIN(CLASS_STRING); + before_string = CLASS_CODE; + add_to_cbuf(yytext); + } + YY_BREAK +case 65: +YY_RULE_SETUP +#line 505 "lexer.l" +{ add_to_cbuf(yytext); } + YY_BREAK +case 66: +YY_RULE_SETUP +#line 506 "lexer.l" +{ + BEGIN(before_string); + add_to_cbuf(yytext); + yylval.id = cbuf->str; + g_string_free (cbuf, FALSE); + cbuf = NULL; + return STRING; + } + YY_BREAK +case 67: +YY_RULE_SETUP +#line 514 "lexer.l" +{ add_to_cbuf(yytext); } + YY_BREAK +case 68: +/* rule 68 can match eol */ +YY_RULE_SETUP +#line 515 "lexer.l" +{ add_to_cbuf(yytext); } + YY_BREAK +case 69: YY_RULE_SETUP -#line 339 "lexer.l" +#line 517 "lexer.l" +{ + BEGIN(CLASS_STRING); + before_string = CLASS_CODE_I; + add_to_cbuf(yytext); + } + YY_BREAK +case 70: +YY_RULE_SETUP +#line 523 "lexer.l" {return VOID;} YY_BREAK -case 54: +case 71: YY_RULE_SETUP -#line 340 "lexer.l" +#line 524 "lexer.l" {return STRUCT;} YY_BREAK -case 55: +case 72: YY_RULE_SETUP -#line 341 "lexer.l" +#line 525 "lexer.l" {return UNION;} YY_BREAK -case 56: +case 73: YY_RULE_SETUP -#line 342 "lexer.l" +#line 526 "lexer.l" {return ENUM;} YY_BREAK -case 57: +case 74: YY_RULE_SETUP -#line 343 "lexer.l" +#line 527 "lexer.l" {return SIGNED;} YY_BREAK -case 58: +case 75: YY_RULE_SETUP -#line 344 "lexer.l" +#line 528 "lexer.l" {return UNSIGNED;} YY_BREAK -case 59: +case 76: YY_RULE_SETUP -#line 345 "lexer.l" +#line 529 "lexer.l" {return LONG;} YY_BREAK -case 60: +case 77: YY_RULE_SETUP -#line 346 "lexer.l" +#line 530 "lexer.l" {return SHORT;} YY_BREAK -case 61: +case 78: YY_RULE_SETUP -#line 347 "lexer.l" +#line 531 "lexer.l" {return INT;} YY_BREAK -case 62: +case 79: YY_RULE_SETUP -#line 348 "lexer.l" +#line 532 "lexer.l" {return FLOAT;} YY_BREAK -case 63: +case 80: YY_RULE_SETUP -#line 349 "lexer.l" +#line 533 "lexer.l" {return DOUBLE;} YY_BREAK -case 64: +case 81: YY_RULE_SETUP -#line 350 "lexer.l" +#line 534 "lexer.l" {return CHAR;} YY_BREAK -case 65: +case 82: YY_RULE_SETUP -#line 351 "lexer.l" +#line 535 "lexer.l" {return CONST;} YY_BREAK -case 66: +case 83: YY_RULE_SETUP -#line 353 "lexer.l" +#line 537 "lexer.l" {return THREEDOTS;} YY_BREAK -case 67: +case 84: YY_RULE_SETUP -#line 355 "lexer.l" +#line 539 "lexer.l" {yylval.line = line_no; return PUBLIC;} YY_BREAK -case 68: +case 85: YY_RULE_SETUP -#line 356 "lexer.l" +#line 540 "lexer.l" {yylval.line = line_no; return PRIVATE;} YY_BREAK -case 69: +case 86: YY_RULE_SETUP -#line 357 "lexer.l" +#line 541 "lexer.l" {yylval.line = line_no; return PROTECTED;} YY_BREAK -case 70: +case 87: YY_RULE_SETUP -#line 358 "lexer.l" +#line 542 "lexer.l" +{yylval.line = line_no; return CLASSWIDE;} + YY_BREAK +case 88: +YY_RULE_SETUP +#line 543 "lexer.l" {yylval.line = line_no; return ARGUMENT;} YY_BREAK -case 71: +case 89: YY_RULE_SETUP -#line 359 "lexer.l" +#line 544 "lexer.l" {yylval.line = line_no; return VIRTUAL;} YY_BREAK -case 72: +case 90: YY_RULE_SETUP -#line 360 "lexer.l" +#line 545 "lexer.l" {yylval.line = line_no; return SIGNAL;} YY_BREAK -case 73: +case 91: YY_RULE_SETUP -#line 361 "lexer.l" +#line 546 "lexer.l" {yylval.line = line_no; return OVERRIDE;} YY_BREAK -case 74: +case 92: YY_RULE_SETUP -#line 362 "lexer.l" -{return ONERROR;} +#line 547 "lexer.l" +{ + yylval.line = line_no; + BEGIN(PROPERTY_CODE); + return PROPERTY; + } YY_BREAK -case 75: +case 93: +YY_RULE_SETUP +#line 552 "lexer.l" +{ yylval.line = line_no; return NICK; } + YY_BREAK +case 94: +YY_RULE_SETUP +#line 553 "lexer.l" +{ yylval.line = line_no; return NAME; } + YY_BREAK +case 95: +YY_RULE_SETUP +#line 554 "lexer.l" +{ yylval.line = line_no; return BLURB; } + YY_BREAK +case 96: +YY_RULE_SETUP +#line 555 "lexer.l" +{ yylval.line = line_no; return MAXIMUM; } + YY_BREAK +case 97: +YY_RULE_SETUP +#line 556 "lexer.l" +{ yylval.line = line_no; return MINIMUM; } + YY_BREAK +case 98: +YY_RULE_SETUP +#line 557 "lexer.l" +{ yylval.line = line_no; return DEFAULT_VALUE; } + YY_BREAK +case 99: +YY_RULE_SETUP +#line 558 "lexer.l" +{ yylval.line = line_no; return FLAGS; } + YY_BREAK +case 100: +YY_RULE_SETUP +#line 559 "lexer.l" +{ yylval.line = line_no; return TYPE; } + YY_BREAK +case 101: +YY_RULE_SETUP +#line 560 "lexer.l" +{ yylval.line = line_no; return FLAGS_TYPE; } + YY_BREAK +case 102: +YY_RULE_SETUP +#line 561 "lexer.l" +{ yylval.line = line_no; return ENUM_TYPE; } + YY_BREAK +case 103: +YY_RULE_SETUP +#line 562 "lexer.l" +{ yylval.line = line_no; return PARAM_TYPE; } + YY_BREAK +case 104: +YY_RULE_SETUP +#line 563 "lexer.l" +{ yylval.line = line_no; return BOXED_TYPE; } + YY_BREAK +case 105: +YY_RULE_SETUP +#line 564 "lexer.l" +{ yylval.line = line_no; return OBJECT_TYPE; } + YY_BREAK +case 106: +YY_RULE_SETUP +#line 565 "lexer.l" +{ + yylval.line = line_no; + property_paren_depth = 1; + BEGIN(PROPERTY_CODE_I); + return '('; + } + YY_BREAK +case 107: +YY_RULE_SETUP +#line 571 "lexer.l" +{ + yylval.line = line_no; + property_paren_depth++; + return '('; + } + YY_BREAK +case 108: +YY_RULE_SETUP +#line 576 "lexer.l" +{ + yylval.line = line_no; + property_paren_depth--; + if (property_paren_depth == 0) { + BEGIN(CLASS_CODE_I); + } + return ')'; + } + YY_BREAK +case 109: YY_RULE_SETUP -#line 363 "lexer.l" +#line 585 "lexer.l" { yylval.id = g_strdup(yytext); return NUMBER; } YY_BREAK -case 76: +case 110: +YY_RULE_SETUP +#line 589 "lexer.l" +{ + /* This is cpp kind of token thingie */ + if (for_cpp) { + yylval.id = g_strdup(yytext); + return TOKEN; + } else { + REJECT; + } + } + YY_BREAK +case 111: YY_RULE_SETUP -#line 367 "lexer.l" +#line 598 "lexer.l" { + /* this one is for a classname with a namespace */ yylval.id = g_strdup(yytext); return TYPETOKEN; } YY_BREAK -case 77: +case 112: +YY_RULE_SETUP +#line 603 "lexer.l" +{ + /* this is for a classname with an empty namespace */ + yylval.id = g_strdup(yytext); + return TYPETOKEN; + } + YY_BREAK +case 113: YY_RULE_SETUP -#line 371 "lexer.l" +#line 608 "lexer.l" { yylval.id = g_strdup(yytext); return TOKEN; } YY_BREAK -case 78: +case 114: +YY_RULE_SETUP +#line 612 "lexer.l" +{ + yylval.id = g_strdup(yytext); + return SINGLE_CHAR; + } + YY_BREAK +case 115: YY_RULE_SETUP -#line 376 "lexer.l" +#line 617 "lexer.l" { yylval.id = g_strdup(yytext); return ARRAY_DIM; } YY_BREAK -case 79: +case 116: YY_RULE_SETUP -#line 381 "lexer.l" +#line 621 "lexer.l" +{ + /* cheat for bitfield */ + yylval.id = g_strdup(yytext); + return ARRAY_DIM; + } + YY_BREAK +case 117: +YY_RULE_SETUP +#line 626 "lexer.l" { BEGIN(CLASS_CODE_I); return '{'; } YY_BREAK -case 80: +case 118: YY_RULE_SETUP -#line 385 "lexer.l" +#line 630 "lexer.l" { BEGIN(C_CODE); parenth_depth=1; @@ -1699,44 +2447,63 @@ YY_RULE_SETUP return '{'; } YY_BREAK -case 81: +case 119: YY_RULE_SETUP -#line 394 "lexer.l" +#line 639 "lexer.l" { BEGIN(INITIAL); return '}'; } YY_BREAK -case 82: +case 120: YY_RULE_SETUP -#line 399 "lexer.l" +#line 644 "lexer.l" ; /*ignore*/ YY_BREAK -case 83: +case 121: +/* rule 121 can match eol */ +YY_RULE_SETUP +#line 646 "lexer.l" +; /*ignore*/ + YY_BREAK +case 122: YY_RULE_SETUP -#line 401 "lexer.l" +#line 649 "lexer.l" { yylval.line = line_no; return yytext[0]; } YY_BREAK -case 84: +case 123: +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 406 "lexer.l" -; /*ignore*/ +#line 654 "lexer.l" +{ + char *p; + int t; + p = strchr (yytext,'p'); + g_assert (p); /* we MUST have found it */ + sscanf (p, "prealloc %d", &t); + prealloc=t; + } YY_BREAK -case 85: +case 124: YY_RULE_SETUP -#line 407 "lexer.l" +#line 663 "lexer.l" ECHO; YY_BREAK -#line 1734 "lex.yy.c" +#line 2498 "lexer.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(COMMENT): case YY_STATE_EOF(C_CODE): - case YY_STATE_EOF(C_CODE_STRING): + case YY_STATE_EOF(CODE_STRING): case YY_STATE_EOF(CLASS_CODE): + case YY_STATE_EOF(CLASS_STRING): case YY_STATE_EOF(CLASS_CODE_I): + case YY_STATE_EOF(PROPERTY_CODE): + case YY_STATE_EOF(PROPERTY_CODE_I): case YY_STATE_EOF(GTK_DOC_BEFORE_NAME): case YY_STATE_EOF(GTK_DOC): case YY_STATE_EOF(GTK_DOC_LINE): @@ -1745,26 +2512,26 @@ ECHO; 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; + 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_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure - * consistency between yy_current_buffer and our + * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ - yy_n_chars = yy_current_buffer->yy_n_chars; - yy_current_buffer->yy_input_file = yyin; - yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position @@ -1774,13 +2541,13 @@ ECHO; * end-of-buffer state). Contrast this with the test * in input(). */ - if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + 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_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; - yy_current_state = yy_get_previous_state(); + yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have @@ -1793,30 +2560,30 @@ ECHO; yy_next_state = yy_try_NUL_trans( yy_current_state ); - yy_bp = yytext_ptr + YY_MORE_ADJ; + yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ - yy_cp = ++yy_c_buf_p; + yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { - yy_cp = yy_c_buf_p; + yy_cp = (yy_c_buf_p); goto yy_find_action; } } - else switch ( yy_get_next_buffer() ) + else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { - yy_did_buffer_switch_on_eof = 0; + (yy_did_buffer_switch_on_eof) = 0; - if ( yywrap() ) + if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up @@ -1827,7 +2594,7 @@ ECHO; * YY_NULL, it'll still work - another * YY_NULL will get returned. */ - yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; + (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; @@ -1835,30 +2602,30 @@ ECHO; else { - if ( ! yy_did_buffer_switch_on_eof ) + 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_c_buf_p) = + (yytext_ptr) + yy_amount_of_matched_text; - yy_current_state = yy_get_previous_state(); + yy_current_state = yy_get_previous_state( ); - yy_cp = yy_c_buf_p; - yy_bp = yytext_ptr + YY_MORE_ADJ; + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: - yy_c_buf_p = - &yy_current_buffer->yy_ch_buf[yy_n_chars]; + (yy_c_buf_p) = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; - yy_current_state = yy_get_previous_state(); + yy_current_state = yy_get_previous_state( ); - yy_cp = yy_c_buf_p; - yy_bp = yytext_ptr + YY_MORE_ADJ; + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; @@ -1869,8 +2636,7 @@ ECHO; "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ - } /* end of yylex */ - +} /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * @@ -1879,21 +2645,20 @@ ECHO; * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ - -static int yy_get_next_buffer() - { - register char *dest = yy_current_buffer->yy_ch_buf; - register char *source = yytext_ptr; +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->yy_ch_buf[yy_n_chars + 1] ) + 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->yy_fill_buffer == 0 ) + 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 ) + 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. @@ -1913,86 +2678,52 @@ static int yy_get_next_buffer() /* Try to read more data. */ /* First move last chars to start of buffer. */ - number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; + number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + 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->yy_n_chars = yy_n_chars = 0; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { - int num_to_read = - yy_current_buffer->yy_buf_size - number_to_move - 1; + yy_size_t num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ -#ifdef YY_USES_REJECT + YY_FATAL_ERROR( "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); -#else - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = yy_current_buffer; - - int yy_c_buf_p_offset = - (int) (yy_c_buf_p - b->yy_ch_buf); - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yy_flex_realloc( (void *) b->yy_ch_buf, - b->yy_buf_size + 2 ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = yy_current_buffer->yy_buf_size - - number_to_move - 1; -#endif } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ - YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), - yy_n_chars, num_to_read ); + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), + (yy_n_chars), num_to_read ); - yy_current_buffer->yy_n_chars = yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } - if ( yy_n_chars == 0 ) + if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; - yyrestart( yyin ); + yyrestart(yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; - yy_current_buffer->yy_buffer_status = + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } @@ -2000,147 +2731,141 @@ static int yy_get_next_buffer() else ret_val = EOB_ACT_CONTINUE_SCAN; - yy_n_chars += number_to_move; - yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; - yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + /* Extend the array by 50%, plus the number we really need. */ + yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + } - yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; + (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; - return ret_val; - } + (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() - { + 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_start); yy_current_state += YY_AT_BOL(); - yy_state_ptr = yy_state_buf; - *yy_state_ptr++ = yy_current_state; - for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + (yy_state_ptr) = (yy_state_buf); + *(yy_state_ptr)++ = yy_current_state; + + 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); 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 >= 361 ) + if ( yy_current_state >= 570 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - *yy_state_ptr++ = yy_current_state; + *(yy_state_ptr)++ = yy_current_state; } return yy_current_state; - } - +} /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ - -#ifdef YY_USE_PROTOS -static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) -#else -static yy_state_type yy_try_NUL_trans( yy_current_state ) -yy_state_type yy_current_state; -#endif - { + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) +{ register int yy_is_jam; - + register YY_CHAR yy_c = 1; 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 >= 361 ) + if ( yy_current_state >= 570 ) 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 == 360); + yy_is_jam = (yy_current_state == 569); if ( ! yy_is_jam ) - *yy_state_ptr++ = yy_current_state; - - return yy_is_jam ? 0 : yy_current_state; - } + *(yy_state_ptr)++ = yy_current_state; + return yy_is_jam ? 0 : yy_current_state; +} -#ifndef YY_NO_UNPUT -#ifdef YY_USE_PROTOS -static void yyunput( int c, register char *yy_bp ) -#else -static void yyunput( c, yy_bp ) -int c; -register char *yy_bp; -#endif - { - register char *yy_cp = yy_c_buf_p; + static void yyunput (int c, register char * yy_bp ) +{ + register char *yy_cp; + + yy_cp = (yy_c_buf_p); /* undo effects of setting up yytext */ - *yy_cp = yy_hold_char; + *yy_cp = (yy_hold_char); - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + 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->yy_ch_buf[ - yy_current_buffer->yy_buf_size + 2]; + register yy_size_t 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->yy_ch_buf[number_to_move]; + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; - while ( source > yy_current_buffer->yy_ch_buf ) + while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); - yy_current_buffer->yy_n_chars = - yy_n_chars = yy_current_buffer->yy_buf_size; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + 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; +} - yytext_ptr = yy_bp; - yy_hold_char = *yy_cp; - yy_c_buf_p = yy_cp; - } -#endif /* ifndef YY_NO_UNPUT */ - - +#ifndef YY_NO_INPUT #ifdef __cplusplus -static int yyinput() + static int yyinput (void) #else -static int input() + static int input (void) #endif - { - int c; - *yy_c_buf_p = yy_hold_char; +{ + int c; + + *(yy_c_buf_p) = (yy_hold_char); - if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) + if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ - if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + 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'; + *(yy_c_buf_p) = '\0'; else { /* need more input */ - int offset = yy_c_buf_p - yytext_ptr; - ++yy_c_buf_p; + yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); + ++(yy_c_buf_p); - switch ( yy_get_next_buffer() ) + switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() @@ -2154,16 +2879,16 @@ static int input() */ /* Reset buffer status. */ - yyrestart( yyin ); + yyrestart(yyin ); - /* fall through */ + /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { - if ( yywrap() ) + if ( yywrap( ) ) return EOF; - if ( ! yy_did_buffer_switch_on_eof ) + if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); @@ -2173,91 +2898,94 @@ static int input() } case EOB_ACT_CONTINUE_SCAN: - yy_c_buf_p = yytext_ptr + offset; + (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } - c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ - *yy_c_buf_p = '\0'; /* preserve yytext */ - yy_hold_char = *++yy_c_buf_p; + c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ + *(yy_c_buf_p) = '\0'; /* preserve yytext */ + (yy_hold_char) = *++(yy_c_buf_p); - yy_current_buffer->yy_at_bol = (c == '\n'); + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); return c; - } - - -#ifdef YY_USE_PROTOS -void yyrestart( FILE *input_file ) -#else -void yyrestart( input_file ) -FILE *input_file; -#endif - { - if ( ! yy_current_buffer ) - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); +} +#endif /* ifndef YY_NO_INPUT */ - yy_init_buffer( yy_current_buffer, input_file ); - yy_load_buffer_state(); +/** Immediately switch to a different input stream. + * @param input_file A readable stream. + * + * @note This function does not reset the start condition to @c INITIAL . + */ + void yyrestart (FILE * input_file ) +{ + + if ( ! YY_CURRENT_BUFFER ){ + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer(yyin,YY_BUF_SIZE ); } + yy_init_buffer(YY_CURRENT_BUFFER,input_file ); + yy_load_buffer_state( ); +} -#ifdef YY_USE_PROTOS -void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) -#else -void yy_switch_to_buffer( new_buffer ) -YY_BUFFER_STATE new_buffer; -#endif - { - if ( yy_current_buffer == new_buffer ) +/** Switch to a different input buffer. + * @param new_buffer The new input buffer. + * + */ + void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) +{ + + /* TODO. We should be able to replace this entire function body + * with + * yypop_buffer_state(); + * yypush_buffer_state(new_buffer); + */ + yyensure_buffer_stack (); + if ( YY_CURRENT_BUFFER == new_buffer ) return; - if ( yy_current_buffer ) + if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ - *yy_c_buf_p = yy_hold_char; - yy_current_buffer->yy_buf_pos = yy_c_buf_p; - yy_current_buffer->yy_n_chars = yy_n_chars; + *(yy_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 = new_buffer; - yy_load_buffer_state(); + YY_CURRENT_BUFFER_LVALUE = new_buffer; + yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ - yy_did_buffer_switch_on_eof = 1; - } - - -#ifdef YY_USE_PROTOS -void yy_load_buffer_state( void ) -#else -void yy_load_buffer_state() -#endif - { - yy_n_chars = yy_current_buffer->yy_n_chars; - yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; - yyin = yy_current_buffer->yy_input_file; - yy_hold_char = *yy_c_buf_p; - } + (yy_did_buffer_switch_on_eof) = 1; +} +static void yy_load_buffer_state (void) +{ + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + (yy_hold_char) = *(yy_c_buf_p); +} -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) -#else -YY_BUFFER_STATE yy_create_buffer( file, size ) -FILE *file; -int size; -#endif - { +/** Allocate and initialize an input buffer state. + * @param file A readable stream. + * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. + * + * @return the allocated buffer state. + */ + YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) +{ YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); @@ -2266,80 +2994,71 @@ int size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ - b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); + b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; - yy_init_buffer( b, file ); + yy_init_buffer(b,file ); return b; - } - +} -#ifdef YY_USE_PROTOS -void yy_delete_buffer( YY_BUFFER_STATE b ) -#else -void yy_delete_buffer( b ) -YY_BUFFER_STATE b; -#endif - { +/** Destroy the buffer. + * @param b a buffer created with yy_create_buffer() + * + */ + void yy_delete_buffer (YY_BUFFER_STATE b ) +{ + if ( ! b ) return; - if ( b == yy_current_buffer ) - yy_current_buffer = (YY_BUFFER_STATE) 0; + 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 ) - yy_flex_free( (void *) b->yy_ch_buf ); - - yy_flex_free( (void *) b ); - } + yyfree((void *) b->yy_ch_buf ); + yyfree((void *) b ); +} -#ifndef YY_ALWAYS_INTERACTIVE -#ifndef YY_NEVER_INTERACTIVE -extern int isatty YY_PROTO(( int )); -#endif -#endif - -#ifdef YY_USE_PROTOS -void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) -#else -void yy_init_buffer( b, file ) -YY_BUFFER_STATE b; -FILE *file; -#endif - +/* Initializes or reinitializes a buffer. + * This function is sometimes called more than once on the same buffer, + * such as during a yyrestart() or at EOF. + */ + static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) - { - yy_flush_buffer( b ); +{ + int oerrno = errno; + + yy_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; -#if YY_ALWAYS_INTERACTIVE - b->yy_is_interactive = 1; -#else -#if YY_NEVER_INTERACTIVE - b->yy_is_interactive = 0; -#else - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; -#endif -#endif - } - - -#ifdef YY_USE_PROTOS -void yy_flush_buffer( YY_BUFFER_STATE b ) -#else -void yy_flush_buffer( b ) -YY_BUFFER_STATE b; -#endif + /* If b is the current buffer, then yy_init_buffer was _probably_ + * called from yyrestart() or through yy_get_next_buffer. + * In that case, we don't want to reset the lineno or column. + */ + if (b != YY_CURRENT_BUFFER){ + b->yy_bs_lineno = 1; + b->yy_bs_column = 0; + } + + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; + + errno = oerrno; +} - { - if ( ! b ) +/** Discard all buffered characters. On the next scan, YY_INPUT will be called. + * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. + * + */ + void yy_flush_buffer (YY_BUFFER_STATE b ) +{ + if ( ! b ) return; b->yy_n_chars = 0; @@ -2356,29 +3075,125 @@ YY_BUFFER_STATE b; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; - if ( b == yy_current_buffer ) - yy_load_buffer_state(); + if ( b == YY_CURRENT_BUFFER ) + yy_load_buffer_state( ); +} + +/** Pushes the new state onto the stack. The new state becomes + * the current state. This function will allocate the stack + * if necessary. + * @param new_buffer The new state. + * + */ +void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) +{ + if (new_buffer == NULL) + return; + + yyensure_buffer_stack(); + + /* This block is copied from yy_switch_to_buffer. */ + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + /* Only push if top exists. Otherwise, replace top. */ + if (YY_CURRENT_BUFFER) + (yy_buffer_stack_top)++; + YY_CURRENT_BUFFER_LVALUE = new_buffer; + + /* copied from yy_switch_to_buffer. */ + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; +} + +/** Removes and deletes the top of the stack, if present. + * The next element becomes the new top. + * + */ +void yypop_buffer_state (void) +{ + if (!YY_CURRENT_BUFFER) + return; + + yy_delete_buffer(YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + if ((yy_buffer_stack_top) > 0) + --(yy_buffer_stack_top); + + if (YY_CURRENT_BUFFER) { + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; + } +} + +/* Allocates the stack if it does not exist. + * Guarantees space for at least one push. + */ +static void yyensure_buffer_stack (void) +{ + yy_size_t num_to_alloc; + + if (!(yy_buffer_stack)) { + + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. + */ + num_to_alloc = 1; + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc + (num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + + (yy_buffer_stack_max) = num_to_alloc; + (yy_buffer_stack_top) = 0; + return; } + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ -#ifndef YY_NO_SCAN_BUFFER -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) -#else -YY_BUFFER_STATE yy_scan_buffer( base, size ) -char *base; -yy_size_t size; -#endif - { - YY_BUFFER_STATE b; + /* Increase the buffer to prepare for a possible push. */ + int grow_size = 8 /* arbitrary grow size */; + + num_to_alloc = (yy_buffer_stack_max) + grow_size; + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc + ((yy_buffer_stack), + num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + /* zero only the new slots.*/ + memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); + (yy_buffer_stack_max) = num_to_alloc; + } +} +/** Setup the input buffer state to scan directly from a user-specified character buffer. + * @param base the character buffer + * @param size the size in bytes of the character buffer + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) +{ + YY_BUFFER_STATE b; + if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); @@ -2392,56 +3207,51 @@ yy_size_t size; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; - yy_switch_to_buffer( b ); + yy_switch_to_buffer(b ); return b; - } -#endif - - -#ifndef YY_NO_SCAN_STRING -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) -#else -YY_BUFFER_STATE yy_scan_string( yy_str ) -yyconst char *yy_str; -#endif - { - int len; - for ( len = 0; yy_str[len]; ++len ) - ; - - return yy_scan_bytes( yy_str, len ); - } -#endif +} +/** Setup the input buffer state to scan a string. The next call to yylex() will + * scan from a @e copy of @a str. + * @param yystr a NUL-terminated string to scan + * + * @return the newly allocated buffer state object. + * @note If you want to scan bytes that may contain NUL values, then use + * yy_scan_bytes() instead. + */ +YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) +{ + + return yy_scan_bytes(yystr,strlen(yystr) ); +} -#ifndef YY_NO_SCAN_BYTES -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) -#else -YY_BUFFER_STATE yy_scan_bytes( bytes, len ) -yyconst char *bytes; -int len; -#endif - { +/** Setup the input buffer state to scan the given bytes. The next call to yylex() will + * scan from a @e copy of @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) +{ YY_BUFFER_STATE b; char *buf; yy_size_t n; - int i; - + yy_size_t i; + /* Get memory for full buffer, including space for trailing EOB's. */ - n = len + 2; - buf = (char *) yy_flex_alloc( n ); + n = _yybytes_len + 2; + buf = (char *) yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); - for ( i = 0; i < len; ++i ) - buf[i] = bytes[i]; + for ( i = 0; i < _yybytes_len; ++i ) + buf[i] = yybytes[i]; - buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; + buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - b = yy_scan_buffer( buf, n ); + b = yy_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); @@ -2451,148 +3261,204 @@ int len; 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 ); +} -#ifndef YY_NO_PUSH_STATE -#ifdef YY_USE_PROTOS -static void yy_push_state( int new_state ) -#else -static void yy_push_state( new_state ) -int new_state; -#endif - { - if ( yy_start_stack_ptr >= yy_start_stack_depth ) - { - yy_size_t new_size; +/* Redefine yyless() so it works in section 3 code. */ - yy_start_stack_depth += YY_START_STACK_INCR; - new_size = yy_start_stack_depth * sizeof( int ); +#undef yyless +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + yytext[yyleng] = (yy_hold_char); \ + (yy_c_buf_p) = yytext + yyless_macro_arg; \ + (yy_hold_char) = *(yy_c_buf_p); \ + *(yy_c_buf_p) = '\0'; \ + yyleng = yyless_macro_arg; \ + } \ + while ( 0 ) - if ( ! yy_start_stack ) - yy_start_stack = (int *) yy_flex_alloc( new_size ); +/* Accessor methods (get/set functions) to struct members. */ - else - yy_start_stack = (int *) yy_flex_realloc( - (void *) yy_start_stack, new_size ); +/** Get the current line number. + * + */ +int yyget_lineno (void) +{ + + return yylineno; +} - if ( ! yy_start_stack ) - YY_FATAL_ERROR( - "out of memory expanding start-condition stack" ); - } +/** Get the input stream. + * + */ +FILE *yyget_in (void) +{ + return yyin; +} - yy_start_stack[yy_start_stack_ptr++] = YY_START; +/** Get the output stream. + * + */ +FILE *yyget_out (void) +{ + return yyout; +} - BEGIN(new_state); - } -#endif +/** Get the length of the current token. + * + */ +yy_size_t yyget_leng (void) +{ + return yyleng; +} +/** Get the current token. + * + */ -#ifndef YY_NO_POP_STATE -static void yy_pop_state() - { - if ( --yy_start_stack_ptr < 0 ) - YY_FATAL_ERROR( "start-condition stack underflow" ); +char *yyget_text (void) +{ + return yytext; +} - BEGIN(yy_start_stack[yy_start_stack_ptr]); - } -#endif +/** Set the current line number. + * @param line_number + * + */ +void yyset_lineno (int line_number ) +{ + + yylineno = line_number; +} +/** Set the input stream. This does not discard the current + * input buffer. + * @param in_str A readable stream. + * + * @see yy_switch_to_buffer + */ +void yyset_in (FILE * in_str ) +{ + yyin = in_str ; +} -#ifndef YY_NO_TOP_STATE -static int yy_top_state() - { - return yy_start_stack[yy_start_stack_ptr - 1]; - } -#endif +void yyset_out (FILE * out_str ) +{ + yyout = out_str ; +} -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif +int yyget_debug (void) +{ + return yy_flex_debug; +} + +void yyset_debug (int bdebug ) +{ + yy_flex_debug = bdebug ; +} -#ifdef YY_USE_PROTOS -static void yy_fatal_error( yyconst char msg[] ) +static int yy_init_globals (void) +{ + /* Initialization is the same as for the non-reentrant scanner. + * This function is called from yylex_destroy(), so don't allocate here. + */ + + (yy_buffer_stack) = 0; + (yy_buffer_stack_top) = 0; + (yy_buffer_stack_max) = 0; + (yy_c_buf_p) = (char *) 0; + (yy_init) = 0; + (yy_start) = 0; + + (yy_state_buf) = 0; + (yy_state_ptr) = 0; + (yy_full_match) = 0; + (yy_lp) = 0; + +/* Defined in main.c */ +#ifdef YY_STDINIT + yyin = stdin; + yyout = stdout; #else -static void yy_fatal_error( msg ) -char msg[]; + yyin = (FILE *) 0; + yyout = (FILE *) 0; #endif - { - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); - } + /* For future reference: Set errno on error, since we are called by + * yylex_init() + */ + return 0; +} +/* yylex_destroy is for both reentrant and non-reentrant scanners. */ +int yylex_destroy (void) +{ + + /* Pop the buffer stack, destroying each element. */ + while(YY_CURRENT_BUFFER){ + yy_delete_buffer(YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + yypop_buffer_state(); + } -/* Redefine yyless() so it works in section 3 code. */ + /* Destroy the stack itself. */ + yyfree((yy_buffer_stack) ); + (yy_buffer_stack) = NULL; -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - yytext[yyleng] = yy_hold_char; \ - yy_c_buf_p = yytext + n; \ - yy_hold_char = *yy_c_buf_p; \ - *yy_c_buf_p = '\0'; \ - yyleng = n; \ - } \ - while ( 0 ) + yyfree ( (yy_state_buf) ); + (yy_state_buf) = NULL; + + /* Reset the globals. This is important in a non-reentrant scanner so the next time + * yylex() is called, initialization will occur. */ + yy_init_globals( ); + return 0; +} -/* Internal utility routines. */ +/* + * Internal utility routines. + */ #ifndef yytext_ptr -#ifdef YY_USE_PROTOS -static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) -#else -static void yy_flex_strncpy( s1, s2, n ) -char *s1; -yyconst char *s2; -int n; -#endif - { +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 -#ifdef YY_USE_PROTOS -static int yy_flex_strlen( yyconst char *s ) -#else -static int yy_flex_strlen( s ) -yyconst char *s; -#endif - { +static int yy_flex_strlen (yyconst char * s ) +{ register int n; for ( n = 0; s[n]; ++n ) ; return n; - } +} #endif - -#ifdef YY_USE_PROTOS -static void *yy_flex_alloc( yy_size_t size ) -#else -static void *yy_flex_alloc( size ) -yy_size_t size; -#endif - { +void *yyalloc (yy_size_t size ) +{ return (void *) malloc( size ); - } +} -#ifdef YY_USE_PROTOS -static void *yy_flex_realloc( void *ptr, yy_size_t size ) -#else -static void *yy_flex_realloc( ptr, size ) -void *ptr; -yy_size_t size; -#endif - { +void *yyrealloc (void * ptr, yy_size_t size ) +{ /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter @@ -2601,23 +3467,16 @@ yy_size_t size; * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); - } +} + +void yyfree (void * ptr ) +{ + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ +} + +#define YYTABLES_NAME "yytables" + +#line 663 "lexer.l" + -#ifdef YY_USE_PROTOS -static void yy_flex_free( void *ptr ) -#else -static void yy_flex_free( ptr ) -void *ptr; -#endif - { - free( ptr ); - } -#if YY_MAIN -int main() - { - yylex(); - return 0; - } -#endif -#line 407 "lexer.l"