diff options
-rw-r--r-- | dcop/dcopidl/scanner.cc | 2325 | ||||
-rw-r--r-- | dcop/dcopidl/yacc.cc | 1908 | ||||
-rw-r--r-- | dcop/dcopidl/yacc.cc.h | 131 |
3 files changed, 2560 insertions, 1804 deletions
diff --git a/dcop/dcopidl/scanner.cc b/dcop/dcopidl/scanner.cc index e91b21d68..09a561ca8 100644 --- a/dcop/dcopidl/scanner.cc +++ b/dcop/dcopidl/scanner.cc @@ -1,68 +1,114 @@ #line 2 "scanner.cc" -/* A lexical scanner generated by flex */ -/* Scanner skeleton version: - * $Header$ - */ +#line 4 "scanner.cc" + +#define YY_INT_ALIGNED short int + +/* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 +#define YY_FLEX_SUBMINOR_VERSION 35 +#if YY_FLEX_SUBMINOR_VERSION > 0 +#define FLEX_BETA +#endif +/* First, we deal with platform-specific or compiler-specific issues. */ + +/* begin standard C headers. */ #include <stdio.h> +#include <string.h> +#include <errno.h> +#include <stdlib.h> +/* end standard C headers. */ -/* 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 <inttypes.h>. Non-C99 systems may or may not. */ + +#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + +/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, + * if you want the limit (max/min) macros for int types. + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS 1 #endif +#include <inttypes.h> +typedef int8_t flex_int8_t; +typedef uint8_t flex_uint8_t; +typedef int16_t flex_int16_t; +typedef uint16_t flex_uint16_t; +typedef int32_t flex_int32_t; +typedef uint32_t flex_uint32_t; +#else +typedef signed char flex_int8_t; +typedef short int flex_int16_t; +typedef int flex_int32_t; +typedef unsigned char flex_uint8_t; +typedef unsigned short int flex_uint16_t; +typedef unsigned int flex_uint32_t; -#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 <stdlib.h> -#include <unistd.h> +#endif /* ! C99 */ + +#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 <io.h> -#include <stdlib.h> -#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 @@ -77,71 +123,78 @@ * 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 +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else #define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ +#endif +/* The state buf must be large enough to hold one state per character in the main buffer. + */ +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) + +#ifndef YY_TYPEDEF_YY_BUFFER_STATE +#define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; +#endif extern int yyleng; + extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 -/* 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; @@ -178,12 +231,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 @@ -197,28 +254,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 @@ -226,147 +293,173 @@ 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) -#define YY_USES_REJECT +/* Begin user sect3 */ -#define yywrap() 1 +#define yywrap(n) 1 #define YY_SKIP_YYWRAP + 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 83 -#define YY_END_OF_BUFFER 84 -static yyconst short int yy_acclist[655] = +#define YY_NUM_RULES 84 +#define YY_END_OF_BUFFER 85 +/* 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[672] = { 0, - 6, 6, 84, 6, 82, 83, 1, 6, 82, 83, - 2, 83, 6, 82, 83, 6, 82, 83, 6, 82, - 83, 6, 23, 82, 83, 6, 82, 83, 6, 14, - 82, 83, 6, 15, 82, 83, 7, 21, 82, 83, - 6, 17, 82, 83, 6, 20, 82, 83, 6, 18, - 82, 83, 6, 28, 82, 83, 6, 82, 83, 6, - 68, 78, 82, 83, 6, 77, 82, 83, 6, 16, - 82, 83, 6, 22, 82, 83, 6, 24, 82, 83, - 6, 27, 82, 83, 6, 25, 82, 83, 6, 71, - 82, 83, 6, 71, 82, 83, 6, 71, 82, 83, - - 6, 71, 82, 83, 6, 71, 82, 83, 6, 30, - 82, 83, 6, 31, 82, 83, 6, 71, 82, 83, - 6, 71, 82, 83, 6, 71, 82, 83, 6, 71, - 82, 83, 6, 71, 82, 83, 6, 71, 82, 83, - 6, 71, 82, 83, 6, 71, 82, 83, 6, 71, - 82, 83, 6, 71, 82, 83, 6, 71, 82, 83, - 6, 71, 82, 83, 6, 71, 82, 83, 6, 71, - 82, 83, 6, 71, 82, 83, 6, 12, 82, 83, - 5, 13, 82, 83, 6, 19, 82, 83, 6, 6, - 34, 6, 6, 81, 6, 6, 11, 6, 9, 6, - - 6, 6, 4, 6, 32, 6, 6, 75, 3, 6, - 8, 6, 6, 78, 6, 6, 6, 68, 6, 79, - 6, 77, 6, 77, 6, 26, 6, 33, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 81, 6, - 6, 6, 9, 9, 6, 6, 80, 80, 6, 80, - - 6, 6, 6, 29, 6, 6, 8, 8, 6, 74, - 6, 6, 73, 6, 79, 6, 71, 6, 71, 6, - 71, 6, 71, 6, 71, 6, 71, 6, 71, 6, - 71, 6, 71, 6, 71, 6, 71, 6, 71, 6, - 58, 71, 6, 71, 6, 71, 6, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 6, 71, - 6, 6, 6, 6, 6, 6, 6, 76, 6, 6, - 71, 6, 71, 6, 71, 6, 61, 71, 6, 59, - - 71, 6, 71, 6, 71, 6, 36, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 71, 6, 50, - 71, 6, 71, 6, 71, 6, 71, 6, 71, 6, - 71, 6, 71, 6, 71, 6, 71, 6, 71, 6, - 71, 6, 71, 6, 71, 6, 57, 71, 6, 71, - 6, 71, 6, 71, 6, 71, 6, 6, 6, 6, - 6, 6, 72, 6, 62, 71, 6, 71, 6, 71, - 6, 39, 71, 6, 35, 71, 6, 71, 6, 60, - 71, 6, 71, 6, 71, 6, 71, 6, 71, 6, - 71, 6, 71, 6, 71, 6, 71, 6, 71, 6, - - 71, 6, 49, 71, 6, 71, 6, 71, 6, 56, - 71, 6, 71, 6, 71, 6, 71, 6, 71, 6, - 38, 71, 6, 71, 6, 6, 66, 71, 6, 71, - 6, 71, 6, 51, 71, 6, 44, 71, 6, 63, - 71, 6, 71, 6, 71, 6, 71, 6, 71, 6, - 71, 6, 43, 71, 6, 55, 71, 6, 71, 6, - 47, 71, 6, 45, 71, 6, 40, 71, 6, 71, - 6, 71, 6, 71, 6, 6, 71, 6, 6, 71, - 6, 46, 71, 6, 71, 6, 71, 6, 53, 71, - 6, 71, 6, 54, 71, 6, 65, 71, 6, 71, - - 6, 42, 71, 6, 6, 67, 71, 6, 69, 6, - 69, 6, 71, 6, 71, 6, 41, 71, 6, 71, - 6, 48, 71, 6, 6, 6, 6, 71, 6, 37, - 71, 6, 52, 71, 6, 11, 6, 6, 70, 6, - 71, 10, 11, 6, 6, 71, 10, 6, 71, 6, - 71, 6, 64, 71 + 6, 6, 85, 6, 83, 84, 1, 6, 83, 84, + 2, 84, 6, 83, 84, 6, 83, 84, 6, 83, + 84, 6, 23, 83, 84, 6, 83, 84, 6, 14, + 83, 84, 6, 15, 83, 84, 7, 21, 83, 84, + 6, 17, 83, 84, 6, 20, 83, 84, 6, 18, + 83, 84, 6, 28, 83, 84, 6, 83, 84, 6, + 69, 79, 83, 84, 6, 78, 83, 84, 6, 16, + 83, 84, 6, 22, 83, 84, 6, 24, 83, 84, + 6, 27, 83, 84, 6, 25, 83, 84, 6, 72, + 83, 84, 6, 72, 83, 84, 6, 72, 83, 84, + + 6, 72, 83, 84, 6, 72, 83, 84, 6, 30, + 83, 84, 6, 31, 83, 84, 6, 72, 83, 84, + 6, 72, 83, 84, 6, 72, 83, 84, 6, 72, + 83, 84, 6, 72, 83, 84, 6, 72, 83, 84, + 6, 72, 83, 84, 6, 72, 83, 84, 6, 72, + 83, 84, 6, 72, 83, 84, 6, 72, 83, 84, + 6, 72, 83, 84, 6, 72, 83, 84, 6, 72, + 83, 84, 6, 72, 83, 84, 6, 12, 83, 84, + 5, 13, 83, 84, 6, 19, 83, 84, 6, 6, + 34, 6, 6, 82, 6, 6, 11, 6, 9, 6, + + 6, 6, 4, 6, 32, 6, 6, 76, 3, 6, + 8, 6, 6, 79, 6, 6, 6, 69, 6, 80, + 6, 78, 6, 78, 6, 26, 6, 33, 6, 72, + 6, 72, 6, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 72, 6, 72, 6, 72, + 82, 6, 6, 6, 9, 9, 6, 6, 81, 81, + + 6, 81, 6, 6, 6, 29, 6, 6, 8, 8, + 6, 75, 6, 6, 74, 6, 80, 6, 72, 6, + 72, 6, 72, 6, 72, 6, 72, 6, 72, 6, + 72, 6, 72, 6, 72, 6, 72, 6, 72, 6, + 72, 6, 72, 6, 58, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 6, 6, 6, 6, 6, + 6, 77, 6, 6, 72, 6, 72, 6, 72, 6, + + 72, 6, 61, 72, 6, 59, 72, 6, 72, 6, + 72, 6, 36, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 72, 6, 50, 72, 6, 72, 6, + 72, 6, 72, 6, 72, 6, 72, 6, 72, 6, + 72, 6, 72, 6, 72, 6, 72, 6, 72, 6, + 72, 6, 57, 72, 6, 72, 6, 72, 6, 72, + 6, 72, 6, 6, 6, 6, 6, 6, 73, 6, + 62, 72, 6, 72, 6, 72, 6, 72, 6, 39, + 72, 6, 35, 72, 6, 72, 6, 60, 72, 6, + 72, 6, 72, 6, 72, 6, 72, 6, 72, 6, + + 72, 6, 72, 6, 72, 6, 72, 6, 72, 6, + 49, 72, 6, 72, 6, 72, 6, 56, 72, 6, + 72, 6, 72, 6, 72, 6, 72, 6, 38, 72, + 6, 72, 6, 6, 66, 72, 6, 72, 6, 72, + 6, 72, 6, 51, 72, 6, 44, 72, 6, 63, + 72, 6, 72, 6, 72, 6, 72, 6, 72, 6, + 72, 6, 43, 72, 6, 55, 72, 6, 72, 6, + 47, 72, 6, 45, 72, 6, 40, 72, 6, 72, + 6, 72, 6, 72, 6, 6, 72, 6, 72, 6, + 6, 72, 6, 46, 72, 6, 72, 6, 72, 6, + + 53, 72, 6, 72, 6, 54, 72, 6, 65, 72, + 6, 72, 6, 42, 72, 6, 6, 67, 72, 6, + 72, 6, 70, 6, 70, 6, 72, 6, 72, 6, + 41, 72, 6, 72, 6, 48, 72, 6, 6, 6, + 68, 72, 6, 6, 72, 6, 37, 72, 6, 52, + 72, 6, 11, 6, 6, 71, 6, 72, 10, 11, + 6, 6, 72, 10, 6, 72, 6, 72, 6, 64, + 72 } ; -static yyconst short int yy_accept[312] = +static yyconst flex_int16_t yy_accept[320] = { 0, 1, 2, 3, 4, 7, 11, 13, 16, 19, 22, 26, 29, 33, 37, 41, 45, 49, 53, 57, 60, @@ -380,32 +473,32 @@ static yyconst short int yy_accept[312] = 247, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, - 287, 289, 290, 290, 291, 292, 294, 295, 296, 298, - 299, 301, 302, 303, 305, 306, 308, 309, 311, 312, + 287, 289, 291, 292, 292, 293, 294, 296, 297, 298, + 300, 301, 303, 304, 305, 307, 308, 310, 311, 313, 314, 316, 318, 320, 322, 324, 326, 328, 330, 332, - 334, 336, 338, 340, 343, 345, 347, 349, 351, 353, + 334, 336, 338, 340, 342, 344, 347, 349, 351, 353, 355, 357, 359, 361, 363, 365, 367, 369, 371, 373, - 375, 377, 379, 381, 381, 381, 382, 383, 384, 385, - 386, 387, 389, 390, 392, 394, 396, 399, 402, 404, - 406, 409, 411, 413, 415, 417, 419, 422, 424, 426, + 375, 377, 379, 381, 383, 385, 385, 385, 386, 387, + 388, 389, 390, 391, 393, 394, 396, 398, 400, 402, + 405, 408, 410, 412, 415, 417, 419, 421, 423, 425, 428, 430, 432, 434, 436, 438, 440, 442, 444, 446, - 449, 451, 453, 455, 457, 457, 457, 458, 459, 460, - 461, 462, 464, 467, 469, 471, 474, 477, 479, 482, - 484, 486, 488, 490, 492, 494, 496, 498, 500, 502, - 505, 507, 509, 512, 514, 516, 518, 520, 523, 525, - 525, 525, 526, 529, 531, 533, 536, 539, 542, 544, - 546, 548, 550, 552, 555, 558, 560, 563, 566, 569, - 571, 573, 575, 576, 578, 579, 581, 584, 586, 588, - 591, 593, 596, 599, 601, 604, 605, 608, 610, 611, - 612, 614, 616, 619, 621, 624, 625, 626, 627, 629, - 632, 635, 636, 637, 638, 638, 640, 642, 642, 642, - - 644, 645, 645, 647, 648, 648, 648, 650, 652, 655, - 655 + 448, 450, 452, 455, 457, 459, 461, 463, 463, 463, + 464, 465, 466, 467, 468, 470, 473, 475, 477, 479, + 482, 485, 487, 490, 492, 494, 496, 498, 500, 502, + 504, 506, 508, 510, 513, 515, 517, 520, 522, 524, + 526, 528, 531, 533, 533, 533, 534, 537, 539, 541, + 543, 546, 549, 552, 554, 556, 558, 560, 562, 565, + 568, 570, 573, 576, 579, 581, 583, 585, 586, 588, + 590, 591, 593, 596, 598, 600, 603, 605, 608, 611, + 613, 616, 617, 620, 622, 624, 625, 626, 628, 630, + 633, 635, 638, 639, 640, 643, 644, 646, 649, 652, + + 653, 654, 655, 655, 657, 659, 659, 659, 661, 662, + 662, 664, 665, 665, 665, 667, 669, 672, 672 } ; -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, 1, 1, 1, 1, 1, 1, 1, 1, @@ -437,7 +530,7 @@ static yyconst int yy_ec[256] = 1, 1, 1, 1, 1 } ; -static yyconst int yy_meta[74] = +static yyconst flex_int32_t yy_meta[74] = { 0, 1, 2, 3, 4, 1, 5, 1, 1, 5, 1, 1, 6, 1, 1, 1, 1, 1, 7, 7, 8, @@ -449,87 +542,89 @@ static yyconst int yy_meta[74] = 1, 10, 1 } ; -static yyconst short int yy_base[329] = +static yyconst flex_int16_t yy_base[337] = { 0, - 0, 0, 904, 0, 0, 1106, 879, 72, 74, 0, - 73, 0, 0, 885, 0, 0, 876, 71, 64, 79, - 85, 879, 0, 69, 874, 82, 148, 221, 61, 69, - 73, 0, 0, 81, 53, 75, 67, 85, 98, 84, - 93, 103, 114, 148, 120, 140, 141, 155, 0, 1106, - 0, 0, 0, 178, 0, 193, 289, 124, 1106, 180, - 887, 188, 880, 879, 353, 1106, 0, 858, 238, 1106, - 117, 189, 243, 257, 198, 0, 405, 266, 0, 0, - 0, 846, 99, 158, 160, 171, 206, 238, 193, 213, - 224, 244, 226, 245, 237, 251, 243, 254, 188, 266, - - 272, 252, 274, 279, 278, 297, 289, 286, 298, 273, - 290, 1106, 308, 372, 442, 317, 869, 329, 0, 1106, - 860, 351, 479, 0, 368, 332, 0, 374, 346, 390, - 0, 304, 176, 320, 369, 348, 341, 346, 355, 386, - 399, 389, 294, 840, 401, 340, 349, 393, 402, 411, - 414, 404, 416, 403, 420, 418, 421, 422, 423, 424, - 448, 441, 438, 494, 0, 532, 603, 511, 506, 667, - 498, 501, 528, 451, 499, 508, 839, 838, 474, 461, - 837, 426, 510, 495, 518, 522, 836, 525, 526, 527, - 528, 532, 530, 531, 533, 537, 535, 539, 538, 835, - - 540, 542, 546, 541, 592, 716, 600, 601, 569, 852, - 598, 606, 832, 544, 612, 831, 830, 553, 829, 567, - 610, 566, 561, 601, 600, 613, 617, 618, 621, 827, - 615, 631, 824, 633, 623, 624, 632, 820, 643, 655, - 656, 678, 813, 638, 676, 807, 805, 661, 651, 664, - 644, 673, 683, 797, 763, 687, 762, 756, 732, 678, - 680, 681, 725, 685, 797, 688, 715, 704, 696, 697, - 698, 547, 534, 702, 476, 769, 459, 870, 456, 0, - 684, 711, 413, 730, 358, 825, 774, 336, 729, 310, - 107, 827, 733, 773, 790, 0, 734, 810, 760, 1106, - - 788, 771, 752, 1106, 784, 785, 767, 790, 56, 1106, - 943, 952, 962, 972, 982, 991, 1001, 1011, 1021, 1027, - 1036, 1046, 1050, 1058, 1066, 1075, 1085, 1095 + 0, 0, 923, 0, 0, 1107, 898, 72, 74, 0, + 73, 0, 0, 904, 0, 0, 894, 71, 64, 79, + 85, 894, 0, 69, 890, 82, 148, 221, 61, 69, + 73, 0, 0, 81, 53, 75, 67, 93, 98, 84, + 139, 115, 120, 148, 140, 141, 149, 150, 0, 1107, + 0, 0, 0, 206, 0, 174, 289, 178, 1107, 179, + 910, 197, 903, 902, 353, 1107, 0, 894, 243, 1107, + 114, 115, 257, 266, 286, 0, 405, 293, 0, 0, + 0, 882, 100, 162, 176, 156, 190, 175, 222, 226, + 188, 213, 230, 233, 264, 189, 232, 237, 212, 227, + + 275, 290, 254, 238, 287, 256, 299, 289, 298, 295, + 294, 300, 1107, 326, 372, 442, 370, 905, 377, 0, + 1107, 898, 357, 479, 0, 368, 322, 0, 432, 349, + 386, 0, 229, 320, 102, 304, 365, 301, 350, 366, + 325, 373, 374, 385, 383, 878, 402, 386, 371, 437, + 381, 400, 382, 384, 419, 403, 420, 438, 439, 448, + 449, 450, 455, 452, 451, 508, 0, 532, 603, 477, + 528, 667, 500, 503, 540, 456, 498, 514, 473, 877, + 876, 497, 513, 875, 512, 489, 516, 525, 518, 874, + 534, 529, 536, 538, 530, 539, 537, 540, 542, 543, + + 541, 546, 864, 547, 545, 548, 544, 601, 716, 612, + 634, 578, 881, 607, 619, 862, 555, 457, 583, 848, + 847, 601, 843, 561, 589, 585, 602, 614, 616, 617, + 637, 638, 632, 841, 633, 639, 840, 651, 624, 647, + 640, 839, 654, 662, 663, 660, 838, 644, 680, 700, + 837, 835, 678, 686, 688, 652, 696, 697, 834, 832, + 706, 830, 829, 823, 698, 701, 683, 726, 713, 724, + 798, 723, 814, 729, 714, 809, 704, 808, 800, 731, + 799, 770, 764, 733, 871, 701, 0, 732, 734, 643, + 750, 575, 826, 828, 565, 583, 737, 309, 158, 848, + + 173, 783, 791, 0, 757, 775, 351, 1107, 834, 782, + 790, 1107, 787, 793, 774, 798, 56, 1107, 944, 953, + 963, 973, 983, 992, 1002, 1012, 1022, 1028, 1037, 1047, + 1051, 1059, 1067, 1076, 1086, 1096 } ; -static yyconst short int yy_def[329] = +static yyconst flex_int16_t yy_def[337] = { 0, - 310, 1, 310, 311, 311, 310, 311, 312, 313, 311, - 314, 311, 311, 310, 311, 311, 311, 311, 311, 311, - 311, 311, 311, 311, 311, 311, 315, 315, 28, 28, - 28, 311, 311, 28, 28, 28, 28, 28, 28, 28, - 28, 28, 28, 28, 28, 28, 28, 28, 311, 310, - 311, 311, 311, 312, 311, 316, 311, 313, 310, 317, - 318, 313, 311, 310, 311, 310, 311, 311, 311, 310, - 319, 311, 311, 311, 311, 311, 311, 311, 311, 311, - 311, 28, 28, 28, 28, 28, 28, 28, 28, 28, + 318, 1, 318, 319, 319, 318, 319, 320, 321, 319, + 322, 319, 319, 318, 319, 319, 319, 319, 319, 319, + 319, 319, 319, 319, 319, 319, 323, 323, 28, 28, + 28, 319, 319, 28, 28, 28, 28, 28, 28, 28, + 28, 28, 28, 28, 28, 28, 28, 28, 319, 318, + 319, 319, 319, 320, 319, 324, 319, 321, 318, 325, + 326, 321, 319, 318, 319, 318, 319, 319, 319, 318, + 327, 319, 319, 319, 319, 319, 319, 319, 319, 319, + 319, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, - 28, 310, 320, 312, 311, 317, 321, 313, 311, 310, - 311, 311, 311, 311, 311, 319, 322, 311, 311, 311, - 77, 28, 28, 28, 28, 28, 28, 28, 28, 28, + 28, 28, 318, 328, 320, 319, 325, 329, 321, 319, + 318, 319, 319, 319, 319, 319, 327, 330, 319, 319, + 319, 77, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, - 28, 28, 28, 316, 323, 312, 312, 313, 311, 311, - 311, 311, 311, 28, 28, 28, 28, 28, 28, 28, + 28, 28, 28, 28, 28, 324, 331, 320, 320, 321, + 319, 319, 319, 319, 319, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, - 28, 28, 28, 28, 316, 316, 312, 312, 313, 311, - 311, 311, 28, 28, 28, 28, 28, 28, 28, 28, + 28, 28, 28, 28, 28, 28, 28, 324, 324, 320, + 320, 321, 319, 319, 319, 28, 28, 28, 28, 28, + 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, - 28, 28, 28, 28, 28, 28, 28, 28, 28, 316, - 316, 313, 28, 28, 28, 28, 28, 28, 28, 28, + 28, 28, 28, 324, 324, 321, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, - 28, 28, 313, 28, 324, 28, 28, 28, 28, 28, - 28, 28, 28, 28, 28, 313, 28, 324, 311, 325, - 28, 28, 28, 28, 28, 313, 326, 311, 28, 28, - 28, 326, 327, 313, 328, 311, 28, 327, 310, 310, - - 313, 318, 28, 310, 310, 318, 28, 28, 28, 0, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310 + 28, 28, 28, 28, 28, 28, 28, 321, 28, 28, + 332, 28, 28, 28, 28, 28, 28, 28, 28, 28, + 28, 321, 28, 28, 332, 319, 333, 28, 28, 28, + 28, 28, 321, 334, 28, 319, 28, 28, 28, 334, + + 335, 321, 336, 319, 28, 335, 318, 318, 321, 326, + 28, 318, 318, 326, 28, 28, 28, 0, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318 } ; -static yyconst short int yy_nxt[1180] = +static yyconst flex_int16_t yy_nxt[1181] = { 0, 4, 5, 6, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, @@ -543,126 +638,126 @@ static yyconst short int yy_nxt[1180] = 69, 81, 53, 82, 72, 82, 73, 73, 74, 82, 72, 82, 78, 78, 78, 53, 81, 82, 84, 75, - 82, 82, 86, 90, 76, 75, 85, 57, 65, 82, - 79, 91, 77, 92, 82, 82, 59, 94, 127, 82, - 62, 75, 95, 82, 132, 61, 87, 75, 93, 88, - 82, 98, 89, 56, 64, 61, 82, 77, 52, 52, - 97, 52, 52, 52, 52, 52, 52, 52, 52, 96, - 52, 52, 52, 52, 52, 99, 82, 82, 52, 52, - 52, 52, 52, 52, 82, 103, 104, 100, 105, 52, - 101, 82, 59, 55, 82, 106, 82, 133, 127, 56, - 59, 117, 52, 52, 52, 61, 134, 82, 112, 61, - - 102, 109, 82, 107, 175, 110, 128, 128, 128, 108, - 129, 111, 129, 135, 82, 130, 130, 130, 52, 82, - 52, 52, 52, 57, 52, 52, 52, 52, 52, 52, - 52, 52, 82, 52, 52, 52, 52, 52, 113, 82, - 149, 52, 52, 52, 52, 52, 52, 83, 118, 56, - 82, 117, 82, 138, 136, 69, 69, 69, 72, 61, - 73, 73, 74, 82, 82, 52, 52, 52, 125, 82, - 82, 82, 72, 75, 74, 74, 74, 82, 82, 139, - 82, 72, 142, 78, 78, 78, 137, 75, 145, 140, - 125, 52, 82, 52, 54, 75, 75, 54, 82, 82, - - 82, 79, 141, 143, 82, 82, 114, 114, 147, 75, - 144, 146, 82, 148, 54, 82, 82, 153, 75, 59, - 82, 152, 150, 82, 82, 164, 164, 151, 117, 162, - 82, 59, 115, 155, 54, 154, 82, 54, 54, 156, - 61, 296, 54, 127, 174, 157, 82, 176, 160, 54, - 185, 165, 54, 163, 54, 159, 54, 115, 63, 119, - 158, 121, 161, 130, 130, 130, 82, 82, 169, 169, - 122, 122, 82, 52, 82, 82, 165, 55, 63, 168, - 171, 82, 171, 56, 82, 172, 172, 172, 117, 166, - 166, 128, 128, 128, 187, 82, 123, 188, 63, 177, - - 61, 63, 63, 127, 173, 179, 63, 130, 130, 130, - 180, 178, 82, 63, 181, 82, 63, 57, 63, 82, - 63, 123, 131, 131, 131, 82, 173, 82, 82, 82, - 82, 131, 131, 131, 131, 131, 131, 82, 182, 82, - 82, 184, 82, 56, 82, 189, 82, 82, 82, 82, - 82, 186, 82, 131, 131, 131, 131, 131, 131, 167, - 167, 167, 193, 183, 82, 190, 195, 82, 167, 167, - 167, 167, 167, 167, 82, 200, 201, 82, 191, 192, - 196, 213, 194, 197, 288, 82, 198, 82, 199, 218, - 167, 167, 167, 167, 167, 167, 170, 170, 170, 112, - - 82, 203, 82, 204, 202, 170, 170, 170, 170, 170, - 170, 205, 205, 59, 119, 172, 172, 172, 172, 172, - 172, 82, 61, 63, 63, 82, 217, 170, 170, 170, - 170, 170, 170, 52, 82, 214, 82, 55, 216, 113, - 211, 215, 211, 56, 82, 212, 212, 212, 82, 207, - 207, 82, 82, 82, 82, 220, 82, 82, 82, 82, - 82, 82, 219, 82, 82, 82, 82, 82, 82, 209, - 82, 59, 82, 82, 223, 225, 226, 57, 221, 82, - 61, 243, 61, 222, 227, 231, 228, 82, 235, 232, - 224, 236, 82, 82, 229, 234, 237, 112, 230, 233, - - 238, 52, 52, 56, 52, 55, 55, 239, 55, 240, - 240, 56, 56, 245, 56, 212, 212, 212, 246, 249, - 208, 208, 208, 212, 212, 212, 82, 82, 248, 208, - 208, 208, 208, 208, 208, 242, 82, 113, 82, 82, - 61, 82, 244, 82, 82, 57, 57, 82, 57, 82, - 82, 208, 208, 208, 208, 208, 208, 82, 82, 82, - 112, 112, 247, 250, 82, 251, 264, 253, 254, 82, - 82, 56, 56, 256, 56, 119, 260, 82, 252, 265, - 59, 255, 257, 258, 210, 210, 210, 82, 259, 61, - 82, 262, 261, 210, 210, 210, 210, 210, 210, 82, - - 113, 113, 82, 267, 82, 269, 82, 82, 266, 82, - 82, 82, 268, 82, 82, 210, 210, 210, 210, 210, - 210, 112, 82, 82, 82, 270, 277, 59, 82, 263, - 82, 273, 274, 241, 241, 241, 61, 82, 299, 275, - 289, 82, 241, 241, 241, 241, 241, 241, 271, 61, - 284, 272, 281, 285, 282, 82, 82, 299, 82, 283, - 82, 113, 304, 290, 241, 241, 241, 241, 241, 241, - 286, 59, 286, 300, 287, 300, 293, 276, 82, 294, - 61, 291, 82, 297, 61, 295, 304, 300, 82, 82, - 300, 287, 293, 82, 303, 302, 61, 52, 294, 61, - - 307, 52, 279, 52, 52, 52, 52, 52, 280, 52, - 52, 52, 52, 52, 302, 299, 82, 52, 52, 52, - 52, 52, 52, 82, 305, 308, 286, 59, 286, 293, - 287, 82, 294, 82, 299, 306, 61, 301, 295, 82, - 61, 52, 52, 52, 61, 295, 82, 287, 305, 306, - 82, 294, 301, 82, 309, 82, 82, 82, 82, 61, - 119, 82, 82, 82, 82, 82, 82, 52, 119, 52, - 52, 59, 82, 124, 52, 52, 52, 52, 52, 52, - 52, 280, 52, 52, 52, 52, 52, 120, 119, 59, - 52, 52, 52, 52, 52, 52, 61, 53, 295, 80, - - 67, 66, 53, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 52, 52, 52, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 52, 310, 52, 52, 52, 310, 52, 52, 310, 52, - 52, 52, 54, 54, 310, 54, 54, 54, 54, 54, - 54, 54, 58, 58, 58, 58, 58, 58, 58, 58, - 58, 58, 63, 63, 310, 63, 63, 63, 63, 63, - 63, 63, 82, 82, 310, 82, 82, 310, 82, 82, - 82, 56, 310, 310, 56, 56, 56, 56, 56, 56, - - 56, 116, 116, 116, 116, 116, 116, 116, 116, 116, - 116, 61, 61, 61, 61, 61, 61, 61, 61, 61, - 61, 126, 126, 310, 126, 126, 126, 126, 126, 126, - 126, 56, 310, 56, 310, 56, 117, 117, 117, 117, - 117, 117, 117, 117, 117, 117, 127, 127, 310, 127, - 127, 127, 127, 127, 127, 127, 206, 206, 278, 278, - 310, 278, 278, 278, 278, 278, 278, 280, 310, 280, - 310, 280, 280, 280, 280, 292, 292, 292, 292, 292, - 292, 292, 292, 292, 292, 298, 298, 298, 298, 298, - 298, 298, 298, 298, 298, 295, 295, 295, 295, 295, - - 295, 295, 295, 295, 295, 3, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310 + 82, 86, 87, 91, 76, 75, 85, 57, 65, 82, + 79, 92, 77, 93, 82, 128, 82, 95, 82, 178, + 62, 75, 129, 129, 129, 133, 88, 75, 94, 89, + 96, 82, 90, 56, 64, 61, 82, 77, 52, 52, + 98, 52, 52, 52, 52, 52, 52, 52, 52, 97, + 52, 52, 52, 52, 52, 82, 82, 82, 52, 52, + 52, 52, 52, 52, 82, 82, 82, 100, 307, 113, + 59, 59, 82, 101, 82, 128, 102, 99, 82, 61, + 118, 134, 52, 52, 52, 104, 105, 307, 106, 59, + + 103, 82, 82, 136, 108, 107, 112, 52, 61, 110, + 109, 55, 135, 111, 82, 82, 82, 56, 52, 114, + 52, 52, 52, 138, 52, 52, 52, 52, 52, 52, + 52, 52, 137, 52, 52, 52, 52, 52, 82, 82, + 147, 52, 52, 52, 52, 52, 52, 83, 82, 61, + 118, 57, 82, 82, 141, 82, 82, 119, 82, 82, + 69, 69, 69, 82, 82, 52, 52, 52, 61, 176, + 139, 150, 72, 126, 73, 73, 74, 56, 142, 151, + 82, 72, 82, 74, 74, 74, 140, 75, 143, 144, + 82, 52, 148, 52, 54, 126, 75, 54, 130, 156, + + 130, 82, 149, 131, 131, 131, 115, 115, 72, 75, + 78, 78, 78, 82, 54, 82, 82, 158, 75, 155, + 82, 82, 145, 75, 82, 82, 82, 82, 79, 146, + 82, 152, 116, 128, 54, 82, 153, 54, 54, 154, + 179, 157, 54, 166, 166, 75, 82, 159, 177, 54, + 164, 82, 54, 312, 54, 161, 54, 116, 63, 163, + 162, 122, 160, 165, 181, 120, 131, 131, 131, 167, + 123, 123, 59, 52, 171, 171, 82, 55, 63, 59, + 173, 118, 173, 56, 184, 174, 174, 174, 61, 168, + 168, 82, 82, 128, 167, 180, 124, 82, 63, 82, + + 82, 63, 63, 131, 131, 131, 63, 82, 82, 82, + 82, 82, 82, 63, 182, 313, 63, 57, 63, 191, + 63, 124, 132, 132, 132, 185, 82, 170, 82, 82, + 183, 132, 132, 132, 132, 132, 132, 187, 186, 188, + 190, 118, 196, 56, 193, 82, 82, 195, 61, 129, + 129, 129, 189, 132, 132, 132, 132, 132, 132, 169, + 169, 169, 175, 82, 82, 82, 198, 194, 169, 169, + 169, 169, 169, 169, 82, 82, 82, 82, 82, 59, + 199, 82, 82, 82, 175, 197, 216, 248, 61, 192, + 169, 169, 169, 169, 169, 169, 172, 172, 172, 82, + + 219, 203, 204, 200, 201, 172, 172, 172, 172, 172, + 172, 205, 206, 113, 202, 82, 207, 174, 174, 174, + 174, 174, 174, 82, 82, 208, 208, 172, 172, 172, + 172, 172, 172, 52, 217, 212, 120, 55, 82, 82, + 82, 223, 82, 56, 82, 63, 63, 218, 61, 210, + 210, 82, 214, 114, 214, 82, 82, 215, 215, 215, + 82, 220, 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 222, 224, 57, 221, 226, + 59, 82, 231, 227, 229, 225, 230, 82, 304, 61, + 235, 82, 247, 228, 236, 232, 239, 238, 240, 241, + + 233, 82, 242, 56, 52, 234, 113, 237, 55, 82, + 243, 82, 251, 52, 56, 82, 249, 55, 244, 244, + 211, 211, 211, 56, 215, 215, 215, 82, 82, 211, + 211, 211, 211, 211, 211, 52, 215, 215, 215, 55, + 82, 252, 82, 82, 246, 56, 114, 253, 57, 61, + 82, 211, 211, 211, 211, 211, 211, 57, 82, 82, + 254, 250, 59, 82, 82, 82, 82, 113, 113, 82, + 82, 61, 269, 82, 56, 120, 255, 82, 82, 57, + 82, 256, 257, 56, 213, 213, 213, 258, 259, 264, + 262, 261, 260, 213, 213, 213, 213, 213, 213, 265, + + 266, 263, 267, 271, 82, 56, 82, 114, 114, 82, + 270, 268, 82, 275, 82, 213, 213, 213, 213, 213, + 213, 113, 82, 82, 82, 272, 82, 82, 59, 296, + 82, 61, 82, 245, 245, 245, 274, 61, 273, 82, + 82, 281, 245, 245, 245, 245, 245, 245, 276, 82, + 82, 279, 284, 280, 283, 82, 291, 82, 82, 82, + 82, 114, 277, 82, 245, 245, 245, 245, 245, 245, + 278, 293, 59, 293, 295, 294, 82, 290, 282, 289, + 307, 61, 292, 82, 308, 308, 298, 288, 297, 312, + 82, 305, 294, 301, 61, 308, 310, 61, 52, 307, + + 82, 299, 52, 286, 52, 52, 52, 52, 52, 287, + 52, 52, 52, 52, 52, 310, 82, 311, 52, 52, + 52, 52, 52, 52, 82, 82, 82, 293, 59, 293, + 301, 294, 316, 302, 82, 82, 308, 61, 315, 303, + 82, 61, 52, 52, 52, 61, 314, 309, 294, 82, + 301, 313, 302, 302, 61, 82, 82, 314, 82, 303, + 82, 82, 317, 82, 82, 82, 82, 82, 52, 82, + 52, 52, 302, 82, 82, 52, 52, 52, 52, 52, + 52, 52, 287, 52, 52, 52, 52, 52, 82, 120, + 82, 52, 52, 52, 52, 52, 52, 61, 309, 303, + + 82, 82, 82, 82, 82, 61, 120, 59, 82, 125, + 121, 120, 59, 53, 80, 52, 52, 52, 67, 303, + 66, 53, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 52, 318, 52, 52, 52, 318, 52, 52, 318, + 52, 52, 52, 54, 54, 318, 54, 54, 54, 54, + 54, 54, 54, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 63, 63, 318, 63, 63, 63, 63, + 63, 63, 63, 82, 82, 318, 82, 82, 318, 82, + 82, 82, 56, 318, 318, 56, 56, 56, 56, 56, + + 56, 56, 117, 117, 117, 117, 117, 117, 117, 117, + 117, 117, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 127, 127, 318, 127, 127, 127, 127, 127, + 127, 127, 56, 318, 56, 318, 56, 118, 118, 118, + 118, 118, 118, 118, 118, 118, 118, 128, 128, 318, + 128, 128, 128, 128, 128, 128, 128, 209, 209, 285, + 285, 318, 285, 285, 285, 285, 285, 285, 287, 318, + 287, 318, 287, 287, 287, 287, 300, 300, 300, 300, + 300, 300, 300, 300, 300, 300, 306, 306, 306, 306, + 306, 306, 306, 306, 306, 306, 303, 303, 303, 303, + + 303, 303, 303, 303, 303, 303, 3, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318 } ; -static yyconst short int yy_chk[1180] = +static yyconst flex_int16_t yy_chk[1181] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -672,145 +767,148 @@ static yyconst short int yy_chk[1180] = 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 11, 19, 9, 8, 9, 35, - 19, 11, 309, 8, 11, 9, 18, 29, 18, 18, + 19, 11, 317, 8, 11, 9, 18, 29, 18, 18, 18, 24, 24, 37, 20, 30, 20, 20, 20, 31, 21, 36, 21, 21, 21, 26, 26, 34, 29, 20, - 40, 38, 31, 35, 20, 21, 30, 8, 11, 41, - 21, 35, 20, 36, 39, 83, 58, 37, 71, 42, - 9, 20, 38, 291, 83, 58, 34, 21, 36, 34, - 43, 41, 34, 8, 11, 9, 45, 20, 27, 27, + 40, 31, 31, 35, 20, 21, 30, 8, 11, 38, + 21, 35, 20, 36, 39, 71, 83, 37, 135, 135, + 9, 20, 72, 72, 72, 83, 34, 21, 36, 34, + 38, 42, 34, 8, 11, 9, 43, 20, 27, 27, 40, 27, 27, 27, 27, 27, 27, 27, 27, 39, - 27, 27, 27, 27, 27, 42, 46, 47, 27, 27, - 27, 27, 27, 27, 44, 45, 45, 43, 45, 54, - 43, 48, 60, 54, 84, 45, 85, 84, 71, 54, - 62, 60, 27, 27, 27, 58, 85, 86, 56, 62, - - 44, 47, 133, 46, 133, 47, 72, 72, 72, 46, - 75, 48, 75, 86, 99, 75, 75, 75, 27, 89, - 27, 28, 28, 54, 28, 28, 28, 28, 28, 28, - 28, 28, 87, 28, 28, 28, 28, 28, 56, 90, - 99, 28, 28, 28, 28, 28, 28, 28, 62, 54, - 91, 60, 93, 89, 87, 69, 69, 69, 73, 62, - 73, 73, 73, 95, 88, 28, 28, 28, 69, 97, - 92, 94, 74, 73, 74, 74, 74, 96, 102, 90, - 98, 78, 93, 78, 78, 78, 88, 74, 95, 91, - 69, 28, 100, 28, 57, 73, 78, 57, 101, 110, - - 103, 78, 92, 94, 105, 104, 57, 57, 97, 74, - 94, 96, 108, 98, 57, 107, 111, 102, 78, 116, - 143, 101, 100, 106, 109, 113, 113, 100, 116, 110, - 132, 118, 57, 104, 57, 103, 290, 57, 57, 105, - 118, 288, 57, 126, 132, 106, 134, 134, 108, 57, - 143, 113, 57, 111, 57, 107, 57, 57, 65, 122, - 106, 65, 109, 129, 129, 129, 146, 137, 122, 122, - 65, 65, 138, 114, 136, 147, 113, 114, 65, 118, - 125, 139, 125, 114, 285, 125, 125, 125, 116, 114, - 114, 128, 128, 128, 146, 135, 65, 147, 65, 135, - - 118, 65, 65, 126, 128, 137, 65, 130, 130, 130, - 138, 136, 140, 65, 139, 142, 65, 114, 65, 148, - 65, 65, 77, 77, 77, 141, 128, 145, 149, 154, - 152, 77, 77, 77, 77, 77, 77, 150, 140, 283, - 151, 142, 153, 114, 156, 148, 155, 157, 158, 159, - 160, 145, 182, 77, 77, 77, 77, 77, 77, 115, - 115, 115, 152, 141, 163, 149, 154, 162, 115, 115, - 115, 115, 115, 115, 161, 159, 160, 174, 150, 151, - 155, 174, 153, 156, 279, 277, 157, 180, 158, 182, - 115, 115, 115, 115, 115, 115, 123, 123, 123, 164, - - 179, 162, 275, 163, 161, 123, 123, 123, 123, 123, - 123, 164, 164, 168, 169, 171, 171, 171, 172, 172, - 172, 184, 168, 169, 169, 175, 180, 123, 123, 123, - 123, 123, 123, 166, 176, 175, 183, 166, 179, 164, - 173, 176, 173, 166, 185, 173, 173, 173, 186, 166, - 166, 188, 189, 190, 191, 184, 193, 194, 192, 195, - 273, 197, 183, 196, 199, 198, 201, 204, 202, 168, - 214, 209, 203, 272, 188, 190, 191, 166, 185, 218, - 209, 214, 168, 186, 192, 196, 193, 223, 199, 196, - 189, 201, 222, 220, 194, 198, 202, 205, 195, 197, - - 203, 207, 208, 166, 167, 207, 208, 204, 167, 205, - 205, 207, 208, 218, 167, 211, 211, 211, 220, 223, - 167, 167, 167, 212, 212, 212, 225, 224, 222, 167, - 167, 167, 167, 167, 167, 209, 221, 205, 215, 226, - 209, 231, 215, 227, 228, 207, 208, 229, 167, 235, - 236, 167, 167, 167, 167, 167, 167, 232, 237, 234, - 240, 241, 221, 224, 244, 225, 244, 227, 228, 239, - 251, 207, 208, 231, 167, 170, 236, 249, 226, 245, - 242, 229, 232, 234, 170, 170, 170, 248, 235, 242, - 250, 239, 237, 170, 170, 170, 170, 170, 170, 252, - - 240, 241, 245, 249, 260, 251, 261, 262, 248, 253, - 281, 264, 250, 256, 266, 170, 170, 170, 170, 170, - 170, 206, 269, 270, 271, 252, 264, 263, 274, 242, - 268, 260, 261, 206, 206, 206, 263, 282, 293, 262, - 281, 267, 206, 206, 206, 206, 206, 206, 253, 242, - 271, 256, 266, 274, 268, 289, 284, 293, 259, 269, - 297, 206, 299, 282, 206, 206, 206, 206, 206, 206, - 276, 276, 276, 302, 276, 294, 287, 263, 303, 287, - 276, 284, 258, 289, 294, 287, 305, 306, 257, 255, - 301, 276, 295, 307, 297, 295, 263, 265, 287, 301, - - 303, 265, 265, 265, 265, 265, 265, 265, 265, 265, - 265, 265, 265, 265, 295, 298, 308, 265, 265, 265, - 265, 265, 265, 254, 299, 307, 286, 286, 286, 292, - 286, 247, 292, 246, 298, 302, 286, 294, 292, 243, - 276, 265, 265, 265, 294, 287, 238, 286, 305, 306, - 233, 292, 301, 230, 308, 219, 217, 216, 213, 301, - 210, 200, 187, 181, 178, 177, 144, 265, 121, 265, - 278, 117, 82, 68, 278, 278, 278, 278, 278, 278, - 278, 278, 278, 278, 278, 278, 278, 64, 63, 61, - 278, 278, 278, 278, 278, 278, 286, 25, 292, 22, - - 17, 14, 7, 3, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 278, 278, 278, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 27, 27, 27, 27, 27, 41, 45, 46, 27, 27, + 27, 27, 27, 27, 44, 47, 48, 42, 301, 56, + 58, 60, 86, 43, 299, 71, 43, 41, 84, 58, + 60, 84, 27, 27, 27, 45, 45, 301, 45, 62, + + 44, 88, 85, 86, 46, 45, 48, 54, 62, 47, + 46, 54, 85, 47, 91, 96, 87, 54, 27, 56, + 27, 28, 28, 88, 28, 28, 28, 28, 28, 28, + 28, 28, 87, 28, 28, 28, 28, 28, 99, 92, + 96, 28, 28, 28, 28, 28, 28, 28, 89, 58, + 60, 54, 90, 100, 91, 133, 93, 62, 97, 94, + 69, 69, 69, 98, 104, 28, 28, 28, 62, 133, + 89, 99, 73, 69, 73, 73, 73, 54, 92, 100, + 103, 74, 106, 74, 74, 74, 90, 73, 93, 94, + 95, 28, 97, 28, 57, 69, 74, 57, 75, 104, + + 75, 101, 98, 75, 75, 75, 57, 57, 78, 73, + 78, 78, 78, 105, 57, 108, 102, 106, 74, 103, + 111, 110, 95, 78, 109, 107, 112, 138, 78, 95, + 136, 101, 57, 127, 57, 298, 101, 57, 57, 102, + 136, 105, 57, 114, 114, 78, 134, 107, 134, 57, + 111, 141, 57, 307, 57, 108, 57, 57, 65, 110, + 109, 65, 107, 112, 138, 123, 130, 130, 130, 114, + 65, 65, 117, 115, 123, 123, 139, 115, 65, 119, + 126, 117, 126, 115, 141, 126, 126, 126, 119, 115, + 115, 137, 140, 127, 114, 137, 65, 149, 65, 142, + + 143, 65, 65, 131, 131, 131, 65, 151, 153, 145, + 154, 144, 148, 65, 139, 307, 65, 115, 65, 149, + 65, 65, 77, 77, 77, 142, 152, 119, 147, 156, + 140, 77, 77, 77, 77, 77, 77, 144, 143, 145, + 148, 117, 154, 115, 151, 155, 157, 153, 119, 129, + 129, 129, 147, 77, 77, 77, 77, 77, 77, 116, + 116, 116, 129, 150, 158, 159, 156, 152, 116, 116, + 116, 116, 116, 116, 160, 161, 162, 165, 164, 170, + 157, 163, 176, 218, 129, 155, 176, 218, 170, 150, + 116, 116, 116, 116, 116, 116, 124, 124, 124, 179, + + 179, 161, 162, 158, 159, 124, 124, 124, 124, 124, + 124, 163, 164, 166, 160, 186, 165, 173, 173, 173, + 174, 174, 174, 182, 177, 166, 166, 124, 124, 124, + 124, 124, 124, 168, 177, 170, 171, 168, 185, 183, + 178, 186, 187, 168, 189, 171, 171, 178, 170, 168, + 168, 188, 175, 166, 175, 192, 195, 175, 175, 175, + 191, 182, 193, 197, 194, 196, 198, 201, 199, 200, + 207, 205, 202, 204, 206, 185, 187, 168, 183, 189, + 212, 217, 195, 191, 193, 188, 194, 224, 296, 212, + 199, 295, 217, 192, 199, 196, 202, 201, 204, 205, + + 197, 292, 206, 168, 169, 198, 208, 200, 169, 219, + 207, 226, 224, 210, 169, 225, 219, 210, 208, 208, + 169, 169, 169, 210, 214, 214, 214, 222, 227, 169, + 169, 169, 169, 169, 169, 211, 215, 215, 215, 211, + 228, 225, 229, 230, 212, 211, 208, 226, 169, 212, + 239, 169, 169, 169, 169, 169, 169, 210, 233, 235, + 227, 222, 246, 231, 232, 236, 241, 244, 245, 290, + 248, 246, 248, 240, 169, 172, 228, 238, 256, 211, + 243, 229, 230, 210, 172, 172, 172, 231, 232, 239, + 236, 235, 233, 172, 172, 172, 172, 172, 172, 240, + + 241, 238, 243, 250, 253, 211, 249, 244, 245, 267, + 249, 246, 254, 256, 255, 172, 172, 172, 172, 172, + 172, 209, 257, 258, 265, 253, 250, 266, 268, 286, + 277, 246, 261, 209, 209, 209, 255, 268, 254, 269, + 275, 267, 209, 209, 209, 209, 209, 209, 257, 272, + 270, 265, 270, 266, 269, 274, 277, 280, 288, 284, + 289, 209, 258, 297, 209, 209, 209, 209, 209, 209, + 261, 282, 282, 282, 284, 282, 291, 275, 268, 274, + 306, 282, 280, 305, 310, 302, 289, 272, 288, 313, + 283, 297, 282, 303, 302, 314, 303, 268, 271, 306, + + 315, 291, 271, 271, 271, 271, 271, 271, 271, 271, + 271, 271, 271, 271, 271, 303, 311, 305, 271, 271, + 271, 271, 271, 271, 316, 281, 279, 293, 293, 293, + 294, 293, 315, 294, 278, 276, 309, 293, 311, 294, + 273, 282, 271, 271, 271, 309, 310, 302, 293, 264, + 300, 313, 294, 300, 302, 263, 262, 314, 260, 300, + 259, 252, 316, 251, 247, 242, 237, 234, 271, 223, + 271, 285, 300, 221, 220, 285, 285, 285, 285, 285, + 285, 285, 285, 285, 285, 285, 285, 285, 216, 213, + 203, 285, 285, 285, 285, 285, 285, 293, 309, 294, + + 190, 184, 181, 180, 146, 309, 122, 118, 82, 68, + 64, 63, 61, 25, 22, 285, 285, 285, 17, 300, + 14, 7, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 278, 0, 278, 311, 311, 0, 311, 311, 0, 311, - 311, 311, 312, 312, 0, 312, 312, 312, 312, 312, - 312, 312, 313, 313, 313, 313, 313, 313, 313, 313, - 313, 313, 314, 314, 0, 314, 314, 314, 314, 314, - 314, 314, 315, 315, 0, 315, 315, 0, 315, 315, - 315, 316, 0, 0, 316, 316, 316, 316, 316, 316, - - 316, 317, 317, 317, 317, 317, 317, 317, 317, 317, - 317, 318, 318, 318, 318, 318, 318, 318, 318, 318, - 318, 319, 319, 0, 319, 319, 319, 319, 319, 319, - 319, 320, 0, 320, 0, 320, 321, 321, 321, 321, - 321, 321, 321, 321, 321, 321, 322, 322, 0, 322, - 322, 322, 322, 322, 322, 322, 323, 323, 324, 324, - 0, 324, 324, 324, 324, 324, 324, 325, 0, 325, - 0, 325, 325, 325, 325, 326, 326, 326, 326, 326, - 326, 326, 326, 326, 326, 327, 327, 327, 327, 327, - 327, 327, 327, 327, 327, 328, 328, 328, 328, 328, - - 328, 328, 328, 328, 328, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, - 310, 310, 310, 310, 310, 310, 310, 310, 310 + 0, 285, 0, 285, 319, 319, 0, 319, 319, 0, + 319, 319, 319, 320, 320, 0, 320, 320, 320, 320, + 320, 320, 320, 321, 321, 321, 321, 321, 321, 321, + 321, 321, 321, 322, 322, 0, 322, 322, 322, 322, + 322, 322, 322, 323, 323, 0, 323, 323, 0, 323, + 323, 323, 324, 0, 0, 324, 324, 324, 324, 324, + + 324, 324, 325, 325, 325, 325, 325, 325, 325, 325, + 325, 325, 326, 326, 326, 326, 326, 326, 326, 326, + 326, 326, 327, 327, 0, 327, 327, 327, 327, 327, + 327, 327, 328, 0, 328, 0, 328, 329, 329, 329, + 329, 329, 329, 329, 329, 329, 329, 330, 330, 0, + 330, 330, 330, 330, 330, 330, 330, 331, 331, 332, + 332, 0, 332, 332, 332, 332, 332, 332, 333, 0, + 333, 0, 333, 333, 333, 333, 334, 334, 334, 334, + 334, 334, 334, 334, 334, 334, 335, 335, 335, 335, + 335, 335, 335, 335, 335, 335, 336, 336, 336, 336, + + 336, 336, 336, 336, 336, 336, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, + 318, 318, 318, 318, 318, 318, 318, 318, 318, 318 } ; -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 "scanner.ll" -#define INITIAL 0 #line 2 "scanner.ll" /***************************************************************** Copyright (c) 1999 Torben Weis <weis@kde.org> @@ -849,8 +947,8 @@ extern int idl_line_no; int comment_mode; int function_mode = 0; -#include <tqstring.h> -#include <tqregexp.h> +#include <qstring.h> +#include <qregexp.h> static long ascii_to_longlong( long base, const char *s ) { @@ -925,11 +1023,55 @@ static char translate_char( const char *s ) } -#define YY_NEVER_INTERACTIVE 1 /*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/ -#line 933 "scanner.cc" +#line 1030 "scanner.cc" + +#define INITIAL 0 + +#ifndef YY_NO_UNISTD_H +/* Special case for "unistd.h", since it is non-ANSI. We include it way + * down here because we want the user's section 1 to have been scanned first. + * The user has a chance to override it with an option. + */ +#include <unistd.h> +#endif + +#ifndef YY_EXTRA_TYPE +#define YY_EXTRA_TYPE void * +#endif + +static int yy_init_globals (void ); + +/* Accessor methods to globals. + These are made visible to non-reentrant scanners for convenience. */ + +int yylex_destroy (void ); + +int yyget_debug (void ); + +void yyset_debug (int debug_flag ); + +YY_EXTRA_TYPE yyget_extra (void ); + +void yyset_extra (YY_EXTRA_TYPE user_defined ); + +FILE *yyget_in (void ); + +void yyset_in (FILE * in_str ); + +FILE *yyget_out (void ); + +void yyset_out (FILE * out_str ); + +int yyget_leng (void ); + +char *yyget_text (void ); + +int yyget_lineno (void ); + +void yyset_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. @@ -937,79 +1079,48 @@ static char translate_char( const char *s ) #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 )); -#endif +extern int yywrap (void ); #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 )); +static int yyinput (void ); #else -static int input YY_PROTO(( void )); -#endif +static int input (void ); #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 - -#else -#define YY_NO_PUSH_STATE 1 -#define YY_NO_POP_STATE 1 -#define YY_NO_TOP_STATE 1 -#endif - -#ifdef YY_MALLOC_DECL -YY_MALLOC_DECL -#else -#if __STDC__ -#ifndef __cplusplus -#include <stdlib.h> -#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. */ #ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k */ +#define YY_READ_BUF_SIZE 16384 +#else #define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ - #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO (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, @@ -1017,9 +1128,10 @@ YY_MALLOC_DECL */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ - if ( yy_current_buffer->yy_is_interactive ) \ + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ - int c = '*', n; \ + int c = '*'; \ + size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -1029,9 +1141,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();" - @@ -1052,12 +1177,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. @@ -1074,27 +1205,35 @@ YY_MALLOC_DECL #define YY_RULE_SETUP \ YY_USER_ACTION +/** The main scanner function which does all the work. + */ YY_DECL - { +{ register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; - + #line 148 "scanner.ll" -#line 1087 "scanner.cc" +#line 1220 "scanner.cc" - 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; @@ -1102,28 +1241,32 @@ 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_state_ptr = yy_state_buf; - *yy_state_ptr++ = yy_current_state; + yy_current_state = (yy_start); + + (yy_state_ptr) = (yy_state_buf); + *(yy_state_ptr)++ = yy_current_state; + yy_match: do { @@ -1131,40 +1274,38 @@ 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 >= 311 ) + if ( yy_current_state >= 319 ) 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_current_state != 310 ); + while ( yy_current_state != 318 ); 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: @@ -1173,6 +1314,7 @@ YY_RULE_SETUP ; YY_BREAK case 2: +/* rule 2 can match eol */ YY_RULE_SETUP #line 151 "scanner.ll" { idl_line_no++; } @@ -1222,6 +1364,7 @@ YY_RULE_SETUP } YY_BREAK case 10: +/* rule 10 can match eol */ YY_RULE_SETUP #line 170 "scanner.ll" { @@ -1234,6 +1377,7 @@ YY_RULE_SETUP } YY_BREAK case 11: +/* rule 11 can match eol */ YY_RULE_SETUP #line 178 "scanner.ll" { @@ -1523,28 +1667,31 @@ YY_RULE_SETUP case 68: YY_RULE_SETUP #line 239 "scanner.ll" -return T_NULL; +; YY_BREAK case 69: YY_RULE_SETUP #line 240 "scanner.ll" -return T_EXTERN; +return T_NULL; YY_BREAK case 70: YY_RULE_SETUP #line 241 "scanner.ll" -return T_EXTERN_C; +return T_EXTERN; YY_BREAK case 71: YY_RULE_SETUP -#line 243 "scanner.ll" +#line 242 "scanner.ll" +return T_EXTERN_C; + YY_BREAK +case 72: +YY_RULE_SETUP +#line 244 "scanner.ll" { yylval._str = new TQString( yytext ); return T_IDENTIFIER; } YY_BREAK -case 72: -#line 249 "scanner.ll" case 73: #line 250 "scanner.ll" case 74: @@ -1552,40 +1699,42 @@ case 74: case 75: #line 252 "scanner.ll" case 76: +#line 253 "scanner.ll" +case 77: YY_RULE_SETUP -#line 252 "scanner.ll" +#line 253 "scanner.ll" { yylval._float = ascii_to_longdouble( yytext ); return T_DOUBLE_LITERAL; } YY_BREAK -case 77: +case 78: YY_RULE_SETUP -#line 256 "scanner.ll" +#line 257 "scanner.ll" { yylval._int = ascii_to_longlong( 10, yytext ); return T_INTEGER_LITERAL; } YY_BREAK -case 78: +case 79: YY_RULE_SETUP -#line 260 "scanner.ll" +#line 261 "scanner.ll" { yylval._int = ascii_to_longlong( 8, yytext ); return T_INTEGER_LITERAL; } YY_BREAK -case 79: +case 80: YY_RULE_SETUP -#line 264 "scanner.ll" +#line 265 "scanner.ll" { yylval._int = ascii_to_longlong( 16, yytext + 2 ); return T_INTEGER_LITERAL; } YY_BREAK -case 80: +case 81: YY_RULE_SETUP -#line 268 "scanner.ll" +#line 269 "scanner.ll" { TQCString s( yytext ); s = s.mid( 1, s.length() - 2 ); @@ -1593,18 +1742,18 @@ YY_RULE_SETUP return T_CHARACTER_LITERAL; } YY_BREAK -case 81: +case 82: YY_RULE_SETUP -#line 274 "scanner.ll" +#line 275 "scanner.ll" { TQString s( yytext ); yylval._str = new TQString( s.mid( 1, s.length() - 2 ) ); return T_STRING_LITERAL; } YY_BREAK -case 82: +case 83: YY_RULE_SETUP -#line 279 "scanner.ll" +#line 280 "scanner.ll" { if (function_mode) return yylex(); // call once again @@ -1613,38 +1762,38 @@ YY_RULE_SETUP return T_UNKNOWN; } YY_BREAK -case 83: +case 84: YY_RULE_SETUP -#line 287 "scanner.ll" +#line 288 "scanner.ll" ECHO; YY_BREAK -#line 1622 "scanner.cc" +#line 1771 "scanner.cc" case YY_STATE_EOF(INITIAL): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; + 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 @@ -1654,13 +1803,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 @@ -1673,30 +1822,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 @@ -1707,7 +1856,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; @@ -1715,30 +1864,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; @@ -1749,8 +1898,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 * @@ -1759,21 +1907,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. @@ -1793,86 +1940,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; } } @@ -1880,146 +1993,140 @@ static int yy_get_next_buffer() else ret_val = EOB_ACT_CONTINUE_SCAN; - yy_n_chars += number_to_move; - yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; - yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + /* Extend the array by 50%, plus the number we really need. */ + yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + } - yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; + (yy_n_chars) += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; - return ret_val; - } + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + return ret_val; +} /* yy_get_previous_state - get the state just before the EOB char was reached */ -static yy_state_type yy_get_previous_state() - { + static yy_state_type yy_get_previous_state (void) +{ register yy_state_type yy_current_state; register char *yy_cp; + + yy_current_state = (yy_start); - yy_current_state = yy_start; - yy_state_ptr = yy_state_buf; - *yy_state_ptr++ = yy_current_state; + (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 ) + 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 >= 311 ) + if ( yy_current_state >= 319 ) 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 >= 311 ) + if ( yy_current_state >= 319 ) 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 == 310); + yy_is_jam = (yy_current_state == 318); 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() @@ -2033,16 +2140,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(); @@ -2052,90 +2159,92 @@ 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); 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()" ); @@ -2144,80 +2253,71 @@ int size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ - b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); + b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; - yy_init_buffer( b, file ); + yy_init_buffer(b,file ); return b; - } - +} -#ifdef YY_USE_PROTOS -void yy_delete_buffer( YY_BUFFER_STATE b ) -#else -void yy_delete_buffer( b ) -YY_BUFFER_STATE b; -#endif - { +/** Destroy the buffer. + * @param b a buffer created with yy_create_buffer() + * + */ + void yy_delete_buffer (YY_BUFFER_STATE b ) +{ + if ( ! b ) return; - if ( b == yy_current_buffer ) - yy_current_buffer = (YY_BUFFER_STATE) 0; + if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) - yy_flex_free( (void *) b->yy_ch_buf ); - - yy_flex_free( (void *) b ); - } + yyfree((void *) b->yy_ch_buf ); + yyfree((void *) b ); +} -#ifndef YY_ALWAYS_INTERACTIVE -#ifndef YY_NEVER_INTERACTIVE -extern int isatty YY_PROTO(( int )); -#endif -#endif - -#ifdef YY_USE_PROTOS -void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) -#else -void yy_init_buffer( b, file ) -YY_BUFFER_STATE b; -FILE *file; -#endif - +/* Initializes or reinitializes a buffer. + * This function is sometimes called more than once on the same buffer, + * such as during a yyrestart() or at EOF. + */ + static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) - { - yy_flush_buffer( b ); +{ + int oerrno = errno; + + yy_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; -#if YY_ALWAYS_INTERACTIVE - b->yy_is_interactive = 1; -#else -#if YY_NEVER_INTERACTIVE - b->yy_is_interactive = 0; -#else - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; -#endif -#endif - } - - -#ifdef YY_USE_PROTOS -void yy_flush_buffer( YY_BUFFER_STATE b ) -#else -void yy_flush_buffer( b ) -YY_BUFFER_STATE b; -#endif + /* If b is the current buffer, then yy_init_buffer was _probably_ + * called from yyrestart() or through yy_get_next_buffer. + * In that case, we don't want to reset the lineno or column. + */ + if (b != YY_CURRENT_BUFFER){ + b->yy_bs_lineno = 1; + b->yy_bs_column = 0; + } + + b->yy_is_interactive = 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; @@ -2234,29 +2334,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()" ); @@ -2270,56 +2466,51 @@ yy_size_t size; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; - yy_switch_to_buffer( b ); + yy_switch_to_buffer(b ); return b; - } -#endif - - -#ifndef YY_NO_SCAN_STRING -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) -#else -YY_BUFFER_STATE yy_scan_string( yy_str ) -yyconst char *yy_str; -#endif - { - int len; - for ( len = 0; yy_str[len]; ++len ) - ; - - return yy_scan_bytes( yy_str, len ); - } -#endif +} +/** Setup the input buffer state to scan a string. The next call to yylex() will + * scan from a @e copy of @a str. + * @param yystr a NUL-terminated string to scan + * + * @return the newly allocated buffer state object. + * @note If you want to scan bytes that may contain NUL values, then use + * yy_scan_bytes() instead. + */ +YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) +{ + + return yy_scan_bytes(yystr,strlen(yystr) ); +} -#ifndef YY_NO_SCAN_BYTES -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) -#else -YY_BUFFER_STATE yy_scan_bytes( bytes, len ) -yyconst char *bytes; -int len; -#endif - { +/** Setup the input buffer state to scan the given bytes. The next call to yylex() will + * scan from a @e copy of @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, 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()" ); @@ -2329,148 +2520,204 @@ int len; b->yy_is_our_buffer = 1; return b; - } +} + +#ifndef YY_EXIT_FAILURE +#define YY_EXIT_FAILURE 2 #endif +static void yy_fatal_error (yyconst char* msg ) +{ + (void) fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); +} -#ifndef YY_NO_PUSH_STATE -#ifdef YY_USE_PROTOS -static void yy_push_state( int new_state ) -#else -static void yy_push_state( new_state ) -int new_state; -#endif - { - if ( yy_start_stack_ptr >= yy_start_stack_depth ) - { - yy_size_t new_size; +/* Redefine yyless() so it works in section 3 code. */ - yy_start_stack_depth += YY_START_STACK_INCR; - new_size = yy_start_stack_depth * sizeof( int ); +#undef yyless +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + yytext[yyleng] = (yy_hold_char); \ + (yy_c_buf_p) = yytext + yyless_macro_arg; \ + (yy_hold_char) = *(yy_c_buf_p); \ + *(yy_c_buf_p) = '\0'; \ + yyleng = yyless_macro_arg; \ + } \ + while ( 0 ) - if ( ! yy_start_stack ) - yy_start_stack = (int *) yy_flex_alloc( new_size ); +/* Accessor methods (get/set functions) to struct members. */ - else - yy_start_stack = (int *) yy_flex_realloc( - (void *) yy_start_stack, new_size ); +/** Get the current line number. + * + */ +int yyget_lineno (void) +{ + + return yylineno; +} - if ( ! yy_start_stack ) - YY_FATAL_ERROR( - "out of memory expanding start-condition stack" ); - } +/** Get the input stream. + * + */ +FILE *yyget_in (void) +{ + return yyin; +} - yy_start_stack[yy_start_stack_ptr++] = YY_START; +/** Get the output stream. + * + */ +FILE *yyget_out (void) +{ + return yyout; +} - BEGIN(new_state); - } -#endif +/** Get the length of the current token. + * + */ +int yyget_leng (void) +{ + return yyleng; +} +/** Get the current token. + * + */ -#ifndef YY_NO_POP_STATE -static void yy_pop_state() - { - if ( --yy_start_stack_ptr < 0 ) - YY_FATAL_ERROR( "start-condition stack underflow" ); +char *yyget_text (void) +{ + return yytext; +} - BEGIN(yy_start_stack[yy_start_stack_ptr]); - } -#endif +/** Set the current line number. + * @param line_number + * + */ +void yyset_lineno (int line_number ) +{ + + yylineno = line_number; +} + +/** Set the input stream. This does not discard the current + * input buffer. + * @param in_str A readable stream. + * + * @see yy_switch_to_buffer + */ +void yyset_in (FILE * in_str ) +{ + yyin = in_str ; +} +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( ); -/* Internal utility routines. */ + return 0; +} + +/* + * 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 @@ -2479,30 +2726,22 @@ yy_size_t size; * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); - } +} -#ifdef YY_USE_PROTOS -static void yy_flex_free( void *ptr ) -#else -static void yy_flex_free( ptr ) -void *ptr; -#endif - { - free( ptr ); - } +void yyfree (void * ptr ) +{ + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ +} + +#define YYTABLES_NAME "yytables" + +#line 288 "scanner.ll" -#if YY_MAIN -int main() - { - yylex(); - return 0; - } -#endif -#line 287 "scanner.ll" void dcopidlInitFlex( const char *_code ) { comment_mode = 0; - yy_switch_to_buffer( yy_scan_string( _code ) ); + yy_switch_to_buffer(yy_scan_string(_code ) ); } + diff --git a/dcop/dcopidl/yacc.cc b/dcop/dcopidl/yacc.cc index d41fa6dbd..85794118a 100644 --- a/dcop/dcopidl/yacc.cc +++ b/dcop/dcopidl/yacc.cc @@ -1,30 +1,39 @@ -/* A Bison parser, made by GNU Bison 1.875d. */ -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +/* A Bison parser, made by GNU Bison 2.4.1. */ - This program is free software; you can redistribute it and/or modify +/* Skeleton implementation for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ - -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ - -/* Written by Richard Stallman by simplifying the original so called - ``semantic'' parser. */ + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ + +/* C LALR(1) parser skeleton written by Richard Stallman, by + simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local @@ -36,17 +45,116 @@ /* Identify Bison output. */ #define YYBISON 1 +/* Bison version. */ +#define YYBISON_VERSION "2.4.1" + /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 +/* Push parsers. */ +#define YYPUSH 0 + +/* Pull parsers. */ +#define YYPULL 1 + /* Using locations. */ #define YYLSP_NEEDED 0 +/* Copy the first part of user declarations. */ + +/* Line 189 of yacc.c */ +#line 1 "yacc.yy" + +/***************************************************************** +Copyright (c) 1999 Torben Weis <weis@kde.org> +Copyright (c) 2000 Matthias Ettrich <ettrich@kde.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#include <config.h> + +// Workaround for a bison issue: +// bison.simple concludes from _GNU_SOURCE that stpcpy is available, +// while GNU string.h only exposes it if __USE_GNU is set. +#ifdef _GNU_SOURCE +#define __USE_GNU 1 +#endif + +#include <stdlib.h> +#include <stdio.h> +#include <assert.h> + +#include <qstring.h> + +#define AMP_ENTITY "&" +#define YYERROR_VERBOSE + +extern int yylex(); + +// extern QString idl_lexFile; +extern int idl_line_no; +extern int function_mode; + +static int dcop_area = 0; +static int dcop_signal_area = 0; + +static QString in_namespace( "" ); + +void dcopidlInitFlex( const char *_code ); + +void yyerror( const char *s ) +{ + qDebug( "In line %i : %s", idl_line_no, s ); + exit(1); + // theParser->parse_error( idl_lexFile, s, idl_line_no ); +} + + + +/* Line 189 of yacc.c */ +#line 138 "yacc.cc" + +/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG 1 +#endif + +/* Enabling verbose error messages. */ +#ifdef YYERROR_VERBOSE +# undef YYERROR_VERBOSE +# define YYERROR_VERBOSE 1 +#else +# define YYERROR_VERBOSE 0 +#endif + +/* Enabling the token table. */ +#ifndef YYTOKEN_TABLE +# define YYTOKEN_TABLE 0 +#endif + + /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE @@ -119,225 +227,202 @@ T_SHIFT = 321 }; #endif -#define T_UNIMPORTANT 258 -#define T_CHARACTER_LITERAL 259 -#define T_DOUBLE_LITERAL 260 -#define T_IDENTIFIER 261 -#define T_INTEGER_LITERAL 262 -#define T_STRING_LITERAL 263 -#define T_INCLUDE 264 -#define T_CLASS 265 -#define T_STRUCT 266 -#define T_LEFT_CURLY_BRACKET 267 -#define T_LEFT_PARANTHESIS 268 -#define T_RIGHT_CURLY_BRACKET 269 -#define T_RIGHT_PARANTHESIS 270 -#define T_COLON 271 -#define T_SEMICOLON 272 -#define T_PUBLIC 273 -#define T_PROTECTED 274 -#define T_TRIPE_DOT 275 -#define T_PRIVATE 276 -#define T_VIRTUAL 277 -#define T_CONST 278 -#define T_INLINE 279 -#define T_FRIEND 280 -#define T_RETURN 281 -#define T_SIGNAL 282 -#define T_SLOT 283 -#define T_TYPEDEF 284 -#define T_PLUS 285 -#define T_MINUS 286 -#define T_COMMA 287 -#define T_ASTERISK 288 -#define T_TILDE 289 -#define T_LESS 290 -#define T_GREATER 291 -#define T_AMPERSAND 292 -#define T_EXTERN 293 -#define T_EXTERN_C 294 -#define T_ACCESS 295 -#define T_ENUM 296 -#define T_NAMESPACE 297 -#define T_USING 298 -#define T_UNKNOWN 299 -#define T_TRIPLE_DOT 300 -#define T_TRUE 301 -#define T_FALSE 302 -#define T_STATIC 303 -#define T_MUTABLE 304 -#define T_EQUAL 305 -#define T_SCOPE 306 -#define T_NULL 307 -#define T_INT 308 -#define T_ARRAY_OPEN 309 -#define T_ARRAY_CLOSE 310 -#define T_CHAR 311 -#define T_DCOP 312 -#define T_DCOP_AREA 313 -#define T_DCOP_SIGNAL_AREA 314 -#define T_SIGNED 315 -#define T_UNSIGNED 316 -#define T_LONG 317 -#define T_SHORT 318 -#define T_FUNOPERATOR 319 -#define T_MISCOPERATOR 320 -#define T_SHIFT 321 - - -/* Copy the first part of user declarations. */ -#line 1 "yacc.yy" -/***************************************************************** -Copyright (c) 1999 Torben Weis <weis@kde.org> -Copyright (c) 2000 Matthias Ettrich <ettrich@kde.org> - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE +{ -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +/* Line 214 of yacc.c */ +#line 67 "yacc.yy" -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + long _int; + QString *_str; + unsigned short _char; + double _float; -******************************************************************/ -#include <config.h> -// Workaround for a bison issue: -// bison.simple concludes from _GNU_SOURCE that stpcpy is available, -// while GNU string.h only exposes it if __USE_GNU is set. -#ifdef _GNU_SOURCE -#define __USE_GNU 1 +/* Line 214 of yacc.c */ +#line 249 "yacc.cc" +} YYSTYPE; +# define YYSTYPE_IS_TRIVIAL 1 +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ +# define YYSTYPE_IS_DECLARED 1 #endif -#include <stdlib.h> -#include <stdio.h> -#include <assert.h> - -#include <tqstring.h> - -#define AMP_ENTITY "&" -#define YYERROR_VERBOSE - -extern int yylex(); -// extern TQString idl_lexFile; -extern int idl_line_no; -extern int function_mode; - -static int dcop_area = 0; -static int dcop_signal_area = 0; - -static TQString in_namespace( "" ); - -void dcopidlInitFlex( const char *_code ); +/* Copy the second part of user declarations. */ -void yyerror( const char *s ) -{ - qDebug( "In line %i : %s", idl_line_no, s ); - exit(1); - // theParser->parse_error( idl_lexFile, s, idl_line_no ); -} +/* Line 264 of yacc.c */ +#line 261 "yacc.cc" +#ifdef short +# undef short +#endif -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 1 +#ifdef YYTYPE_UINT8 +typedef YYTYPE_UINT8 yytype_uint8; +#else +typedef unsigned char yytype_uint8; #endif -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 +#ifdef YYTYPE_INT8 +typedef YYTYPE_INT8 yytype_int8; +#elif (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +typedef signed char yytype_int8; #else -# define YYERROR_VERBOSE 0 +typedef short int yytype_int8; #endif -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) -#line 67 "yacc.yy" -typedef union YYSTYPE { - long _int; - TQString *_str; - unsigned short _char; - double _float; -} YYSTYPE; -/* Line 191 of yacc.c. */ -#line 279 "yacc.cc" -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 +#ifdef YYTYPE_UINT16 +typedef YYTYPE_UINT16 yytype_uint16; +#else +typedef unsigned short int yytype_uint16; #endif +#ifdef YYTYPE_INT16 +typedef YYTYPE_INT16 yytype_int16; +#else +typedef short int yytype_int16; +#endif +#ifndef YYSIZE_T +# ifdef __SIZE_TYPE__ +# define YYSIZE_T __SIZE_TYPE__ +# elif defined size_t +# define YYSIZE_T size_t +# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# else +# define YYSIZE_T unsigned int +# endif +#endif -/* Copy the second part of user declarations. */ +#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) +#ifndef YY_ +# if YYENABLE_NLS +# if ENABLE_NLS +# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ +# define YY_(msgid) dgettext ("bison-runtime", msgid) +# endif +# endif +# ifndef YY_ +# define YY_(msgid) msgid +# endif +#endif -/* Line 214 of yacc.c. */ -#line 291 "yacc.cc" +/* Suppress unused-variable warnings by "using" E. */ +#if ! defined lint || defined __GNUC__ +# define YYUSE(e) ((void) (e)) +#else +# define YYUSE(e) /* empty */ +#endif -#if ! defined (yyoverflow) || YYERROR_VERBOSE +/* Identity function, used to suppress warnings about constant conditions. */ +#ifndef lint +# define YYID(n) (n) +#else +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static int +YYID (int yyi) +#else +static int +YYID (yyi) + int yyi; +#endif +{ + return yyi; +} +#endif -# ifndef YYFREE -# define YYFREE free -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# endif +#if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA -# define YYSTACK_ALLOC alloca -# endif -# else -# if defined (alloca) || defined (_ALLOCA_H) -# define YYSTACK_ALLOC alloca -# else # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca +# elif defined __BUILTIN_VA_ARG_INCR +# include <alloca.h> /* INFRINGES ON USER NAME SPACE */ +# elif defined _AIX +# define YYSTACK_ALLOC __alloca +# elif defined _MSC_VER +# include <malloc.h> /* INFRINGES ON USER NAME SPACE */ +# define alloca _alloca +# else +# define YYSTACK_ALLOC alloca +# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ +# ifndef _STDLIB_H +# define _STDLIB_H 1 +# endif +# endif # endif # endif # endif # ifdef YYSTACK_ALLOC - /* Pacify GCC's `empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) -# else -# if defined (__STDC__) || defined (__cplusplus) -# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) +# ifndef YYSTACK_ALLOC_MAXIMUM + /* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif +# else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM +# endif +# if (defined __cplusplus && ! defined _STDLIB_H \ + && ! ((defined YYMALLOC || defined malloc) \ + && (defined YYFREE || defined free))) +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ +# ifndef _STDLIB_H +# define _STDLIB_H 1 +# endif +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +void free (void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif # endif -#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ +#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ -#if (! defined (yyoverflow) \ - && (! defined (__cplusplus) \ - || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL))) +#if (! defined yyoverflow \ + && (! defined __cplusplus \ + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { - short int yyss; - YYSTYPE yyvs; - }; + yytype_int16 yyss_alloc; + YYSTYPE yyvs_alloc; +}; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) @@ -345,24 +430,24 @@ union yyalloc /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ - ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \ + ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY -# if defined (__GNUC__) && 1 < __GNUC__ +# if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ - register YYSIZE_T yyi; \ + YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ - while (0) + while (YYID (0)) # endif # endif @@ -371,48 +456,42 @@ union yyalloc elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ -# define YYSTACK_RELOCATE(Stack) \ +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack, Stack, yysize); \ - Stack = &yyptr->Stack; \ + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ + Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ - while (0) + while (YYID (0)) #endif -#if defined (__STDC__) || defined (__cplusplus) - typedef signed char yysigned_char; -#else - typedef short int yysigned_char; -#endif - -/* YYFINAL -- State number of the termination state. */ +/* YYFINAL -- State number of the termination state. */ #define YYFINAL 5 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 559 -/* YYNTOKENS -- Number of terminals. */ +/* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 67 -/* YYNNTS -- Number of nonterminals. */ +/* YYNNTS -- Number of nonterminals. */ #define YYNNTS 53 -/* YYNRULES -- Number of rules. */ +/* YYNRULES -- Number of rules. */ #define YYNRULES 185 -/* YYNRULES -- Number of states. */ +/* YYNRULES -- Number of states. */ #define YYNSTATES 374 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 321 -#define YYTRANSLATE(YYX) \ +#define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ -static const unsigned char yytranslate[] = +static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -452,7 +531,7 @@ static const unsigned char yytranslate[] = #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ -static const unsigned short int yyprhs[] = +static const yytype_uint16 yyprhs[] = { 0, 0, 3, 7, 8, 11, 16, 17, 19, 20, 27, 35, 39, 43, 49, 50, 58, 63, 69, 72, @@ -475,8 +554,8 @@ static const unsigned short int yyprhs[] = 611, 615, 621, 627, 633, 640 }; -/* YYRHS -- A `-1'-separated list of the rules' RHS. */ -static const yysigned_char yyrhs[] = +/* YYRHS -- A `-1'-separated list of the rules' RHS. */ +static const yytype_int8 yyrhs[] = { 68, 0, -1, 69, 71, 68, -1, -1, 69, 9, -1, 39, 12, 68, 14, -1, -1, 57, -1, -1, @@ -546,7 +625,7 @@ static const yysigned_char yyrhs[] = }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ -static const unsigned short int yyrline[] = +static const yytype_uint16 yyrline[] = { 0, 164, 164, 167, 171, 175, 179, 184, 185, 189, 198, 207, 210, 213, 217, 216, 228, 231, 234, 237, @@ -570,9 +649,9 @@ static const unsigned short int yyrline[] = }; #endif -#if YYDEBUG || YYERROR_VERBOSE -/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. - First, the terminals, then, starting at YYNTOKENS, nonterminals. */ +#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE +/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "T_UNIMPORTANT", "T_CHARACTER_LITERAL", @@ -589,7 +668,7 @@ static const char *const yytname[] = "T_NULL", "T_INT", "T_ARRAY_OPEN", "T_ARRAY_CLOSE", "T_CHAR", "T_DCOP", "T_DCOP_AREA", "T_DCOP_SIGNAL_AREA", "T_SIGNED", "T_UNSIGNED", "T_LONG", "T_SHORT", "T_FUNOPERATOR", "T_MISCOPERATOR", "T_SHIFT", "$accept", - "main", "includes", "dcoptag", "declaration", "@1", "member_list", + "main", "includes", "dcoptag", "declaration", "$@1", "member_list", "bool_value", "nodcop_area", "sigslot", "nodcop_area_begin", "dcop_area_begin", "dcop_signal_area_begin", "Identifier", "super_class_name", "super_class", "super_classes", "class_header", @@ -607,7 +686,7 @@ static const char *const yytname[] = # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ -static const unsigned short int yytoknum[] = +static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, @@ -620,7 +699,7 @@ static const unsigned short int yytoknum[] = # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const unsigned char yyr1[] = +static const yytype_uint8 yyr1[] = { 0, 67, 68, 68, 69, 69, 69, 70, 70, 71, 71, 71, 71, 71, 72, 71, 71, 71, 71, 71, @@ -644,7 +723,7 @@ static const unsigned char yyr1[] = }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ -static const unsigned char yyr2[] = +static const yytype_uint8 yyr2[] = { 0, 2, 3, 0, 2, 4, 0, 1, 0, 6, 7, 3, 3, 5, 0, 7, 4, 5, 2, 4, @@ -670,7 +749,7 @@ static const unsigned char yyr2[] = /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ -static const unsigned char yydefact[] = +static const yytype_uint8 yydefact[] = { 6, 0, 0, 145, 6, 1, 40, 4, 0, 0, 146, 0, 145, 0, 0, 0, 0, 0, 0, 0, @@ -712,8 +791,8 @@ static const unsigned char yydefact[] = 85, 155, 0, 86 }; -/* YYDEFGOTO[NTERM-NUM]. */ -static const short int yydefgoto[] = +/* YYDEFGOTO[NTERM-NUM]. */ +static const yytype_int16 yydefgoto[] = { -1, 2, 3, 156, 26, 192, 183, 214, 171, 172, 173, 174, 175, 27, 151, 152, 153, 94, 343, 176, @@ -726,7 +805,7 @@ static const short int yydefgoto[] = /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -191 -static const short int yypact[] = +static const yytype_int16 yypact[] = { 28, 78, 99, 342, 80, -191, 67, -191, 115, 159, 205, 81, 386, 463, 153, 44, 190, 32, 205, 205, @@ -769,7 +848,7 @@ static const short int yypact[] = }; /* YYPGOTO[NTERM-NUM]. */ -static const short int yypgoto[] = +static const yytype_int16 yypgoto[] = { -191, 9, -191, 314, -191, -191, -2, -191, -191, 301, -191, -191, -191, -8, 238, -191, 243, -33, -191, 77, @@ -784,7 +863,7 @@ static const short int yypgoto[] = number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -177 -static const short int yytable[] = +static const yytype_int16 yytable[] = { 39, 40, 43, 43, 101, 43, 218, 96, 35, 34, 43, 43, 46, 36, 154, 222, 188, 115, 48, 198, @@ -844,7 +923,7 @@ static const short int yytable[] = 0, 0, 0, 211, 212, 0, 0, 0, 0, 213 }; -static const short int yycheck[] = +static const yytype_int16 yycheck[] = { 8, 9, 10, 11, 45, 13, 130, 40, 3, 3, 18, 19, 11, 4, 92, 138, 107, 58, 12, 116, @@ -906,7 +985,7 @@ static const short int yycheck[] = /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ -static const unsigned char yystos[] = +static const yytype_uint8 yystos[] = { 0, 39, 68, 69, 12, 0, 6, 9, 10, 11, 22, 23, 24, 29, 38, 41, 42, 43, 48, 49, @@ -948,22 +1027,6 @@ static const unsigned char yystos[] = 17, 108, 80, 17 }; -#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) -# define YYSIZE_T __SIZE_TYPE__ -#endif -#if ! defined (YYSIZE_T) && defined (size_t) -# define YYSIZE_T size_t -#endif -#if ! defined (YYSIZE_T) -# if defined (__STDC__) || defined (__cplusplus) -# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# endif -#endif -#if ! defined (YYSIZE_T) -# define YYSIZE_T unsigned int -#endif - #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) @@ -989,30 +1052,63 @@ do \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ - YYPOPSTACK; \ + YYPOPSTACK (1); \ goto yybackup; \ } \ else \ - { \ - yyerror ("syntax error: cannot back up");\ + { \ + yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ -while (0) +while (YYID (0)) + #define YYTERROR 1 #define YYERRCODE 256 -/* YYLLOC_DEFAULT -- Compute the default location (before the actions - are run). */ +/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. + If N is 0, then set CURRENT to the empty location which ends + the previous symbol: RHS[0] (always defined). */ + +#define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - ((Current).first_line = (Rhs)[1].first_line, \ - (Current).first_column = (Rhs)[1].first_column, \ - (Current).last_line = (Rhs)[N].last_line, \ - (Current).last_column = (Rhs)[N].last_column) +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + do \ + if (YYID (N)) \ + { \ + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ + } \ + else \ + { \ + (Current).first_line = (Current).last_line = \ + YYRHSLOC (Rhs, 0).last_line; \ + (Current).first_column = (Current).last_column = \ + YYRHSLOC (Rhs, 0).last_column; \ + } \ + while (YYID (0)) +#endif + + +/* YY_LOCATION_PRINT -- Print the location on the stream. + This macro was not mandated originally: define only if we know + we won't break user code: when these are the locations we know. */ + +#ifndef YY_LOCATION_PRINT +# if YYLTYPE_IS_TRIVIAL +# define YY_LOCATION_PRINT(File, Loc) \ + fprintf (File, "%d.%d-%d.%d", \ + (Loc).first_line, (Loc).first_column, \ + (Loc).last_line, (Loc).last_column) +# else +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) +# endif #endif + /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM @@ -1033,43 +1129,100 @@ while (0) do { \ if (yydebug) \ YYFPRINTF Args; \ -} while (0) +} while (YYID (0)) -# define YYDSYMPRINT(Args) \ -do { \ - if (yydebug) \ - yysymprint Args; \ -} while (0) +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +do { \ + if (yydebug) \ + { \ + YYFPRINTF (stderr, "%s ", Title); \ + yy_symbol_print (stderr, \ + Type, Value); \ + YYFPRINTF (stderr, "\n"); \ + } \ +} while (YYID (0)) -# define YYDSYMPRINTF(Title, Token, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yysymprint (stderr, \ - Token, Value); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (0) + +/*--------------------------------. +| Print this symbol on YYOUTPUT. | +`--------------------------------*/ + +/*ARGSUSED*/ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static void +yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) +#else +static void +yy_symbol_value_print (yyoutput, yytype, yyvaluep) + FILE *yyoutput; + int yytype; + YYSTYPE const * const yyvaluep; +#endif +{ + if (!yyvaluep) + return; +# ifdef YYPRINT + if (yytype < YYNTOKENS) + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); +# else + YYUSE (yyoutput); +# endif + switch (yytype) + { + default: + break; + } +} + + +/*--------------------------------. +| Print this symbol on YYOUTPUT. | +`--------------------------------*/ + +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static void +yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) +#else +static void +yy_symbol_print (yyoutput, yytype, yyvaluep) + FILE *yyoutput; + int yytype; + YYSTYPE const * const yyvaluep; +#endif +{ + if (yytype < YYNTOKENS) + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); + else + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); + + yy_symbol_value_print (yyoutput, yytype, yyvaluep); + YYFPRINTF (yyoutput, ")"); +} /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ -#if defined (__STDC__) || defined (__cplusplus) +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static void -yy_stack_print (short int *bottom, short int *top) +yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) #else static void -yy_stack_print (bottom, top) - short int *bottom; - short int *top; +yy_stack_print (yybottom, yytop) + yytype_int16 *yybottom; + yytype_int16 *yytop; #endif { YYFPRINTF (stderr, "Stack now"); - for (/* Nothing. */; bottom <= top; ++bottom) - YYFPRINTF (stderr, " %d", *bottom); + for (; yybottom <= yytop; yybottom++) + { + int yybot = *yybottom; + YYFPRINTF (stderr, " %d", yybot); + } YYFPRINTF (stderr, "\n"); } @@ -1077,45 +1230,52 @@ yy_stack_print (bottom, top) do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ -} while (0) +} while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ -#if defined (__STDC__) || defined (__cplusplus) +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static void -yy_reduce_print (int yyrule) +yy_reduce_print (YYSTYPE *yyvsp, int yyrule) #else static void -yy_reduce_print (yyrule) +yy_reduce_print (yyvsp, yyrule) + YYSTYPE *yyvsp; int yyrule; #endif { + int yynrhs = yyr2[yyrule]; int yyi; - unsigned int yylno = yyrline[yyrule]; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", - yyrule - 1, yylno); - /* Print the symbols being reduced, and their result. */ - for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) - YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); - YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); + unsigned long int yylno = yyrline[yyrule]; + YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", + yyrule - 1, yylno); + /* The symbols being reduced. */ + for (yyi = 0; yyi < yynrhs; yyi++) + { + YYFPRINTF (stderr, " $%d = ", yyi + 1); + yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], + &(yyvsp[(yyi + 1) - (yynrhs)]) + ); + YYFPRINTF (stderr, "\n"); + } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ - yy_reduce_print (Rule); \ -} while (0) + yy_reduce_print (yyvsp, Rule); \ +} while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) -# define YYDSYMPRINT(Args) -# define YYDSYMPRINTF(Title, Token, Value, Location) +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ @@ -1130,13 +1290,9 @@ int yydebug; if the built-in stack extension method is used). Do not make this value too large; the results are undefined if - SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) + YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ -#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0 -# undef YYMAXDEPTH -#endif - #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif @@ -1146,45 +1302,47 @@ int yydebug; #if YYERROR_VERBOSE # ifndef yystrlen -# if defined (__GLIBC__) && defined (_STRING_H) +# if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static YYSIZE_T -# if defined (__STDC__) || defined (__cplusplus) yystrlen (const char *yystr) -# else +#else +static YYSIZE_T yystrlen (yystr) - const char *yystr; -# endif + const char *yystr; +#endif { - register const char *yys = yystr; - - while (*yys++ != '\0') + YYSIZE_T yylen; + for (yylen = 0; yystr[yylen]; yylen++) continue; - - return yys - yystr - 1; + return yylen; } # endif # endif # ifndef yystpcpy -# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static char * -# if defined (__STDC__) || defined (__cplusplus) yystpcpy (char *yydest, const char *yysrc) -# else +#else +static char * yystpcpy (yydest, yysrc) - char *yydest; - const char *yysrc; -# endif + char *yydest; + const char *yysrc; +#endif { - register char *yyd = yydest; - register const char *yys = yysrc; + char *yyd = yydest; + const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; @@ -1194,84 +1352,204 @@ yystpcpy (yydest, yysrc) # endif # endif -#endif /* !YYERROR_VERBOSE */ +# ifndef yytnamerr +/* Copy to YYRES the contents of YYSTR after stripping away unnecessary + quotes and backslashes, so that it's suitable for yyerror. The + heuristic is that double-quoting is unnecessary unless the string + contains an apostrophe, a comma, or backslash (other than + backslash-backslash). YYSTR is taken from yytname. If YYRES is + null, do not copy; instead, return the length of what the result + would have been. */ +static YYSIZE_T +yytnamerr (char *yyres, const char *yystr) +{ + if (*yystr == '"') + { + YYSIZE_T yyn = 0; + char const *yyp = yystr; + + for (;;) + switch (*++yyp) + { + case '\'': + case ',': + goto do_not_strip_quotes; + + case '\\': + if (*++yyp != '\\') + goto do_not_strip_quotes; + /* Fall through. */ + default: + if (yyres) + yyres[yyn] = *yyp; + yyn++; + break; + + case '"': + if (yyres) + yyres[yyn] = '\0'; + return yyn; + } + do_not_strip_quotes: ; + } - + if (! yyres) + return yystrlen (yystr); -#if YYDEBUG -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ + return yystpcpy (yyres, yystr) - yyres; +} +# endif -#if defined (__STDC__) || defined (__cplusplus) -static void -yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) -#else -static void -yysymprint (yyoutput, yytype, yyvaluep) - FILE *yyoutput; - int yytype; - YYSTYPE *yyvaluep; -#endif +/* Copy into YYRESULT an error message about the unexpected token + YYCHAR while in state YYSTATE. Return the number of bytes copied, + including the terminating null byte. If YYRESULT is null, do not + copy anything; just return the number of bytes that would be + copied. As a special case, return 0 if an ordinary "syntax error" + message will do. Return YYSIZE_MAXIMUM if overflow occurs during + size calculation. */ +static YYSIZE_T +yysyntax_error (char *yyresult, int yystate, int yychar) { - /* Pacify ``unused variable'' warnings. */ - (void) yyvaluep; + int yyn = yypact[yystate]; - if (yytype < YYNTOKENS) - { - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); -# ifdef YYPRINT - YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); -# endif - } + if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) + return 0; else - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); - - switch (yytype) { - default: - break; + int yytype = YYTRANSLATE (yychar); + YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); + YYSIZE_T yysize = yysize0; + YYSIZE_T yysize1; + int yysize_overflow = 0; + enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; + int yyx; + +# if 0 + /* This is so xgettext sees the translatable formats that are + constructed on the fly. */ + YY_("syntax error, unexpected %s"); + YY_("syntax error, unexpected %s, expecting %s"); + YY_("syntax error, unexpected %s, expecting %s or %s"); + YY_("syntax error, unexpected %s, expecting %s or %s or %s"); + YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); +# endif + char *yyfmt; + char const *yyf; + static char const yyunexpected[] = "syntax error, unexpected %s"; + static char const yyexpecting[] = ", expecting %s"; + static char const yyor[] = " or %s"; + char yyformat[sizeof yyunexpected + + sizeof yyexpecting - 1 + + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) + * (sizeof yyor - 1))]; + char const *yyprefix = yyexpecting; + + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yycount = 1; + + yyarg[0] = yytname[yytype]; + yyfmt = yystpcpy (yyformat, yyunexpected); + + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) + { + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) + { + yycount = 1; + yysize = yysize0; + yyformat[sizeof yyunexpected - 1] = '\0'; + break; + } + yyarg[yycount++] = yytname[yyx]; + yysize1 = yysize + yytnamerr (0, yytname[yyx]); + yysize_overflow |= (yysize1 < yysize); + yysize = yysize1; + yyfmt = yystpcpy (yyfmt, yyprefix); + yyprefix = yyor; + } + + yyf = YY_(yyformat); + yysize1 = yysize + yystrlen (yyf); + yysize_overflow |= (yysize1 < yysize); + yysize = yysize1; + + if (yysize_overflow) + return YYSIZE_MAXIMUM; + + if (yyresult) + { + /* Avoid sprintf, as that infringes on the user's name space. + Don't have undefined behavior even if the translation + produced a string with the wrong number of "%s"s. */ + char *yyp = yyresult; + int yyi = 0; + while ((*yyp = *yyf) != '\0') + { + if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) + { + yyp += yytnamerr (yyp, yyarg[yyi++]); + yyf += 2; + } + else + { + yyp++; + yyf++; + } + } + } + return yysize; } - YYFPRINTF (yyoutput, ")"); } +#endif /* YYERROR_VERBOSE */ + -#endif /* ! YYDEBUG */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ -#if defined (__STDC__) || defined (__cplusplus) +/*ARGSUSED*/ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static void -yydestruct (int yytype, YYSTYPE *yyvaluep) +yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void -yydestruct (yytype, yyvaluep) +yydestruct (yymsg, yytype, yyvaluep) + const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { - /* Pacify ``unused variable'' warnings. */ - (void) yyvaluep; + YYUSE (yyvaluep); + + if (!yymsg) + yymsg = "Deleting"; + YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: - break; + break; } } - /* Prevent warnings from -Wmissing-prototypes. */ - #ifdef YYPARSE_PARAM -# if defined (__STDC__) || defined (__cplusplus) +#if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); -# else +#else int yyparse (); -# endif +#endif #else /* ! YYPARSE_PARAM */ -#if defined (__STDC__) || defined (__cplusplus) +#if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); @@ -1279,7 +1557,6 @@ int yyparse (); #endif /* ! YYPARSE_PARAM */ - /* The lookahead symbol. */ int yychar; @@ -1291,19 +1568,23 @@ int yynerrs; -/*----------. -| yyparse. | -`----------*/ +/*-------------------------. +| yyparse or yypush_parse. | +`-------------------------*/ #ifdef YYPARSE_PARAM -# if defined (__STDC__) || defined (__cplusplus) -int yyparse (void *YYPARSE_PARAM) -# else -int yyparse (YYPARSE_PARAM) - void *YYPARSE_PARAM; -# endif +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +int +yyparse (void *YYPARSE_PARAM) +#else +int +yyparse (YYPARSE_PARAM) + void *YYPARSE_PARAM; +#endif #else /* ! YYPARSE_PARAM */ -#if defined (__STDC__) || defined (__cplusplus) +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) int yyparse (void) #else @@ -1313,64 +1594,71 @@ yyparse () #endif #endif { - - register int yystate; - register int yyn; - int yyresult; - /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; - /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; - - /* Three stacks and their tools: - `yyss': related to states, - `yyvs': related to semantic values, - `yyls': related to locations. - Refer to the stacks thru separate pointers, to allow yyoverflow - to reallocate them elsewhere. */ - /* The state stack. */ - short int yyssa[YYINITDEPTH]; - short int *yyss = yyssa; - register short int *yyssp; + int yystate; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs = yyvsa; - register YYSTYPE *yyvsp; + /* The stacks and their tools: + `yyss': related to states. + `yyvs': related to semantic values. + Refer to the stacks thru separate pointers, to allow yyoverflow + to reallocate them elsewhere. */ + /* The state stack. */ + yytype_int16 yyssa[YYINITDEPTH]; + yytype_int16 *yyss; + yytype_int16 *yyssp; -#define YYPOPSTACK (yyvsp--, yyssp--) + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs; + YYSTYPE *yyvsp; - YYSIZE_T yystacksize = YYINITDEPTH; + YYSIZE_T yystacksize; + int yyn; + int yyresult; + /* Lookahead token as an internal (translated) token number. */ + int yytoken; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; +#if YYERROR_VERBOSE + /* Buffer for error messages, and its allocated size. */ + char yymsgbuf[128]; + char *yymsg = yymsgbuf; + YYSIZE_T yymsg_alloc = sizeof yymsgbuf; +#endif + +#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) + + /* The number of symbols on the RHS of the reduced rule. + Keep to zero when no symbol should be popped. */ + int yylen = 0; - /* When reducing, the number of symbols on the RHS of the reduced - rule. */ - int yylen; + yytoken = 0; + yyss = yyssa; + yyvs = yyvsa; + yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ + yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ - yyssp = yyss; yyvsp = yyvs; - goto yysetstate; /*------------------------------------------------------------. @@ -1378,8 +1666,7 @@ yyparse () `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. - */ + have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: @@ -1392,21 +1679,19 @@ yyparse () #ifdef yyoverflow { - /* Give user a chance to reallocate the stack. Use copies of + /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; - short int *yyss1 = yyss; - + yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ - yyoverflow ("parser stack overflow", + yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), - &yystacksize); yyss = yyss1; @@ -1414,24 +1699,23 @@ yyparse () } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE - goto yyoverflowlab; + goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) - goto yyoverflowlab; + goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { - short int *yyss1 = yyss; + yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) - goto yyoverflowlab; - YYSTACK_RELOCATE (yyss); - YYSTACK_RELOCATE (yyvs); - + goto yyexhaustedlab; + YYSTACK_RELOCATE (yyss_alloc, yyss); + YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); @@ -1442,7 +1726,6 @@ yyparse () yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; - YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); @@ -1452,6 +1735,9 @@ yyparse () YYDPRINTF ((stderr, "Entering state %d\n", yystate)); + if (yystate == YYFINAL) + YYACCEPT; + goto yybackup; /*-----------. @@ -1459,12 +1745,10 @@ yyparse () `-----------*/ yybackup: -/* Do appropriate processing given the current state. */ -/* Read a lookahead token if we need one and don't already have one. */ -/* yyresume: */ + /* Do appropriate processing given the current state. Read a + lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ - yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; @@ -1486,7 +1770,7 @@ yybackup: else { yytoken = YYTRANSLATE (yychar); - YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc); + YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to @@ -1503,25 +1787,20 @@ yybackup: goto yyreduce; } - if (yyn == YYFINAL) - YYACCEPT; - - /* Shift the lookahead token. */ - YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken])); - - /* Discard the token being shifted unless it is eof. */ - if (yychar != YYEOF) - yychar = YYEMPTY; - - *++yyvsp = yylval; - - /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; + /* Shift the lookahead token. */ + YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); + + /* Discard the shifted token. */ + yychar = YYEMPTY; + yystate = yyn; + *++yyvsp = yylval; + goto yynewstate; @@ -1557,45 +1836,59 @@ yyreduce: switch (yyn) { case 2: + +/* Line 1455 of yacc.c */ #line 165 "yacc.yy" { ;} break; case 4: + +/* Line 1455 of yacc.c */ #line 172 "yacc.yy" { - printf("<INCLUDE>%s</INCLUDE>\n", yyvsp[0]._str->latin1() ); + printf("<INCLUDE>%s</INCLUDE>\n", (yyvsp[(2) - (2)]._str)->latin1() ); ;} break; case 5: + +/* Line 1455 of yacc.c */ #line 176 "yacc.yy" { ;} break; case 6: + +/* Line 1455 of yacc.c */ #line 179 "yacc.yy" { ;} break; case 7: + +/* Line 1455 of yacc.c */ #line 184 "yacc.yy" - { yyval._int = 1; ;} + { (yyval._int) = 1; ;} break; case 8: + +/* Line 1455 of yacc.c */ #line 185 "yacc.yy" - { yyval._int = 0; ;} + { (yyval._int) = 0; ;} break; case 9: + +/* Line 1455 of yacc.c */ #line 190 "yacc.yy" { - if (yyvsp[-2]._int) - printf("<CLASS>\n <NAME>%s</NAME>\n%s%s</CLASS>\n", ( in_namespace + *yyvsp[-4]._str ).latin1(), yyvsp[-3]._str->latin1(), yyvsp[-1]._str->latin1() ); + if ((yyvsp[(4) - (6)]._int)) + printf("<CLASS>\n <NAME>%s</NAME>\n%s%s</CLASS>\n", ( in_namespace + *(yyvsp[(2) - (6)]._str) ).latin1(), (yyvsp[(3) - (6)]._str)->latin1(), (yyvsp[(5) - (6)]._str)->latin1() ); // default C++ visibility specifier is 'private' dcop_area = 0; dcop_signal_area = 0; @@ -1604,10 +1897,12 @@ yyreduce: break; case 10: + +/* Line 1455 of yacc.c */ #line 199 "yacc.yy" { - if (yyvsp[-2]._int) - printf("<CLASS>\n <NAME>%s</NAME>\n <LINK_SCOPE>%s</LINK_SCOPE>\n%s%s</CLASS>\n", ( in_namespace + *yyvsp[-4]._str ).latin1(),yyvsp[-5]._str->latin1(), yyvsp[-3]._str->latin1(), yyvsp[-1]._str->latin1() ); + if ((yyvsp[(5) - (7)]._int)) + printf("<CLASS>\n <NAME>%s</NAME>\n <LINK_SCOPE>%s</LINK_SCOPE>\n%s%s</CLASS>\n", ( in_namespace + *(yyvsp[(3) - (7)]._str) ).latin1(),(yyvsp[(2) - (7)]._str)->latin1(), (yyvsp[(4) - (7)]._str)->latin1(), (yyvsp[(6) - (7)]._str)->latin1() ); // default C++ visibility specifier is 'private' dcop_area = 0; dcop_signal_area = 0; @@ -1616,31 +1911,41 @@ yyreduce: break; case 11: + +/* Line 1455 of yacc.c */ #line 208 "yacc.yy" { ;} break; case 12: + +/* Line 1455 of yacc.c */ #line 211 "yacc.yy" { ;} break; case 13: + +/* Line 1455 of yacc.c */ #line 214 "yacc.yy" { ;} break; case 14: + +/* Line 1455 of yacc.c */ #line 217 "yacc.yy" { - in_namespace += *yyvsp[-1]._str; in_namespace += "::"; + in_namespace += *(yyvsp[(2) - (3)]._str); in_namespace += "::"; ;} break; case 15: + +/* Line 1455 of yacc.c */ #line 221 "yacc.yy" { int pos = in_namespace.findRev( "::", -3 ); @@ -1652,66 +1957,88 @@ yyreduce: break; case 16: + +/* Line 1455 of yacc.c */ #line 229 "yacc.yy" { ;} break; case 17: + +/* Line 1455 of yacc.c */ #line 232 "yacc.yy" { ;} break; case 18: + +/* Line 1455 of yacc.c */ #line 235 "yacc.yy" { ;} break; case 19: + +/* Line 1455 of yacc.c */ #line 238 "yacc.yy" { ;} break; case 20: + +/* Line 1455 of yacc.c */ #line 241 "yacc.yy" { ;} break; case 21: + +/* Line 1455 of yacc.c */ #line 244 "yacc.yy" { ;} break; case 22: + +/* Line 1455 of yacc.c */ #line 247 "yacc.yy" { ;} break; case 23: + +/* Line 1455 of yacc.c */ #line 250 "yacc.yy" { ;} break; case 24: + +/* Line 1455 of yacc.c */ #line 253 "yacc.yy" { ;} break; case 25: + +/* Line 1455 of yacc.c */ #line 256 "yacc.yy" { ;} break; case 36: + +/* Line 1455 of yacc.c */ #line 273 "yacc.yy" { dcop_area = 0; @@ -1720,6 +2047,8 @@ yyreduce: break; case 37: + +/* Line 1455 of yacc.c */ #line 278 "yacc.yy" { dcop_area = 0; @@ -1728,6 +2057,8 @@ yyreduce: break; case 38: + +/* Line 1455 of yacc.c */ #line 286 "yacc.yy" { dcop_area = 1; @@ -1736,6 +2067,8 @@ yyreduce: break; case 39: + +/* Line 1455 of yacc.c */ #line 294 "yacc.yy" { /* @@ -1748,271 +2081,351 @@ yyreduce: break; case 40: + +/* Line 1455 of yacc.c */ #line 305 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(1) - (1)]._str); ;} break; case 41: + +/* Line 1455 of yacc.c */ #line 308 "yacc.yy" { - TQString* tmp = new TQString( "%1::%2" ); - *tmp = tmp->arg(*(yyvsp[-2]._str)).arg(*(yyvsp[0]._str)); - yyval._str = tmp; + QString* tmp = new QString( "%1::%2" ); + *tmp = tmp->arg(*((yyvsp[(1) - (3)]._str))).arg(*((yyvsp[(3) - (3)]._str))); + (yyval._str) = tmp; ;} break; case 42: + +/* Line 1455 of yacc.c */ #line 317 "yacc.yy" { - TQString* tmp = new TQString( " <SUPER>%1</SUPER>\n" ); - *tmp = tmp->arg( *(yyvsp[0]._str) ); - yyval._str = tmp; + QString* tmp = new QString( " <SUPER>%1</SUPER>\n" ); + *tmp = tmp->arg( *((yyvsp[(1) - (1)]._str)) ); + (yyval._str) = tmp; ;} break; case 43: + +/* Line 1455 of yacc.c */ #line 323 "yacc.yy" { - TQString* tmp = new TQString( " <SUPER>%1</SUPER>\n" ); - *tmp = tmp->arg( *(yyvsp[-3]._str) + "<" + *(yyvsp[-1]._str) + ">" ); - yyval._str = tmp; + QString* tmp = new QString( " <SUPER>%1</SUPER>\n" ); + *tmp = tmp->arg( *((yyvsp[(1) - (4)]._str)) + "<" + *((yyvsp[(3) - (4)]._str)) + ">" ); + (yyval._str) = tmp; ;} break; case 44: + +/* Line 1455 of yacc.c */ #line 332 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(3) - (3)]._str); ;} break; case 45: + +/* Line 1455 of yacc.c */ #line 336 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(1) - (1)]._str); ;} break; case 46: + +/* Line 1455 of yacc.c */ #line 343 "yacc.yy" { - yyval._str = yyvsp[-1]._str; + (yyval._str) = (yyvsp[(1) - (2)]._str); ;} break; case 47: + +/* Line 1455 of yacc.c */ #line 347 "yacc.yy" { /* $$ = $1; */ - yyval._str = new TQString( *(yyvsp[-2]._str) + *(yyvsp[0]._str) ); + (yyval._str) = new QString( *((yyvsp[(1) - (3)]._str)) + *((yyvsp[(3) - (3)]._str)) ); ;} break; case 48: + +/* Line 1455 of yacc.c */ #line 355 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(2) - (2)]._str); ;} break; case 49: + +/* Line 1455 of yacc.c */ #line 359 "yacc.yy" { - yyval._str = new TQString( "" ); + (yyval._str) = new QString( "" ); ;} break; case 50: + +/* Line 1455 of yacc.c */ #line 366 "yacc.yy" { ;} break; case 52: + +/* Line 1455 of yacc.c */ #line 373 "yacc.yy" { - yyval._str = new TQString( "" ); + (yyval._str) = new QString( "" ); ;} break; case 53: + +/* Line 1455 of yacc.c */ #line 377 "yacc.yy" { - yyval._str = new TQString( *(yyvsp[-1]._str) + *(yyvsp[0]._str) ); + (yyval._str) = new QString( *((yyvsp[(1) - (2)]._str)) + *((yyvsp[(2) - (2)]._str)) ); ;} break; case 54: + +/* Line 1455 of yacc.c */ #line 381 "yacc.yy" { - yyval._str = new TQString( *(yyvsp[-1]._str) + *(yyvsp[0]._str) ); + (yyval._str) = new QString( *((yyvsp[(2) - (3)]._str)) + *((yyvsp[(3) - (3)]._str)) ); ;} break; case 55: + +/* Line 1455 of yacc.c */ #line 385 "yacc.yy" { - yyval._str = new TQString( *(yyvsp[-1]._str) + *(yyvsp[0]._str) ); + (yyval._str) = new QString( *((yyvsp[(1) - (2)]._str)) + *((yyvsp[(2) - (2)]._str)) ); ;} break; case 56: + +/* Line 1455 of yacc.c */ #line 389 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(2) - (2)]._str); ;} break; case 57: + +/* Line 1455 of yacc.c */ #line 393 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(2) - (2)]._str); ;} break; case 58: + +/* Line 1455 of yacc.c */ #line 397 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(2) - (2)]._str); ;} break; case 59: + +/* Line 1455 of yacc.c */ #line 401 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(2) - (2)]._str); ;} break; case 60: + +/* Line 1455 of yacc.c */ #line 405 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(2) - (2)]._str); ;} break; case 61: + +/* Line 1455 of yacc.c */ #line 409 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(5) - (5)]._str); ;} break; case 62: + +/* Line 1455 of yacc.c */ #line 413 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(4) - (4)]._str); ;} break; case 63: + +/* Line 1455 of yacc.c */ #line 417 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(4) - (4)]._str); ;} break; case 64: + +/* Line 1455 of yacc.c */ #line 421 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(4) - (4)]._str); ;} break; case 65: + +/* Line 1455 of yacc.c */ #line 425 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(6) - (6)]._str); ;} break; case 66: + +/* Line 1455 of yacc.c */ #line 429 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(4) - (4)]._str); ;} break; case 67: + +/* Line 1455 of yacc.c */ #line 433 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(6) - (6)]._str); ;} break; case 68: + +/* Line 1455 of yacc.c */ #line 437 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(6) - (6)]._str); ;} break; case 75: + +/* Line 1455 of yacc.c */ #line 455 "yacc.yy" {;} break; case 76: + +/* Line 1455 of yacc.c */ #line 456 "yacc.yy" {;} break; case 77: + +/* Line 1455 of yacc.c */ #line 460 "yacc.yy" {;} break; case 78: + +/* Line 1455 of yacc.c */ #line 461 "yacc.yy" {;} break; case 79: + +/* Line 1455 of yacc.c */ #line 462 "yacc.yy" {;} break; case 80: + +/* Line 1455 of yacc.c */ #line 463 "yacc.yy" {;} break; case 81: + +/* Line 1455 of yacc.c */ #line 464 "yacc.yy" {;} break; case 82: + +/* Line 1455 of yacc.c */ #line 468 "yacc.yy" {;} break; case 83: + +/* Line 1455 of yacc.c */ #line 469 "yacc.yy" {;} break; case 84: + +/* Line 1455 of yacc.c */ #line 470 "yacc.yy" {;} break; case 85: + +/* Line 1455 of yacc.c */ #line 475 "yacc.yy" { if (dcop_area) { - TQString* tmp = new TQString("<TYPEDEF name=\"%1\" template=\"%2\"><PARAM %3</TYPEDEF>\n"); - *tmp = tmp->arg( *(yyvsp[-1]._str) ).arg( *(yyvsp[-5]._str) ).arg( *(yyvsp[-3]._str) ); - yyval._str = tmp; + QString* tmp = new QString("<TYPEDEF name=\"%1\" template=\"%2\"><PARAM %3</TYPEDEF>\n"); + *tmp = tmp->arg( *((yyvsp[(6) - (7)]._str)) ).arg( *((yyvsp[(2) - (7)]._str)) ).arg( *((yyvsp[(4) - (7)]._str)) ); + (yyval._str) = tmp; } else { - yyval._str = new TQString(""); + (yyval._str) = new QString(""); } ;} break; case 86: + +/* Line 1455 of yacc.c */ #line 485 "yacc.yy" { if (dcop_area) @@ -2021,184 +2434,248 @@ yyreduce: break; case 87: + +/* Line 1455 of yacc.c */ #line 493 "yacc.yy" { - yyval._int = 0; + (yyval._int) = 0; ;} break; case 88: + +/* Line 1455 of yacc.c */ #line 497 "yacc.yy" { - yyval._int = 1; + (yyval._int) = 1; ;} break; case 89: + +/* Line 1455 of yacc.c */ #line 503 "yacc.yy" - { yyval._str = new TQString("signed int"); ;} + { (yyval._str) = new QString("signed int"); ;} break; case 90: + +/* Line 1455 of yacc.c */ #line 504 "yacc.yy" - { yyval._str = new TQString("signed int"); ;} + { (yyval._str) = new QString("signed int"); ;} break; case 91: + +/* Line 1455 of yacc.c */ #line 505 "yacc.yy" - { yyval._str = new TQString("unsigned int"); ;} + { (yyval._str) = new QString("unsigned int"); ;} break; case 92: + +/* Line 1455 of yacc.c */ #line 506 "yacc.yy" - { yyval._str = new TQString("unsigned int"); ;} + { (yyval._str) = new QString("unsigned int"); ;} break; case 93: + +/* Line 1455 of yacc.c */ #line 507 "yacc.yy" - { yyval._str = new TQString("signed short int"); ;} + { (yyval._str) = new QString("signed short int"); ;} break; case 94: + +/* Line 1455 of yacc.c */ #line 508 "yacc.yy" - { yyval._str = new TQString("signed short int"); ;} + { (yyval._str) = new QString("signed short int"); ;} break; case 95: + +/* Line 1455 of yacc.c */ #line 509 "yacc.yy" - { yyval._str = new TQString("signed long int"); ;} + { (yyval._str) = new QString("signed long int"); ;} break; case 96: + +/* Line 1455 of yacc.c */ #line 510 "yacc.yy" - { yyval._str = new TQString("signed long int"); ;} + { (yyval._str) = new QString("signed long int"); ;} break; case 97: + +/* Line 1455 of yacc.c */ #line 511 "yacc.yy" - { yyval._str = new TQString("unsigned short int"); ;} + { (yyval._str) = new QString("unsigned short int"); ;} break; case 98: + +/* Line 1455 of yacc.c */ #line 512 "yacc.yy" - { yyval._str = new TQString("unsigned short int"); ;} + { (yyval._str) = new QString("unsigned short int"); ;} break; case 99: + +/* Line 1455 of yacc.c */ #line 513 "yacc.yy" - { yyval._str = new TQString("unsigned long int"); ;} + { (yyval._str) = new QString("unsigned long int"); ;} break; case 100: + +/* Line 1455 of yacc.c */ #line 514 "yacc.yy" - { yyval._str = new TQString("unsigned long int"); ;} + { (yyval._str) = new QString("unsigned long int"); ;} break; case 101: + +/* Line 1455 of yacc.c */ #line 515 "yacc.yy" - { yyval._str = new TQString("int"); ;} + { (yyval._str) = new QString("int"); ;} break; case 102: + +/* Line 1455 of yacc.c */ #line 516 "yacc.yy" - { yyval._str = new TQString("long int"); ;} + { (yyval._str) = new QString("long int"); ;} break; case 103: + +/* Line 1455 of yacc.c */ #line 517 "yacc.yy" - { yyval._str = new TQString("long int"); ;} + { (yyval._str) = new QString("long int"); ;} break; case 104: + +/* Line 1455 of yacc.c */ #line 518 "yacc.yy" - { yyval._str = new TQString("short int"); ;} + { (yyval._str) = new QString("short int"); ;} break; case 105: + +/* Line 1455 of yacc.c */ #line 519 "yacc.yy" - { yyval._str = new TQString("short int"); ;} + { (yyval._str) = new QString("short int"); ;} break; case 106: + +/* Line 1455 of yacc.c */ #line 520 "yacc.yy" - { yyval._str = new TQString("char"); ;} + { (yyval._str) = new QString("char"); ;} break; case 107: + +/* Line 1455 of yacc.c */ #line 521 "yacc.yy" - { yyval._str = new TQString("signed char"); ;} + { (yyval._str) = new QString("signed char"); ;} break; case 108: + +/* Line 1455 of yacc.c */ #line 522 "yacc.yy" - { yyval._str = new TQString("unsigned char"); ;} + { (yyval._str) = new QString("unsigned char"); ;} break; case 111: + +/* Line 1455 of yacc.c */ #line 532 "yacc.yy" { - yyval._str = new TQString( "" ); + (yyval._str) = new QString( "" ); ;} break; case 113: + +/* Line 1455 of yacc.c */ #line 537 "yacc.yy" { - yyval._str = new TQString( *(yyvsp[-2]._str) + *(yyvsp[0]._str) ); + (yyval._str) = new QString( *((yyvsp[(1) - (3)]._str)) + *((yyvsp[(3) - (3)]._str)) ); ;} break; case 115: + +/* Line 1455 of yacc.c */ #line 545 "yacc.yy" - { yyval._str = yyvsp[0]._str; ;} + { (yyval._str) = (yyvsp[(1) - (1)]._str); ;} break; case 116: + +/* Line 1455 of yacc.c */ #line 546 "yacc.yy" - { yyval._str = yyvsp[0]._str; ;} + { (yyval._str) = (yyvsp[(2) - (2)]._str); ;} break; case 117: + +/* Line 1455 of yacc.c */ #line 547 "yacc.yy" - { yyval._str = yyvsp[0]._str; ;} + { (yyval._str) = (yyvsp[(2) - (2)]._str); ;} break; case 118: + +/* Line 1455 of yacc.c */ #line 548 "yacc.yy" { - TQString *tmp = new TQString("%1<%2>"); - *tmp = tmp->arg(*(yyvsp[-3]._str)); - *tmp = tmp->arg(*(yyvsp[-1]._str)); - yyval._str = tmp; + QString *tmp = new QString("%1<%2>"); + *tmp = tmp->arg(*((yyvsp[(1) - (4)]._str))); + *tmp = tmp->arg(*((yyvsp[(3) - (4)]._str))); + (yyval._str) = tmp; ;} break; case 119: + +/* Line 1455 of yacc.c */ #line 554 "yacc.yy" { - TQString *tmp = new TQString("%1<%2>::%3"); - *tmp = tmp->arg(*(yyvsp[-5]._str)); - *tmp = tmp->arg(*(yyvsp[-3]._str)); - *tmp = tmp->arg(*(yyvsp[0]._str)); - yyval._str = tmp; + QString *tmp = new QString("%1<%2>::%3"); + *tmp = tmp->arg(*((yyvsp[(1) - (6)]._str))); + *tmp = tmp->arg(*((yyvsp[(3) - (6)]._str))); + *tmp = tmp->arg(*((yyvsp[(6) - (6)]._str))); + (yyval._str) = tmp; ;} break; case 120: + +/* Line 1455 of yacc.c */ #line 566 "yacc.yy" { - yyval._str = new TQString(*(yyvsp[-2]._str) + "," + *(yyvsp[0]._str)); + (yyval._str) = new QString(*((yyvsp[(1) - (3)]._str)) + "," + *((yyvsp[(3) - (3)]._str))); ;} break; case 121: + +/* Line 1455 of yacc.c */ #line 570 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(1) - (1)]._str); ;} break; case 122: + +/* Line 1455 of yacc.c */ #line 578 "yacc.yy" { if (dcop_area) @@ -2207,13 +2684,17 @@ yyreduce: break; case 123: + +/* Line 1455 of yacc.c */ #line 583 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(1) - (1)]._str); ;} break; case 124: + +/* Line 1455 of yacc.c */ #line 592 "yacc.yy" { if (dcop_area) @@ -2222,46 +2703,56 @@ yyreduce: break; case 125: + +/* Line 1455 of yacc.c */ #line 596 "yacc.yy" { if (dcop_area) { - TQString* tmp = new TQString("<TYPE qleft=\"const\" qright=\"" AMP_ENTITY "\">%1</TYPE>"); - *tmp = tmp->arg( *(yyvsp[-1]._str) ); - yyval._str = tmp; + QString* tmp = new QString("<TYPE qleft=\"const\" qright=\"" AMP_ENTITY "\">%1</TYPE>"); + *tmp = tmp->arg( *((yyvsp[(2) - (3)]._str)) ); + (yyval._str) = tmp; } ;} break; case 126: + +/* Line 1455 of yacc.c */ #line 603 "yacc.yy" { - TQString* tmp = new TQString("<TYPE>%1</TYPE>"); - *tmp = tmp->arg( *(yyvsp[0]._str) ); - yyval._str = tmp; + QString* tmp = new QString("<TYPE>%1</TYPE>"); + *tmp = tmp->arg( *((yyvsp[(2) - (2)]._str)) ); + (yyval._str) = tmp; ;} break; case 127: + +/* Line 1455 of yacc.c */ #line 608 "yacc.yy" { - TQString* tmp = new TQString("<TYPE>%1</TYPE>"); - *tmp = tmp->arg( *(yyvsp[-1]._str) ); - yyval._str = tmp; + QString* tmp = new QString("<TYPE>%1</TYPE>"); + *tmp = tmp->arg( *((yyvsp[(1) - (2)]._str)) ); + (yyval._str) = tmp; ;} break; case 128: + +/* Line 1455 of yacc.c */ #line 613 "yacc.yy" { if (dcop_area) { - TQString* tmp = new TQString("<TYPE qleft=\"const\" qright=\"" AMP_ENTITY "\">%1</TYPE>"); - *tmp = tmp->arg( *(yyvsp[-2]._str) ); - yyval._str = tmp; + QString* tmp = new QString("<TYPE qleft=\"const\" qright=\"" AMP_ENTITY "\">%1</TYPE>"); + *tmp = tmp->arg( *((yyvsp[(1) - (3)]._str)) ); + (yyval._str) = tmp; } ;} break; case 129: + +/* Line 1455 of yacc.c */ #line 620 "yacc.yy" { if (dcop_area) @@ -2270,15 +2761,19 @@ yyreduce: break; case 130: + +/* Line 1455 of yacc.c */ #line 625 "yacc.yy" { - TQString* tmp = new TQString("<TYPE>%1</TYPE>"); - *tmp = tmp->arg( *(yyvsp[0]._str) ); - yyval._str = tmp; + QString* tmp = new QString("<TYPE>%1</TYPE>"); + *tmp = tmp->arg( *((yyvsp[(1) - (1)]._str)) ); + (yyval._str) = tmp; ;} break; case 131: + +/* Line 1455 of yacc.c */ #line 631 "yacc.yy" { if (dcop_area) @@ -2287,222 +2782,282 @@ yyreduce: break; case 132: + +/* Line 1455 of yacc.c */ #line 639 "yacc.yy" { - yyval._str = new TQString(*(yyvsp[-2]._str) + "," + *(yyvsp[0]._str)); + (yyval._str) = new QString(*((yyvsp[(1) - (3)]._str)) + "," + *((yyvsp[(3) - (3)]._str))); ;} break; case 133: + +/* Line 1455 of yacc.c */ #line 643 "yacc.yy" { - yyval._str = yyvsp[0]._str; + (yyval._str) = (yyvsp[(1) - (1)]._str); ;} break; case 134: + +/* Line 1455 of yacc.c */ #line 650 "yacc.yy" { if (dcop_area) { - TQString* tmp = new TQString("\n <ARG>%1<NAME>%2</NAME></ARG>"); - *tmp = tmp->arg( *(yyvsp[-2]._str) ); - *tmp = tmp->arg( *(yyvsp[-1]._str) ); - yyval._str = tmp; - } else yyval._str = new TQString(); + QString* tmp = new QString("\n <ARG>%1<NAME>%2</NAME></ARG>"); + *tmp = tmp->arg( *((yyvsp[(1) - (3)]._str)) ); + *tmp = tmp->arg( *((yyvsp[(2) - (3)]._str)) ); + (yyval._str) = tmp; + } else (yyval._str) = new QString(); ;} break; case 135: + +/* Line 1455 of yacc.c */ #line 659 "yacc.yy" { if (dcop_area) { - TQString* tmp = new TQString("\n <ARG>%1</ARG>"); - *tmp = tmp->arg( *(yyvsp[-1]._str) ); - yyval._str = tmp; - } else yyval._str = new TQString(); + QString* tmp = new QString("\n <ARG>%1</ARG>"); + *tmp = tmp->arg( *((yyvsp[(1) - (2)]._str)) ); + (yyval._str) = tmp; + } else (yyval._str) = new QString(); ;} break; case 136: + +/* Line 1455 of yacc.c */ #line 667 "yacc.yy" { if (dcop_area) yyerror("variable arguments not supported in dcop area."); - yyval._str = new TQString(""); + (yyval._str) = new QString(""); ;} break; case 137: + +/* Line 1455 of yacc.c */ #line 676 "yacc.yy" { ;} break; case 138: + +/* Line 1455 of yacc.c */ #line 679 "yacc.yy" { ;} break; case 139: + +/* Line 1455 of yacc.c */ #line 682 "yacc.yy" { ;} break; case 140: + +/* Line 1455 of yacc.c */ #line 689 "yacc.yy" { ;} break; case 141: + +/* Line 1455 of yacc.c */ #line 692 "yacc.yy" { ;} break; case 142: + +/* Line 1455 of yacc.c */ #line 695 "yacc.yy" { ;} break; case 143: + +/* Line 1455 of yacc.c */ #line 698 "yacc.yy" { ;} break; case 144: + +/* Line 1455 of yacc.c */ #line 701 "yacc.yy" { ;} break; case 145: + +/* Line 1455 of yacc.c */ #line 706 "yacc.yy" - { yyval._int = 0; ;} + { (yyval._int) = 0; ;} break; case 146: + +/* Line 1455 of yacc.c */ #line 707 "yacc.yy" - { yyval._int = 1; ;} + { (yyval._int) = 1; ;} break; case 152: + +/* Line 1455 of yacc.c */ #line 716 "yacc.yy" { if (dcop_area || dcop_signal_area) { - TQString* tmp = 0; - tmp = new TQString( + QString* tmp = 0; + tmp = new QString( " <%4>\n" " %2\n" " <NAME>%1</NAME>" "%3\n" " </%5>\n"); - *tmp = tmp->arg( *(yyvsp[-4]._str) ); - *tmp = tmp->arg( *(yyvsp[-5]._str) ); - *tmp = tmp->arg( *(yyvsp[-2]._str) ); + *tmp = tmp->arg( *((yyvsp[(2) - (6)]._str)) ); + *tmp = tmp->arg( *((yyvsp[(1) - (6)]._str)) ); + *tmp = tmp->arg( *((yyvsp[(4) - (6)]._str)) ); - TQString tagname = (dcop_signal_area) ? "SIGNAL" : "FUNC"; - TQString attr = (yyvsp[0]._int) ? " qual=\"const\"" : ""; - *tmp = tmp->arg( TQString("%1%2").arg(tagname).arg(attr) ); - *tmp = tmp->arg( TQString("%1").arg(tagname) ); - yyval._str = tmp; + QString tagname = (dcop_signal_area) ? "SIGNAL" : "FUNC"; + QString attr = ((yyvsp[(6) - (6)]._int)) ? " qual=\"const\"" : ""; + *tmp = tmp->arg( QString("%1%2").arg(tagname).arg(attr) ); + *tmp = tmp->arg( QString("%1").arg(tagname) ); + (yyval._str) = tmp; } else - yyval._str = new TQString(""); + (yyval._str) = new QString(""); ;} break; case 153: + +/* Line 1455 of yacc.c */ #line 738 "yacc.yy" { if (dcop_area) yyerror("operators aren't allowed in dcop areas!"); - yyval._str = new TQString(""); + (yyval._str) = new QString(""); ;} break; case 154: + +/* Line 1455 of yacc.c */ #line 748 "yacc.yy" {;} break; case 155: + +/* Line 1455 of yacc.c */ #line 749 "yacc.yy" {;} break; case 156: + +/* Line 1455 of yacc.c */ #line 750 "yacc.yy" {;} break; case 157: + +/* Line 1455 of yacc.c */ #line 755 "yacc.yy" {;} break; case 158: + +/* Line 1455 of yacc.c */ #line 760 "yacc.yy" {;} break; case 159: + +/* Line 1455 of yacc.c */ #line 761 "yacc.yy" {;} break; case 160: + +/* Line 1455 of yacc.c */ #line 766 "yacc.yy" { - yyval._str = yyvsp[-1]._str; + (yyval._str) = (yyvsp[(1) - (2)]._str); ;} break; case 161: + +/* Line 1455 of yacc.c */ #line 770 "yacc.yy" { - yyval._str = yyvsp[-3]._str; + (yyval._str) = (yyvsp[(2) - (5)]._str); ;} break; case 162: + +/* Line 1455 of yacc.c */ #line 774 "yacc.yy" { - yyval._str = yyvsp[-1]._str; + (yyval._str) = (yyvsp[(2) - (3)]._str); ;} break; case 163: + +/* Line 1455 of yacc.c */ #line 778 "yacc.yy" { /* The constructor */ assert(!dcop_area); - yyval._str = new TQString(""); + (yyval._str) = new QString(""); ;} break; case 164: + +/* Line 1455 of yacc.c */ #line 784 "yacc.yy" { /* The constructor */ assert(!dcop_area); - yyval._str = new TQString(""); + (yyval._str) = new QString(""); ;} break; case 165: + +/* Line 1455 of yacc.c */ #line 790 "yacc.yy" { /* The destructor */ assert(!dcop_area); - yyval._str = new TQString(""); + (yyval._str) = new QString(""); ;} break; case 166: + +/* Line 1455 of yacc.c */ #line 796 "yacc.yy" { if (dcop_area) { @@ -2511,12 +3066,14 @@ yyreduce: else yyerror("DCOP functions cannot be static"); } else { - yyval._str = new TQString(); + (yyval._str) = new QString(); } ;} break; case 167: + +/* Line 1455 of yacc.c */ #line 809 "yacc.yy" { function_mode = 1; @@ -2524,80 +3081,103 @@ yyreduce: break; case 171: + +/* Line 1455 of yacc.c */ #line 821 "yacc.yy" {;} break; case 172: + +/* Line 1455 of yacc.c */ #line 822 "yacc.yy" {;} break; case 176: + +/* Line 1455 of yacc.c */ #line 834 "yacc.yy" {;} break; case 177: + +/* Line 1455 of yacc.c */ #line 835 "yacc.yy" {;} break; case 178: + +/* Line 1455 of yacc.c */ #line 836 "yacc.yy" {;} break; case 179: + +/* Line 1455 of yacc.c */ #line 839 "yacc.yy" {;} break; case 180: + +/* Line 1455 of yacc.c */ #line 843 "yacc.yy" {;} break; case 181: + +/* Line 1455 of yacc.c */ #line 844 "yacc.yy" {;} break; case 182: + +/* Line 1455 of yacc.c */ #line 845 "yacc.yy" {;} break; case 183: + +/* Line 1455 of yacc.c */ #line 846 "yacc.yy" {;} break; case 184: + +/* Line 1455 of yacc.c */ #line 847 "yacc.yy" {;} break; case 185: + +/* Line 1455 of yacc.c */ #line 848 "yacc.yy" {;} break; - } - -/* Line 1010 of yacc.c. */ -#line 2591 "yacc.cc" - - yyvsp -= yylen; - yyssp -= yylen; +/* Line 1455 of yacc.c */ +#line 3171 "yacc.cc" + default: break; + } + YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); + YYPOPSTACK (yylen); + yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; - /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ @@ -2621,66 +3201,41 @@ yyerrlab: if (!yyerrstatus) { ++yynerrs; -#if YYERROR_VERBOSE - yyn = yypact[yystate]; - - if (YYPACT_NINF < yyn && yyn < YYLAST) - { - YYSIZE_T yysize = 0; - int yytype = YYTRANSLATE (yychar); - const char* yyprefix; - char *yymsg; - int yyx; - - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yycount = 0; - - yyprefix = ", expecting "; - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) +#if ! YYERROR_VERBOSE + yyerror (YY_("syntax error")); +#else + { + YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); + if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) + { + YYSIZE_T yyalloc = 2 * yysize; + if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) + yyalloc = YYSTACK_ALLOC_MAXIMUM; + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); + yymsg = (char *) YYSTACK_ALLOC (yyalloc); + if (yymsg) + yymsg_alloc = yyalloc; + else { - yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]); - yycount += 1; - if (yycount == 5) - { - yysize = 0; - break; - } + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; } - yysize += (sizeof ("syntax error, unexpected ") - + yystrlen (yytname[yytype])); - yymsg = (char *) YYSTACK_ALLOC (yysize); - if (yymsg != 0) - { - char *yyp = yystpcpy (yymsg, "syntax error, unexpected "); - yyp = yystpcpy (yyp, yytname[yytype]); - - if (yycount < 5) - { - yyprefix = ", expecting "; - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) - { - yyp = yystpcpy (yyp, yyprefix); - yyp = yystpcpy (yyp, yytname[yyx]); - yyprefix = " or "; - } - } - yyerror (yymsg); - YYSTACK_FREE (yymsg); - } - else - yyerror ("syntax error; also virtual memory exhausted"); - } - else -#endif /* YYERROR_VERBOSE */ - yyerror ("syntax error"); + } + + if (0 < yysize && yysize <= yymsg_alloc) + { + (void) yysyntax_error (yymsg, yystate, yychar); + yyerror (yymsg); + } + else + { + yyerror (YY_("syntax error")); + if (yysize != 0) + goto yyexhaustedlab; + } + } +#endif } @@ -2691,25 +3246,16 @@ yyerrlab: error, discard it. */ if (yychar <= YYEOF) - { - /* If at end of input, pop the error token, - then the rest of the stack, then return failure. */ + { + /* Return failure if at end of input. */ if (yychar == YYEOF) - for (;;) - { - YYPOPSTACK; - if (yyssp == yyss) - YYABORT; - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); - yydestruct (yystos[*yyssp], yyvsp); - } - } + YYABORT; + } else { - YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); - yydestruct (yytoken, &yylval); + yydestruct ("Error: discarding", + yytoken, &yylval); yychar = YYEMPTY; - } } @@ -2723,15 +3269,17 @@ yyerrlab: `---------------------------------------------------*/ yyerrorlab: -#ifdef __GNUC__ - /* Pacify GCC when the user code never invokes YYERROR and the label - yyerrorlab therefore never appears in user code. */ - if (0) + /* Pacify compilers like GCC when the user code never invokes + YYERROR and the label yyerrorlab therefore never appears in user + code. */ + if (/*CONSTCOND*/ 0) goto yyerrorlab; -#endif - yyvsp -= yylen; - yyssp -= yylen; + /* Do not reclaim the symbols of the rule which action triggered + this YYERROR. */ + YYPOPSTACK (yylen); + yylen = 0; + YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; @@ -2760,21 +3308,20 @@ yyerrlab1: if (yyssp == yyss) YYABORT; - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); - yydestruct (yystos[yystate], yyvsp); - YYPOPSTACK; + + yydestruct ("Error: popping", + yystos[yystate], yyvsp); + YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } - if (yyn == YYFINAL) - YYACCEPT; - - YYDPRINTF ((stderr, "Shifting error token, ")); - *++yyvsp = yylval; + /* Shift the error token. */ + YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); + yystate = yyn; goto yynewstate; @@ -2793,25 +3340,45 @@ yyabortlab: yyresult = 1; goto yyreturn; -#ifndef yyoverflow -/*----------------------------------------------. -| yyoverflowlab -- parser overflow comes here. | -`----------------------------------------------*/ -yyoverflowlab: - yyerror ("parser stack overflow"); +#if !defined(yyoverflow) || YYERROR_VERBOSE +/*-------------------------------------------------. +| yyexhaustedlab -- memory exhaustion comes here. | +`-------------------------------------------------*/ +yyexhaustedlab: + yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: + if (yychar != YYEMPTY) + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); + /* Do not reclaim the symbols of the rule which action triggered + this YYABORT or YYACCEPT. */ + YYPOPSTACK (yylen); + YY_STACK_PRINT (yyss, yyssp); + while (yyssp != yyss) + { + yydestruct ("Cleanup: popping", + yystos[*yyssp], yyvsp); + YYPOPSTACK (1); + } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif - return yyresult; +#if YYERROR_VERBOSE + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); +#endif + /* Make sure YYID is used. */ + return YYID (yyresult); } + +/* Line 1675 of yacc.c */ #line 851 "yacc.yy" @@ -2821,4 +3388,3 @@ void dcopidlParse( const char *_code ) yyparse(); } - diff --git a/dcop/dcopidl/yacc.cc.h b/dcop/dcopidl/yacc.cc.h index af3f8d088..2a6c1b403 100644 --- a/dcop/dcopidl/yacc.cc.h +++ b/dcop/dcopidl/yacc.cc.h @@ -1,27 +1,37 @@ -/* A Bison parser, made by GNU Bison 1.875d. */ -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +/* A Bison parser, made by GNU Bison 2.4.1. */ - This program is free software; you can redistribute it and/or modify +/* Skeleton interface for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ /* Tokens. */ #ifndef YYTOKENTYPE @@ -95,90 +105,31 @@ T_SHIFT = 321 }; #endif -#define T_UNIMPORTANT 258 -#define T_CHARACTER_LITERAL 259 -#define T_DOUBLE_LITERAL 260 -#define T_IDENTIFIER 261 -#define T_INTEGER_LITERAL 262 -#define T_STRING_LITERAL 263 -#define T_INCLUDE 264 -#define T_CLASS 265 -#define T_STRUCT 266 -#define T_LEFT_CURLY_BRACKET 267 -#define T_LEFT_PARANTHESIS 268 -#define T_RIGHT_CURLY_BRACKET 269 -#define T_RIGHT_PARANTHESIS 270 -#define T_COLON 271 -#define T_SEMICOLON 272 -#define T_PUBLIC 273 -#define T_PROTECTED 274 -#define T_TRIPE_DOT 275 -#define T_PRIVATE 276 -#define T_VIRTUAL 277 -#define T_CONST 278 -#define T_INLINE 279 -#define T_FRIEND 280 -#define T_RETURN 281 -#define T_SIGNAL 282 -#define T_SLOT 283 -#define T_TYPEDEF 284 -#define T_PLUS 285 -#define T_MINUS 286 -#define T_COMMA 287 -#define T_ASTERISK 288 -#define T_TILDE 289 -#define T_LESS 290 -#define T_GREATER 291 -#define T_AMPERSAND 292 -#define T_EXTERN 293 -#define T_EXTERN_C 294 -#define T_ACCESS 295 -#define T_ENUM 296 -#define T_NAMESPACE 297 -#define T_USING 298 -#define T_UNKNOWN 299 -#define T_TRIPLE_DOT 300 -#define T_TRUE 301 -#define T_FALSE 302 -#define T_STATIC 303 -#define T_MUTABLE 304 -#define T_EQUAL 305 -#define T_SCOPE 306 -#define T_NULL 307 -#define T_INT 308 -#define T_ARRAY_OPEN 309 -#define T_ARRAY_CLOSE 310 -#define T_CHAR 311 -#define T_DCOP 312 -#define T_DCOP_AREA 313 -#define T_DCOP_SIGNAL_AREA 314 -#define T_SIGNED 315 -#define T_UNSIGNED 316 -#define T_LONG 317 -#define T_SHORT 318 -#define T_FUNOPERATOR 319 -#define T_MISCOPERATOR 320 -#define T_SHIFT 321 - - - - -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) + + + +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE +{ + +/* Line 1676 of yacc.c */ #line 67 "yacc.yy" -typedef union YYSTYPE { + long _int; - TQString *_str; + QString *_str; unsigned short _char; double _float; + + + +/* Line 1676 of yacc.c */ +#line 127 "yacc.hh" } YYSTYPE; -/* Line 1285 of yacc.c. */ -#line 176 "yacc.hh" +# define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 #endif extern YYSTYPE yylval; - |