X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/8fcffcc668f4782447beb64a823cc15961cea9ab..6bec711e14babb0d6388754f41834036f22a3ef1:/src/lexer.c diff --git a/src/lexer.c b/src/lexer.c index bbab92d..cc13df5 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -1,67 +1,112 @@ -/* 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 35 +#if YY_FLEX_SUBMINOR_VERSION > 0 +#define FLEX_BETA +#endif +/* First, we deal with platform-specific or compiler-specific issues. */ + +/* begin standard C headers. */ #include +#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; +#endif /* ! C99 */ -#ifdef __cplusplus +/* 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 -#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 +121,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 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_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif +#ifndef YY_STRUCT_YY_BUFFER_STATE +#define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; @@ -177,12 +221,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 +244,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; /* 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,174 +283,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,int len ); + +void *yyalloc (yy_size_t ); +void *yyrealloc (void *,yy_size_t ); +void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ - if ( ! yy_current_buffer ) \ - 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 88 -#define YY_END_OF_BUFFER 89 -static yyconst short int yy_acclist[399] = +#define YY_NUM_RULES 122 +#define YY_END_OF_BUFFER 123 +/* 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[653] = { 0, - 89, 86, 88, 85, 86, 88, 1, 87, 88, 86, - 87, 88, 86, 88, 86, 88, 85, 86, 88, 86, - 88, 86, 88, 26, 86, 88, 1, 27, 87, 88, - 26, 86, 87, 88, 26, 86, 88, 26, 86, 88, - 49, 86, 88, 1, 50, 87, 88, 49, 86, 87, - 88, 42, 49, 86, 88, 49, 86, 88, 49, 86, - 88, 49, 86, 88, 47, 49, 86, 88, 48, 49, - 86, 88, 49, 86, 88, 49, 86, 88, 45, 86, - 88, 1, 46, 87, 88, 45, 86, 87, 88, 44, - 45, 86, 88, 45, 86, 88, 86, 88, 86, 88, - - 80, 86, 88, 80, 86, 88, 80, 86, 88, 80, - 86, 88, 82, 86, 88, 86, 88, 86, 88, 77, - 86, 88, 77, 86, 88, 86, 88, 80, 86, 88, - 80, 86, 88, 80, 86, 88, 80, 86, 88, 80, - 86, 88, 80, 86, 88, 80, 86, 88, 80, 86, - 88, 80, 86, 88, 80, 86, 88, 80, 86, 88, - 80, 86, 88, 83, 86, 88, 84, 86, 88, 9, - 86, 88, 9, 86, 87, 88, 9, 86, 88, 9, - 86, 88, 9, 86, 88, 14, 86, 88, 14, 86, - 87, 88, 14, 86, 88, 14, 86, 88, 14, 86, - - 88, 17, 86, 88, 17, 86, 87, 88, 17, 86, - 88, 21, 33, 25, 22, 41, 34, 43, 23, 79, - 80, 78, 80, 80, 80, 77, 24, 77, 77, 81, - 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, - 80, 80, 80, 80, 80, 80, 80, 80, 8, 6, - 13, 10, 12, 11, 13, 16, 15, 3, 28, 32, - 39, 35, 37, 18, 19, 79, 79, 78, 80, 80, - 80, 68, 77, 20, 77, 77, 80, 80, 80, 80, - 80, 80, 80, 63, 80, 80, 80, 80, 80, 80, - 80, 80, 80, 80, 80, 80, 80, 11, 29, 30, - - 31, 40, 36, 38, 79, 80, 54, 80, 53, 80, - 5, 80, 66, 80, 80, 80, 80, 58, 80, 80, - 61, 80, 80, 80, 80, 80, 80, 80, 80, 80, - 80, 80, 55, 80, 7, 51, 80, 53, 80, 67, - 80, 80, 64, 80, 80, 80, 80, 80, 62, 80, - 80, 80, 80, 57, 80, 80, 80, 80, 80, 65, - 80, 80, 80, 80, 69, 80, 75, 80, 59, 80, - 56, 80, 80, 80, 80, 80, 80, 70, 80, 80, - 80, 74, 80, 73, 80, 80, 76, 80, 80, 60, - 80, 72, 80, 71, 80, 2, 4, 52 - + 123, 120, 122, 118, 120, 122, 1, 119, 122, 119, + 120, 122, 120, 122, 120, 122, 120, 122, 107, 120, + 122, 107, 120, 122, 120, 122, 111, 120, 122, 111, + 120, 122, 111, 120, 122, 111, 120, 122, 118, 120, + 122, 120, 122, 120, 122, 111, 120, 122, 111, 120, + 122, 29, 120, 122, 1, 30, 119, 122, 29, 119, + 120, 122, 29, 120, 122, 29, 120, 122, 29, 120, + 122, 55, 120, 122, 1, 56, 119, 122, 55, 119, + 120, 122, 47, 55, 120, 122, 55, 120, 122, 55, + 120, 122, 55, 120, 122, 53, 55, 120, 122, 54, + + 55, 120, 122, 55, 120, 122, 55, 120, 122, 51, + 120, 122, 1, 52, 119, 122, 51, 119, 120, 122, + 50, 51, 120, 122, 51, 120, 122, 51, 120, 122, + 64, 120, 122, 120, 122, 111, 120, 122, 111, 120, + 122, 111, 120, 122, 115, 120, 122, 67, 120, 122, + 1, 68, 119, 122, 67, 119, 120, 122, 66, 67, + 120, 122, 67, 120, 122, 67, 120, 122, 120, 122, + 120, 122, 120, 122, 120, 122, 111, 120, 122, 111, + 120, 122, 111, 120, 122, 111, 120, 122, 111, 120, + 122, 111, 120, 122, 111, 120, 122, 111, 120, 122, + + 111, 120, 122, 111, 120, 122, 111, 120, 122, 111, + 120, 122, 116, 120, 122, 117, 120, 122, 104, 120, + 122, 48, 120, 122, 105, 120, 122, 106, 120, 122, + 120, 122, 111, 120, 122, 111, 120, 122, 111, 120, + 122, 111, 120, 122, 111, 120, 122, 111, 120, 122, + 111, 120, 122, 111, 120, 122, 111, 120, 122, 111, + 120, 122, 111, 120, 122, 111, 120, 122, 10, 120, + 122, 10, 119, 120, 122, 10, 120, 122, 10, 120, + 122, 10, 120, 122, 10, 120, 122, 15, 120, 122, + 15, 119, 120, 122, 15, 120, 122, 15, 120, 122, + + 15, 120, 122, 15, 120, 122, 18, 120, 122, 18, + 119, 120, 122, 18, 120, 122, 18, 120, 122, 107, + 23, 107, 107, 110, 111, 111, 111, 111, 111, 36, + 111, 111, 28, 24, 46, 39, 49, 25, 111, 111, + 111, 65, 26, 114, 113, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 27, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 9, 7, 14, 13, + 11, 12, 14, 17, 16, 112, 112, 107, 3, 107, + 107, 110, 108, 109, 111, 111, 111, 111, 31, 35, + + 111, 111, 44, 40, 42, 19, 20, 111, 111, 111, + 82, 21, 111, 111, 111, 111, 111, 111, 111, 77, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 22, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 12, 110, 108, 109, + 111, 59, 111, 111, 111, 38, 32, 37, 33, 34, + 111, 111, 45, 41, 43, 111, 63, 111, 62, 111, + 6, 111, 80, 111, 111, 111, 111, 72, 111, 111, + 75, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 69, 111, 111, 111, 111, 72, 111, + + 111, 111, 111, 92, 111, 111, 111, 111, 98, 111, + 8, 110, 57, 111, 58, 111, 60, 111, 111, 111, + 111, 62, 111, 81, 111, 111, 78, 111, 111, 111, + 111, 111, 111, 76, 111, 111, 111, 111, 71, 111, + 111, 111, 93, 111, 111, 111, 111, 97, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 79, 111, 111, + 111, 111, 111, 83, 111, 89, 111, 73, 111, 70, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 4, 111, 111, 111, 111, 111, 84, 111, 111, + 111, 111, 88, 111, 111, 111, 111, 111, 94, 111, + + 95, 111, 111, 111, 111, 111, 87, 111, 111, 90, + 111, 91, 111, 111, 74, 111, 111, 111, 111, 111, + 111, 111, 86, 111, 85, 111, 111, 111, 100, 111, + 111, 111, 111, 4, 2, 102, 111, 111, 99, 111, + 111, 101, 111, 121, 5, 111, 103, 111, 111, 96, + 111, 61 } ; -static yyconst short int yy_accept[358] = +static yyconst flex_int16_t yy_accept[567] = { 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, 20, 22, 24, 27, - 31, 35, 38, 41, 44, 48, 52, 56, 59, 62, - 65, 69, 73, 76, 79, 82, 86, 90, 94, 97, - 99, 101, 104, 107, 110, 113, 116, 118, 120, 123, - 126, 128, 131, 134, 137, 140, 143, 146, 149, 152, - 155, 158, 161, 164, 167, 170, 173, 177, 180, 183, - 186, 189, 193, 196, 199, 202, 205, 209, 212, 213, - 213, 213, 213, 213, 213, 213, 213, 214, 214, 215, - - 215, 215, 215, 215, 215, 216, 216, 217, 217, 217, - 218, 219, 220, 220, 221, 222, 223, 224, 225, 226, - 226, 227, 228, 228, 228, 229, 229, 229, 230, 230, - 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, - 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, - 250, 250, 250, 250, 251, 251, 252, 252, 252, 252, - 253, 254, 254, 256, 257, 258, 258, 259, 259, 259, - 259, 260, 260, 260, 261, 261, 261, 261, 261, 262, - 262, 262, 262, 263, 264, 264, 265, 265, 265, 266, - 267, 268, 269, 270, 271, 272, 273, 274, 274, 274, - - 275, 276, 277, 277, 277, 278, 279, 280, 281, 282, - 283, 284, 286, 287, 288, 289, 290, 291, 292, 293, - 294, 295, 296, 297, 298, 298, 299, 299, 299, 300, - 300, 301, 302, 302, 302, 302, 303, 304, 305, 305, - 306, 307, 309, 311, 311, 312, 313, 315, 316, 317, - 318, 320, 321, 323, 324, 325, 326, 327, 328, 329, - 330, 331, 332, 333, 335, 335, 336, 336, 336, 337, - 337, 337, 337, 337, 337, 337, 338, 340, 342, 343, - 345, 346, 347, 348, 349, 351, 352, 353, 354, 356, - 357, 358, 358, 358, 358, 358, 358, 358, 359, 360, - - 362, 363, 364, 365, 367, 369, 371, 373, 374, 375, - 375, 375, 375, 375, 375, 376, 377, 378, 380, 381, - 382, 384, 384, 384, 384, 384, 384, 386, 387, 389, - 390, 392, 392, 392, 392, 392, 392, 392, 394, 396, - 396, 396, 396, 397, 397, 397, 397, 397, 398, 398, - 398, 398, 398, 398, 398, 399, 399 + 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, + 171, 173, 175, 177, 180, 183, 186, 189, 192, 195, + 198, 201, 204, 207, 210, 213, 216, 219, 222, 225, + + 228, 231, 233, 236, 239, 242, 245, 248, 251, 254, + 257, 260, 263, 266, 269, 272, 276, 279, 282, 285, + 288, 291, 295, 298, 301, 304, 307, 310, 314, 317, + 320, 320, 320, 321, 322, 322, 322, 323, 323, 323, + 324, 325, 326, 326, 327, 328, 329, 330, 330, 330, + 330, 330, 330, 330, 330, 330, 330, 331, 332, 333, + 334, 334, 334, 334, 334, 334, 335, 335, 336, 336, + 336, 337, 338, 339, 339, 340, 341, 342, 343, 343, + 344, 344, 345, 345, 345, 346, 347, 348, 349, 350, + 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, + + 361, 362, 363, 364, 365, 365, 366, 367, 368, 369, + 370, 371, 372, 373, 374, 375, 376, 377, 378, 378, + 378, 378, 379, 379, 380, 380, 380, 381, 382, 382, + 384, 385, 386, 387, 387, 388, 389, 389, 390, 391, + 392, 393, 393, 394, 395, 396, 397, 398, 399, 399, + 399, 399, 399, 399, 399, 399, 400, 400, 400, 400, + 401, 401, 401, 402, 403, 403, 404, 404, 404, 404, + 405, 406, 406, 407, 407, 407, 408, 409, 410, 411, + 412, 412, 412, 413, 413, 413, 414, 415, 416, 417, + 418, 419, 420, 422, 423, 424, 425, 426, 427, 428, + + 429, 430, 431, 432, 433, 434, 434, 435, 436, 437, + 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, + 447, 448, 448, 449, 450, 450, 451, 451, 452, 454, + 455, 456, 456, 456, 456, 457, 457, 457, 458, 458, + 459, 459, 460, 461, 461, 462, 463, 463, 464, 465, + 466, 466, 467, 469, 471, 471, 472, 473, 475, 476, + 477, 478, 480, 481, 483, 484, 485, 486, 487, 488, + 489, 490, 491, 492, 493, 494, 496, 497, 498, 499, + 501, 502, 503, 504, 506, 507, 508, 509, 511, 511, + 512, 512, 512, 513, 515, 517, 519, 519, 519, 519, + + 519, 519, 519, 519, 519, 520, 521, 521, 521, 522, + 524, 526, 527, 529, 530, 531, 532, 533, 534, 536, + 537, 538, 539, 541, 542, 543, 545, 546, 547, 548, + 550, 551, 552, 553, 554, 554, 554, 554, 554, 554, + 554, 554, 555, 556, 556, 556, 557, 558, 560, 561, + 562, 563, 564, 566, 568, 570, 572, 573, 574, 575, + 576, 577, 578, 579, 580, 581, 582, 582, 582, 583, + 583, 583, 583, 584, 585, 585, 585, 586, 587, 588, + 590, 591, 592, 593, 595, 596, 597, 598, 599, 601, + 603, 604, 605, 605, 605, 605, 605, 605, 605, 606, + + 607, 607, 607, 609, 610, 612, 614, 615, 617, 618, + 619, 620, 621, 622, 623, 623, 623, 623, 623, 623, + 623, 623, 623, 623, 623, 623, 625, 627, 628, 629, + 631, 632, 633, 634, 634, 635, 635, 635, 635, 635, + 635, 636, 636, 638, 639, 641, 642, 644, 644, 644, + 645, 645, 645, 646, 647, 649, 649, 649, 650, 650, + 650, 652, 652, 652, 653, 653 } ; -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, 10, - 11, 12, 1, 1, 1, 13, 14, 15, 16, 17, - 17, 17, 17, 17, 17, 18, 18, 19, 1, 20, - 1, 21, 1, 1, 22, 22, 22, 22, 23, 22, - 24, 24, 25, 24, 24, 24, 24, 24, 24, 24, - 24, 26, 27, 24, 24, 24, 24, 24, 24, 24, - 28, 29, 30, 1, 24, 1, 31, 32, 33, 34, - - 35, 36, 37, 38, 39, 24, 24, 40, 41, 42, - 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, - 24, 24, 53, 1, 54, 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, @@ -409,334 +542,501 @@ static yyconst int yy_ec[256] = 1, 1, 1, 1, 1 } ; -static yyconst int yy_meta[55] = +static yyconst flex_int32_t yy_meta[60] = { 0, - 1, 2, 3, 1, 2, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 4, 4, 4, 4, 5, 1, - 1, 6, 6, 7, 7, 7, 7, 1, 1, 8, - 6, 6, 6, 6, 6, 6, 7, 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[383] = +static yyconst flex_int16_t yy_base[600] = { 0, - 0, 4, 7, 13, 17, 69, 24, 36, 123, 0, - 165, 0, 31, 52, 48, 77, 55, 81, 848, 849, - 849, 849, 849, 1, 807, 42, 56, 811, 849, 849, - 849, 831, 817, 849, 849, 849, 849, 57, 10, 0, - 849, 849, 27, 789, 849, 849, 849, 849, 0, 78, - 0, 823, 22, 49, 77, 849, 86, 93, 171, 101, - 209, 171, 173, 26, 55, 72, 178, 187, 172, 183, - 202, 191, 209, 849, 849, 849, 849, 827, 232, 233, - 849, 849, 826, 241, 252, 836, 835, 228, 849, 834, - 805, 254, 800, 220, 210, 75, 849, 789, 849, 0, - - 824, 243, 823, 822, 849, 827, 849, 260, 787, 849, - 849, 849, 825, 808, 807, 806, 17, 232, 242, 811, - 254, 811, 819, 261, 267, 273, 0, 288, 277, 791, - 792, 166, 30, 89, 268, 279, 283, 290, 289, 292, - 294, 296, 175, 293, 301, 295, 303, 297, 305, 849, - 343, 316, 344, 849, 349, 849, 351, 355, 359, 849, - 363, 805, 849, 849, 849, 815, 849, 770, 776, 762, - 849, 783, 760, 849, 759, 772, 761, 783, 849, 799, - 798, 797, 849, 849, 802, 849, 771, 800, 849, 783, - 782, 781, 312, 351, 352, 849, 357, 374, 796, 849, - - 365, 0, 768, 370, 359, 365, 370, 371, 298, 372, - 374, 778, 375, 376, 377, 378, 379, 382, 383, 384, - 387, 385, 388, 306, 418, 849, 749, 361, 849, 761, - 849, 849, 744, 754, 767, 849, 849, 849, 751, 771, - 391, 770, 769, 429, 849, 410, 768, 396, 397, 416, - 767, 420, 766, 421, 422, 423, 425, 427, 428, 429, - 430, 433, 431, 765, 452, 849, 471, 476, 849, 740, - 747, 750, 734, 0, 730, 442, 441, 759, 447, 758, - 446, 450, 464, 467, 757, 465, 468, 469, 756, 452, - 470, 730, 727, 724, 736, 742, 723, 472, 474, 723, - - 476, 477, 480, 722, 716, 713, 674, 484, 485, 458, - 644, 619, 648, 560, 488, 489, 496, 575, 497, 490, - 574, 549, 553, 321, 504, 524, 570, 499, 566, 508, - 555, 520, 527, 528, 522, 536, 529, 531, 308, 243, - 542, 550, 849, 535, 233, 554, 542, 849, 160, 560, - 60, 564, 581, 585, 849, 849, 599, 607, 615, 623, - 631, 639, 647, 655, 663, 666, 670, 674, 682, 690, - 698, 706, 711, 715, 722, 727, 730, 737, 741, 747, - 754, 762 + 0, 58, 58, 65, 69, 126, 80, 85, 74, 87, + 93, 113, 172, 1354, 131, 136, 225, 1353, 100, 147, + 135, 159, 175, 190, 1360, 1363, 1363, 1363, 1363, 1329, + 225, 62, 231, 237, 0, 1338, 42, 150, 60, 232, + 63, 164, 156, 77, 1363, 1363, 1363, 1342, 173, 1328, + 1363, 1363, 1363, 1363, 245, 104, 0, 1363, 1363, 279, + 1296, 1363, 1363, 1363, 1363, 0, 262, 1363, 144, 110, + 161, 143, 1363, 1363, 1363, 1363, 1363, 0, 282, 275, + 214, 279, 283, 171, 285, 263, 182, 138, 219, 266, + 213, 287, 295, 270, 292, 1363, 1363, 1363, 1363, 1363, + + 1363, 296, 297, 298, 311, 288, 170, 310, 301, 326, + 329, 330, 299, 307, 1363, 1363, 1339, 351, 322, 366, + 1363, 1363, 1338, 361, 353, 373, 1349, 1348, 243, 381, + 1340, 1339, 373, 1363, 1345, 377, 384, 390, 0, 396, + 1327, 1326, 1325, 332, 358, 379, 385, 371, 1294, 1306, + 414, 1301, 386, 1289, 389, 377, 1363, 198, 403, 1363, + 0, 1330, 373, 1329, 1328, 1363, 1334, 1363, 431, 1290, + 1363, 1363, 1363, 1332, 415, 408, 416, 1363, 1320, 1320, + 1329, 443, 447, 1300, 1301, 62, 420, 423, 422, 414, + 426, 429, 419, 431, 237, 449, 450, 434, 453, 430, + + 454, 462, 463, 1363, 1326, 465, 466, 468, 467, 469, + 471, 473, 474, 479, 478, 487, 477, 1363, 511, 508, + 527, 1363, 529, 1363, 532, 534, 540, 1363, 1313, 1363, + 1363, 1363, 1363, 1317, 1316, 534, 1322, 1363, 538, 0, + 1304, 0, 1303, 1302, 488, 503, 521, 524, 1284, 1271, + 1273, 1260, 1265, 1272, 1257, 1363, 511, 1281, 1255, 1363, + 1254, 1270, 539, 540, 1283, 1363, 1299, 1298, 1297, 1363, + 1363, 1303, 1363, 1270, 1301, 1363, 541, 542, 544, 1363, + 564, 1300, 1363, 1271, 557, 545, 551, 557, 558, 481, + 559, 561, 1281, 560, 562, 563, 566, 341, 565, 564, + + 569, 576, 570, 577, 571, 1297, 1363, 580, 582, 583, + 586, 585, 593, 600, 601, 605, 606, 607, 608, 630, + 1363, 645, 1279, 1278, 1277, 1276, 1275, 615, 1274, 617, + 618, 1260, 1239, 1254, 1363, 1253, 588, 1363, 1241, 1363, + 1252, 1363, 1363, 1233, 629, 623, 1260, 1363, 1363, 1363, + 1241, 632, 1264, 1263, 652, 1363, 636, 1262, 637, 639, + 640, 1261, 641, 1260, 642, 643, 645, 648, 654, 650, + 657, 651, 652, 658, 655, 1259, 667, 660, 659, 679, + 669, 680, 683, 1258, 684, 685, 686, 1257, 707, 1363, + 712, 731, 1256, 1255, 1254, 1253, 1228, 1230, 715, 1220, + + 1222, 1210, 1230, 1233, 687, 696, 0, 1212, 702, 704, + 1244, 706, 1243, 707, 709, 715, 716, 718, 1242, 720, + 721, 722, 1241, 724, 725, 1240, 730, 727, 729, 734, + 732, 735, 740, 736, 1215, 1208, 761, 1221, 1208, 1205, + 1202, 749, 752, 1229, 1216, 753, 756, 1231, 755, 763, + 762, 764, 1230, 1229, 1228, 1227, 766, 767, 770, 773, + 774, 775, 778, 781, 785, 782, 1199, 1203, 802, 1201, + 754, 1193, 789, 787, 1218, 1191, 790, 793, 795, 1198, + 808, 810, 813, 1187, 815, 816, 819, 817, 1186, 1171, + 821, 820, 1155, 1138, 1181, 1137, 1086, 1082, 844, 849, + + 826, 850, 1083, 833, 1077, 1068, 839, 1058, 834, 837, + 841, 838, 840, 842, 874, 877, 1061, 1008, 927, 936, + 882, 887, 891, 899, 864, 952, 951, 875, 848, 950, + 876, 846, 882, 962, 1363, 917, 934, 918, 909, 926, + 1363, 907, 872, 843, 483, 902, 480, 409, 944, 1363, + 914, 933, 1363, 921, 302, 178, 935, 928, 127, 940, + 117, 960, 958, 1363, 1363, 979, 989, 999, 1009, 1019, + 1029, 1039, 1049, 1052, 1056, 1065, 1075, 1085, 1090, 1100, + 1110, 1115, 1118, 1121, 1130, 1140, 1150, 1160, 1165, 1175, + 1184, 1186, 1190, 1194, 1202, 1206, 1215, 1225, 1235 + } ; -static yyconst short int yy_def[383] = +static yyconst flex_int16_t yy_def[600] = { 0, - 357, 357, 358, 358, 359, 359, 360, 360, 356, 9, - 9, 11, 361, 361, 362, 362, 363, 363, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 364, - 356, 356, 356, 356, 356, 356, 356, 356, 365, 356, - 366, 367, 367, 367, 367, 356, 356, 356, 356, 356, - 368, 367, 367, 367, 367, 367, 367, 367, 367, 367, - 367, 367, 367, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 369, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 370, - - 356, 356, 356, 356, 356, 371, 356, 356, 356, 356, - 356, 356, 372, 373, 367, 374, 367, 367, 367, 356, - 356, 356, 375, 356, 356, 356, 376, 356, 356, 377, - 356, 367, 367, 367, 367, 367, 367, 367, 367, 367, - 367, 367, 367, 367, 367, 367, 367, 367, 367, 356, - 356, 356, 356, 356, 378, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 369, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 371, 356, 356, 372, 356, 373, - 379, 374, 367, 367, 367, 356, 356, 356, 375, 356, - - 356, 376, 377, 368, 367, 367, 367, 367, 367, 367, - 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, - 367, 367, 367, 367, 380, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 379, - 367, 367, 367, 356, 356, 367, 367, 367, 367, 367, - 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, - 367, 367, 367, 367, 356, 356, 380, 356, 356, 356, - 356, 356, 356, 381, 356, 367, 367, 367, 367, 367, - 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, - 367, 356, 356, 356, 356, 356, 356, 367, 367, 367, - - 367, 367, 367, 367, 367, 367, 367, 367, 367, 356, - 356, 356, 356, 356, 367, 367, 367, 367, 367, 367, - 367, 356, 356, 356, 356, 356, 367, 367, 367, 367, - 367, 356, 356, 356, 356, 356, 356, 367, 367, 356, - 356, 356, 356, 382, 356, 356, 382, 356, 356, 356, - 356, 356, 356, 356, 356, 0, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356 + 565, 1, 566, 566, 567, 567, 568, 568, 1, 1, + 569, 569, 1, 13, 1, 1, 1, 17, 570, 570, + 571, 571, 572, 572, 565, 565, 565, 565, 565, 573, + 565, 565, 565, 565, 574, 575, 575, 575, 575, 565, + 565, 565, 575, 575, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 576, 565, 565, 565, + 565, 565, 565, 565, 565, 577, 565, 565, 565, 575, + 575, 575, 565, 565, 565, 565, 565, 578, 565, 565, + 565, 574, 579, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 565, 565, 565, 565, 565, + + 565, 565, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 580, 565, 565, 581, 565, 565, 565, 582, 565, + 583, 575, 584, 575, 575, 575, 575, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 575, 575, 565, + 585, 565, 565, 565, 565, 565, 586, 565, 565, 565, + 565, 565, 565, 587, 575, 575, 575, 565, 565, 565, + 588, 565, 565, 589, 565, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + + 575, 575, 575, 565, 590, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 565, 565, 565, + 565, 565, 591, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 581, 565, 565, 582, + 583, 592, 593, 594, 575, 575, 575, 575, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 575, 575, 565, 565, 565, 565, 565, 565, + 565, 586, 565, 565, 587, 565, 575, 575, 575, 565, + 565, 588, 565, 589, 579, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + + 575, 575, 575, 575, 575, 590, 565, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 595, + 565, 565, 596, 593, 565, 594, 584, 575, 575, 575, + 575, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 575, 575, 565, 565, 565, 565, + 565, 575, 575, 575, 565, 565, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 565, 565, + 595, 565, 596, 575, 575, 575, 565, 565, 565, 565, + + 565, 565, 565, 565, 575, 575, 597, 565, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 565, 565, 565, 565, 565, 565, + 565, 575, 575, 565, 565, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 565, 565, 565, 565, + 565, 565, 575, 575, 565, 565, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 565, 565, 565, 565, 565, 565, 575, 575, + + 565, 565, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 565, 565, 598, 565, 565, 565, + 565, 565, 565, 565, 565, 575, 575, 575, 575, 575, + 575, 575, 575, 598, 565, 565, 565, 565, 565, 565, + 565, 599, 575, 575, 575, 575, 575, 565, 565, 565, + 565, 599, 565, 575, 575, 565, 565, 575, 565, 565, + 575, 565, 565, 565, 0, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565 + } ; -static yyconst short int yy_nxt[904] = +static yyconst flex_int16_t yy_nxt[1423] = { 0, - 356, 21, 22, 23, 21, 26, 22, 23, 26, 30, - 31, 27, 89, 24, 90, 30, 31, 24, 32, 35, - 36, 105, 37, 106, 32, 38, 46, 47, 108, 48, - 39, 108, 25, 22, 77, 116, 25, 33, 46, 47, - 116, 48, 78, 92, 116, 40, 92, 193, 116, 28, - 22, 82, 49, 79, 22, 77, 79, 22, 87, 83, - 206, 117, 101, 80, 49, 109, 88, 116, 136, 41, - 42, 35, 36, 116, 37, 43, 44, 38, 84, 22, - 82, 84, 39, 22, 87, 102, 94, 93, 85, 112, - 116, 113, 88, 95, 118, 116, 137, 40, 120, 96, - - 121, 121, 121, 121, 122, 175, 123, 116, 97, 103, - 104, 138, 175, 124, 119, 128, 128, 128, 128, 207, - 176, 41, 42, 20, 21, 22, 23, 21, 20, 20, - 20, 20, 20, 20, 20, 20, 50, 20, 20, 20, - 20, 51, 20, 20, 52, 52, 52, 52, 52, 52, - 20, 20, 20, 52, 52, 53, 52, 52, 54, 52, - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, - 55, 52, 52, 52, 52, 56, 20, 57, 58, 59, - 60, 60, 60, 124, 116, 125, 125, 125, 126, 116, - 116, 116, 61, 116, 351, 62, 116, 63, 64, 65, - - 66, 116, 205, 67, 68, 116, 217, 69, 70, 116, - 133, 71, 134, 72, 73, 135, 132, 74, 75, 139, - 116, 141, 127, 129, 129, 129, 129, 116, 142, 140, - 164, 143, 147, 151, 153, 154, 151, 155, 131, 144, - 145, 165, 157, 152, 172, 157, 150, 148, 180, 146, - 116, 149, 158, 159, 160, 92, 161, 173, 92, 169, - 116, 108, 174, 162, 108, 163, 349, 170, 197, 197, - 197, 197, 171, 345, 194, 201, 201, 201, 201, 124, - 195, 125, 125, 125, 126, 124, 116, 126, 126, 126, - 126, 129, 129, 129, 129, 181, 182, 116, 109, 93, - - 124, 116, 128, 128, 128, 128, 131, 116, 116, 208, - 116, 116, 116, 116, 116, 116, 116, 153, 154, 116, - 155, 116, 334, 116, 116, 334, 116, 209, 214, 250, - 116, 210, 211, 213, 215, 218, 212, 219, 216, 264, - 220, 221, 223, 224, 151, 153, 154, 151, 153, 222, - 153, 154, 157, 153, 152, 157, 159, 160, 241, 161, - 159, 160, 158, 159, 159, 160, 162, 159, 226, 116, - 116, 197, 197, 197, 197, 244, 245, 116, 244, 201, - 201, 201, 201, 116, 129, 129, 129, 129, 116, 116, - 116, 242, 116, 116, 116, 116, 116, 116, 243, 131, - - 116, 116, 116, 116, 252, 116, 116, 246, 270, 116, - 247, 253, 251, 171, 116, 116, 248, 249, 257, 265, - 266, 254, 265, 262, 259, 256, 255, 258, 116, 261, - 244, 245, 260, 244, 116, 263, 268, 243, 116, 116, - 116, 116, 277, 116, 278, 116, 116, 116, 116, 116, - 276, 116, 282, 265, 266, 279, 265, 283, 286, 116, - 116, 288, 287, 284, 116, 116, 281, 280, 116, 290, - 116, 289, 265, 266, 285, 265, 298, 265, 266, 291, - 265, 300, 116, 116, 301, 116, 116, 116, 116, 268, - 116, 299, 116, 308, 116, 116, 303, 302, 116, 304, - - 309, 306, 116, 116, 305, 322, 116, 116, 116, 317, - 174, 318, 316, 315, 116, 116, 307, 116, 320, 335, - 336, 336, 328, 331, 321, 337, 116, 319, 337, 334, - 329, 330, 334, 338, 344, 327, 342, 342, 342, 342, - 348, 339, 341, 341, 341, 341, 343, 348, 344, 116, - 342, 342, 342, 342, 346, 348, 341, 341, 341, 341, - 343, 340, 348, 173, 342, 342, 342, 342, 350, 350, - 350, 350, 352, 116, 350, 350, 350, 350, 353, 353, - 353, 353, 354, 355, 116, 354, 354, 355, 116, 354, - 333, 332, 116, 116, 326, 353, 353, 353, 353, 20, - - 20, 20, 20, 20, 20, 20, 20, 29, 29, 29, - 29, 29, 29, 29, 29, 34, 34, 34, 34, 34, - 34, 34, 34, 45, 45, 45, 45, 45, 45, 45, - 45, 76, 76, 76, 76, 76, 76, 76, 76, 81, - 81, 81, 81, 81, 81, 81, 81, 86, 86, 86, - 86, 86, 86, 86, 86, 107, 107, 325, 107, 107, - 107, 107, 107, 111, 111, 324, 111, 111, 111, 111, - 111, 114, 114, 115, 115, 115, 115, 130, 323, 130, - 130, 130, 166, 166, 166, 166, 166, 166, 166, 166, - 178, 178, 116, 178, 178, 178, 178, 178, 185, 185, - - 185, 185, 185, 185, 185, 185, 188, 188, 188, 188, - 188, 188, 188, 188, 190, 190, 190, 190, 192, 192, - 192, 192, 199, 199, 199, 199, 199, 199, 199, 199, - 202, 116, 202, 203, 116, 203, 203, 203, 225, 225, - 116, 116, 225, 225, 240, 240, 240, 240, 267, 267, - 267, 267, 267, 267, 296, 296, 314, 296, 296, 296, - 296, 296, 347, 347, 313, 347, 347, 347, 347, 347, - 312, 311, 310, 170, 116, 116, 116, 116, 297, 295, - 294, 293, 292, 116, 116, 116, 116, 116, 116, 191, - 275, 274, 273, 272, 271, 269, 116, 131, 200, 116, - - 191, 191, 189, 239, 186, 238, 237, 236, 235, 234, - 233, 232, 231, 230, 229, 228, 227, 167, 226, 204, - 131, 200, 198, 196, 116, 116, 191, 189, 187, 186, - 184, 183, 179, 177, 98, 168, 167, 164, 164, 156, - 150, 116, 110, 100, 99, 98, 91, 356, 19, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - - 356, 356, 356 + 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, 143, 47, 40, 151, 41, 42, 46, 151, 47, + 48, 52, 49, 53, 134, 54, 135, 48, 55, 143, + 68, 143, 63, 56, 64, 144, 65, 63, 69, 64, + 50, 65, 67, 68, 41, 75, 143, 76, 57, 77, + + 286, 69, 28, 147, 116, 43, 152, 44, 70, 66, + 36, 71, 117, 159, 66, 75, 166, 76, 167, 77, + 79, 70, 78, 36, 71, 72, 58, 59, 52, 143, + 53, 73, 54, 60, 61, 55, 143, 28, 72, 122, + 56, 98, 78, 41, 73, 26, 98, 123, 118, 28, + 26, 116, 118, 175, 119, 57, 173, 143, 174, 120, + 124, 28, 143, 122, 124, 36, 125, 36, 36, 143, + 36, 126, 36, 36, 151, 143, 261, 28, 151, 128, + 143, 192, 177, 58, 59, 80, 81, 129, 96, 143, + 143, 82, 28, 96, 128, 145, 153, 130, 154, 146, + + 83, 143, 129, 155, 84, 158, 85, 86, 87, 88, + 176, 156, 89, 210, 559, 90, 152, 143, 91, 92, + 186, 157, 93, 72, 94, 95, 180, 191, 181, 96, + 97, 99, 143, 148, 263, 100, 101, 148, 143, 102, + 133, 133, 133, 133, 136, 231, 137, 137, 137, 138, + 136, 162, 140, 140, 140, 140, 143, 232, 103, 104, + 105, 106, 107, 151, 193, 89, 195, 151, 90, 108, + 109, 110, 111, 295, 163, 112, 113, 94, 114, 149, + 169, 150, 143, 151, 169, 143, 139, 151, 179, 143, + 133, 133, 133, 133, 182, 182, 182, 182, 183, 183, + + 183, 183, 164, 165, 143, 152, 143, 143, 204, 190, + 205, 143, 194, 185, 143, 201, 143, 143, 143, 170, + 143, 143, 152, 151, 187, 152, 143, 151, 188, 143, + 143, 189, 202, 209, 198, 199, 196, 187, 203, 197, + 206, 213, 211, 207, 189, 143, 200, 208, 143, 143, + 212, 143, 219, 203, 151, 217, 219, 190, 151, 214, + 143, 215, 225, 220, 245, 152, 225, 221, 222, 198, + 216, 223, 148, 226, 227, 228, 148, 143, 227, 267, + 218, 200, 151, 231, 369, 229, 151, 230, 236, 236, + 236, 236, 239, 239, 239, 239, 152, 136, 143, 137, + + 137, 137, 138, 136, 143, 138, 138, 138, 138, 136, + 246, 140, 140, 140, 140, 151, 261, 248, 149, 151, + 150, 252, 143, 253, 152, 258, 262, 143, 247, 254, + 268, 269, 169, 143, 143, 143, 169, 255, 143, 143, + 259, 143, 143, 256, 556, 143, 260, 277, 143, 143, + 143, 264, 287, 143, 278, 288, 279, 152, 182, 182, + 182, 182, 183, 183, 183, 183, 290, 289, 143, 143, + 293, 170, 143, 143, 152, 292, 294, 185, 291, 301, + 299, 143, 143, 298, 143, 143, 143, 143, 143, 296, + 143, 300, 143, 143, 302, 297, 143, 143, 143, 143, + + 143, 312, 143, 305, 303, 310, 143, 143, 315, 221, + 222, 304, 219, 223, 361, 292, 219, 308, 314, 311, + 316, 309, 143, 220, 319, 318, 313, 317, 221, 222, + 221, 222, 221, 225, 221, 227, 228, 225, 328, 227, + 143, 322, 228, 143, 226, 322, 229, 329, 321, 236, + 236, 236, 236, 239, 239, 239, 239, 339, 143, 143, + 143, 143, 331, 143, 143, 355, 356, 330, 340, 355, + 143, 345, 183, 183, 183, 183, 143, 143, 143, 143, + 143, 143, 143, 143, 143, 143, 353, 185, 143, 143, + 143, 352, 346, 363, 354, 143, 143, 357, 364, 143, + + 358, 143, 143, 362, 143, 143, 376, 359, 360, 371, + 374, 365, 143, 367, 370, 379, 366, 368, 378, 143, + 143, 372, 373, 381, 143, 143, 143, 143, 375, 377, + 380, 389, 390, 382, 143, 389, 143, 143, 386, 401, + 383, 385, 143, 384, 388, 256, 322, 228, 143, 392, + 322, 143, 387, 355, 356, 143, 143, 355, 143, 143, + 143, 143, 143, 406, 143, 394, 395, 143, 396, 143, + 143, 143, 405, 143, 143, 415, 143, 143, 143, 143, + 409, 416, 354, 412, 417, 422, 143, 410, 143, 420, + 411, 414, 413, 421, 418, 427, 424, 423, 143, 143, + + 426, 419, 143, 143, 143, 143, 143, 425, 389, 390, + 429, 428, 389, 389, 390, 143, 437, 389, 433, 430, + 437, 143, 421, 143, 431, 143, 143, 432, 143, 434, + 442, 392, 389, 390, 143, 143, 389, 143, 446, 143, + 143, 143, 448, 143, 143, 443, 143, 449, 143, 143, + 452, 143, 453, 143, 143, 143, 455, 458, 447, 143, + 450, 459, 437, 454, 451, 462, 437, 466, 143, 457, + 460, 143, 143, 456, 143, 143, 469, 469, 469, 469, + 461, 143, 143, 143, 463, 143, 143, 464, 474, 143, + 479, 465, 143, 143, 143, 473, 478, 143, 477, 480, + + 143, 143, 483, 495, 143, 497, 143, 495, 143, 143, + 484, 260, 143, 481, 143, 482, 491, 469, 469, 469, + 469, 485, 489, 499, 486, 490, 488, 143, 504, 143, + 487, 505, 143, 492, 143, 143, 143, 500, 143, 143, + 143, 503, 523, 524, 524, 521, 507, 510, 508, 521, + 522, 525, 143, 143, 522, 525, 143, 143, 143, 143, + 143, 143, 143, 143, 506, 143, 511, 143, 143, 526, + 542, 509, 513, 512, 527, 521, 514, 530, 522, 521, + 544, 528, 522, 521, 542, 531, 554, 521, 522, 533, + 529, 143, 522, 546, 143, 143, 532, 538, 538, 538, + + 538, 143, 539, 539, 539, 539, 540, 540, 540, 540, + 541, 543, 545, 553, 540, 540, 540, 540, 547, 549, + 550, 143, 551, 549, 539, 539, 539, 539, 553, 557, + 557, 557, 557, 538, 538, 538, 538, 541, 555, 553, + 143, 540, 540, 540, 540, 549, 550, 143, 560, 549, + 557, 557, 557, 557, 553, 562, 562, 562, 562, 563, + 564, 563, 564, 563, 561, 563, 548, 252, 535, 143, + 143, 143, 537, 558, 259, 562, 562, 562, 562, 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, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 121, + 121, 121, 121, 121, 121, 121, 121, 121, 121, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 131, + 131, 536, 131, 131, 131, 131, 131, 131, 131, 141, + 141, 142, 142, 142, 142, 168, 168, 535, 168, 168, + 168, 168, 168, 168, 168, 172, 172, 143, 172, 172, + 172, 172, 172, 172, 172, 178, 178, 143, 178, 178, + 178, 178, 178, 178, 178, 184, 143, 184, 184, 184, + + 234, 234, 143, 234, 234, 234, 234, 234, 234, 234, + 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, + 240, 520, 240, 241, 241, 241, 241, 244, 244, 244, + 265, 265, 519, 265, 265, 265, 265, 265, 265, 265, + 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, + 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, + 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, + 284, 518, 284, 284, 284, 306, 306, 306, 306, 306, + 306, 306, 306, 306, 306, 320, 320, 517, 516, 515, + 143, 320, 320, 323, 323, 324, 324, 324, 324, 326, + + 326, 326, 326, 391, 391, 143, 143, 391, 391, 391, + 391, 393, 393, 393, 393, 444, 444, 143, 444, 444, + 444, 444, 444, 444, 444, 534, 534, 502, 501, 498, + 534, 534, 534, 534, 534, 552, 552, 496, 552, 494, + 552, 552, 552, 552, 552, 493, 143, 143, 143, 143, + 143, 476, 475, 472, 471, 255, 470, 468, 467, 143, + 143, 143, 143, 143, 445, 441, 440, 340, 439, 438, + 436, 435, 143, 143, 143, 242, 143, 143, 143, 143, + 143, 143, 143, 143, 408, 407, 404, 403, 402, 400, + 399, 398, 397, 143, 565, 327, 243, 325, 242, 307, + + 143, 185, 283, 276, 351, 273, 350, 349, 348, 347, + 344, 343, 342, 341, 338, 337, 336, 335, 334, 333, + 332, 327, 325, 242, 238, 233, 233, 321, 307, 285, + 185, 283, 281, 280, 276, 274, 273, 271, 270, 266, + 257, 251, 250, 249, 243, 143, 242, 238, 235, 233, + 231, 231, 224, 218, 171, 161, 160, 143, 132, 565, + 41, 41, 25, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565 } ; -static yyconst short int yy_chk[904] = +static yyconst flex_int16_t yy_chk[1423] = { 0, - 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, - 3, 2, 24, 1, 24, 4, 4, 2, 3, 5, - 5, 39, 5, 39, 4, 5, 7, 7, 43, 7, - 5, 43, 1, 13, 13, 117, 2, 4, 8, 8, - 53, 8, 13, 26, 64, 5, 26, 117, 133, 2, - 15, 15, 7, 14, 14, 14, 14, 17, 17, 15, - 133, 53, 38, 14, 8, 43, 17, 54, 64, 5, - 5, 6, 6, 65, 6, 6, 6, 6, 16, 16, - 16, 16, 6, 18, 18, 38, 27, 26, 16, 50, - 66, 50, 18, 27, 54, 55, 65, 6, 57, 27, - - 57, 57, 57, 57, 58, 351, 58, 134, 27, 38, - 38, 66, 96, 60, 55, 60, 60, 60, 60, 134, - 96, 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, 11, 11, 11, - 11, 11, 11, 59, 132, 59, 59, 59, 59, 62, - 69, 63, 11, 143, 349, 11, 67, 11, 11, 11, - - 11, 70, 132, 11, 11, 68, 143, 11, 11, 72, - 63, 11, 63, 11, 11, 63, 62, 11, 11, 67, - 71, 69, 59, 61, 61, 61, 61, 73, 70, 68, - 88, 70, 72, 79, 80, 80, 79, 80, 61, 71, - 71, 88, 84, 79, 95, 84, 80, 73, 102, 71, - 118, 73, 84, 85, 85, 92, 85, 95, 92, 94, - 119, 108, 95, 85, 108, 85, 345, 94, 121, 121, - 121, 121, 94, 340, 118, 124, 124, 124, 124, 125, - 119, 125, 125, 125, 125, 126, 135, 126, 126, 126, - 126, 129, 129, 129, 129, 102, 102, 136, 108, 92, - - 128, 137, 128, 128, 128, 128, 129, 139, 138, 135, - 140, 144, 141, 146, 142, 148, 209, 152, 152, 145, - 152, 147, 324, 149, 224, 324, 339, 136, 141, 209, - 193, 137, 138, 140, 142, 144, 139, 145, 142, 224, - 146, 147, 148, 149, 151, 153, 153, 151, 153, 147, - 155, 155, 157, 155, 151, 157, 158, 158, 193, 158, - 159, 159, 157, 159, 161, 161, 158, 161, 158, 194, - 195, 197, 197, 197, 197, 198, 198, 205, 198, 201, - 201, 201, 201, 206, 204, 204, 204, 204, 207, 208, - 210, 194, 211, 213, 214, 215, 216, 217, 195, 204, - - 218, 219, 220, 222, 211, 221, 223, 205, 228, 241, - 206, 213, 210, 228, 248, 249, 207, 208, 217, 225, - 225, 214, 225, 222, 219, 216, 215, 218, 246, 221, - 244, 244, 220, 244, 250, 223, 225, 241, 252, 254, - 255, 256, 248, 257, 249, 258, 259, 260, 261, 263, - 246, 262, 255, 265, 265, 250, 265, 256, 259, 277, - 276, 260, 259, 257, 281, 279, 254, 252, 282, 262, - 290, 261, 267, 267, 258, 267, 276, 268, 268, 263, - 268, 279, 283, 286, 281, 284, 287, 288, 291, 267, - 298, 277, 299, 290, 301, 302, 283, 282, 303, 284, - - 291, 287, 308, 309, 286, 310, 315, 316, 320, 301, - 310, 302, 299, 298, 317, 319, 288, 328, 308, 325, - 325, 325, 316, 320, 309, 326, 330, 303, 326, 334, - 317, 319, 334, 328, 337, 315, 335, 335, 335, 335, - 344, 330, 334, 334, 334, 334, 336, 347, 337, 338, - 336, 336, 336, 336, 341, 344, 341, 341, 341, 341, - 342, 333, 347, 332, 342, 342, 342, 342, 346, 346, - 346, 346, 350, 331, 350, 350, 350, 350, 352, 352, - 352, 352, 353, 353, 329, 353, 354, 354, 327, 354, - 323, 322, 321, 318, 314, 353, 353, 353, 353, 357, - - 357, 357, 357, 357, 357, 357, 357, 358, 358, 358, - 358, 358, 358, 358, 358, 359, 359, 359, 359, 359, - 359, 359, 359, 360, 360, 360, 360, 360, 360, 360, - 360, 361, 361, 361, 361, 361, 361, 361, 361, 362, - 362, 362, 362, 362, 362, 362, 362, 363, 363, 363, - 363, 363, 363, 363, 363, 364, 364, 313, 364, 364, - 364, 364, 364, 365, 365, 312, 365, 365, 365, 365, - 365, 366, 366, 367, 367, 367, 367, 368, 311, 368, - 368, 368, 369, 369, 369, 369, 369, 369, 369, 369, - 370, 370, 307, 370, 370, 370, 370, 370, 371, 371, - - 371, 371, 371, 371, 371, 371, 372, 372, 372, 372, - 372, 372, 372, 372, 373, 373, 373, 373, 374, 374, - 374, 374, 375, 375, 375, 375, 375, 375, 375, 375, - 376, 306, 376, 377, 305, 377, 377, 377, 378, 378, - 304, 300, 378, 378, 379, 379, 379, 379, 380, 380, - 380, 380, 380, 380, 381, 381, 297, 381, 381, 381, - 381, 381, 382, 382, 296, 382, 382, 382, 382, 382, - 295, 294, 293, 292, 289, 285, 280, 278, 275, 273, - 272, 271, 270, 264, 253, 251, 247, 243, 242, 240, - 239, 235, 234, 233, 230, 227, 212, 203, 199, 192, - - 191, 190, 188, 187, 185, 182, 181, 180, 178, 177, - 176, 175, 173, 172, 170, 169, 168, 166, 162, 131, - 130, 123, 122, 120, 116, 115, 114, 113, 109, 106, - 104, 103, 101, 98, 93, 91, 90, 87, 86, 83, - 78, 52, 44, 33, 32, 28, 25, 19, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - - 356, 356, 356 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 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, 186, 7, 5, 7, 37, 7, 8, 9, 8, + 4, 8, 8, 10, 10, 11, 44, 11, 5, 11, + + 186, 10, 19, 39, 19, 2, 41, 2, 9, 7, + 9, 9, 19, 44, 8, 12, 56, 12, 56, 12, + 12, 10, 11, 10, 10, 9, 5, 5, 6, 70, + 6, 9, 6, 6, 6, 6, 561, 21, 10, 21, + 6, 15, 12, 16, 10, 15, 16, 21, 20, 20, + 16, 20, 20, 70, 20, 6, 69, 88, 69, 20, + 22, 22, 72, 22, 22, 15, 22, 15, 15, 38, + 16, 22, 16, 16, 49, 43, 559, 23, 49, 23, + 71, 88, 72, 6, 6, 13, 13, 23, 15, 107, + 84, 13, 24, 16, 24, 38, 42, 24, 42, 38, + + 13, 87, 24, 42, 13, 43, 13, 13, 13, 13, + 71, 42, 13, 107, 556, 13, 49, 158, 13, 13, + 84, 42, 13, 13, 13, 13, 81, 87, 81, 13, + 13, 17, 91, 40, 158, 17, 17, 40, 89, 17, + 31, 31, 31, 31, 33, 129, 33, 33, 33, 33, + 34, 55, 34, 34, 34, 34, 195, 129, 17, 17, + 17, 17, 17, 67, 89, 17, 91, 67, 17, 17, + 17, 17, 17, 195, 55, 17, 17, 17, 17, 40, + 60, 40, 86, 79, 60, 90, 33, 79, 80, 94, + 80, 80, 80, 80, 82, 82, 82, 82, 83, 83, + + 83, 83, 55, 55, 85, 67, 92, 106, 102, 86, + 102, 95, 90, 83, 93, 94, 103, 104, 113, 60, + 109, 555, 60, 119, 85, 79, 114, 119, 85, 108, + 105, 85, 95, 106, 93, 93, 92, 104, 95, 92, + 103, 109, 108, 103, 104, 110, 93, 105, 111, 112, + 108, 144, 118, 114, 125, 113, 118, 105, 125, 110, + 298, 111, 124, 118, 144, 119, 124, 120, 120, 112, + 112, 120, 148, 124, 126, 126, 148, 145, 126, 163, + 120, 112, 130, 130, 298, 126, 130, 126, 133, 133, + 133, 133, 136, 136, 136, 136, 125, 137, 146, 137, + + 137, 137, 137, 138, 147, 138, 138, 138, 138, 140, + 145, 140, 140, 140, 140, 151, 156, 147, 148, 151, + 148, 153, 159, 153, 130, 155, 156, 176, 146, 153, + 163, 163, 169, 190, 175, 177, 169, 153, 193, 187, + 155, 189, 188, 153, 548, 191, 155, 175, 192, 200, + 194, 159, 187, 198, 176, 188, 177, 151, 182, 182, + 182, 182, 183, 183, 183, 183, 190, 189, 196, 197, + 193, 169, 199, 201, 169, 192, 194, 183, 191, 200, + 198, 202, 203, 197, 206, 207, 209, 208, 210, 196, + 211, 199, 212, 213, 201, 196, 217, 215, 214, 547, + + 290, 210, 545, 203, 201, 208, 216, 245, 213, 220, + 220, 202, 219, 220, 290, 210, 219, 206, 212, 209, + 214, 207, 246, 219, 217, 216, 211, 215, 221, 221, + 223, 223, 221, 225, 223, 226, 226, 225, 245, 226, + 247, 227, 227, 248, 225, 227, 226, 246, 226, 236, + 236, 236, 236, 239, 239, 239, 239, 257, 263, 264, + 277, 278, 248, 279, 286, 281, 281, 247, 257, 281, + 287, 263, 285, 285, 285, 285, 288, 289, 291, 294, + 292, 295, 296, 300, 299, 297, 278, 285, 301, 303, + 305, 277, 264, 292, 279, 302, 304, 286, 294, 308, + + 287, 309, 310, 291, 312, 311, 305, 288, 289, 300, + 303, 295, 313, 297, 299, 310, 296, 297, 309, 314, + 315, 301, 302, 312, 316, 317, 318, 319, 304, 308, + 311, 320, 320, 313, 328, 320, 330, 331, 317, 337, + 314, 316, 346, 315, 319, 337, 322, 322, 345, 320, + 322, 352, 318, 355, 355, 357, 359, 355, 360, 361, + 363, 365, 366, 346, 367, 328, 330, 368, 331, 370, + 372, 373, 345, 369, 375, 366, 371, 374, 379, 378, + 357, 367, 352, 361, 368, 372, 377, 359, 381, 371, + 360, 365, 363, 371, 369, 378, 374, 373, 380, 382, + + 377, 370, 383, 385, 386, 387, 405, 375, 389, 389, + 380, 379, 389, 391, 391, 406, 399, 391, 385, 381, + 399, 409, 387, 410, 382, 412, 414, 383, 415, 386, + 405, 391, 392, 392, 416, 417, 392, 418, 409, 420, + 421, 422, 412, 424, 425, 406, 428, 414, 429, 427, + 417, 431, 418, 430, 432, 434, 421, 425, 410, 433, + 415, 427, 437, 420, 416, 430, 437, 434, 442, 424, + 428, 443, 446, 422, 449, 447, 437, 437, 437, 437, + 429, 451, 450, 452, 431, 457, 458, 432, 443, 459, + 449, 433, 460, 461, 462, 442, 447, 463, 446, 450, + + 464, 466, 457, 469, 465, 471, 474, 469, 473, 477, + 458, 471, 478, 451, 479, 452, 465, 469, 469, 469, + 469, 459, 463, 473, 460, 464, 462, 481, 478, 482, + 461, 479, 483, 466, 485, 486, 488, 474, 487, 492, + 491, 477, 501, 501, 501, 499, 482, 486, 483, 499, + 500, 502, 504, 509, 500, 502, 510, 512, 507, 513, + 511, 514, 544, 499, 481, 532, 487, 529, 500, 504, + 525, 485, 491, 488, 507, 515, 492, 511, 516, 515, + 529, 509, 516, 521, 525, 512, 544, 521, 522, 514, + 510, 543, 522, 532, 528, 531, 513, 521, 521, 521, + + 521, 533, 522, 522, 522, 522, 523, 523, 523, 523, + 524, 528, 531, 542, 524, 524, 524, 524, 533, 538, + 538, 546, 539, 538, 539, 539, 539, 539, 542, 551, + 551, 551, 551, 538, 538, 538, 538, 540, 546, 552, + 554, 540, 540, 540, 540, 549, 549, 558, 557, 549, + 557, 557, 557, 557, 552, 560, 560, 560, 560, 563, + 563, 562, 562, 563, 558, 562, 537, 536, 534, 530, + 527, 526, 520, 554, 519, 562, 562, 562, 562, 566, + 566, 566, 566, 566, 566, 566, 566, 566, 566, 567, + 567, 567, 567, 567, 567, 567, 567, 567, 567, 568, + + 568, 568, 568, 568, 568, 568, 568, 568, 568, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 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, 518, 573, 573, 573, 573, 573, 573, 573, 574, + 574, 575, 575, 575, 575, 576, 576, 517, 576, 576, + 576, 576, 576, 576, 576, 577, 577, 508, 577, 577, + 577, 577, 577, 577, 577, 578, 578, 506, 578, 578, + 578, 578, 578, 578, 578, 579, 505, 579, 579, 579, + + 580, 580, 503, 580, 580, 580, 580, 580, 580, 580, + 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, + 582, 498, 582, 583, 583, 583, 583, 584, 584, 584, + 585, 585, 497, 585, 585, 585, 585, 585, 585, 585, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, + 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, + 589, 496, 589, 589, 589, 590, 590, 590, 590, 590, + 590, 590, 590, 590, 590, 591, 591, 495, 494, 493, + 490, 591, 591, 592, 592, 593, 593, 593, 593, 594, + + 594, 594, 594, 595, 595, 489, 484, 595, 595, 595, + 595, 596, 596, 596, 596, 597, 597, 480, 597, 597, + 597, 597, 597, 597, 597, 598, 598, 476, 475, 472, + 598, 598, 598, 598, 598, 599, 599, 470, 599, 468, + 599, 599, 599, 599, 599, 467, 456, 455, 454, 453, + 448, 445, 444, 441, 440, 439, 438, 436, 435, 426, + 423, 419, 413, 411, 408, 404, 403, 402, 401, 400, + 398, 397, 396, 395, 394, 393, 388, 384, 376, 364, + 362, 358, 354, 353, 351, 347, 344, 341, 339, 336, + 334, 333, 332, 329, 327, 326, 325, 324, 323, 306, + + 293, 284, 282, 275, 274, 272, 269, 268, 267, 265, + 262, 261, 259, 258, 255, 254, 253, 252, 251, 250, + 249, 244, 243, 241, 237, 235, 234, 229, 205, 185, + 184, 181, 180, 179, 174, 170, 167, 165, 164, 162, + 154, 152, 150, 149, 143, 142, 141, 135, 132, 131, + 128, 127, 123, 117, 61, 50, 48, 36, 30, 25, + 18, 14, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, + 565, 565 } ; -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 * @@ -755,11 +1055,13 @@ 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 #include +#include +#include #include "treefuncs.h" #include "parse.h" @@ -767,9 +1069,17 @@ char *yytext; #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 */ @@ -783,6 +1093,8 @@ 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) @@ -818,24 +1130,79 @@ add_gtk_doc_func(void) gtk_doc_func = NULL; } +/* Ugly warning avoiding */ +#ifdef FLEX_SCANNER +int yylex(void); +#endif + + + -#define COMMENT 1 -#define C_CODE 2 -#define C_CODE_STRING 3 + + + + + +#line 1150 "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 839 "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 ); + +int yyget_leng (void ); + +char *yyget_text (void ); + +int yyget_lineno (void ); + +void yyset_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. @@ -843,65 +1210,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. */ @@ -910,12 +1242,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, @@ -923,9 +1254,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 = '*'; \ + unsigned n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -935,9 +1267,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();" - @@ -958,12 +1303,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. @@ -979,31 +1330,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 119 "lexer.l" + + + +/* Avoid warning from flex, cuz flex sucks */ +#ifdef FLEX_SCANNER +yy_current_state = 0; +#endif -#line 98 "lexer.l" -#line 996 "lex.yy.c" +#line 1357 "lexer.c" - if ( yy_init ) + 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; @@ -1011,29 +1378,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 { @@ -1041,53 +1412,52 @@ 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 >= 357 ) + if ( yy_current_state >= 566 ) 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] != 849 ); + while ( yy_base[yy_current_state] != 1363 ); 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 100 "lexer.l" +#line 129 "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_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 102 "lexer.l" +#line 131 "lexer.l" { /* Thy evil easter egg */ #define QQ(x) long x @@ -1111,16 +1481,56 @@ REJECT; } YY_BREAK case 3: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +*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 153 "lexer.l" { ; /*comment, ignore*/ } YY_BREAK case 4: YY_RULE_SETUP -#line 125 "lexer.l" +#line 155 "lexer.l" +{ + char *p; + char *number; + char *filename; + char *str=g_strdup(yytext); + + /* find first digit of line number */ + p=str; + while(*p&&!isdigit(*p)) p++; + number=p; + + /* find end of line number */ + while(*p&&isdigit(*p)) p++; + if(*p) *p++=0; + + /* find beginning of filename */ + p=strchr(p,'"'); + if(p) p++; + filename=p; + + /* find end of filename */ + if(p) p=strchr(p,'"'); + if(p) *p=0; + + /* stash number (minus one because we don't count this line) */ + if(number) line_no=atoi(number)-1; + + /* stash filename */ + if(filename) { + if(hline_filename) g_free(hline_filename); + hline_filename=g_strdup(filename); + } + + /* clean up */ + g_free(str); +} + YY_BREAK +case 5: +YY_RULE_SETUP +#line 192 "lexer.l" { if(look_for_includes==1) { char *p; @@ -1131,42 +1541,44 @@ YY_RULE_SETUP file++; p = strchr(file,'"'); if(!p) p = strchr(file,'>'); - *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 142 "lexer.l" +#line 211 "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 147 "lexer.l" +#line 216 "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 151 "lexer.l" +#line 220 "lexer.l" { char *p; BEGIN(GTK_DOC); @@ -1178,168 +1590,182 @@ YY_RULE_SETUP g_strstrip(gtk_doc_func); } YY_BREAK -case 8: +case 9: YY_RULE_SETUP -#line 161 "lexer.l" +#line 230 "lexer.l" { BEGIN(CLASS_CODE_I); } YY_BREAK -case 9: +case 10: YY_RULE_SETUP -#line 164 "lexer.l" +#line 233 "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 168 "lexer.l" +#line 237 "lexer.l" { /* empty doc lines */ add_to_cbuf(" *\n"); } YY_BREAK -case 11: +case 12: YY_RULE_SETUP -#line 172 "lexer.l" +#line 241 "lexer.l" { BEGIN(CLASS_CODE_I); add_gtk_doc_func(); } YY_BREAK -case 12: +case 13: YY_RULE_SETUP -#line 176 "lexer.l" +#line 245 "lexer.l" { fflush(stdout); add_to_cbuf(" * "); BEGIN(GTK_DOC_LINE); } YY_BREAK -case 13: +case 14: YY_RULE_SETUP -#line 181 "lexer.l" +#line 250 "lexer.l" { BEGIN(CLASS_CODE_I); } YY_BREAK -case 14: +case 15: YY_RULE_SETUP -#line 184 "lexer.l" +#line 253 "lexer.l" { BEGIN(COMMENT); before_comment = CLASS_CODE_I; } YY_BREAK -case 15: +case 16: YY_RULE_SETUP -#line 188 "lexer.l" +#line 257 "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 193 "lexer.l" +#line 262 "lexer.l" { BEGIN(GTK_DOC); add_to_cbuf(yytext); add_to_cbuf("\n"); } YY_BREAK -case 17: +case 18: YY_RULE_SETUP -#line 198 "lexer.l" +#line 267 "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 203 "lexer.l" +#line 272 "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 204 "lexer.l" +#line 273 "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 205 "lexer.l" +#line 274 "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 206 "lexer.l" +#line 275 "lexer.l" +{ ; /*comment, ignore*/ } + YY_BREAK +case 23: +YY_RULE_SETUP +#line 276 "lexer.l" {BEGIN(COMMENT); before_comment = INITIAL; } YY_BREAK -case 22: +case 24: YY_RULE_SETUP -#line 207 "lexer.l" +#line 277 "lexer.l" { add_to_cbuf(yytext); BEGIN(COMMENT); before_comment = C_CODE; } YY_BREAK -case 23: +case 25: YY_RULE_SETUP -#line 212 "lexer.l" +#line 282 "lexer.l" {BEGIN(COMMENT); before_comment = CLASS_CODE; } YY_BREAK -case 24: +case 26: YY_RULE_SETUP -#line 213 "lexer.l" +#line 283 "lexer.l" {BEGIN(COMMENT); before_comment = CLASS_CODE_I; } YY_BREAK -case 25: +case 27: YY_RULE_SETUP -#line 214 "lexer.l" +#line 284 "lexer.l" +{BEGIN(COMMENT); before_comment = PROPERTY_CODE_I; } + YY_BREAK +case 28: +YY_RULE_SETUP +#line 285 "lexer.l" { if(before_comment == C_CODE) add_to_cbuf(yytext); BEGIN(before_comment); } YY_BREAK -case 26: +case 29: YY_RULE_SETUP -#line 218 "lexer.l" +#line 289 "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 222 "lexer.l" +#line 293 "lexer.l" { /* comment, ignore */ if(before_comment == C_CODE) add_to_cbuf(yytext); } YY_BREAK -case 28: +case 31: YY_RULE_SETUP -#line 227 "lexer.l" +#line 298 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; @@ -1349,9 +1775,9 @@ YY_RULE_SETUP ccode_line = line_no; } YY_BREAK -case 29: +case 32: YY_RULE_SETUP -#line 235 "lexer.l" +#line 306 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; @@ -1361,9 +1787,9 @@ YY_RULE_SETUP ccode_line = line_no; } YY_BREAK -case 30: +case 33: YY_RULE_SETUP -#line 244 "lexer.l" +#line 315 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; @@ -1373,9 +1799,9 @@ YY_RULE_SETUP ccode_line = line_no; } YY_BREAK -case 31: +case 34: YY_RULE_SETUP -#line 252 "lexer.l" +#line 323 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; @@ -1385,9 +1811,9 @@ YY_RULE_SETUP ccode_line = line_no; } YY_BREAK -case 32: +case 35: YY_RULE_SETUP -#line 260 "lexer.l" +#line 331 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; @@ -1397,9 +1823,9 @@ YY_RULE_SETUP ccode_line = line_no; } YY_BREAK -case 33: +case 36: YY_RULE_SETUP -#line 268 "lexer.l" +#line 339 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; @@ -1411,9 +1837,35 @@ YY_RULE_SETUP look_for_includes=1; } YY_BREAK -case 34: +case 37: +YY_RULE_SETUP +#line 349 "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 359 "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 278 "lexer.l" +#line 367 "lexer.l" { BEGIN(INITIAL); yylval.cbuf = cbuf; @@ -1423,83 +1875,100 @@ YY_RULE_SETUP return code_type; } YY_BREAK -case 35: +case 40: YY_RULE_SETUP -#line 287 "lexer.l" +#line 376 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 36: +case 41: YY_RULE_SETUP -#line 288 "lexer.l" +#line 377 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 37: +case 42: YY_RULE_SETUP -#line 289 "lexer.l" +#line 378 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 38: +case 43: YY_RULE_SETUP -#line 290 "lexer.l" +#line 379 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 39: +case 44: YY_RULE_SETUP -#line 291 "lexer.l" +#line 380 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 40: +case 45: YY_RULE_SETUP -#line 292 "lexer.l" +#line 381 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 41: +case 46: YY_RULE_SETUP -#line 294 "lexer.l" +#line 383 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 42: +case 47: YY_RULE_SETUP -#line 295 "lexer.l" +#line 386 "lexer.l" { - BEGIN(C_CODE_STRING); + BEGIN(CODE_STRING); + before_string = C_CODE; add_to_cbuf(yytext); } YY_BREAK -case 43: +case 48: +YY_RULE_SETUP +#line 391 "lexer.l" +{ + BEGIN(CODE_STRING); + before_string = PROPERTY_CODE_I; + add_to_cbuf(yytext); + } + YY_BREAK +case 49: YY_RULE_SETUP -#line 299 "lexer.l" +#line 396 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 44: +case 50: YY_RULE_SETUP -#line 300 "lexer.l" +#line 397 "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 45: +case 51: YY_RULE_SETUP -#line 304 "lexer.l" +#line 407 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 46: +case 52: +/* rule 52 can match eol */ YY_RULE_SETUP -#line 305 "lexer.l" +#line 408 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 47: +case 53: YY_RULE_SETUP -#line 307 "lexer.l" +#line 410 "lexer.l" { parenth_depth++; add_to_cbuf(yytext); } YY_BREAK -case 48: +case 54: YY_RULE_SETUP -#line 311 "lexer.l" +#line 414 "lexer.l" { parenth_depth--; if(parenth_depth<0) { @@ -1513,246 +1982,443 @@ YY_RULE_SETUP add_to_cbuf(yytext); } YY_BREAK -case 49: +case 55: YY_RULE_SETUP -#line 324 "lexer.l" +#line 427 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 50: +case 56: +/* rule 56 can match eol */ YY_RULE_SETUP -#line 325 "lexer.l" +#line 428 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK -case 51: +case 57: YY_RULE_SETUP -#line 327 "lexer.l" +#line 430 "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 52: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +case 58: +YY_RULE_SETUP +#line 443 "lexer.l" +{ return ERROR; } + YY_BREAK +case 59: +YY_RULE_SETUP +#line 444 "lexer.l" +{ return ENUM; } + YY_BREAK +case 60: +YY_RULE_SETUP +#line 445 "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 341 "lexer.l" +#line 447 "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 53: +case 62: YY_RULE_SETUP -#line 365 "lexer.l" +#line 488 "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 54: +case 63: YY_RULE_SETUP -#line 377 "lexer.l" +#line 498 "lexer.l" {return FROM;} YY_BREAK -case 55: +case 64: YY_RULE_SETUP -#line 379 "lexer.l" +#line 499 "lexer.l" +{ + BEGIN(CLASS_STRING); + before_string = CLASS_CODE; + add_to_cbuf(yytext); + } + YY_BREAK +case 65: +YY_RULE_SETUP +#line 504 "lexer.l" +{ add_to_cbuf(yytext); } + YY_BREAK +case 66: +YY_RULE_SETUP +#line 505 "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 513 "lexer.l" +{ add_to_cbuf(yytext); } + YY_BREAK +case 68: +/* rule 68 can match eol */ +YY_RULE_SETUP +#line 514 "lexer.l" +{ add_to_cbuf(yytext); } + YY_BREAK +case 69: +YY_RULE_SETUP +#line 516 "lexer.l" {return VOID;} YY_BREAK -case 56: +case 70: YY_RULE_SETUP -#line 380 "lexer.l" +#line 517 "lexer.l" {return STRUCT;} YY_BREAK -case 57: +case 71: YY_RULE_SETUP -#line 381 "lexer.l" +#line 518 "lexer.l" {return UNION;} YY_BREAK -case 58: +case 72: YY_RULE_SETUP -#line 382 "lexer.l" +#line 519 "lexer.l" {return ENUM;} YY_BREAK -case 59: +case 73: YY_RULE_SETUP -#line 383 "lexer.l" +#line 520 "lexer.l" {return SIGNED;} YY_BREAK -case 60: +case 74: YY_RULE_SETUP -#line 384 "lexer.l" +#line 521 "lexer.l" {return UNSIGNED;} YY_BREAK -case 61: +case 75: YY_RULE_SETUP -#line 385 "lexer.l" +#line 522 "lexer.l" {return LONG;} YY_BREAK -case 62: +case 76: YY_RULE_SETUP -#line 386 "lexer.l" +#line 523 "lexer.l" {return SHORT;} YY_BREAK -case 63: +case 77: YY_RULE_SETUP -#line 387 "lexer.l" +#line 524 "lexer.l" {return INT;} YY_BREAK -case 64: +case 78: YY_RULE_SETUP -#line 388 "lexer.l" +#line 525 "lexer.l" {return FLOAT;} YY_BREAK -case 65: +case 79: YY_RULE_SETUP -#line 389 "lexer.l" +#line 526 "lexer.l" {return DOUBLE;} YY_BREAK -case 66: +case 80: YY_RULE_SETUP -#line 390 "lexer.l" +#line 527 "lexer.l" {return CHAR;} YY_BREAK -case 67: +case 81: YY_RULE_SETUP -#line 391 "lexer.l" +#line 528 "lexer.l" {return CONST;} YY_BREAK -case 68: +case 82: YY_RULE_SETUP -#line 393 "lexer.l" +#line 530 "lexer.l" {return THREEDOTS;} YY_BREAK -case 69: +case 83: YY_RULE_SETUP -#line 395 "lexer.l" +#line 532 "lexer.l" {yylval.line = line_no; return PUBLIC;} YY_BREAK -case 70: +case 84: YY_RULE_SETUP -#line 396 "lexer.l" +#line 533 "lexer.l" {yylval.line = line_no; return PRIVATE;} YY_BREAK -case 71: +case 85: YY_RULE_SETUP -#line 397 "lexer.l" +#line 534 "lexer.l" {yylval.line = line_no; return PROTECTED;} YY_BREAK -case 72: +case 86: YY_RULE_SETUP -#line 398 "lexer.l" +#line 535 "lexer.l" {yylval.line = line_no; return CLASSWIDE;} YY_BREAK -case 73: +case 87: YY_RULE_SETUP -#line 399 "lexer.l" +#line 536 "lexer.l" {yylval.line = line_no; return ARGUMENT;} YY_BREAK -case 74: +case 88: YY_RULE_SETUP -#line 400 "lexer.l" +#line 537 "lexer.l" {yylval.line = line_no; return VIRTUAL;} YY_BREAK -case 75: +case 89: YY_RULE_SETUP -#line 401 "lexer.l" +#line 538 "lexer.l" {yylval.line = line_no; return SIGNAL;} YY_BREAK -case 76: +case 90: YY_RULE_SETUP -#line 402 "lexer.l" +#line 539 "lexer.l" {yylval.line = line_no; return OVERRIDE;} YY_BREAK -case 77: +case 91: +YY_RULE_SETUP +#line 540 "lexer.l" +{ + yylval.line = line_no; + BEGIN(PROPERTY_CODE); + return PROPERTY; + } + YY_BREAK +case 92: +YY_RULE_SETUP +#line 545 "lexer.l" +{ yylval.line = line_no; return NICK; } + YY_BREAK +case 93: +YY_RULE_SETUP +#line 546 "lexer.l" +{ yylval.line = line_no; return BLURB; } + YY_BREAK +case 94: +YY_RULE_SETUP +#line 547 "lexer.l" +{ yylval.line = line_no; return MAXIMUM; } + YY_BREAK +case 95: +YY_RULE_SETUP +#line 548 "lexer.l" +{ yylval.line = line_no; return MINIMUM; } + YY_BREAK +case 96: +YY_RULE_SETUP +#line 549 "lexer.l" +{ yylval.line = line_no; return DEFAULT_VALUE; } + YY_BREAK +case 97: +YY_RULE_SETUP +#line 550 "lexer.l" +{ yylval.line = line_no; return FLAGS; } + YY_BREAK +case 98: +YY_RULE_SETUP +#line 551 "lexer.l" +{ yylval.line = line_no; return TYPE; } + YY_BREAK +case 99: +YY_RULE_SETUP +#line 552 "lexer.l" +{ yylval.line = line_no; return FLAGS_TYPE; } + YY_BREAK +case 100: +YY_RULE_SETUP +#line 553 "lexer.l" +{ yylval.line = line_no; return ENUM_TYPE; } + YY_BREAK +case 101: +YY_RULE_SETUP +#line 554 "lexer.l" +{ yylval.line = line_no; return PARAM_TYPE; } + YY_BREAK +case 102: +YY_RULE_SETUP +#line 555 "lexer.l" +{ yylval.line = line_no; return BOXED_TYPE; } + YY_BREAK +case 103: +YY_RULE_SETUP +#line 556 "lexer.l" +{ yylval.line = line_no; return OBJECT_TYPE; } + YY_BREAK +case 104: +YY_RULE_SETUP +#line 557 "lexer.l" +{ + yylval.line = line_no; + property_paren_depth = 1; + BEGIN(PROPERTY_CODE_I); + return '('; + } + YY_BREAK +case 105: +YY_RULE_SETUP +#line 563 "lexer.l" +{ + yylval.line = line_no; + property_paren_depth++; + return '('; + } + YY_BREAK +case 106: +YY_RULE_SETUP +#line 568 "lexer.l" +{ + yylval.line = line_no; + property_paren_depth--; + if (property_paren_depth == 0) { + BEGIN(CLASS_CODE_I); + } + return ')'; + } + YY_BREAK +case 107: YY_RULE_SETUP -#line 403 "lexer.l" +#line 577 "lexer.l" { yylval.id = g_strdup(yytext); return NUMBER; } YY_BREAK -case 78: +case 108: YY_RULE_SETUP -#line 407 "lexer.l" +#line 581 "lexer.l" +{ + /* This is cpp kind of token thingie */ + if (for_cpp) { + yylval.id = g_strdup(yytext); + return TOKEN; + } else { + REJECT; + } + } + YY_BREAK +case 109: +YY_RULE_SETUP +#line 590 "lexer.l" { /* this one is for a classname with a namespace */ yylval.id = g_strdup(yytext); return TYPETOKEN; } YY_BREAK -case 79: +case 110: YY_RULE_SETUP -#line 412 "lexer.l" +#line 595 "lexer.l" { /* this is for a classname with an empty namespace */ yylval.id = g_strdup(yytext); return TYPETOKEN; } YY_BREAK -case 80: +case 111: YY_RULE_SETUP -#line 417 "lexer.l" +#line 600 "lexer.l" { yylval.id = g_strdup(yytext); return TOKEN; } YY_BREAK -case 81: +case 112: +YY_RULE_SETUP +#line 604 "lexer.l" +{ + yylval.id = g_strdup(yytext); + return SINGLE_CHAR; + } + YY_BREAK +case 113: YY_RULE_SETUP -#line 422 "lexer.l" +#line 609 "lexer.l" { yylval.id = g_strdup(yytext); return ARRAY_DIM; } YY_BREAK -case 82: +case 114: YY_RULE_SETUP -#line 427 "lexer.l" +#line 613 "lexer.l" +{ + /* cheat for bitfield */ + yylval.id = g_strdup(yytext); + return ARRAY_DIM; + } + YY_BREAK +case 115: +YY_RULE_SETUP +#line 618 "lexer.l" { BEGIN(CLASS_CODE_I); return '{'; } YY_BREAK -case 83: +case 116: YY_RULE_SETUP -#line 431 "lexer.l" +#line 622 "lexer.l" { BEGIN(C_CODE); parenth_depth=1; @@ -1763,44 +2429,63 @@ YY_RULE_SETUP return '{'; } YY_BREAK -case 84: +case 117: YY_RULE_SETUP -#line 440 "lexer.l" +#line 631 "lexer.l" { BEGIN(INITIAL); return '}'; } YY_BREAK -case 85: +case 118: YY_RULE_SETUP -#line 445 "lexer.l" +#line 636 "lexer.l" ; /*ignore*/ YY_BREAK -case 86: +case 119: +/* rule 119 can match eol */ YY_RULE_SETUP -#line 447 "lexer.l" +#line 638 "lexer.l" +; /*ignore*/ + YY_BREAK +case 120: +YY_RULE_SETUP +#line 641 "lexer.l" { yylval.line = line_no; return yytext[0]; } YY_BREAK -case 87: +case 121: +*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 452 "lexer.l" -; /*ignore*/ +#line 646 "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 88: +case 122: YY_RULE_SETUP -#line 453 "lexer.l" +#line 655 "lexer.l" ECHO; YY_BREAK -#line 1798 "lex.yy.c" +#line 2480 "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): @@ -1809,26 +2494,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 @@ -1838,13 +2523,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 @@ -1857,30 +2542,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 @@ -1891,7 +2576,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; @@ -1899,30 +2584,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; @@ -1933,8 +2618,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 * @@ -1943,21 +2627,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. @@ -1977,86 +2660,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; + int num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ -#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), (size_t) 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; } } @@ -2064,147 +2713,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; - - yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; - - return ret_val; + if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + /* Extend the array by 50%, plus the number we really need. */ + yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } + (yy_n_chars) += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; + + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + + return ret_val; +} /* yy_get_previous_state - get the state just before the EOB char was reached */ -static yy_state_type yy_get_previous_state() - { + 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 >= 357 ) + if ( yy_current_state >= 566 ) 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 >= 357 ) + if ( yy_current_state >= 566 ) 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 == 356); + yy_is_jam = (yy_current_state == 565); if ( ! yy_is_jam ) - *yy_state_ptr++ = 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 int number_to_move = (yy_n_chars) + 2; + register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; register char *source = - &yy_current_buffer->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; + int 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() @@ -2218,16 +2861,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(); @@ -2237,91 +2880,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()" ); @@ -2330,80 +2976,75 @@ 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 ); - } - - -#ifndef YY_ALWAYS_INTERACTIVE -#ifndef YY_NEVER_INTERACTIVE -extern int isatty YY_PROTO(( int )); -#endif -#endif + yyfree((void *) b->yy_ch_buf ); -#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 + yyfree((void *) b ); +} +#ifndef __cplusplus +extern int isatty (int ); +#endif /* __cplusplus */ + +/* Initializes or reinitializes a buffer. + * This function is sometimes called more than once on the same buffer, + * such as during a yyrestart() or at EOF. + */ + static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) - { - 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; @@ -2420,29 +3061,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) +{ + int num_to_alloc; + + if (!(yy_buffer_stack)) { + + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. + */ + num_to_alloc = 1; + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc + (num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + + (yy_buffer_stack_max) = num_to_alloc; + (yy_buffer_stack_top) = 0; + return; } + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ -#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()" ); @@ -2456,56 +3193,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 bytes the byte buffer to scan + * @param len the number of bytes in the buffer pointed to by @a bytes. + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) +{ YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; - + /* Get memory for full buffer, including space for trailing EOB's. */ - n = 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()" ); @@ -2515,148 +3247,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; +} + +/** Get the output stream. + * + */ +FILE *yyget_out (void) +{ + return yyout; +} - yy_start_stack[yy_start_stack_ptr++] = YY_START; +/** Get the length of the current token. + * + */ +int yyget_leng (void) +{ + return yyleng; +} - BEGIN(new_state); - } -#endif +/** Get the current token. + * + */ +char *yyget_text (void) +{ + return yytext; +} -#ifndef YY_NO_POP_STATE -static void yy_pop_state() - { - if ( --yy_start_stack_ptr < 0 ) - YY_FATAL_ERROR( "start-condition stack underflow" ); +/** Set the current line number. + * @param line_number + * + */ +void yyset_lineno (int line_number ) +{ + + yylineno = line_number; +} - BEGIN(yy_start_stack[yy_start_stack_ptr]); - } -#endif +/** Set the input stream. This does not discard the current + * input buffer. + * @param in_str A readable stream. + * + * @see yy_switch_to_buffer + */ +void yyset_in (FILE * in_str ) +{ + yyin = in_str ; +} +void yyset_out (FILE * out_str ) +{ + yyout = out_str ; +} -#ifndef YY_NO_TOP_STATE -static int yy_top_state() - { - return yy_start_stack[yy_start_stack_ptr - 1]; - } -#endif +int yyget_debug (void) +{ + return yy_flex_debug; +} -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif +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 @@ -2665,23 +3453,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 655 "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 453 "lexer.l"