diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-27 11:12:22 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-27 11:12:22 +0000 |
commit | c0a429f1bbb20357589acce9fba2b85306927bca (patch) | |
tree | e0c4e18c5826e7d65522633e56d401191a3825ad /crawl-ref/source/prebuilt | |
parent | 5d0c0426d72ca2d47dc0ea21721f18e052978c24 (diff) | |
download | crawl-ref-c0a429f1bbb20357589acce9fba2b85306927bca.tar.gz crawl-ref-c0a429f1bbb20357589acce9fba2b85306927bca.zip |
Updated canned level-compiler.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2229 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/prebuilt')
-rw-r--r-- | crawl-ref/source/prebuilt/levcomp.lex.cc | 3101 | ||||
-rw-r--r-- | crawl-ref/source/prebuilt/levcomp.tab.cc | 1585 | ||||
-rw-r--r-- | crawl-ref/source/prebuilt/levcomp.tab.h | 109 |
3 files changed, 2646 insertions, 2149 deletions
diff --git a/crawl-ref/source/prebuilt/levcomp.lex.cc b/crawl-ref/source/prebuilt/levcomp.lex.cc index bf2d480778..39fe2e6157 100644 --- a/crawl-ref/source/prebuilt/levcomp.lex.cc +++ b/crawl-ref/source/prebuilt/levcomp.lex.cc @@ -1,32 +1,93 @@ #line 2 "levcomp.lex.cc" -/* A lexical scanner generated by flex */ -/* Scanner skeleton version: - * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ - */ +#line 4 "levcomp.lex.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 33 +#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 __STDC_VERSION__ >= 199901L + +/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, + * if you want the limit (max/min) macros for int types. + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS 1 #endif +#include <inttypes.h> +typedef int8_t flex_int8_t; +typedef uint8_t flex_uint8_t; +typedef int16_t flex_int16_t; +typedef uint16_t flex_uint16_t; +typedef int32_t flex_int32_t; +typedef uint32_t flex_uint32_t; +#else +typedef signed char flex_int8_t; +typedef short int flex_int16_t; +typedef int flex_int32_t; +typedef unsigned char flex_uint8_t; +typedef unsigned short int flex_uint16_t; +typedef unsigned int flex_uint32_t; +#endif /* ! C99 */ -#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 /* ! FLEXINT_H */ -/* Use prototypes in function declarations. */ -#define YY_USE_PROTOS +#ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST @@ -35,34 +96,17 @@ #if __STDC__ -#define YY_USE_PROTOS #define YY_USE_CONST #endif /* __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 +121,88 @@ * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ -#define BEGIN yy_start = 1 + 2 * +#define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ -#define YY_START ((yy_start - 1) / 2) +#define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart( yyin ) +#define YY_NEW_FILE yyrestart(yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ +#ifndef YY_BUF_SIZE #define YY_BUF_SIZE 16384 +#endif +/* The state buf must be large enough to hold one state per character in the main buffer. + */ +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) + +#ifndef YY_TYPEDEF_YY_BUFFER_STATE +#define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; +#endif extern int yyleng; + extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 -/* The funky do-while in the following #define is used to turn the definition - * int a single C statement (which needs a semi-colon terminator). This - * avoids problems with code like: - * - * if ( condition_holds ) - * yyless( 5 ); - * else - * do_something_else(); - * - * Prior to using the do-while the compiler would get upset at the - * "else" because it interpreted the "if" statement as being all - * done when it reached the ';' after the yyless() call. - */ - -/* Return all but the first 'n' matched characters back to the input stream. */ - + /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires + * access to the local variable yy_act. Since yyless() is a macro, it would break + * existing scanners that call yyless() from OUTSIDE yylex. + * One obvious solution it to make yy_act a global. I tried that, and saw + * a 5% performance hit in a non-yylineno scanner, because yy_act is + * normally declared as a register variable-- so it is not worth it. + */ + #define YY_LESS_LINENO(n) \ + do { \ + int yyl;\ + for ( yyl = n; yyl < yyleng; ++yyl )\ + if ( yytext[yyl] == '\n' )\ + --yylineno;\ + }while(0) + +/* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ - *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 ) +#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; +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef unsigned int yy_size_t; +#endif +#ifndef YY_STRUCT_YY_BUFFER_STATE +#define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; @@ -178,12 +239,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 +262,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,272 +301,192 @@ static int yy_start = 0; /* start state number */ */ static int yy_did_buffer_switch_on_eof; -void yyrestart YY_PROTO(( FILE *input_file )); +void yyrestart (FILE *input_file ); +void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); +YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); +void yy_delete_buffer (YY_BUFFER_STATE b ); +void yy_flush_buffer (YY_BUFFER_STATE b ); +void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); +void yypop_buffer_state (void ); -void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); -void yy_load_buffer_state YY_PROTO(( void )); -YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); -void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); -void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); -void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); -#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) +static void yyensure_buffer_stack (void ); +static void yy_load_buffer_state (void ); +static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); -YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); -YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); -YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); +#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) -static void *yy_flex_alloc YY_PROTO(( yy_size_t )); -static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); -static void yy_flex_free YY_PROTO(( void * )); +YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); +YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); +YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); + +void *yyalloc (yy_size_t ); +void *yyrealloc (void *,yy_size_t ); +void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ - if ( ! yy_current_buffer ) \ - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ - yy_current_buffer->yy_is_interactive = is_interactive; \ + if ( ! YY_CURRENT_BUFFER ){ \ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer(yyin,YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ - if ( ! yy_current_buffer ) \ - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ - yy_current_buffer->yy_at_bol = at_bol; \ + if ( ! YY_CURRENT_BUFFER ){\ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer(yyin,YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } -#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) +#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) +/* Begin user sect3 */ -#define YY_USES_REJECT typedef unsigned char YY_CHAR; + FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; + typedef int yy_state_type; + extern int yylineno; + int yylineno = 1; + extern char *yytext; #define yytext_ptr yytext -static yy_state_type yy_get_previous_state YY_PROTO(( void )); -static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); -static int yy_get_next_buffer YY_PROTO(( void )); -static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); +static yy_state_type yy_get_previous_state (void ); +static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); +static int yy_get_next_buffer (void ); +static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ - yytext_ptr = yy_bp; \ - yyleng = (int) (yy_cp - yy_bp); \ - yy_hold_char = *yy_cp; \ + (yytext_ptr) = yy_bp; \ + yyleng = (size_t) (yy_cp - yy_bp); \ + (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ - yy_c_buf_p = yy_cp; + (yy_c_buf_p) = yy_cp; -#define YY_NUM_RULES 65 -#define YY_END_OF_BUFFER 66 -static yyconst short int yy_acclist[902] = +#define YY_NUM_RULES 66 +#define YY_END_OF_BUFFER 67 +/* This struct is not used in this scanner, + but its presence is necessary. */ +struct yy_trans_info + { + flex_int32_t yy_verify; + flex_int32_t yy_nxt; + }; +static yyconst flex_int16_t yy_accept[874] = { 0, - 66, 64, 65, 62, 64, 65, 63, 65, 64, 65, - 60, 64, 65, 61, 64, 65, 64, 65, 64, 65, - 64, 65, 64, 65, 64, 65, 64, 65, 64, 65, - 64, 65, 64, 65, 64, 65, 64, 65, 64, 65, - 64, 65, 64, 65, 64, 65, 62, 64, 65, 30, - 64, 65, 32, 64, 65, 64, 65, 64, 65, 64, - 65, 64, 65, 64, 65, 64, 65, 65, 6, 65, - 65, 65, 4, 65, 2, 65, 3, 6, 65, 65, - 2, 65, 2, 4, 65, 2, 65, 2, 65, 9, - 65, 10, 65, 65, 9, 65, 9, 65, 65, 12, - - 65, 65, 64, 65, 26, 63, 65, 64, 65, 60, - 64, 65, 61, 64, 65, 64, 65, 64, 65, 64, - 65, 64, 65, 64, 65, 64, 65, 64, 65, 64, - 65, 64, 65, 64, 65, 64, 65, 64, 65, 64, - 65, 64, 65, 64, 65, 30, 64, 65, 32, 64, - 65, 64, 65, 64, 65, 64, 65, 64, 65, 64, - 65, 64, 65, 64, 65, 24, 62, 64, 65, 21, - 63, 65, 24, 64, 65, 23, 60, 64, 65, 61, - 64, 65, 64, 65, 64, 65, 64, 65, 64, 65, - 64, 65, 64, 65, 64, 65, 64, 65, 64, 65, - - 64, 65, 64, 65, 64, 65, 64, 65, 64, 65, - 64, 65, 24, 62, 64, 65, 30, 64, 65, 32, - 64, 65, 64, 65, 64, 65, 64, 65, 64, 65, - 64, 65, 64, 65, 14, 62, 64, 65, 15, 63, - 65, 64, 65, 13, 64, 65, 13, 61, 64, 65, - 13, 64, 65, 13, 64, 65, 13, 64, 65, 13, - 64, 65, 13, 64, 65, 13, 64, 65, 13, 64, - 65, 13, 64, 65, 13, 64, 65, 13, 64, 65, - 13, 64, 65, 13, 64, 65, 13, 64, 65, 13, - 64, 65, 13, 64, 65, 14, 62, 64, 65, 13, - - 64, 65, 13, 64, 65, 13, 64, 65, 13, 64, - 65, 13, 64, 65, 17, 65, 19, 65, 20, 65, - 65, 18, 65, 65, 29, 65, 65, 65, 62, 63, - 61, 62, 30, 32, 30, 35, 6, 5, 2, 3, - 6, 2, 5, 2, 2, 2, 2, 9, 9, 10, - 9, 9, 9, 11, 12, 25, 26, 63, 25, 61, - 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 67, 65, + 63, 64, 65, 61, 62, 65, 65, 65, 65, 65, + 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, + 63, 30, 32, 65, 65, 65, 65, 65, 65, 66, + 6, 66, 66, 4, 2, 3, 66, 2, 2, 2, + 2, 9, 10, 66, 9, 9, 66, 12, 66, 65, + 26, 65, 61, 62, 65, 65, 65, 65, 65, 65, + 65, 65, 65, 65, 65, 65, 65, 65, 65, 30, + 32, 65, 65, 65, 65, 65, 65, 65, 24, 21, + + 24, 23, 62, 65, 65, 65, 65, 65, 65, 65, + 65, 65, 65, 65, 65, 65, 65, 65, 24, 30, + 32, 65, 65, 65, 65, 65, 65, 14, 15, 65, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 14, 13, 13, + 13, 13, 13, 17, 19, 20, 66, 18, 66, 29, + 66, 66, 63, 64, 62, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 63, 30, 32, 0, + 0, 0, 0, 30, 0, 0, 0, 0, 0, 0, + + 0, 35, 6, 5, 0, 0, 2, 3, 2, 0, + 2, 2, 2, 2, 9, 9, 10, 9, 9, 9, + 0, 11, 12, 25, 0, 26, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, - 25, 30, 30, 25, 25, 25, 25, 25, 25, 25, - 25, 35, 24, 62, 21, 24, 21, 63, 61, 24, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 30, + 25, 25, 25, 25, 25, 25, 25, 25, 0, 24, + 21, 24, 21, 62, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 24, 30, 0, 0, 0, + 0, 0, 0, 0, 35, 14, 15, 0, 15, 13, - 62, 30, 35, 14, 62, 15, 15, 63, 13, 13, - 61, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 14, 62, 13, 13, 13, 13, 13, 13, 13, - 16, 19, 20, 28, 28, 29, 27, 28, 2, 9, - 9, 9, 7, 25, 25, 25, 25, 25, 25, 25, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 14, 13, 13, 13, 13, 13, 13, 13, + 16, 0, 19, 20, 0, 0, 28, 0, 28, 0, + 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 2, 9, 9, 9, 7, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, - 25, 22, 22, 61, 22, 22, 22, 22, 22, 22, - 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, - 22, 22, 22, 22, 22, 22, 22, 30, 22, 22, - 22, 22, 22, 22, 22, 22, 13, 13, 13, 13, + 25, 25, 25, 25, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 31, 2, 9, 8, 9, 7, - 8, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 31, 0, 0, 0, 0, 0, 2, 9, 8, + + 9, 7, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, - 25, 25, 25, 25, 25, 25, 25, 22, 22, 22, - 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 25, 25, 25, 25, 25, 0, 0, 25, 25, 25, + 25, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 0, 0, 22, 22, 22, 22, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, + 0, 54, 0, 0, 0, 0, 0, 0, 53, 38, - 22, 22, 22, 13, 13, 13, 13, 13, 13, 13, + 0, 0, 0, 0, 0, 47, 0, 0, 0, 34, + 0, 0, 0, 0, 2, 25, 25, 25, 25, 25, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 25, 0, 25, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 0, + 22, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 53, 52, - 38, 47, 34, 2, 25, 25, 25, 25, 25, 53, - 25, 25, 25, 25, 25, 25, 25, 52, 25, 38, - 25, 25, 25, 25, 25, 25, 47, 25, 25, 25, - 25, 34, 25, 25, 25, 22, 22, 22, 22, 22, - 53, 22, 22, 22, 22, 22, 22, 22, 52, 22, - 38, 22, 22, 22, 22, 22, 22, 47, 22, 22, - 22, 22, 34, 22, 22, 22, 13, 13, 13, 13, + 13, 13, 0, 0, 0, 40, 46, 57, 58, 60, + 59, 0, 0, 0, 0, 42, 0, 50, 0, 0, + 0, 0, 0, 37, 1, 25, 25, 25, 25, 25, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 25, 25, 25, 25, 25, 25, 25, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 40, 46, 56, 57, - 59, 58, 42, 50, 37, 1, 2, 25, 25, 25, - 40, 25, 46, 25, 56, 25, 57, 25, 59, 25, - 58, 25, 25, 25, 25, 25, 42, 25, 25, 50, - 25, 25, 25, 25, 25, 25, 37, 22, 22, 22, - 40, 22, 46, 22, 56, 22, 57, 22, 59, 22, - 58, 22, 22, 22, 22, 22, 42, 22, 22, 50, - 22, 22, 22, 22, 22, 22, 37, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 49, - - 44, 48, 54, 51, 41, 45, 1, 2, 25, 49, - 25, 44, 25, 48, 25, 54, 25, 51, 25, 41, - 25, 25, 45, 25, 25, 25, 25, 22, 49, 22, - 44, 22, 48, 22, 54, 22, 51, 22, 41, 22, - 22, 45, 22, 22, 22, 22, 13, 13, 13, 13, - 13, 55, 43, 25, 55, 25, 43, 25, 25, 25, - 22, 55, 22, 43, 22, 22, 22, 13, 13, 33, - 25, 25, 33, 25, 22, 22, 33, 22, 13, 36, - 25, 25, 36, 22, 22, 36, 13, 25, 22, 13, - 25, 22, 13, 25, 22, 13, 39, 25, 39, 22, - - 39 - } ; + 13, 13, 49, 44, 52, 48, 55, 51, 41, 0, + 45, 0, 0, 0, 0, 1, 25, 25, 25, 25, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 22, -static yyconst short int yy_accept[852] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, - 4, 7, 9, 11, 14, 17, 19, 21, 23, 25, - 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, - 47, 50, 53, 56, 58, 60, 62, 64, 66, 68, - 69, 71, 72, 73, 75, 77, 80, 81, 83, 86, - 88, 90, 92, 94, 95, 97, 99, 100, 102, 103, - 105, 108, 110, 113, 116, 118, 120, 122, 124, 126, - 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, - 149, 152, 154, 156, 158, 160, 162, 164, 166, 170, - - 173, 176, 180, 183, 185, 187, 189, 191, 193, 195, - 197, 199, 201, 203, 205, 207, 209, 211, 213, 217, - 220, 223, 225, 227, 229, 231, 233, 235, 239, 242, - 244, 247, 251, 254, 257, 260, 263, 266, 269, 272, - 275, 278, 281, 284, 287, 290, 293, 296, 300, 303, - 306, 309, 312, 315, 317, 319, 321, 322, 324, 325, - 327, 328, 329, 330, 331, 332, 332, 332, 332, 332, - 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, - 332, 332, 332, 332, 332, 332, 333, 334, 335, 335, - 335, 335, 335, 336, 336, 336, 336, 336, 336, 336, - - 336, 337, 338, 339, 339, 339, 340, 342, 344, 344, - 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, - 354, 355, 356, 357, 357, 359, 361, 362, 363, 364, - 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, - 375, 376, 377, 378, 379, 380, 381, 383, 384, 385, - 386, 387, 388, 389, 390, 391, 393, 393, 395, 396, - 397, 399, 400, 400, 400, 400, 400, 400, 400, 400, - 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, - 400, 400, 400, 402, 403, 403, 403, 403, 403, 403, - 403, 403, 404, 406, 407, 407, 409, 410, 412, 413, - - 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, - 424, 425, 426, 427, 428, 429, 430, 431, 432, 434, - 435, 436, 437, 438, 439, 440, 441, 442, 442, 443, - 444, 444, 444, 445, 445, 447, 447, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 450, 451, 452, 453, - 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, - 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, - 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, - - 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, - 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, - 505, 506, 507, 509, 510, 511, 512, 513, 514, 515, - 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, - 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, - 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, - 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, - 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, - 545, 545, 545, 546, 546, 546, 546, 546, 546, 547, - 548, 549, 550, 552, 553, 554, 555, 556, 557, 558, - - 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, - 569, 570, 571, 572, 573, 574, 574, 574, 575, 576, - 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, - 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, - 597, 598, 599, 600, 600, 600, 601, 602, 603, 604, - 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, - 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, - 625, 626, 627, 628, 629, 629, 629, 629, 629, 630, - 630, 630, 630, 630, 630, 630, 631, 632, 632, 632, - 632, 632, 632, 633, 633, 633, 633, 634, 634, 634, - - 634, 634, 635, 636, 637, 638, 639, 641, 642, 643, - 644, 645, 646, 647, 649, 651, 652, 653, 654, 655, - 656, 658, 659, 660, 661, 663, 664, 665, 665, 666, - 667, 668, 669, 670, 672, 673, 674, 675, 676, 677, - 678, 680, 682, 683, 684, 685, 686, 687, 689, 690, - 691, 692, 694, 695, 696, 696, 697, 698, 699, 700, - 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, - 711, 712, 713, 714, 715, 716, 717, 717, 717, 718, - 719, 720, 721, 722, 723, 723, 723, 723, 723, 724, - 724, 725, 725, 725, 725, 725, 725, 726, 728, 729, - - 730, 732, 734, 736, 738, 740, 742, 743, 744, 745, - 746, 748, 749, 751, 752, 753, 754, 755, 756, 758, - 759, 760, 762, 764, 766, 768, 770, 772, 773, 774, - 775, 776, 778, 779, 781, 782, 783, 784, 785, 786, - 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, - 798, 799, 800, 801, 802, 803, 804, 805, 806, 806, - 807, 807, 807, 807, 807, 809, 811, 813, 815, 817, - 819, 821, 822, 824, 825, 826, 827, 828, 830, 832, - 834, 836, 838, 840, 841, 843, 844, 845, 846, 847, - 848, 849, 850, 851, 852, 853, 854, 854, 854, 854, - - 854, 856, 858, 859, 859, 860, 861, 863, 865, 866, - 866, 867, 868, 869, 870, 870, 871, 871, 871, 872, - 874, 874, 875, 876, 878, 878, 879, 880, 880, 881, - 882, 884, 885, 887, 888, 888, 889, 890, 891, 891, - 892, 893, 894, 894, 895, 896, 897, 898, 900, 902, - 902 + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 13, 13, 13, 13, 13, 56, 43, 0, + 0, 0, 0, 25, 25, 25, 0, 25, 25, 22, + 22, 22, 0, 22, 22, 13, 13, 0, 33, 0, + 0, 25, 25, 0, 25, 22, 22, 0, 22, 13, + 0, 36, 25, 25, 22, 22, 13, 0, 25, 22, + 13, 0, 25, 22, 13, 0, 25, 22, 13, 39, + 25, 22, 0 } ; -static yyconst int yy_ec[256] = +static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, @@ -523,7 +518,7 @@ static yyconst int yy_ec[256] = 1, 1, 1, 1, 1 } ; -static yyconst int yy_meta[49] = +static yyconst flex_int32_t yy_meta[49] = { 0, 1, 2, 3, 4, 1, 1, 5, 6, 6, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, @@ -532,710 +527,735 @@ static yyconst int yy_meta[49] = 6, 6, 6, 6, 6, 6, 1, 1 } ; -static yyconst short int yy_base[872] = +static yyconst flex_int16_t yy_base[895] = { 0, 0, 47, 55, 60, 52, 64, 47, 68, 112, 159, - 206, 253, 300, 347, 74, 80, 70, 159, 2137, 2138, - 87, 2138, 2133, 2138, 2126, 2118, 2115, 2117, 2109, 2101, - 82, 2113, 85, 69, 2101, 2105, 81, 2115, 2110, 2089, - 393, 0, 2138, 155, 2078, 2080, 144, 71, 2074, 2138, - 2138, 2117, 167, 2138, 0, 2138, 2116, 171, 0, 2094, - 153, 2069, 2138, 2113, 135, 2067, 2111, 2138, 2110, 184, - 2138, 2109, 188, 260, 266, 270, 275, 354, 358, 362, - 279, 400, 369, 387, 404, 411, 416, 431, 426, 199, - 440, 445, 449, 453, 458, 463, 467, 0, 471, 2138, - - 475, 2138, 2102, 2094, 2091, 2093, 2085, 2077, 270, 2089, - 170, 80, 2077, 2081, 167, 2091, 2086, 2065, 480, 253, - 0, 262, 2054, 2056, 156, 342, 2050, 484, 2138, 2093, - 0, 2086, 2078, 2075, 2077, 2069, 2061, 349, 2073, 344, - 166, 2061, 2062, 248, 2069, 2064, 2043, 488, 371, 2023, - 2025, 394, 377, 349, 500, 2138, 2063, 2138, 253, 2138, - 347, 504, 417, 2138, 2051, 2034, 2044, 2028, 2037, 2027, - 2022, 2002, 413, 2008, 1992, 1994, 1994, 1976, 1945, 1951, - 1931, 1948, 1942, 478, 1920, 0, 0, 2138, 1909, 1904, - 431, 1895, 0, 271, 1908, 1905, 1923, 400, 1881, 1868, - - 2138, 2138, 2138, 1905, 507, 0, 2138, 0, 1884, 512, - 1868, 1854, 484, 1828, 1818, 2138, 465, 1814, 516, 1857, - 2138, 2138, 518, 524, 2138, 528, 536, 540, 544, 548, - 552, 558, 564, 570, 574, 578, 582, 586, 595, 599, - 606, 610, 617, 622, 626, 630, 639, 645, 649, 653, - 657, 663, 667, 675, 679, 683, 529, 691, 2138, 695, - 2138, 611, 699, 587, 700, 631, 658, 701, 706, 707, - 715, 717, 722, 726, 728, 734, 736, 738, 740, 746, - 752, 754, 0, 760, 767, 768, 773, 774, 775, 781, - 779, 786, 800, 2138, 1842, 2138, 0, 1832, 1815, 1820, - - 1804, 1811, 1795, 1772, 1753, 514, 1759, 1750, 1746, 1729, - 1718, 1725, 1729, 1706, 1718, 1707, 770, 1672, 0, 357, - 1669, 1663, 1670, 512, 1633, 1623, 794, 795, 807, 2138, - 1660, 562, 2138, 811, 2138, 819, 2138, 1643, 1626, 1617, - 1623, 1616, 1624, 1614, 1600, 1600, 1609, 1594, 1582, 1591, - 1590, 1579, 1580, 1572, 1559, 1555, 1547, 1545, 1513, 823, - 825, 1505, 1507, 1494, 1486, 1493, 829, 833, 837, 2138, - 842, 850, 854, 858, 863, 885, 889, 874, 893, 901, - 905, 909, 914, 918, 923, 929, 939, 943, 947, 952, - 957, 961, 974, 978, 982, 986, 991, 995, 843, 864, - - 859, 934, 987, 996, 930, 962, 1000, 1002, 1004, 1006, - 919, 1017, 1018, 1022, 1034, 1035, 1036, 1041, 1042, 1048, - 1049, 1053, 1059, 1054, 1066, 1070, 1071, 1072, 1076, 1077, - 1082, 1499, 1463, 1454, 1462, 1441, 1443, 1438, 1412, 1412, - 1421, 1407, 1394, 1406, 1405, 1396, 1397, 1390, 1372, 1371, - 1378, 1380, 1354, 1086, 1088, 1347, 1353, 1337, 1334, 1352, - 1352, 1345, 1330, 1335, 1312, 1304, 1305, 1286, 1291, 1289, - 1292, 1286, 1267, 1270, 1270, 1263, 1240, 1249, 1230, 1218, - 1189, 1093, 2138, 1098, 1183, 1179, 1189, 1099, 1208, 1103, - 2138, 1109, 2138, 1116, 1121, 1125, 1134, 1145, 1154, 1159, - - 1163, 1167, 1171, 1175, 1187, 1194, 1198, 1203, 1207, 1212, - 1216, 1227, 1231, 1236, 1242, 1248, 1252, 1258, 1262, 1266, - 1270, 1135, 1271, 1126, 1237, 1176, 1253, 1275, 1276, 1281, - 1208, 1286, 1301, 1308, 1287, 1288, 1314, 1318, 1319, 1320, - 1326, 1330, 1331, 1335, 1337, 1341, 1345, 1347, 1349, 1198, - 1193, 1183, 1166, 1183, 1158, 1162, 1153, 1142, 1149, 1145, - 1144, 1143, 1120, 1118, 1126, 1116, 1095, 1107, 1098, 1077, - 1049, 1047, 1051, 1351, 1052, 1052, 1050, 1032, 2138, 1022, - 1021, 1016, 1008, 986, 983, 2138, 2138, 974, 956, 971, - 952, 962, 2138, 939, 937, 911, 2138, 912, 882, 1355, - - 861, 875, 1357, 1362, 1368, 1387, 1378, 1399, 1403, 1410, - 1414, 1421, 1425, 1429, 1433, 1437, 1441, 1446, 1453, 1457, - 1467, 1472, 1476, 1480, 1484, 1488, 1492, 1498, 1502, 1366, - 1458, 1503, 1507, 1105, 1513, 1519, 1525, 1526, 1463, 1493, - 1442, 1509, 1532, 1536, 1537, 1538, 1546, 1548, 1550, 1552, - 1557, 1561, 1565, 1567, 1566, 1571, 872, 884, 882, 878, - 874, 872, 870, 861, 829, 823, 820, 812, 827, 811, - 819, 790, 794, 776, 773, 773, 785, 777, 2138, 2138, - 2138, 2138, 2138, 2138, 772, 756, 751, 750, 2138, 740, - 2138, 740, 719, 685, 690, 671, 2138, 708, 1576, 1580, - - 1587, 1593, 1599, 1603, 1607, 1612, 1617, 1621, 1628, 1632, - 1639, 1643, 1647, 1651, 1655, 1660, 1664, 1669, 1673, 1674, - 1678, 1572, 1680, 1684, 1685, 1689, 1690, 1691, 1695, 1701, - 1705, 1707, 1712, 1714, 1716, 1718, 1720, 1726, 1727, 1732, - 697, 681, 679, 672, 668, 660, 649, 646, 637, 602, - 603, 593, 2138, 2138, 2138, 2138, 2138, 2138, 613, 2138, - 597, 594, 1733, 550, 572, 1737, 1741, 1745, 1749, 1753, - 1758, 1763, 1770, 1774, 1781, 1786, 1790, 1754, 1764, 1791, - 1795, 1796, 1797, 1801, 1802, 1803, 1807, 1812, 1814, 561, - 551, 539, 1816, 508, 2138, 2138, 490, 1818, 412, 1822, - - 1824, 1830, 1834, 1838, 1842, 1846, 1850, 1851, 1852, 1856, - 1862, 1868, 418, 1869, 413, 2138, 1870, 360, 1875, 1879, - 1886, 1890, 1894, 1895, 1896, 1900, 366, 359, 2138, 1909, - 1902, 1916, 1917, 320, 247, 1921, 1922, 223, 224, 1926, - 1930, 147, 99, 1934, 1943, 59, 2138, 1947, 1953, 2138, - 1967, 1973, 1979, 1985, 1991, 1997, 2003, 2009, 2015, 2021, - 2027, 2033, 2039, 2045, 2051, 2057, 48, 2063, 2069, 2075, - 2081 + 206, 253, 300, 347, 74, 80, 70, 159, 2191, 2192, + 87, 2192, 2187, 2192, 2180, 2172, 73, 2172, 2164, 2156, + 85, 2168, 85, 69, 2156, 2160, 81, 2170, 2165, 2144, + 393, 0, 2192, 155, 2133, 2135, 144, 135, 2129, 2192, + 2192, 2172, 168, 2192, 0, 2192, 2171, 172, 0, 2149, + 241, 2124, 2192, 2168, 135, 2122, 2166, 2192, 2165, 184, + 2192, 2164, 188, 192, 262, 268, 275, 354, 358, 362, + 367, 400, 405, 387, 375, 413, 417, 283, 422, 433, + 440, 444, 448, 454, 458, 462, 466, 0, 470, 2192, + + 474, 2192, 2157, 2149, 243, 2149, 2141, 2133, 246, 2145, + 170, 246, 2133, 2137, 253, 2147, 2142, 2121, 480, 102, + 0, 174, 2110, 2112, 161, 256, 2106, 484, 2192, 2149, + 0, 2142, 2134, 257, 2134, 2126, 2118, 475, 2130, 270, + 340, 2118, 2122, 343, 2132, 2127, 2106, 500, 371, 2095, + 2097, 331, 373, 418, 504, 2192, 2135, 2192, 352, 2192, + 397, 509, 449, 2192, 2128, 2114, 2124, 2112, 2107, 2121, + 2116, 2115, 2100, 436, 2106, 2100, 2102, 2102, 2094, 2101, + 2105, 2085, 2102, 2087, 496, 2067, 0, 0, 2192, 2057, + 2054, 457, 2045, 0, 386, 2058, 2055, 2073, 457, 2039, + + 2029, 2192, 2192, 2192, 2064, 516, 0, 2192, 0, 2063, + 519, 2041, 2030, 484, 2005, 1994, 2192, 393, 1953, 523, + 1997, 2192, 2192, 527, 531, 2192, 535, 541, 545, 550, + 555, 562, 572, 578, 584, 590, 594, 598, 602, 606, + 615, 619, 626, 630, 637, 642, 646, 650, 659, 665, + 669, 673, 677, 683, 687, 695, 699, 703, 546, 711, + 2192, 715, 2192, 556, 631, 573, 719, 720, 607, 678, + 721, 726, 727, 735, 737, 638, 742, 743, 748, 749, + 754, 756, 761, 767, 769, 0, 775, 783, 785, 789, + 790, 791, 797, 795, 801, 817, 2192, 1994, 2192, 0, + + 1987, 1973, 1982, 1970, 1964, 1978, 1969, 1963, 1944, 505, + 1946, 1935, 1932, 1925, 1910, 1895, 1892, 1872, 1885, 1873, + 785, 1847, 0, 542, 1846, 1840, 1855, 519, 1822, 1809, + 806, 810, 823, 2192, 1844, 398, 2192, 827, 2192, 835, + 2192, 1830, 1791, 1781, 1771, 1782, 1771, 1778, 1766, 1749, + 1749, 1751, 1732, 1713, 1719, 1718, 1699, 1695, 1683, 1666, + 1662, 1664, 1664, 1640, 839, 811, 1628, 1640, 1624, 1616, + 1632, 843, 847, 851, 2192, 858, 866, 871, 875, 880, + 884, 898, 906, 910, 915, 920, 924, 928, 932, 938, + 944, 949, 953, 959, 963, 968, 973, 977, 990, 994, + + 998, 1002, 1007, 1011, 859, 896, 876, 911, 1015, 1003, + 1016, 978, 1020, 969, 1021, 1022, 1033, 939, 1034, 1045, + 1051, 1050, 1056, 1052, 1062, 1068, 1069, 1070, 1074, 1080, + 1075, 1086, 1087, 1092, 1093, 1097, 1098, 1103, 1640, 1623, + 1618, 1610, 1617, 1606, 1614, 1606, 1587, 1590, 1602, 1587, + 1579, 1588, 1585, 1563, 1547, 1532, 1519, 1518, 1523, 1517, + 1491, 1107, 1109, 1462, 1471, 1455, 1438, 1451, 1454, 1424, + 1432, 1418, 1432, 1407, 1412, 1410, 1397, 1407, 1405, 1403, + 1401, 1373, 1373, 1381, 1371, 1354, 1369, 1359, 1347, 1321, + 1114, 2192, 1119, 1312, 1300, 1286, 1120, 1308, 1125, 2192, + + 1129, 2192, 1133, 1140, 1144, 1150, 1155, 1159, 1174, 1182, + 1186, 1190, 1194, 1204, 1210, 1219, 1223, 1228, 1232, 1237, + 1241, 1252, 1256, 1261, 1267, 1273, 1277, 1283, 1287, 1291, + 1295, 1180, 1296, 1170, 1199, 1262, 1160, 1211, 1300, 1301, + 1305, 1233, 1306, 1324, 1326, 1311, 1313, 1312, 1278, 1333, + 1338, 1339, 1344, 1345, 1349, 1351, 1353, 1358, 1359, 1363, + 1287, 1271, 1243, 1250, 1231, 1245, 1220, 1225, 1223, 1203, + 1209, 1207, 1200, 1192, 1165, 1165, 1166, 1164, 1142, 1148, + 1133, 1122, 1096, 1094, 1095, 1365, 1095, 1100, 1086, 1096, + 1091, 2192, 1083, 1071, 1056, 1049, 1020, 1016, 2192, 2192, + + 1013, 1005, 1020, 1007, 1009, 2192, 985, 974, 951, 2192, + 955, 955, 1369, 929, 940, 1371, 1376, 1380, 1384, 1404, + 1400, 1413, 1417, 1424, 1428, 1435, 1439, 1443, 1447, 1451, + 1455, 1460, 1467, 1471, 1481, 1486, 1490, 1494, 1498, 1502, + 1506, 1512, 1516, 1477, 1472, 1507, 1517, 1521, 1390, 1527, + 1533, 1539, 1540, 1523, 1550, 1456, 1551, 1552, 1556, 1560, + 1562, 1564, 1566, 1570, 1571, 1577, 1578, 1584, 1586, 1585, + 1590, 924, 912, 896, 908, 896, 884, 883, 882, 873, + 846, 845, 837, 836, 847, 833, 841, 818, 820, 796, + 799, 798, 813, 807, 788, 2192, 2192, 2192, 2192, 2192, + + 2192, 773, 771, 766, 765, 2192, 755, 2192, 752, 734, + 691, 698, 683, 2192, 706, 1596, 1600, 1607, 1618, 1622, + 1626, 1631, 1636, 1640, 1644, 1648, 1655, 1659, 1666, 1670, + 1674, 1678, 1682, 1687, 1691, 1696, 1700, 1701, 1705, 1707, + 1591, 1711, 1716, 1717, 1718, 1722, 1723, 1727, 1733, 1734, + 1740, 1744, 1745, 1746, 1750, 1752, 1756, 1758, 1762, 699, + 692, 688, 680, 674, 666, 662, 651, 648, 642, 612, + 592, 578, 2192, 2192, 2192, 2192, 2192, 2192, 2192, 604, + 2192, 595, 589, 1764, 556, 585, 1766, 1770, 1774, 1778, + 1782, 1788, 1793, 1799, 1803, 1808, 1812, 1817, 1821, 1783, + + 1822, 1826, 1827, 1828, 1832, 1833, 1834, 1838, 1840, 1844, + 1846, 1852, 575, 569, 562, 1853, 518, 2192, 2192, 504, + 1857, 487, 1858, 1863, 1867, 1872, 1876, 1880, 1884, 1868, + 1889, 1890, 1894, 1896, 1905, 483, 1906, 475, 2192, 1907, + 418, 1911, 1915, 1924, 1928, 1916, 1920, 1932, 1933, 340, + 324, 2192, 1940, 1945, 1953, 1934, 309, 253, 1955, 1959, + 216, 166, 1961, 1965, 142, 95, 1972, 1981, 59, 2192, + 1983, 1967, 2192, 2003, 2009, 2015, 2021, 2027, 2033, 2039, + 2045, 2051, 2057, 2063, 2069, 2075, 2081, 2087, 2093, 48, + 2099, 2105, 2111, 2117 + } ; -static yyconst short int yy_def[872] = +static yyconst flex_int16_t yy_def[895] = { 0, - 850, 1, 851, 852, 853, 853, 854, 854, 850, 9, - 850, 11, 850, 13, 855, 855, 856, 856, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 857, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 858, 850, 859, 850, 850, 860, 859, 859, - 859, 861, 850, 850, 861, 861, 862, 850, 850, 863, - 850, 850, 863, 863, 863, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 863, 863, 863, 864, - 863, 863, 863, 863, 863, 863, 863, 865, 850, 850, - - 850, 850, 865, 865, 865, 865, 865, 865, 865, 865, - 865, 865, 865, 865, 865, 865, 865, 865, 41, 866, - 865, 865, 865, 865, 865, 865, 865, 850, 850, 850, - 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, - 867, 867, 867, 867, 867, 867, 867, 41, 867, 867, - 867, 867, 867, 868, 850, 850, 850, 850, 869, 850, - 869, 869, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 41, 857, 850, 850, 850, - 850, 850, 857, 850, 850, 850, 850, 850, 850, 850, - - 850, 850, 850, 850, 850, 859, 850, 859, 850, 859, - 859, 859, 859, 861, 861, 850, 861, 861, 861, 862, - 850, 850, 863, 863, 850, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 864, 864, 863, 863, - 863, 863, 863, 863, 863, 863, 870, 850, 850, 850, - 850, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 870, 870, 119, 871, 870, 870, 870, 870, 870, 870, - 870, 870, 850, 850, 850, 850, 867, 867, 867, 867, - - 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, - 867, 867, 867, 867, 867, 867, 867, 867, 148, 867, - 867, 867, 867, 867, 867, 867, 868, 868, 850, 850, - 850, 869, 850, 869, 850, 869, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 859, 861, 861, 861, 850, - 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 863, 863, 870, 870, - - 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 870, 870, 871, 870, 870, 870, 870, 870, 870, 870, - 870, 867, 867, 867, 867, 867, 867, 867, 867, 867, - 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, - 867, 867, 867, 867, 867, 867, 867, 867, 867, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 859, 861, - 850, 861, 850, 863, 863, 863, 863, 863, 863, 863, - - 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, - 863, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 870, 870, 870, 870, 870, 870, 870, 870, 870, 867, - 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, - 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, - 867, 867, 867, 867, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - - 850, 859, 863, 863, 863, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 863, 863, 863, 870, - 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 870, 870, 870, 870, 870, 870, 867, 867, 867, 867, - 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, - 867, 867, 867, 867, 867, 867, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 859, 863, 863, - - 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 863, 863, 863, 870, - 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, - 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, - 867, 867, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 859, 863, 863, 863, 863, 863, - 863, 863, 863, 863, 863, 863, 863, 870, 870, 870, - 870, 870, 870, 870, 870, 870, 870, 870, 870, 867, - 867, 867, 867, 867, 850, 850, 850, 850, 850, 850, - - 863, 863, 863, 863, 863, 863, 870, 870, 870, 870, - 870, 870, 867, 867, 850, 850, 850, 850, 863, 863, - 863, 863, 870, 870, 870, 870, 867, 850, 850, 863, - 863, 870, 870, 867, 850, 863, 870, 867, 850, 863, - 870, 867, 850, 863, 870, 867, 850, 863, 870, 0, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850 + 873, 1, 874, 875, 876, 876, 877, 877, 873, 9, + 873, 11, 873, 13, 878, 878, 879, 879, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 880, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 881, 873, 882, 873, 873, 883, 882, 882, + 882, 884, 873, 873, 884, 884, 885, 873, 873, 886, + 873, 873, 886, 886, 886, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 887, + 886, 886, 886, 886, 886, 886, 886, 888, 873, 873, + + 873, 873, 888, 888, 888, 888, 888, 888, 888, 888, + 888, 888, 888, 888, 888, 888, 888, 888, 41, 889, + 888, 888, 888, 888, 888, 888, 888, 873, 873, 873, + 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 890, 890, 890, 890, 890, 41, 890, 890, + 890, 890, 890, 891, 873, 873, 873, 873, 892, 873, + 892, 892, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 41, 880, 873, 873, + 873, 873, 873, 880, 873, 873, 873, 873, 873, 873, + + 873, 873, 873, 873, 873, 873, 882, 873, 882, 873, + 882, 882, 882, 882, 884, 884, 873, 884, 884, 884, + 885, 873, 873, 886, 886, 873, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 887, 887, + 886, 886, 886, 886, 886, 886, 886, 886, 893, 873, + 873, 873, 873, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 119, 894, 893, 893, 893, + 893, 893, 893, 893, 893, 873, 873, 873, 873, 890, + + 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 148, 890, 890, 890, 890, 890, 890, 890, + 891, 891, 873, 873, 873, 892, 873, 892, 873, 892, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 882, 884, 884, 884, 873, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, + + 886, 886, 886, 886, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 894, + 893, 893, 893, 893, 893, 893, 893, 893, 890, 890, + 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 890, 890, 890, 890, 890, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 882, 884, 873, + + 884, 873, 886, 886, 886, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, + 886, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 890, 890, 890, 890, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 882, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, + 886, 886, 886, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 873, 873, 873, 873, 873, 873, 873, 873, + + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 882, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 890, + 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, + 890, 890, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 882, 886, 886, 886, 886, + 886, 886, 886, 886, 886, 886, 886, 886, 886, 893, + + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 890, 890, 890, 890, 890, 873, 873, 873, + 873, 873, 873, 886, 886, 886, 886, 886, 886, 893, + 893, 893, 893, 893, 893, 890, 890, 873, 873, 873, + 873, 886, 886, 886, 886, 893, 893, 893, 893, 890, + 873, 873, 886, 886, 893, 893, 890, 873, 886, 893, + 890, 873, 886, 893, 890, 873, 886, 893, 890, 873, + 886, 893, 0, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873 + } ; -static yyconst short int yy_nxt[2187] = +static yyconst flex_int16_t yy_nxt[2241] = { 0, 20, 21, 22, 23, 21, 20, 24, 20, 25, 20, 20, 26, 27, 28, 20, 29, 20, 20, 30, 20, 31, 32, 33, 34, 35, 36, 20, 37, 38, 20, 39, 20, 20, 40, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 41, 68, - 69, 41, 42, 297, 63, 64, 43, 51, 52, 53, - 54, 50, 56, 57, 58, 59, 63, 64, 847, 44, - 68, 69, 160, 161, 60, 155, 156, 157, 155, 177, + 69, 41, 42, 300, 63, 64, 43, 51, 52, 53, + 54, 50, 56, 57, 58, 59, 63, 64, 870, 44, + 68, 69, 160, 161, 60, 155, 156, 157, 155, 178, 158, 155, 156, 157, 155, 45, 158, 46, 163, 47, - 274, 163, 48, 49, 65, 175, 178, 171, 181, 66, + 167, 163, 48, 49, 65, 176, 179, 168, 182, 66, - 172, 162, 61, 199, 173, 200, 65, 275, 847, 176, - 182, 66, 70, 21, 71, 72, 21, 70, 73, 70, + 172, 162, 61, 173, 870, 194, 65, 174, 194, 177, + 183, 66, 70, 21, 71, 72, 21, 70, 73, 70, 74, 70, 70, 75, 76, 77, 70, 78, 70, 70, 79, 70, 80, 81, 82, 83, 84, 85, 70, 86, 87, 70, 88, 70, 70, 89, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, - 41, 160, 161, 41, 90, 194, 197, 212, 91, 202, - 204, 205, 203, 207, 209, 210, 310, 217, 288, 176, - 272, 92, 218, 846, 278, 224, 198, 224, 224, 224, - 162, 224, 224, 311, 273, 213, 279, 93, 289, 94, + 41, 160, 161, 41, 90, 195, 198, 200, 91, 201, + 203, 205, 206, 204, 208, 210, 211, 218, 869, 177, + 275, 92, 219, 291, 288, 225, 199, 225, 225, 225, + 162, 225, 225, 225, 276, 225, 225, 93, 276, 94, - 248, 95, 248, 248, 96, 97, 98, 99, 100, 101, + 227, 95, 866, 292, 96, 97, 98, 99, 100, 101, 99, 98, 102, 98, 103, 98, 98, 104, 105, 106, 98, 107, 98, 98, 108, 98, 109, 110, 111, 112, 113, 114, 98, 115, 116, 98, 117, 98, 98, 118, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, - 98, 98, 98, 98, 119, 333, 193, 119, 120, 193, - 843, 224, 121, 224, 224, 314, 842, 224, 226, 224, - 224, 224, 285, 224, 224, 122, 224, 315, 224, 224, - 224, 227, 224, 224, 334, 268, 273, 228, 269, 229, - 839, 123, 270, 124, 235, 125, 360, 348, 126, 127, + 98, 98, 98, 98, 119, 213, 277, 119, 120, 865, + 266, 271, 121, 225, 272, 225, 225, 267, 273, 225, + 281, 225, 225, 278, 303, 122, 225, 228, 225, 225, + 312, 304, 282, 214, 225, 229, 225, 225, 293, 231, + 294, 123, 230, 124, 313, 125, 862, 247, 126, 127, 20, 128, 129, 130, 128, 20, 24, 131, 132, 20, 131, 133, 134, 135, 131, 136, 131, 131, 137, 131, 138, 139, 140, 141, 142, 143, 131, 144, 145, 131, 146, 20, 131, 147, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 20, 20, 148, 335, - 328, 148, 42, 328, 308, 224, 43, 224, 224, 224, - 838, 224, 224, 224, 304, 224, 224, 305, 309, 149, - 224, 306, 224, 224, 290, 230, 291, 232, 334, 238, - 233, 320, 454, 442, 234, 150, 231, 151, 224, 152, - 224, 224, 153, 49, 186, 309, 239, 186, 187, 835, - - 834, 224, 188, 224, 224, 224, 829, 224, 224, 325, - 236, 326, 224, 240, 224, 224, 323, 224, 163, 224, - 224, 163, 197, 345, 237, 241, 244, 224, 242, 224, - 224, 189, 224, 190, 224, 224, 324, 346, 191, 192, - 243, 224, 198, 224, 224, 245, 224, 828, 224, 224, - 224, 827, 224, 224, 224, 249, 224, 224, 816, 224, - 246, 224, 224, 199, 224, 200, 224, 224, 224, 237, - 224, 224, 258, 259, 260, 258, 260, 261, 260, 260, - 252, 283, 259, 260, 283, 293, 294, 295, 293, 319, - 294, 295, 319, 250, 251, 254, 357, 255, 212, 358, - - 253, 329, 330, 331, 329, 336, 337, 217, 336, 202, - 204, 205, 218, 256, 207, 209, 210, 369, 370, 224, - 369, 224, 224, 815, 439, 224, 213, 224, 224, 224, - 257, 224, 224, 257, 323, 334, 226, 224, 440, 224, - 224, 224, 814, 224, 224, 224, 813, 224, 224, 224, - 372, 224, 224, 224, 324, 224, 224, 371, 374, 224, - 796, 224, 224, 367, 333, 224, 375, 224, 224, 373, - 795, 224, 376, 224, 224, 224, 765, 224, 224, 224, - 378, 224, 224, 224, 800, 224, 224, 224, 257, 224, - 224, 257, 377, 334, 379, 380, 224, 402, 224, 224, - - 224, 797, 224, 224, 381, 382, 796, 224, 383, 224, - 224, 224, 257, 224, 224, 257, 386, 385, 224, 400, - 224, 224, 795, 224, 384, 224, 224, 224, 388, 224, - 224, 224, 257, 224, 224, 257, 794, 793, 389, 387, - 248, 404, 248, 248, 390, 792, 248, 391, 248, 248, - 224, 791, 224, 224, 224, 760, 224, 224, 224, 257, - 224, 224, 257, 790, 224, 392, 224, 224, 224, 758, - 224, 224, 405, 396, 393, 381, 224, 757, 224, 224, - 224, 756, 224, 224, 224, 394, 224, 224, 755, 252, - 754, 395, 258, 259, 260, 258, 260, 259, 260, 260, - - 257, 257, 257, 257, 257, 257, 753, 257, 257, 253, - 257, 257, 765, 397, 764, 406, 257, 408, 257, 257, - 401, 257, 398, 257, 763, 403, 257, 257, 762, 257, - 257, 409, 257, 761, 407, 257, 410, 257, 257, 257, - 257, 257, 257, 411, 257, 412, 416, 257, 413, 760, - 257, 418, 415, 257, 759, 257, 257, 414, 257, 758, - 757, 284, 419, 193, 284, 756, 193, 417, 257, 257, - 420, 257, 257, 421, 257, 257, 257, 257, 257, 257, - 257, 755, 257, 257, 427, 257, 754, 257, 451, 422, - 257, 452, 424, 411, 753, 328, 328, 428, 328, 328, - - 425, 293, 294, 295, 293, 752, 751, 426, 329, 330, - 331, 329, 336, 337, 750, 336, 749, 429, 748, 430, - 336, 337, 431, 336, 482, 483, 484, 482, 691, 484, - 490, 491, 747, 490, 492, 493, 689, 492, 369, 370, - 746, 369, 334, 224, 257, 224, 224, 257, 745, 744, - 334, 224, 494, 224, 224, 224, 743, 224, 224, 224, - 257, 224, 224, 257, 224, 257, 224, 224, 257, 522, - 684, 485, 400, 495, 497, 224, 367, 224, 224, 683, - 367, 682, 496, 681, 215, 498, 224, 680, 224, 224, - 224, 679, 224, 224, 224, 499, 224, 224, 742, 741, - - 698, 501, 224, 500, 224, 224, 224, 697, 224, 224, - 224, 503, 224, 224, 696, 224, 502, 224, 224, 224, - 257, 224, 224, 257, 224, 504, 224, 224, 506, 507, - 224, 257, 224, 224, 257, 257, 505, 508, 257, 532, - 224, 509, 224, 224, 224, 695, 224, 224, 224, 694, - 224, 224, 526, 224, 510, 224, 224, 523, 224, 693, - 224, 224, 224, 257, 224, 224, 257, 692, 513, 514, - 511, 691, 527, 690, 512, 516, 483, 224, 516, 517, - 689, 224, 517, 224, 688, 224, 224, 224, 257, 224, - 224, 257, 224, 515, 224, 224, 224, 257, 224, 224, - - 257, 257, 687, 257, 257, 257, 257, 257, 257, 686, - 257, 393, 525, 685, 528, 524, 531, 684, 257, 257, - 519, 257, 257, 257, 518, 683, 257, 530, 520, 529, - 682, 681, 534, 535, 521, 257, 257, 257, 257, 257, - 257, 680, 257, 257, 533, 257, 257, 537, 536, 257, - 257, 538, 257, 257, 257, 544, 483, 257, 544, 679, - 284, 542, 193, 284, 541, 193, 678, 545, 539, 540, - 545, 257, 257, 257, 257, 257, 257, 257, 257, 677, - 257, 257, 427, 257, 676, 543, 257, 482, 483, 484, - 482, 675, 484, 674, 482, 483, 424, 482, 428, 484, - - 600, 673, 484, 600, 490, 491, 257, 490, 547, 257, - 492, 493, 546, 492, 548, 672, 593, 224, 429, 224, - 224, 549, 224, 671, 224, 224, 224, 257, 224, 224, - 257, 670, 603, 604, 485, 224, 257, 224, 224, 257, - 669, 668, 605, 632, 485, 601, 224, 667, 224, 224, - 215, 630, 587, 586, 607, 224, 215, 224, 224, 666, - 224, 606, 224, 224, 224, 665, 224, 224, 224, 664, - 224, 224, 224, 663, 224, 224, 224, 257, 224, 224, - 257, 609, 608, 610, 662, 634, 661, 612, 224, 613, - 224, 224, 579, 660, 611, 224, 614, 224, 224, 224, - - 659, 224, 224, 615, 224, 658, 224, 224, 224, 257, - 224, 224, 257, 224, 657, 224, 224, 224, 602, 224, - 224, 618, 599, 598, 639, 616, 617, 619, 224, 597, - 224, 224, 224, 596, 224, 224, 621, 224, 257, 224, - 224, 257, 595, 224, 620, 224, 224, 594, 622, 516, - 483, 224, 516, 517, 257, 224, 517, 257, 593, 224, - 623, 224, 224, 224, 633, 224, 224, 224, 592, 224, - 224, 628, 257, 224, 628, 257, 257, 257, 591, 257, - 257, 635, 257, 631, 590, 257, 624, 257, 257, 257, - 257, 257, 257, 589, 588, 587, 637, 636, 518, 627, - - 640, 586, 257, 585, 625, 257, 626, 584, 638, 257, - 641, 644, 257, 583, 643, 257, 629, 642, 257, 257, - 257, 257, 257, 257, 257, 582, 581, 257, 645, 648, - 257, 257, 257, 646, 257, 257, 544, 483, 545, 544, - 580, 545, 257, 649, 579, 257, 257, 647, 257, 257, - 655, 257, 600, 655, 650, 600, 600, 578, 224, 600, - 224, 224, 577, 224, 576, 224, 224, 257, 575, 224, - 257, 224, 224, 574, 573, 651, 700, 701, 454, 224, - 654, 224, 224, 546, 699, 572, 571, 652, 224, 653, - 224, 224, 570, 720, 569, 656, 702, 601, 568, 567, - - 224, 601, 224, 224, 224, 566, 224, 224, 703, 565, - 564, 224, 704, 224, 224, 224, 563, 224, 224, 705, - 562, 561, 224, 706, 224, 224, 224, 560, 224, 224, - 224, 559, 224, 224, 224, 558, 224, 224, 224, 557, - 224, 224, 224, 257, 224, 224, 257, 224, 707, 224, - 224, 708, 556, 555, 224, 711, 224, 224, 224, 257, - 224, 224, 257, 554, 257, 709, 713, 257, 224, 710, - 224, 224, 721, 224, 712, 224, 224, 224, 553, 224, - 224, 224, 552, 224, 224, 224, 551, 224, 224, 224, - 728, 224, 224, 224, 257, 224, 224, 257, 715, 628, - - 714, 224, 628, 224, 257, 224, 224, 257, 257, 550, - 257, 257, 722, 257, 257, 489, 723, 257, 716, 729, - 257, 717, 724, 257, 718, 488, 257, 257, 725, 257, - 257, 487, 360, 257, 726, 727, 257, 257, 257, 257, - 257, 257, 257, 486, 629, 481, 732, 257, 719, 257, - 257, 257, 257, 257, 257, 734, 257, 480, 257, 733, - 730, 257, 257, 479, 731, 257, 257, 655, 257, 257, - 655, 257, 257, 257, 736, 257, 257, 224, 735, 224, - 224, 224, 478, 224, 224, 766, 477, 476, 224, 767, - 224, 224, 475, 474, 224, 737, 224, 224, 738, 739, - - 224, 473, 224, 224, 224, 472, 224, 224, 224, 471, - 224, 224, 656, 224, 470, 224, 224, 740, 224, 469, - 224, 224, 224, 468, 224, 224, 768, 467, 466, 224, - 769, 224, 224, 224, 465, 224, 224, 770, 464, 463, - 224, 771, 224, 224, 224, 462, 224, 224, 224, 461, - 224, 224, 224, 460, 224, 224, 224, 772, 224, 224, - 773, 224, 330, 224, 224, 224, 459, 224, 224, 774, - 224, 458, 224, 224, 224, 257, 224, 224, 257, 257, - 457, 257, 257, 778, 257, 257, 257, 779, 257, 257, - 257, 257, 257, 257, 257, 257, 257, 456, 776, 257, - - 780, 455, 257, 775, 781, 257, 257, 453, 257, 257, - 782, 257, 777, 257, 783, 257, 257, 257, 257, 257, - 257, 257, 257, 450, 257, 785, 784, 257, 257, 449, - 257, 257, 786, 257, 798, 448, 257, 798, 224, 447, - 224, 224, 224, 446, 224, 224, 224, 445, 224, 224, - 224, 444, 224, 224, 224, 257, 224, 224, 257, 224, - 788, 224, 224, 787, 224, 257, 224, 224, 257, 443, - 789, 224, 801, 224, 224, 224, 442, 224, 224, 799, - 441, 438, 224, 802, 224, 224, 437, 804, 803, 224, - 804, 224, 257, 224, 224, 257, 257, 257, 257, 257, - - 257, 257, 257, 257, 257, 257, 257, 257, 257, 436, - 807, 257, 808, 810, 809, 257, 810, 798, 257, 798, - 798, 435, 798, 817, 806, 224, 817, 224, 224, 434, - 433, 224, 805, 224, 224, 224, 432, 224, 224, 804, - 298, 224, 804, 224, 294, 224, 224, 821, 812, 224, - 821, 257, 257, 257, 257, 257, 257, 810, 811, 221, - 810, 368, 799, 257, 799, 367, 257, 819, 818, 825, - 817, 817, 825, 817, 817, 215, 224, 211, 224, 224, - 224, 366, 224, 224, 805, 823, 207, 821, 820, 224, - 821, 224, 822, 224, 224, 257, 257, 825, 257, 257, - - 825, 257, 811, 224, 257, 224, 224, 202, 824, 830, - 224, 365, 224, 224, 826, 818, 818, 257, 257, 364, - 257, 257, 224, 257, 224, 224, 257, 224, 832, 224, - 224, 257, 822, 363, 257, 224, 831, 224, 224, 362, - 361, 201, 826, 848, 257, 196, 833, 257, 224, 836, - 224, 224, 849, 195, 257, 359, 837, 257, 356, 355, - 354, 353, 844, 352, 840, 841, 845, 50, 50, 50, - 50, 50, 50, 55, 55, 55, 55, 55, 55, 62, - 62, 62, 62, 62, 62, 67, 67, 67, 67, 67, - 67, 154, 154, 154, 154, 154, 154, 159, 159, 159, - - 159, 159, 159, 193, 193, 351, 193, 193, 193, 203, - 203, 203, 203, 203, 203, 206, 350, 349, 348, 206, - 206, 208, 208, 208, 208, 208, 208, 214, 214, 347, - 344, 214, 214, 220, 220, 220, 343, 220, 220, 223, - 223, 342, 223, 223, 223, 247, 247, 341, 247, 247, - 247, 257, 257, 340, 339, 338, 257, 284, 284, 165, - 284, 284, 284, 327, 327, 330, 322, 321, 327, 332, - 332, 332, 332, 332, 332, 399, 399, 318, 317, 316, - 399, 423, 423, 313, 423, 423, 423, 312, 307, 303, - 302, 301, 300, 299, 298, 296, 292, 287, 286, 282, - - 281, 280, 277, 276, 271, 267, 266, 265, 264, 263, - 262, 225, 222, 221, 219, 216, 215, 211, 207, 202, - 201, 196, 195, 185, 184, 183, 180, 179, 174, 170, - 169, 168, 167, 166, 165, 164, 850, 19, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850 + 131, 131, 131, 131, 131, 131, 20, 20, 148, 861, + 314, 148, 42, 327, 337, 225, 43, 225, 225, 225, + 318, 225, 225, 225, 858, 225, 225, 315, 225, 149, + 225, 225, 319, 328, 857, 232, 225, 234, 225, 225, + 235, 324, 237, 338, 236, 150, 233, 151, 225, 152, + 225, 225, 153, 49, 187, 313, 243, 187, 188, 339, + + 337, 225, 189, 225, 225, 329, 225, 330, 225, 225, + 238, 365, 353, 242, 225, 240, 225, 225, 225, 332, + 225, 225, 332, 225, 239, 225, 225, 246, 338, 338, + 244, 190, 241, 191, 250, 218, 250, 250, 192, 193, + 219, 225, 245, 225, 225, 225, 350, 225, 225, 225, + 163, 225, 225, 163, 251, 225, 248, 225, 225, 225, + 351, 225, 225, 225, 852, 225, 225, 225, 239, 225, + 225, 260, 261, 262, 260, 262, 263, 262, 262, 198, + 254, 286, 261, 262, 286, 296, 297, 298, 296, 200, + 308, 201, 252, 309, 256, 253, 257, 310, 213, 199, + + 255, 323, 297, 298, 323, 333, 334, 335, 333, 851, + 340, 341, 258, 340, 362, 447, 850, 363, 203, 205, + 206, 208, 210, 211, 374, 375, 214, 374, 225, 448, + 225, 225, 225, 839, 225, 225, 225, 838, 225, 225, + 338, 327, 225, 227, 225, 225, 225, 259, 225, 225, + 259, 225, 837, 225, 225, 377, 225, 259, 225, 225, + 259, 328, 376, 225, 406, 225, 225, 462, 450, 836, + 372, 378, 380, 225, 259, 225, 225, 259, 819, 225, + 379, 225, 225, 408, 818, 225, 381, 225, 225, 786, + 823, 225, 382, 225, 225, 225, 820, 225, 225, 225, + + 384, 225, 225, 225, 819, 225, 225, 225, 259, 225, + 225, 259, 383, 818, 385, 386, 225, 411, 225, 225, + 225, 817, 225, 225, 387, 388, 816, 225, 389, 225, + 225, 225, 259, 225, 225, 259, 392, 391, 225, 259, + 225, 225, 259, 225, 390, 225, 225, 225, 394, 225, + 225, 225, 407, 225, 225, 815, 814, 781, 395, 393, + 250, 419, 250, 250, 396, 813, 250, 397, 250, 250, + 225, 779, 225, 225, 225, 778, 225, 225, 225, 259, + 225, 225, 259, 777, 225, 398, 225, 225, 225, 776, + 225, 225, 412, 402, 399, 387, 225, 775, 225, 225, + + 225, 774, 225, 225, 225, 400, 225, 225, 773, 254, + 786, 401, 260, 261, 262, 260, 262, 261, 262, 262, + 259, 259, 259, 259, 259, 259, 785, 259, 259, 255, + 259, 259, 784, 403, 783, 413, 259, 415, 259, 259, + 409, 259, 404, 259, 259, 410, 259, 259, 782, 259, + 259, 416, 259, 259, 414, 259, 417, 259, 259, 423, + 259, 781, 259, 418, 420, 259, 422, 425, 259, 780, + 259, 259, 421, 259, 779, 778, 287, 426, 194, 287, + 777, 194, 776, 424, 259, 427, 259, 259, 428, 259, + 259, 259, 259, 259, 259, 259, 259, 775, 259, 259, + + 434, 259, 259, 459, 429, 259, 460, 332, 431, 418, + 332, 332, 493, 435, 332, 493, 774, 432, 296, 297, + 298, 296, 773, 433, 333, 334, 335, 333, 340, 341, + 772, 340, 771, 436, 770, 437, 340, 341, 438, 340, + 491, 492, 769, 491, 499, 500, 768, 499, 501, 502, + 708, 501, 374, 375, 767, 374, 706, 494, 338, 225, + 259, 225, 225, 259, 766, 765, 338, 225, 503, 225, + 225, 764, 225, 763, 225, 225, 225, 259, 225, 225, + 259, 225, 701, 225, 225, 225, 532, 225, 225, 504, + 372, 700, 699, 698, 372, 505, 507, 259, 216, 225, + + 259, 225, 225, 506, 406, 697, 508, 225, 509, 225, + 225, 225, 259, 225, 225, 259, 225, 696, 225, 225, + 510, 225, 762, 225, 225, 225, 761, 225, 225, 225, + 513, 225, 225, 225, 533, 225, 225, 511, 512, 225, + 259, 225, 225, 259, 514, 225, 516, 225, 225, 517, + 225, 760, 225, 225, 225, 515, 225, 225, 518, 543, + 225, 519, 225, 225, 225, 715, 225, 225, 520, 225, + 259, 225, 225, 259, 225, 714, 225, 225, 225, 259, + 225, 225, 259, 539, 523, 524, 521, 713, 712, 711, + 522, 526, 492, 225, 526, 527, 710, 225, 527, 225, + + 537, 225, 225, 225, 259, 225, 225, 259, 225, 525, + 225, 225, 225, 709, 225, 225, 259, 259, 708, 259, + 259, 259, 259, 259, 259, 259, 259, 399, 707, 706, + 538, 535, 536, 705, 259, 259, 529, 259, 259, 534, + 528, 704, 703, 542, 530, 541, 259, 702, 540, 259, + 531, 259, 259, 259, 259, 259, 259, 259, 701, 545, + 259, 544, 546, 259, 547, 700, 259, 549, 548, 259, + 259, 259, 259, 259, 259, 259, 555, 492, 259, 555, + 699, 287, 553, 194, 287, 552, 194, 556, 259, 550, + 556, 259, 698, 259, 259, 551, 259, 259, 259, 259, + + 697, 259, 259, 434, 259, 696, 554, 259, 491, 492, + 493, 491, 695, 493, 694, 491, 492, 431, 491, 435, + 493, 613, 693, 493, 613, 558, 499, 500, 692, 499, + 501, 502, 557, 501, 225, 559, 225, 225, 691, 436, + 690, 225, 560, 225, 225, 225, 689, 225, 225, 616, + 688, 225, 617, 225, 225, 494, 225, 606, 225, 225, + 225, 259, 225, 225, 259, 494, 614, 619, 621, 649, + 687, 259, 216, 618, 259, 225, 216, 225, 225, 686, + 685, 259, 620, 225, 259, 225, 225, 225, 684, 225, + 225, 225, 683, 225, 225, 225, 644, 225, 225, 646, + + 259, 600, 622, 259, 623, 225, 624, 225, 225, 599, + 626, 225, 259, 225, 225, 259, 647, 625, 627, 628, + 225, 682, 225, 225, 225, 681, 225, 225, 629, 225, + 680, 225, 225, 225, 259, 225, 225, 259, 225, 650, + 225, 225, 225, 679, 225, 225, 632, 678, 677, 654, + 630, 631, 633, 225, 592, 225, 225, 225, 676, 225, + 225, 635, 225, 259, 225, 225, 259, 675, 225, 634, + 225, 225, 674, 636, 526, 492, 225, 526, 527, 259, + 225, 527, 259, 673, 225, 637, 225, 225, 225, 648, + 225, 225, 225, 661, 225, 225, 642, 259, 225, 642, + + 259, 259, 259, 672, 259, 259, 259, 259, 645, 259, + 259, 638, 259, 259, 259, 259, 259, 259, 615, 612, + 655, 652, 651, 528, 641, 259, 660, 259, 259, 639, + 259, 640, 653, 656, 259, 657, 659, 259, 658, 259, + 259, 643, 259, 259, 611, 259, 259, 663, 259, 259, + 555, 492, 556, 555, 259, 556, 664, 259, 610, 259, + 259, 662, 259, 259, 670, 609, 613, 670, 665, 613, + 613, 608, 225, 613, 225, 225, 607, 225, 606, 225, + 225, 225, 605, 225, 225, 225, 604, 225, 225, 666, + 717, 259, 669, 719, 259, 603, 602, 557, 716, 667, + + 601, 225, 668, 225, 225, 225, 718, 225, 225, 671, + 600, 614, 599, 720, 225, 614, 225, 225, 225, 598, + 225, 225, 721, 597, 596, 225, 722, 225, 225, 225, + 595, 225, 225, 723, 594, 593, 225, 724, 225, 225, + 225, 592, 225, 225, 225, 591, 225, 225, 225, 590, + 225, 225, 225, 589, 225, 225, 225, 259, 225, 225, + 259, 225, 725, 225, 225, 726, 588, 587, 225, 729, + 225, 225, 225, 259, 225, 225, 259, 586, 259, 727, + 731, 259, 225, 728, 225, 225, 739, 225, 730, 225, + 225, 225, 585, 225, 225, 225, 462, 225, 225, 225, + + 584, 225, 225, 225, 738, 225, 225, 225, 259, 225, + 225, 259, 733, 642, 732, 225, 642, 225, 259, 225, + 225, 259, 259, 583, 259, 259, 741, 259, 259, 582, + 742, 259, 734, 740, 259, 735, 743, 259, 736, 581, + 259, 259, 744, 259, 259, 580, 579, 578, 745, 746, + 747, 259, 259, 259, 259, 259, 259, 259, 643, 577, + 259, 259, 737, 259, 259, 259, 259, 259, 259, 751, + 259, 259, 259, 753, 259, 259, 748, 576, 259, 259, + 749, 259, 259, 752, 750, 259, 670, 259, 259, 670, + 259, 259, 259, 755, 259, 259, 575, 225, 754, 225, + + 225, 225, 574, 225, 225, 787, 573, 572, 225, 788, + 225, 225, 571, 570, 569, 756, 789, 757, 758, 225, + 568, 225, 225, 225, 567, 225, 225, 225, 566, 225, + 225, 671, 225, 565, 225, 225, 759, 225, 564, 225, + 225, 225, 563, 225, 225, 225, 562, 225, 225, 225, + 561, 225, 225, 790, 498, 497, 225, 791, 225, 225, + 225, 496, 225, 225, 792, 365, 495, 225, 793, 225, + 225, 225, 490, 225, 225, 225, 489, 225, 225, 225, + 488, 225, 225, 225, 794, 225, 225, 795, 225, 487, + 225, 225, 225, 486, 225, 225, 796, 225, 485, 225, + + 225, 225, 259, 225, 225, 259, 259, 484, 259, 259, + 800, 259, 259, 483, 801, 259, 802, 259, 259, 259, + 259, 259, 259, 259, 259, 798, 259, 259, 259, 482, + 797, 259, 803, 481, 259, 259, 804, 259, 259, 799, + 480, 259, 805, 806, 259, 259, 259, 259, 259, 259, + 259, 259, 479, 259, 259, 808, 259, 259, 807, 259, + 259, 478, 259, 259, 809, 821, 259, 225, 821, 225, + 225, 225, 477, 225, 225, 225, 476, 225, 225, 225, + 475, 225, 225, 225, 259, 225, 225, 259, 474, 225, + 811, 225, 225, 473, 225, 810, 225, 225, 472, 471, + + 225, 812, 225, 225, 225, 470, 225, 225, 824, 225, + 822, 225, 225, 225, 469, 225, 225, 825, 827, 826, + 225, 827, 225, 259, 225, 225, 259, 259, 259, 259, + 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, + 468, 259, 259, 830, 259, 259, 334, 833, 259, 831, + 833, 832, 467, 259, 821, 829, 259, 821, 821, 840, + 466, 821, 840, 828, 225, 465, 225, 225, 225, 259, + 225, 225, 259, 225, 464, 225, 225, 827, 463, 225, + 827, 225, 461, 225, 225, 844, 835, 225, 844, 458, + 259, 259, 834, 259, 259, 833, 457, 259, 833, 822, + + 259, 456, 455, 822, 841, 842, 848, 840, 840, 848, + 840, 840, 225, 454, 225, 225, 225, 259, 225, 225, + 259, 259, 828, 846, 259, 844, 843, 225, 844, 225, + 845, 225, 225, 848, 259, 259, 848, 259, 259, 453, + 834, 225, 847, 225, 225, 853, 225, 452, 225, 225, + 855, 849, 841, 841, 259, 451, 225, 259, 225, 225, + 259, 450, 225, 259, 225, 225, 259, 449, 259, 259, + 845, 259, 446, 225, 854, 225, 225, 445, 849, 856, + 859, 871, 259, 444, 225, 259, 225, 225, 443, 442, + 872, 441, 440, 860, 439, 301, 297, 867, 863, 222, + + 373, 868, 864, 50, 50, 50, 50, 50, 50, 55, + 55, 55, 55, 55, 55, 62, 62, 62, 62, 62, + 62, 67, 67, 67, 67, 67, 67, 154, 154, 154, + 154, 154, 154, 159, 159, 159, 159, 159, 159, 194, + 194, 372, 194, 194, 194, 204, 204, 204, 204, 204, + 204, 207, 216, 212, 371, 207, 207, 209, 209, 209, + 209, 209, 209, 215, 215, 208, 203, 215, 215, 221, + 221, 221, 370, 221, 221, 224, 224, 369, 224, 224, + 224, 249, 249, 368, 249, 249, 249, 259, 259, 367, + 366, 202, 259, 287, 287, 197, 287, 287, 287, 331, + + 331, 196, 364, 361, 331, 336, 336, 336, 336, 336, + 336, 405, 405, 360, 359, 358, 405, 430, 430, 357, + 430, 430, 430, 356, 355, 354, 353, 352, 349, 348, + 347, 346, 345, 344, 343, 342, 165, 334, 326, 325, + 322, 321, 320, 317, 316, 311, 307, 306, 305, 302, + 301, 299, 295, 290, 289, 285, 284, 283, 280, 279, + 274, 270, 269, 268, 265, 264, 226, 223, 222, 220, + 217, 216, 212, 208, 203, 202, 197, 196, 186, 185, + 184, 181, 180, 175, 171, 170, 169, 166, 165, 164, + 873, 19, 873, 873, 873, 873, 873, 873, 873, 873, + + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873 } ; -static yyconst short int yy_chk[2187] = +static yyconst flex_int16_t yy_chk[2241] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 7, - 7, 2, 2, 867, 5, 5, 2, 3, 3, 3, - 3, 4, 4, 4, 4, 4, 6, 6, 846, 2, + 7, 2, 2, 890, 5, 5, 2, 3, 3, 3, + 3, 4, 4, 4, 4, 4, 6, 6, 869, 2, 8, 8, 17, 17, 4, 15, 15, 15, 15, 34, 15, 16, 16, 16, 16, 2, 16, 2, 21, 2, - 112, 21, 2, 2, 5, 33, 34, 31, 37, 5, + 27, 21, 2, 2, 5, 33, 34, 27, 37, 5, - 31, 17, 4, 48, 31, 48, 6, 112, 843, 33, + 31, 17, 4, 31, 866, 120, 6, 31, 120, 33, 37, 6, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 10, 18, 18, 10, 10, 44, 47, 61, 10, 53, - 53, 53, 58, 58, 58, 58, 141, 65, 125, 44, - 111, 10, 65, 842, 115, 70, 47, 70, 70, 73, - 18, 73, 73, 141, 111, 61, 115, 10, 125, 10, + 10, 18, 18, 10, 10, 44, 47, 48, 10, 48, + 53, 53, 53, 58, 58, 58, 58, 65, 865, 44, + 111, 10, 65, 125, 122, 70, 47, 70, 70, 73, + 18, 73, 73, 74, 111, 74, 74, 10, 122, 10, - 90, 10, 90, 90, 10, 10, 11, 11, 11, 11, + 74, 10, 862, 125, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, - 11, 11, 11, 11, 12, 159, 120, 12, 12, 120, - 839, 74, 12, 74, 74, 144, 838, 75, 74, 75, - 75, 76, 122, 76, 76, 12, 77, 144, 77, 77, - 81, 75, 81, 81, 159, 109, 122, 76, 109, 77, - 835, 12, 109, 12, 81, 12, 194, 194, 12, 12, + 11, 11, 11, 11, 12, 61, 112, 12, 12, 861, + 105, 109, 12, 75, 109, 75, 75, 105, 109, 76, + 115, 76, 76, 112, 134, 12, 77, 75, 77, 77, + 140, 134, 115, 61, 88, 76, 88, 88, 126, 77, + 126, 12, 76, 12, 140, 12, 858, 88, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 14, 161, - 154, 14, 14, 154, 140, 78, 14, 78, 78, 79, - 834, 79, 79, 80, 138, 80, 80, 138, 140, 14, - 83, 138, 83, 83, 126, 78, 126, 80, 161, 83, - 80, 149, 320, 320, 80, 14, 79, 14, 84, 14, - 84, 84, 14, 14, 41, 149, 83, 41, 41, 828, - - 827, 82, 41, 82, 82, 85, 818, 85, 85, 153, - 82, 153, 86, 84, 86, 86, 152, 87, 163, 87, - 87, 163, 198, 173, 82, 85, 87, 89, 86, 89, - 89, 41, 88, 41, 88, 88, 152, 173, 41, 41, - 86, 91, 198, 91, 91, 88, 92, 815, 92, 92, - 93, 813, 93, 93, 94, 92, 94, 94, 799, 95, - 89, 95, 95, 191, 96, 191, 96, 96, 97, 92, - 97, 97, 99, 99, 99, 99, 101, 101, 101, 101, - 95, 119, 119, 119, 119, 128, 128, 128, 128, 148, - 148, 148, 148, 93, 94, 96, 184, 96, 213, 184, - - 95, 155, 155, 155, 155, 162, 162, 217, 162, 205, - 205, 205, 217, 97, 210, 210, 210, 219, 219, 223, - 219, 223, 223, 797, 306, 224, 213, 224, 224, 226, - 257, 226, 226, 257, 324, 162, 226, 227, 306, 227, - 227, 228, 794, 228, 228, 229, 792, 229, 229, 230, - 228, 230, 230, 231, 324, 231, 231, 227, 230, 232, - 791, 232, 232, 219, 332, 233, 231, 233, 233, 229, - 790, 234, 232, 234, 234, 235, 765, 235, 235, 236, - 234, 236, 236, 237, 764, 237, 237, 238, 264, 238, - 238, 264, 233, 332, 234, 235, 239, 264, 239, 239, - - 240, 762, 240, 240, 236, 237, 761, 241, 238, 241, - 241, 242, 262, 242, 242, 262, 241, 240, 243, 262, - 243, 243, 759, 244, 239, 244, 244, 245, 243, 245, - 245, 246, 266, 246, 246, 266, 752, 751, 244, 242, - 247, 266, 247, 247, 245, 750, 248, 245, 248, 248, - 249, 749, 249, 249, 250, 748, 250, 250, 251, 267, - 251, 251, 267, 747, 252, 246, 252, 252, 253, 746, - 253, 253, 267, 252, 249, 249, 254, 745, 254, 254, - 255, 744, 255, 255, 256, 250, 256, 256, 743, 253, - 742, 251, 258, 258, 258, 258, 260, 260, 260, 260, - - 263, 265, 268, 263, 265, 268, 741, 269, 270, 253, - 269, 270, 698, 254, 696, 268, 271, 270, 272, 271, - 263, 272, 255, 273, 695, 265, 273, 274, 694, 275, - 274, 270, 275, 693, 269, 276, 271, 277, 276, 278, - 277, 279, 278, 272, 279, 273, 277, 280, 274, 692, - 280, 279, 276, 281, 690, 282, 281, 275, 282, 688, - 687, 284, 280, 284, 284, 686, 284, 278, 285, 286, - 281, 285, 286, 281, 287, 288, 289, 287, 288, 289, - 291, 685, 290, 291, 288, 290, 678, 292, 317, 282, - 292, 317, 285, 285, 677, 327, 328, 289, 327, 328, - - 286, 293, 293, 293, 293, 676, 675, 287, 329, 329, - 329, 329, 334, 334, 674, 334, 673, 289, 672, 290, - 336, 336, 291, 336, 360, 360, 361, 360, 671, 361, - 367, 367, 670, 367, 368, 368, 669, 368, 369, 369, - 668, 369, 334, 371, 399, 371, 371, 399, 667, 666, - 336, 372, 371, 372, 372, 373, 665, 373, 373, 374, - 401, 374, 374, 401, 375, 400, 375, 375, 400, 401, - 664, 361, 400, 372, 374, 378, 367, 378, 378, 663, - 368, 662, 373, 661, 369, 375, 376, 660, 376, 376, - 377, 659, 377, 377, 379, 376, 379, 379, 658, 657, - - 602, 378, 380, 377, 380, 380, 381, 601, 381, 381, - 382, 380, 382, 382, 599, 383, 379, 383, 383, 384, - 411, 384, 384, 411, 385, 381, 385, 385, 383, 384, - 386, 405, 386, 386, 405, 402, 382, 385, 402, 411, - 387, 386, 387, 387, 388, 598, 388, 388, 389, 596, - 389, 389, 405, 390, 387, 390, 390, 402, 391, 595, - 391, 391, 392, 406, 392, 392, 406, 594, 390, 391, - 388, 592, 406, 591, 389, 393, 393, 393, 393, 394, - 590, 394, 394, 395, 589, 395, 395, 396, 403, 396, - 396, 403, 397, 392, 397, 397, 398, 404, 398, 398, - - 404, 407, 588, 408, 407, 409, 408, 410, 409, 585, - 410, 396, 404, 584, 407, 403, 410, 583, 412, 413, - 395, 412, 413, 414, 394, 582, 414, 409, 397, 408, - 581, 580, 413, 414, 398, 415, 416, 417, 415, 416, - 417, 578, 418, 419, 412, 418, 419, 416, 415, 420, - 421, 417, 420, 421, 422, 424, 424, 422, 424, 577, - 423, 421, 423, 423, 420, 423, 576, 425, 418, 419, - 425, 426, 427, 428, 426, 427, 428, 429, 430, 575, - 429, 430, 428, 431, 573, 422, 431, 454, 454, 455, - 454, 572, 455, 571, 482, 482, 427, 482, 429, 484, - - 488, 570, 484, 488, 490, 490, 634, 490, 426, 634, - 492, 492, 425, 492, 430, 569, 568, 494, 429, 494, - 494, 431, 495, 567, 495, 495, 496, 524, 496, 496, - 524, 566, 494, 495, 455, 497, 522, 497, 497, 522, - 565, 564, 496, 524, 484, 488, 498, 563, 498, 498, - 490, 522, 562, 561, 498, 499, 492, 499, 499, 560, - 500, 497, 500, 500, 501, 559, 501, 501, 502, 558, - 502, 502, 503, 557, 503, 503, 504, 526, 504, 504, - 526, 500, 499, 501, 556, 526, 555, 503, 505, 504, - 505, 505, 554, 553, 502, 506, 505, 506, 506, 507, - - 552, 507, 507, 506, 508, 551, 508, 508, 509, 531, - 509, 509, 531, 510, 550, 510, 510, 511, 489, 511, - 511, 509, 487, 486, 531, 507, 508, 510, 512, 485, - 512, 512, 513, 481, 513, 513, 512, 514, 525, 514, - 514, 525, 480, 515, 511, 515, 515, 479, 513, 516, - 516, 516, 516, 517, 527, 517, 517, 527, 478, 518, - 514, 518, 518, 519, 525, 519, 519, 520, 477, 520, - 520, 521, 523, 521, 521, 523, 528, 529, 476, 528, - 529, 527, 530, 523, 475, 530, 515, 532, 535, 536, - 532, 535, 536, 474, 473, 472, 529, 528, 517, 520, - - 532, 471, 533, 470, 518, 533, 519, 469, 530, 534, - 533, 536, 534, 468, 535, 537, 521, 534, 537, 538, - 539, 540, 538, 539, 540, 467, 466, 541, 537, 540, - 541, 542, 543, 538, 542, 543, 544, 544, 545, 544, - 465, 545, 546, 541, 464, 546, 547, 539, 548, 547, - 549, 548, 574, 549, 542, 574, 600, 463, 603, 600, - 603, 603, 462, 604, 461, 604, 604, 630, 460, 605, - 630, 605, 605, 459, 458, 543, 604, 605, 457, 607, - 548, 607, 607, 545, 603, 456, 453, 546, 606, 547, - 606, 606, 452, 630, 451, 549, 606, 574, 450, 449, - - 608, 600, 608, 608, 609, 448, 609, 609, 608, 447, - 446, 610, 609, 610, 610, 611, 445, 611, 611, 610, - 444, 443, 612, 611, 612, 612, 613, 442, 613, 613, - 614, 441, 614, 614, 615, 440, 615, 615, 616, 439, - 616, 616, 617, 641, 617, 617, 641, 618, 612, 618, - 618, 613, 438, 437, 619, 618, 619, 619, 620, 631, - 620, 620, 631, 436, 639, 616, 620, 639, 621, 617, - 621, 621, 631, 622, 619, 622, 622, 623, 435, 623, - 623, 624, 434, 624, 624, 625, 433, 625, 625, 626, - 639, 626, 626, 627, 640, 627, 627, 640, 623, 628, - - 622, 628, 628, 629, 632, 629, 629, 632, 633, 432, - 642, 633, 632, 642, 635, 366, 633, 635, 624, 640, - 636, 626, 635, 636, 627, 365, 637, 638, 636, 637, - 638, 364, 363, 643, 637, 638, 643, 644, 645, 646, - 644, 645, 646, 362, 628, 359, 645, 647, 629, 648, - 647, 649, 648, 650, 649, 647, 650, 358, 651, 646, - 643, 651, 652, 357, 644, 652, 653, 655, 654, 653, - 655, 654, 656, 722, 650, 656, 722, 699, 649, 699, - 699, 700, 356, 700, 700, 699, 355, 354, 701, 700, - 701, 701, 353, 352, 702, 651, 702, 702, 653, 654, - - 703, 351, 703, 703, 704, 350, 704, 704, 705, 349, - 705, 705, 655, 706, 348, 706, 706, 656, 707, 347, - 707, 707, 708, 346, 708, 708, 707, 345, 344, 709, - 708, 709, 709, 710, 343, 710, 710, 709, 342, 341, - 711, 710, 711, 711, 712, 340, 712, 712, 713, 339, - 713, 713, 714, 338, 714, 714, 715, 712, 715, 715, - 714, 716, 331, 716, 716, 717, 326, 717, 717, 715, - 718, 325, 718, 718, 719, 720, 719, 719, 720, 721, - 323, 723, 721, 720, 723, 724, 725, 721, 724, 725, - 726, 727, 728, 726, 727, 728, 729, 322, 717, 729, - - 728, 321, 730, 716, 729, 730, 731, 318, 732, 731, - 730, 732, 718, 733, 731, 734, 733, 735, 734, 736, - 735, 737, 736, 316, 737, 735, 733, 738, 739, 315, - 738, 739, 736, 740, 763, 314, 740, 763, 766, 313, - 766, 766, 767, 312, 767, 767, 768, 311, 768, 768, - 769, 310, 769, 769, 770, 778, 770, 770, 778, 771, - 738, 771, 771, 737, 772, 779, 772, 772, 779, 309, - 739, 773, 772, 773, 773, 774, 308, 774, 774, 763, - 307, 305, 775, 774, 775, 775, 304, 776, 775, 776, - 776, 777, 780, 777, 777, 780, 781, 782, 783, 781, - - 782, 783, 784, 785, 786, 784, 785, 786, 787, 303, - 784, 787, 786, 788, 787, 789, 788, 793, 789, 798, - 793, 302, 798, 800, 777, 801, 800, 801, 801, 301, - 300, 802, 776, 802, 802, 803, 299, 803, 803, 804, - 298, 804, 804, 805, 295, 805, 805, 806, 789, 806, - 806, 807, 808, 809, 807, 808, 809, 810, 788, 220, - 810, 218, 793, 811, 798, 215, 811, 803, 800, 812, - 814, 817, 812, 814, 817, 214, 819, 212, 819, 819, - 820, 211, 820, 820, 804, 809, 209, 821, 805, 821, - 821, 822, 806, 822, 822, 823, 824, 825, 823, 824, - - 825, 826, 810, 831, 826, 831, 831, 204, 811, 819, - 830, 200, 830, 830, 812, 814, 817, 832, 833, 199, - 832, 833, 836, 837, 836, 836, 837, 840, 823, 840, - 840, 841, 821, 197, 841, 844, 822, 844, 844, 196, - 195, 192, 825, 844, 845, 190, 826, 845, 848, 830, - 848, 848, 845, 189, 849, 185, 832, 849, 183, 182, - 181, 180, 840, 179, 836, 837, 841, 851, 851, 851, - 851, 851, 851, 852, 852, 852, 852, 852, 852, 853, - 853, 853, 853, 853, 853, 854, 854, 854, 854, 854, - 854, 855, 855, 855, 855, 855, 855, 856, 856, 856, - - 856, 856, 856, 857, 857, 178, 857, 857, 857, 858, - 858, 858, 858, 858, 858, 859, 177, 176, 175, 859, - 859, 860, 860, 860, 860, 860, 860, 861, 861, 174, - 172, 861, 861, 862, 862, 862, 171, 862, 862, 863, - 863, 170, 863, 863, 863, 864, 864, 169, 864, 864, - 864, 865, 865, 168, 167, 166, 865, 866, 866, 165, - 866, 866, 866, 868, 868, 157, 151, 150, 868, 869, - 869, 869, 869, 869, 869, 870, 870, 147, 146, 145, - 870, 871, 871, 143, 871, 871, 871, 142, 139, 137, - 136, 135, 134, 133, 132, 130, 127, 124, 123, 118, - - 117, 116, 114, 113, 110, 108, 107, 106, 105, 104, - 103, 72, 69, 67, 66, 64, 62, 60, 57, 52, - 49, 46, 45, 40, 39, 38, 36, 35, 32, 30, - 29, 28, 27, 26, 25, 23, 19, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, - 850, 850, 850, 850, 850, 850 + 13, 13, 13, 13, 13, 13, 13, 13, 14, 857, + 141, 14, 14, 152, 159, 78, 14, 78, 78, 79, + 144, 79, 79, 80, 851, 80, 80, 141, 81, 14, + 81, 81, 144, 152, 850, 78, 85, 80, 85, 85, + 80, 149, 81, 159, 80, 14, 79, 14, 84, 14, + 84, 84, 14, 14, 41, 149, 85, 41, 41, 161, + + 336, 82, 41, 82, 82, 153, 83, 153, 83, 83, + 82, 195, 195, 84, 86, 83, 86, 86, 87, 154, + 87, 87, 154, 89, 82, 89, 89, 87, 161, 336, + 86, 41, 83, 41, 90, 218, 90, 90, 41, 41, + 218, 91, 86, 91, 91, 92, 174, 92, 92, 93, + 163, 93, 93, 163, 92, 94, 89, 94, 94, 95, + 174, 95, 95, 96, 841, 96, 96, 97, 92, 97, + 97, 99, 99, 99, 99, 101, 101, 101, 101, 199, + 95, 119, 119, 119, 119, 128, 128, 128, 128, 192, + 138, 192, 93, 138, 96, 94, 96, 138, 214, 199, + + 95, 148, 148, 148, 148, 155, 155, 155, 155, 838, + 162, 162, 97, 162, 185, 310, 836, 185, 206, 206, + 206, 211, 211, 211, 220, 220, 214, 220, 224, 310, + 224, 224, 225, 822, 225, 225, 227, 820, 227, 227, + 162, 328, 228, 227, 228, 228, 229, 259, 229, 229, + 259, 230, 817, 230, 230, 229, 231, 264, 231, 231, + 264, 328, 228, 232, 264, 232, 232, 324, 324, 815, + 220, 230, 232, 233, 266, 233, 233, 266, 814, 234, + 231, 234, 234, 266, 813, 235, 233, 235, 235, 786, + 785, 236, 234, 236, 236, 237, 783, 237, 237, 238, + + 236, 238, 238, 239, 782, 239, 239, 240, 269, 240, + 240, 269, 235, 780, 236, 237, 241, 269, 241, 241, + 242, 772, 242, 242, 238, 239, 771, 243, 240, 243, + 243, 244, 265, 244, 244, 265, 243, 242, 245, 276, + 245, 245, 276, 246, 241, 246, 246, 247, 245, 247, + 247, 248, 265, 248, 248, 770, 769, 768, 246, 244, + 249, 276, 249, 249, 247, 767, 250, 247, 250, 250, + 251, 766, 251, 251, 252, 765, 252, 252, 253, 270, + 253, 253, 270, 764, 254, 248, 254, 254, 255, 763, + 255, 255, 270, 254, 251, 251, 256, 762, 256, 256, + + 257, 761, 257, 257, 258, 252, 258, 258, 760, 255, + 715, 253, 260, 260, 260, 260, 262, 262, 262, 262, + 267, 268, 271, 267, 268, 271, 713, 272, 273, 255, + 272, 273, 712, 256, 711, 271, 274, 273, 275, 274, + 267, 275, 257, 277, 278, 268, 277, 278, 710, 279, + 280, 273, 279, 280, 272, 281, 274, 282, 281, 280, + 282, 709, 283, 275, 277, 283, 279, 282, 284, 707, + 285, 284, 278, 285, 705, 704, 287, 283, 287, 287, + 703, 287, 702, 281, 288, 284, 289, 288, 284, 289, + 290, 291, 292, 290, 291, 292, 294, 695, 293, 294, + + 291, 293, 295, 321, 285, 295, 321, 331, 288, 288, + 331, 332, 366, 292, 332, 366, 694, 289, 296, 296, + 296, 296, 693, 290, 333, 333, 333, 333, 338, 338, + 692, 338, 691, 292, 690, 293, 340, 340, 294, 340, + 365, 365, 689, 365, 372, 372, 688, 372, 373, 373, + 687, 373, 374, 374, 686, 374, 685, 366, 338, 376, + 405, 376, 376, 405, 684, 683, 340, 377, 376, 377, + 377, 682, 378, 681, 378, 378, 379, 407, 379, 379, + 407, 380, 680, 380, 380, 381, 407, 381, 381, 377, + 372, 679, 678, 677, 373, 378, 380, 406, 374, 382, + + 406, 382, 382, 379, 406, 676, 381, 383, 382, 383, + 383, 384, 408, 384, 384, 408, 385, 675, 385, 385, + 383, 386, 674, 386, 386, 387, 673, 387, 387, 388, + 386, 388, 388, 389, 408, 389, 389, 384, 385, 390, + 418, 390, 390, 418, 387, 391, 389, 391, 391, 390, + 392, 672, 392, 392, 393, 388, 393, 393, 391, 418, + 394, 392, 394, 394, 395, 615, 395, 395, 393, 396, + 414, 396, 396, 414, 397, 614, 397, 397, 398, 412, + 398, 398, 412, 414, 396, 397, 394, 612, 611, 609, + 395, 399, 399, 399, 399, 400, 608, 400, 400, 401, + + 412, 401, 401, 402, 410, 402, 402, 410, 403, 398, + 403, 403, 404, 607, 404, 404, 409, 411, 605, 409, + 411, 413, 415, 416, 413, 415, 416, 402, 604, 603, + 413, 410, 411, 602, 417, 419, 401, 417, 419, 409, + 400, 601, 598, 417, 403, 416, 420, 597, 415, 420, + 404, 422, 421, 424, 422, 421, 424, 423, 596, 420, + 423, 419, 421, 425, 422, 595, 425, 424, 423, 426, + 427, 428, 426, 427, 428, 429, 431, 431, 429, 431, + 594, 430, 428, 430, 430, 427, 430, 432, 433, 425, + 432, 433, 593, 434, 435, 426, 434, 435, 436, 437, + + 591, 436, 437, 435, 438, 590, 429, 438, 462, 462, + 463, 462, 589, 463, 588, 491, 491, 434, 491, 436, + 493, 497, 587, 493, 497, 433, 499, 499, 585, 499, + 501, 501, 432, 501, 503, 437, 503, 503, 584, 436, + 583, 504, 438, 504, 504, 505, 582, 505, 505, 503, + 581, 506, 504, 506, 506, 463, 507, 580, 507, 507, + 508, 537, 508, 508, 537, 493, 497, 506, 508, 537, + 579, 534, 499, 505, 534, 509, 501, 509, 509, 578, + 577, 532, 507, 510, 532, 510, 510, 511, 576, 511, + 511, 512, 575, 512, 512, 513, 532, 513, 513, 534, + + 535, 574, 509, 535, 510, 514, 511, 514, 514, 573, + 513, 515, 538, 515, 515, 538, 535, 512, 514, 515, + 516, 572, 516, 516, 517, 571, 517, 517, 516, 518, + 570, 518, 518, 519, 542, 519, 519, 542, 520, 538, + 520, 520, 521, 569, 521, 521, 519, 568, 567, 542, + 517, 518, 520, 522, 566, 522, 522, 523, 565, 523, + 523, 522, 524, 536, 524, 524, 536, 564, 525, 521, + 525, 525, 563, 523, 526, 526, 526, 526, 527, 549, + 527, 527, 549, 562, 528, 524, 528, 528, 529, 536, + 529, 529, 530, 549, 530, 530, 531, 533, 531, 531, + + 533, 539, 540, 561, 539, 540, 541, 543, 533, 541, + 543, 525, 546, 548, 547, 546, 548, 547, 498, 496, + 543, 540, 539, 527, 530, 544, 548, 545, 544, 528, + 545, 529, 541, 544, 550, 545, 547, 550, 546, 551, + 552, 531, 551, 552, 495, 553, 554, 551, 553, 554, + 555, 555, 556, 555, 557, 556, 552, 557, 494, 558, + 559, 550, 558, 559, 560, 490, 586, 560, 553, 586, + 613, 489, 616, 613, 616, 616, 488, 617, 487, 617, + 617, 618, 486, 618, 618, 619, 485, 619, 619, 554, + 617, 649, 559, 619, 649, 484, 483, 556, 616, 557, + + 482, 621, 558, 621, 621, 620, 618, 620, 620, 560, + 481, 586, 480, 620, 622, 613, 622, 622, 623, 479, + 623, 623, 622, 478, 477, 624, 623, 624, 624, 625, + 476, 625, 625, 624, 475, 474, 626, 625, 626, 626, + 627, 473, 627, 627, 628, 472, 628, 628, 629, 471, + 629, 629, 630, 470, 630, 630, 631, 656, 631, 631, + 656, 632, 626, 632, 632, 627, 469, 468, 633, 632, + 633, 633, 634, 645, 634, 634, 645, 467, 644, 630, + 634, 644, 635, 631, 635, 635, 645, 636, 633, 636, + 636, 637, 466, 637, 637, 638, 465, 638, 638, 639, + + 464, 639, 639, 640, 644, 640, 640, 641, 646, 641, + 641, 646, 637, 642, 636, 642, 642, 643, 647, 643, + 643, 647, 648, 461, 654, 648, 647, 654, 650, 460, + 648, 650, 638, 646, 651, 640, 650, 651, 641, 459, + 652, 653, 651, 652, 653, 458, 457, 456, 652, 653, + 654, 655, 657, 658, 655, 657, 658, 659, 642, 455, + 659, 660, 643, 661, 660, 662, 661, 663, 662, 660, + 663, 664, 665, 662, 664, 665, 655, 454, 666, 667, + 658, 666, 667, 661, 659, 668, 670, 669, 668, 670, + 669, 671, 741, 665, 671, 741, 453, 716, 664, 716, + + 716, 717, 452, 717, 717, 716, 451, 450, 718, 717, + 718, 718, 449, 448, 447, 666, 718, 668, 669, 719, + 446, 719, 719, 720, 445, 720, 720, 721, 444, 721, + 721, 670, 722, 443, 722, 722, 671, 723, 442, 723, + 723, 724, 441, 724, 724, 725, 440, 725, 725, 726, + 439, 726, 726, 725, 371, 370, 727, 726, 727, 727, + 728, 369, 728, 728, 727, 368, 367, 729, 728, 729, + 729, 730, 364, 730, 730, 731, 363, 731, 731, 732, + 362, 732, 732, 733, 730, 733, 733, 732, 734, 361, + 734, 734, 735, 360, 735, 735, 733, 736, 359, 736, + + 736, 737, 738, 737, 737, 738, 739, 358, 740, 739, + 738, 740, 742, 357, 739, 742, 740, 743, 744, 745, + 743, 744, 745, 746, 747, 735, 746, 747, 748, 356, + 734, 748, 747, 355, 749, 750, 748, 749, 750, 736, + 354, 751, 749, 750, 751, 752, 753, 754, 752, 753, + 754, 755, 353, 756, 755, 754, 756, 757, 752, 758, + 757, 352, 758, 759, 755, 784, 759, 787, 784, 787, + 787, 788, 351, 788, 788, 789, 350, 789, 789, 790, + 349, 790, 790, 791, 800, 791, 791, 800, 348, 792, + 757, 792, 792, 347, 793, 756, 793, 793, 346, 345, + + 794, 758, 794, 794, 795, 344, 795, 795, 794, 796, + 784, 796, 796, 797, 343, 797, 797, 796, 798, 797, + 798, 798, 799, 801, 799, 799, 801, 802, 803, 804, + 802, 803, 804, 805, 806, 807, 805, 806, 807, 808, + 342, 809, 808, 807, 809, 810, 335, 811, 810, 809, + 811, 810, 330, 812, 816, 799, 812, 816, 821, 823, + 329, 821, 823, 798, 824, 327, 824, 824, 825, 830, + 825, 825, 830, 826, 326, 826, 826, 827, 325, 827, + 827, 828, 322, 828, 828, 829, 812, 829, 829, 320, + 831, 832, 811, 831, 832, 833, 319, 834, 833, 816, + + 834, 318, 317, 821, 823, 826, 835, 837, 840, 835, + 837, 840, 842, 316, 842, 842, 843, 846, 843, 843, + 846, 847, 827, 832, 847, 844, 828, 844, 844, 845, + 829, 845, 845, 848, 849, 856, 848, 849, 856, 315, + 833, 853, 834, 853, 853, 842, 854, 314, 854, 854, + 846, 835, 837, 840, 855, 313, 859, 855, 859, 859, + 860, 312, 863, 860, 863, 863, 864, 311, 872, 864, + 844, 872, 309, 867, 845, 867, 867, 308, 848, 849, + 853, 867, 868, 307, 871, 868, 871, 871, 306, 305, + 868, 304, 303, 855, 302, 301, 298, 863, 859, 221, + + 219, 864, 860, 874, 874, 874, 874, 874, 874, 875, + 875, 875, 875, 875, 875, 876, 876, 876, 876, 876, + 876, 877, 877, 877, 877, 877, 877, 878, 878, 878, + 878, 878, 878, 879, 879, 879, 879, 879, 879, 880, + 880, 216, 880, 880, 880, 881, 881, 881, 881, 881, + 881, 882, 215, 213, 212, 882, 882, 883, 883, 883, + 883, 883, 883, 884, 884, 210, 205, 884, 884, 885, + 885, 885, 201, 885, 885, 886, 886, 200, 886, 886, + 886, 887, 887, 198, 887, 887, 887, 888, 888, 197, + 196, 193, 888, 889, 889, 191, 889, 889, 889, 891, + + 891, 190, 186, 184, 891, 892, 892, 892, 892, 892, + 892, 893, 893, 183, 182, 181, 893, 894, 894, 180, + 894, 894, 894, 179, 178, 177, 176, 175, 173, 172, + 171, 170, 169, 168, 167, 166, 165, 157, 151, 150, + 147, 146, 145, 143, 142, 139, 137, 136, 135, 133, + 132, 130, 127, 124, 123, 118, 117, 116, 114, 113, + 110, 108, 107, 106, 104, 103, 72, 69, 67, 66, + 64, 62, 60, 57, 52, 49, 46, 45, 40, 39, + 38, 36, 35, 32, 30, 29, 28, 26, 25, 23, + 19, 873, 873, 873, 873, 873, 873, 873, 873, 873, + + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, + 873, 873, 873, 873, 873, 873, 873, 873, 873, 873 } ; -static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr; -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; \ -goto find_rule; \ -} +/* Table of booleans, true if rule could match eol. */ +static yyconst flex_int32_t yy_rule_can_match_eol[67] = + { 0, +0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, + 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 1, 0, 0, }; + +static yy_state_type yy_last_accepting_state; +static char *yy_last_accepting_cpos; + +extern int yy_flex_debug; +int yy_flex_debug = 0; + +/* The intent behind this definition is that it'll catch + * any uses of REJECT which flex missed. + */ +#define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "levcomp.lpp" -#define INITIAL 0 #line 2 "levcomp.lpp" // levcomp.lpp: @@ -1308,24 +1328,39 @@ static void settext(bool trim_right = false, int strip_trailing = 0) yylval.text = newstring; } -#define MAPDEF 1 -#define LUA 2 -#define LUA_ONELINER 3 -#define ARGUMENT 4 -#define MNAME 5 -#define KEYWORDS 6 -#define ITEM_LIST 7 + +#line 1340 "levcomp.lex.cc" + +#define INITIAL 0 +#define MAPDEF 1 +#define LUA 2 +#define LUA_ONELINER 3 +#define ARGUMENT 4 +#define MNAME 5 +#define KEYWORDS 6 +#define ITEM_LIST 7 #define TOEOL 8 -#define YY_NEVER_INTERACTIVE 1 -#line 1329 "levcomp.lex.cc" +#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 ); /* Macros after this point can all be overridden by user definitions in * section 1. @@ -1333,65 +1368,30 @@ static void settext(bool trim_right = false, int strip_trailing = 0) #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus -extern "C" int yywrap YY_PROTO(( void )); +extern "C" int yywrap (void ); #else -extern int yywrap YY_PROTO(( void )); +extern int yywrap (void ); #endif #endif -#ifndef YY_NO_UNPUT -static void yyunput YY_PROTO(( int c, char *buf_ptr )); -#endif - + static void yyunput (int c,char *buf_ptr ); + #ifndef yytext_ptr -static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); +static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen YY_PROTO(( yyconst char * )); +static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT -#ifdef __cplusplus -static int yyinput YY_PROTO(( void )); -#else -static int input YY_PROTO(( void )); -#endif -#endif - -#if YY_STACK_USED -static int yy_start_stack_ptr = 0; -static int yy_start_stack_depth = 0; -static int *yy_start_stack = 0; -#ifndef YY_NO_PUSH_STATE -static void yy_push_state YY_PROTO(( int new_state )); -#endif -#ifndef YY_NO_POP_STATE -static void yy_pop_state YY_PROTO(( void )); -#endif -#ifndef YY_NO_TOP_STATE -static int yy_top_state YY_PROTO(( void )); -#endif +#ifdef __cplusplus +static int yyinput (void ); #else -#define YY_NO_PUSH_STATE 1 -#define YY_NO_POP_STATE 1 -#define YY_NO_TOP_STATE 1 +static int input (void ); #endif -#ifdef YY_MALLOC_DECL -YY_MALLOC_DECL -#else -#if __STDC__ -#ifndef __cplusplus -#include <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. */ @@ -1400,7 +1400,6 @@ YY_MALLOC_DECL #endif /* Copy whatever the last rule matched to the standard output. */ - #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). @@ -1413,9 +1412,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; \ @@ -1425,9 +1425,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();" - @@ -1448,12 +1461,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. @@ -1469,31 +1488,33 @@ YY_MALLOC_DECL #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ - yy_current_buffer->yy_at_bol = \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION +/** The main scanner function which does all the work. + */ YY_DECL - { +{ register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; - + #line 89 "levcomp.lpp" -#line 1486 "levcomp.lex.cc" +#line 1507 "levcomp.lex.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 */ + if ( ! (yy_start) ) + (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin = stdin; @@ -1501,79 +1522,77 @@ YY_DECL if ( ! yyout ) yyout = stdout; - if ( ! yy_current_buffer ) - yy_current_buffer = - yy_create_buffer( yyin, YY_BUF_SIZE ); + if ( ! YY_CURRENT_BUFFER ) { + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer(yyin,YY_BUF_SIZE ); + } - yy_load_buffer_state(); + yy_load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { - yy_cp = yy_c_buf_p; + yy_cp = (yy_c_buf_p); /* Support of yytext. */ - *yy_cp = yy_hold_char; + *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; - yy_current_state = yy_start; + yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); - yy_state_ptr = yy_state_buf; - *yy_state_ptr++ = yy_current_state; yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 851 ) + if ( yy_current_state >= 874 ) 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_cp; } - while ( yy_base[yy_current_state] != 2138 ); + while ( yy_current_state != 873 ); + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); yy_find_action: - 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] ) - { - yy_act = yy_acclist[yy_lp]; - { - yy_full_match = yy_cp; - break; - } - } - --yy_cp; - yy_current_state = *--yy_state_ptr; - yy_lp = yy_accept[yy_current_state]; - } + yy_act = yy_accept[yy_current_state]; YY_DO_BEFORE_ACTION; - if ( yy_act != YY_END_OF_BUFFER ) + if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) { int yyl; for ( yyl = 0; yyl < yyleng; ++yyl ) if ( yytext[yyl] == '\n' ) - ++yylineno; + + yylineno++; +; } do_action: /* This label is used only to access EOF actions. */ - switch ( yy_act ) { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = (yy_hold_char); + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + goto yy_find_action; + case 1: YY_RULE_SETUP #line 91 "levcomp.lpp" @@ -1588,6 +1607,7 @@ YY_RULE_SETUP } YY_BREAK case 3: +/* rule 3 can match eol */ YY_RULE_SETUP #line 98 "levcomp.lpp" return CHARACTER; @@ -1603,21 +1623,22 @@ YY_RULE_SETUP return CHARACTER; YY_BREAK case 6: +/* rule 6 can match eol */ YY_RULE_SETUP #line 102 "levcomp.lpp" ; YY_BREAK case 7: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 104 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 8: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 105 "levcomp.lpp" @@ -1636,13 +1657,14 @@ YY_RULE_SETUP } YY_BREAK case 10: +/* rule 10 can match eol */ YY_RULE_SETUP #line 114 "levcomp.lpp" ; YY_BREAK case 11: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 116 "levcomp.lpp" @@ -1652,6 +1674,7 @@ YY_RULE_SETUP } YY_BREAK case 12: +/* rule 12 can match eol */ YY_RULE_SETUP #line 120 "levcomp.lpp" { BEGIN(INITIAL); } @@ -1670,6 +1693,7 @@ YY_RULE_SETUP ; YY_BREAK case 15: +/* rule 15 can match eol */ YY_RULE_SETUP #line 128 "levcomp.lpp" { BEGIN(INITIAL); } @@ -1701,11 +1725,13 @@ YY_RULE_SETUP ; YY_BREAK case 20: +/* rule 20 can match eol */ YY_RULE_SETUP #line 142 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 21: +/* rule 21 can match eol */ YY_RULE_SETUP #line 144 "levcomp.lpp" { BEGIN(INITIAL); } @@ -1738,13 +1764,14 @@ YY_RULE_SETUP } YY_BREAK case 26: +/* rule 26 can match eol */ YY_RULE_SETUP #line 160 "levcomp.lpp" { BEGIN(INITIAL); } YY_BREAK case 27: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 162 "levcomp.lpp" @@ -1754,8 +1781,8 @@ YY_RULE_SETUP } YY_BREAK case 28: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 167 "levcomp.lpp" @@ -1766,6 +1793,7 @@ YY_RULE_SETUP } YY_BREAK case 29: +/* rule 29 can match eol */ YY_RULE_SETUP #line 172 "levcomp.lpp" ; @@ -1776,8 +1804,8 @@ YY_RULE_SETUP ; YY_BREAK case 31: -*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ -yy_c_buf_p = yy_cp -= 1; +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 176 "levcomp.lpp" @@ -1886,112 +1914,118 @@ YY_RULE_SETUP case 52: YY_RULE_SETUP #line 201 "levcomp.lpp" -{ BEGIN(MNAME); return MONS; } +{ BEGIN(ITEM_LIST); return COLOUR; } YY_BREAK case 53: YY_RULE_SETUP #line 202 "levcomp.lpp" -{ BEGIN(ITEM_LIST); return ITEM; } +{ BEGIN(MNAME); return MONS; } YY_BREAK case 54: YY_RULE_SETUP #line 203 "levcomp.lpp" -{ BEGIN(TOEOL); return MARKER; } +{ BEGIN(ITEM_LIST); return ITEM; } YY_BREAK case 55: YY_RULE_SETUP #line 204 "levcomp.lpp" -{ BEGIN(ITEM_LIST); return SHUFFLE; } +{ BEGIN(TOEOL); return MARKER; } YY_BREAK case 56: YY_RULE_SETUP -#line 206 "levcomp.lpp" -{ BEGIN(ARGUMENT); return KFEAT; } +#line 205 "levcomp.lpp" +{ BEGIN(ITEM_LIST); return SHUFFLE; } YY_BREAK case 57: YY_RULE_SETUP #line 207 "levcomp.lpp" -{ BEGIN(ARGUMENT); return KITEM; } +{ BEGIN(ARGUMENT); return KFEAT; } YY_BREAK case 58: YY_RULE_SETUP #line 208 "levcomp.lpp" -{ BEGIN(ARGUMENT); return KMONS; } +{ BEGIN(ARGUMENT); return KITEM; } YY_BREAK case 59: YY_RULE_SETUP #line 209 "levcomp.lpp" -{ BEGIN(ARGUMENT); return KMASK; } +{ BEGIN(ARGUMENT); return KMONS; } YY_BREAK case 60: YY_RULE_SETUP -#line 211 "levcomp.lpp" -return COMMA; +#line 210 "levcomp.lpp" +{ BEGIN(ARGUMENT); return KMASK; } YY_BREAK case 61: YY_RULE_SETUP -#line 213 "levcomp.lpp" +#line 212 "levcomp.lpp" +return COMMA; + YY_BREAK +case 62: +YY_RULE_SETUP +#line 214 "levcomp.lpp" { clean(); yylval.i = atoi(yytext); return INTEGER; } YY_BREAK -case 62: -YY_RULE_SETUP -#line 219 "levcomp.lpp" -; - YY_BREAK case 63: YY_RULE_SETUP #line 220 "levcomp.lpp" ; YY_BREAK case 64: +/* rule 64 can match eol */ YY_RULE_SETUP #line 221 "levcomp.lpp" -return CHARACTER; +; YY_BREAK case 65: YY_RULE_SETUP -#line 223 "levcomp.lpp" +#line 222 "levcomp.lpp" +return CHARACTER; + YY_BREAK +case 66: +YY_RULE_SETUP +#line 224 "levcomp.lpp" ECHO; YY_BREAK -#line 1961 "levcomp.lex.cc" - case YY_STATE_EOF(INITIAL): - case YY_STATE_EOF(MAPDEF): - case YY_STATE_EOF(LUA): - case YY_STATE_EOF(LUA_ONELINER): - case YY_STATE_EOF(ARGUMENT): - case YY_STATE_EOF(MNAME): - case YY_STATE_EOF(KEYWORDS): - case YY_STATE_EOF(ITEM_LIST): - case YY_STATE_EOF(TOEOL): - yyterminate(); +#line 1995 "levcomp.lex.cc" +case YY_STATE_EOF(INITIAL): +case YY_STATE_EOF(MAPDEF): +case YY_STATE_EOF(LUA): +case YY_STATE_EOF(LUA_ONELINER): +case YY_STATE_EOF(ARGUMENT): +case YY_STATE_EOF(MNAME): +case YY_STATE_EOF(KEYWORDS): +case YY_STATE_EOF(ITEM_LIST): +case YY_STATE_EOF(TOEOL): + 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 @@ -2001,13 +2035,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 @@ -2020,30 +2054,31 @@ 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_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); 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 @@ -2054,7 +2089,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; @@ -2062,30 +2097,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; @@ -2096,8 +2131,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 * @@ -2106,21 +2140,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. @@ -2140,34 +2173,30 @@ 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; + YY_BUFFER_STATE b = YY_CURRENT_BUFFER; int yy_c_buf_p_offset = - (int) (yy_c_buf_p - b->yy_ch_buf); + (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { @@ -2180,8 +2209,7 @@ static int yy_get_next_buffer() 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 ); + yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ @@ -2191,35 +2219,35 @@ static int yy_get_next_buffer() YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); - yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; + (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; - num_to_read = yy_current_buffer->yy_buf_size - + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; -#endif + } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ - YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), - yy_n_chars, num_to_read ); + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), + (yy_n_chars), num_to_read ); - yy_current_buffer->yy_n_chars = yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } - if ( yy_n_chars == 0 ) + if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; - yyrestart( yyin ); + yyrestart(yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; - yy_current_buffer->yy_buffer_status = + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } @@ -2227,149 +2255,142 @@ 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; + (yy_n_chars) += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; - yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; - } - +} /* yy_get_previous_state - get the state just before the EOB char was reached */ -static yy_state_type yy_get_previous_state() - { + static yy_state_type yy_get_previous_state (void) +{ register yy_state_type yy_current_state; register char *yy_cp; - - yy_current_state = yy_start; + + yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); - yy_state_ptr = yy_state_buf; - *yy_state_ptr++ = yy_current_state; - for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 851 ) + if ( yy_current_state >= 874 ) 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; } 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 char *yy_cp = (yy_c_buf_p); register YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 851 ) + if ( yy_current_state >= 874 ) 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 == 850); - if ( ! yy_is_jam ) - *yy_state_ptr++ = yy_current_state; + yy_is_jam = (yy_current_state == 873); 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; - if ( c == '\n' ) - --yylineno; - - yytext_ptr = yy_bp; - yy_hold_char = *yy_cp; - yy_c_buf_p = yy_cp; - } -#endif /* ifndef YY_NO_UNPUT */ + if ( c == '\n' ){ + --yylineno; + } + (yytext_ptr) = yy_bp; + (yy_hold_char) = *yy_cp; + (yy_c_buf_p) = yy_cp; +} +#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() @@ -2383,16 +2404,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(); @@ -2402,93 +2423,98 @@ static int input() } case EOB_ACT_CONTINUE_SCAN: - yy_c_buf_p = yytext_ptr + offset; + (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } - c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ - *yy_c_buf_p = '\0'; /* preserve yytext */ - yy_hold_char = *++yy_c_buf_p; + c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ + *(yy_c_buf_p) = '\0'; /* preserve yytext */ + (yy_hold_char) = *++(yy_c_buf_p); - yy_current_buffer->yy_at_bol = (c == '\n'); - if ( yy_current_buffer->yy_at_bol ) - ++yylineno; + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); + if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol ) + + yylineno++; +; 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()" ); @@ -2497,80 +2523,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 - } - + /* 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; + } -#ifdef YY_USE_PROTOS -void yy_flush_buffer( YY_BUFFER_STATE b ) -#else -void yy_flush_buffer( b ) -YY_BUFFER_STATE b; -#endif + 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; @@ -2587,29 +2604,121 @@ 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*) + ); + + 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; + } -#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; + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ + + /* Increase the buffer to prepare for a possible push. */ + int grow_size = 8 /* arbitrary grow size */; + + num_to_alloc = (yy_buffer_stack_max) + grow_size; + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc + ((yy_buffer_stack), + num_to_alloc * sizeof(struct yy_buffer_state*) + ); + /* zero only the new slots.*/ + memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); + (yy_buffer_stack_max) = num_to_alloc; + } +} + +/** Setup the input buffer state to scan directly from a user-specified character buffer. + * @param base the character buffer + * @param size the size in bytes of the character buffer + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) +{ + YY_BUFFER_STATE b; + if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; - b = (YY_BUFFER_STATE) 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()" ); @@ -2623,56 +2732,51 @@ yy_size_t size; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; - yy_switch_to_buffer( b ); + yy_switch_to_buffer(b ); return b; - } -#endif - - -#ifndef YY_NO_SCAN_STRING -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) -#else -YY_BUFFER_STATE yy_scan_string( yy_str ) -yyconst char *yy_str; -#endif - { - int len; - for ( len = 0; yy_str[len]; ++len ) - ; - - return yy_scan_bytes( yy_str, len ); - } -#endif +} +/** Setup the input buffer state to scan a string. The next call to yylex() will + * scan from a @e copy of @a str. + * @param yystr a NUL-terminated string to scan + * + * @return the newly allocated buffer state object. + * @note If you want to scan bytes that may contain NUL values, then use + * yy_scan_bytes() instead. + */ +YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) +{ + + return yy_scan_bytes(yystr,strlen(yystr) ); +} -#ifndef YY_NO_SCAN_BYTES -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) -#else -YY_BUFFER_STATE yy_scan_bytes( bytes, len ) -yyconst char *bytes; -int len; -#endif - { +/** Setup the input buffer state to scan the given bytes. The next call to yylex() will + * scan from a @e copy of @a bytes. + * @param bytes the byte buffer to scan + * @param len the number of bytes in the buffer pointed to by @a bytes. + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) +{ YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; - + /* Get memory for full buffer, including space for trailing EOB's. */ - n = len + 2; - buf = (char *) yy_flex_alloc( n ); + n = _yybytes_len + 2; + buf = (char *) yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); - for ( i = 0; i < len; ++i ) - buf[i] = bytes[i]; + for ( i = 0; i < _yybytes_len; ++i ) + buf[i] = yybytes[i]; - buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; + buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - b = yy_scan_buffer( buf, n ); + b = yy_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); @@ -2682,148 +2786,199 @@ 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 ; +} -#ifndef YY_NO_TOP_STATE -static int yy_top_state() - { - return yy_start_stack[yy_start_stack_ptr - 1]; - } -#endif +void yyset_out (FILE * out_str ) +{ + yyout = out_str ; +} -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif +int yyget_debug (void) +{ + return yy_flex_debug; +} + +void yyset_debug (int bdebug ) +{ + yy_flex_debug = bdebug ; +} -#ifdef YY_USE_PROTOS -static void yy_fatal_error( yyconst char msg[] ) +static int yy_init_globals (void) +{ + /* Initialization is the same as for the non-reentrant scanner. + * This function is called from yylex_destroy(), so don't allocate here. + */ + + /* We do not touch yylineno unless the option is enabled. */ + yylineno = 1; + + (yy_buffer_stack) = 0; + (yy_buffer_stack_top) = 0; + (yy_buffer_stack_max) = 0; + (yy_c_buf_p) = (char *) 0; + (yy_init) = 0; + (yy_start) = 0; + +/* Defined in main.c */ +#ifdef YY_STDINIT + 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 ) + /* Reset the globals. This is important in a non-reentrant scanner so the next time + * yylex() is called, initialization will occur. */ + yy_init_globals( ); + return 0; +} -/* Internal utility routines. */ +/* + * Internal utility routines. + */ #ifndef yytext_ptr -#ifdef YY_USE_PROTOS -static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) -#else -static void yy_flex_strncpy( s1, s2, n ) -char *s1; -yyconst char *s2; -int n; -#endif - { +static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) +{ register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; - } +} #endif #ifdef YY_NEED_STRLEN -#ifdef YY_USE_PROTOS -static int yy_flex_strlen( yyconst char *s ) -#else -static int yy_flex_strlen( s ) -yyconst char *s; -#endif - { +static int yy_flex_strlen (yyconst char * s ) +{ register int n; for ( n = 0; s[n]; ++n ) ; return n; - } +} #endif - -#ifdef YY_USE_PROTOS -static void *yy_flex_alloc( yy_size_t size ) -#else -static void *yy_flex_alloc( size ) -yy_size_t size; -#endif - { +void *yyalloc (yy_size_t size ) +{ return (void *) malloc( size ); - } +} -#ifdef YY_USE_PROTOS -static void *yy_flex_realloc( void *ptr, yy_size_t size ) -#else -static void *yy_flex_realloc( ptr, size ) -void *ptr; -yy_size_t size; -#endif - { +void *yyrealloc (void * ptr, yy_size_t size ) +{ /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter @@ -2832,26 +2987,17 @@ 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 224 "levcomp.lpp" -#if YY_MAIN -int main() - { - yylex(); - return 0; - } -#endif -#line 223 "levcomp.lpp" int yywrap() @@ -2860,3 +3006,4 @@ int yywrap() flush_free_queue(0); return 1; } + diff --git a/crawl-ref/source/prebuilt/levcomp.tab.cc b/crawl-ref/source/prebuilt/levcomp.tab.cc index 51821c1205..5a0ae90e98 100644 --- a/crawl-ref/source/prebuilt/levcomp.tab.cc +++ b/crawl-ref/source/prebuilt/levcomp.tab.cc @@ -1,7 +1,9 @@ -/* A Bison parser, made by GNU Bison 2.0. */ +/* A Bison parser, made by GNU Bison 2.3. */ -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +/* 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 @@ -15,16 +17,24 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* 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. -/* 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. */ + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ -/* Written by Richard Stallman by simplifying the original so called - ``semantic'' parser. */ +/* 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,6 +46,9 @@ /* Identify Bison output. */ #define YYBISON 1 +/* Bison version. */ +#define YYBISON_VERSION "2.3" + /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -69,24 +82,26 @@ MONS = 271, ITEM = 272, MARKER = 273, - PRELUDE = 274, - MAIN = 275, - VALIDATE = 276, - VETO = 277, - NSUBST = 278, - WELCOME = 279, - LFLAGS = 280, - BFLAGS = 281, - COMMA = 282, - INTEGER = 283, - CHARACTER = 284, - STRING = 285, - MAP_LINE = 286, - MONSTER_NAME = 287, - ITEM_INFO = 288, - LUA_LINE = 289 + COLOUR = 274, + PRELUDE = 275, + MAIN = 276, + VALIDATE = 277, + VETO = 278, + NSUBST = 279, + WELCOME = 280, + LFLAGS = 281, + BFLAGS = 282, + COMMA = 283, + INTEGER = 284, + CHARACTER = 285, + STRING = 286, + MAP_LINE = 287, + MONSTER_NAME = 288, + ITEM_INFO = 289, + LUA_LINE = 290 }; #endif +/* Tokens. */ #define DEFAULT_DEPTH 258 #define SHUFFLE 259 #define SUBST 260 @@ -103,22 +118,23 @@ #define MONS 271 #define ITEM 272 #define MARKER 273 -#define PRELUDE 274 -#define MAIN 275 -#define VALIDATE 276 -#define VETO 277 -#define NSUBST 278 -#define WELCOME 279 -#define LFLAGS 280 -#define BFLAGS 281 -#define COMMA 282 -#define INTEGER 283 -#define CHARACTER 284 -#define STRING 285 -#define MAP_LINE 286 -#define MONSTER_NAME 287 -#define ITEM_INFO 288 -#define LUA_LINE 289 +#define COLOUR 274 +#define PRELUDE 275 +#define MAIN 276 +#define VALIDATE 277 +#define VETO 278 +#define NSUBST 279 +#define WELCOME 280 +#define LFLAGS 281 +#define BFLAGS 282 +#define COMMA 283 +#define INTEGER 284 +#define CHARACTER 285 +#define STRING 286 +#define MAP_LINE 287 +#define MONSTER_NAME 288 +#define ITEM_INFO 289 +#define LUA_LINE 290 @@ -182,15 +198,22 @@ level_range set_range(const char *s, int start, int end) # define YYERROR_VERBOSE 0 #endif -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) +/* Enabling the token table. */ +#ifndef YYTOKEN_TABLE +# define YYTOKEN_TABLE 0 +#endif + +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE #line 46 "levcomp.ypp" -typedef union YYSTYPE { +{ int i; const char *text; raw_range range; -} YYSTYPE; -/* Line 185 of yacc.c. */ -#line 194 "levcomp.tab.c" +} +/* Line 193 of yacc.c. */ +#line 216 "levcomp.tab.c" + YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 @@ -201,17 +224,94 @@ typedef union YYSTYPE { /* Copy the second part of user declarations. */ -/* Line 213 of yacc.c. */ -#line 206 "levcomp.tab.c" +/* Line 216 of yacc.c. */ +#line 229 "levcomp.tab.c" + +#ifdef short +# undef short +#endif + +#ifdef YYTYPE_UINT8 +typedef YYTYPE_UINT8 yytype_uint8; +#else +typedef unsigned char yytype_uint8; +#endif + +#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 +typedef short int yytype_int8; +#endif + +#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 -#if ! defined (yyoverflow) || YYERROR_VERBOSE +#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) -# ifndef YYFREE -# define YYFREE free +#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 YYMALLOC -# define YYMALLOC malloc +# ifndef YY_ +# define YY_(msgid) msgid # endif +#endif + +/* Suppress unused-variable warnings by "using" E. */ +#if ! defined lint || defined __GNUC__ +# define YYUSE(e) ((void) (e)) +#else +# define YYUSE(e) /* empty */ +#endif + +/* 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 i) +#else +static int +YYID (i) + int i; +#endif +{ + return i; +} +#endif + +#if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ @@ -219,34 +319,76 @@ typedef union YYSTYPE { # if YYSTACK_USE_ALLOCA # 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; + yytype_int16 yyss; YYSTYPE yyvs; }; @@ -256,24 +398,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 @@ -291,39 +433,33 @@ union yyalloc yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ - while (0) - -#endif + while (YYID (0)) -#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 3 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 64 +#define YYLAST 71 -/* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 35 -/* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 64 -/* YYNRULES -- Number of rules. */ -#define YYNRULES 112 -/* YYNRULES -- Number of states. */ -#define YYNSTATES 128 +/* YYNTOKENS -- Number of terminals. */ +#define YYNTOKENS 36 +/* YYNNTS -- Number of nonterminals. */ +#define YYNNTS 67 +/* YYNRULES -- Number of rules. */ +#define YYNRULES 117 +/* YYNRULES -- Number of states. */ +#define YYNSTATES 135 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 -#define YYMAXUTOK 289 +#define YYMAXUTOK 290 -#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, @@ -353,86 +489,88 @@ static const unsigned char yytranslate[] = 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35 }; #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, 5, 6, 9, 11, 13, 15, 17, 19, 22, 25, 26, 29, 31, 33, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, - 82, 85, 86, 89, 91, 94, 95, 98, 100, 103, - 104, 107, 109, 112, 113, 116, 118, 121, 122, 125, - 127, 129, 132, 134, 137, 139, 142, 144, 147, 150, - 152, 156, 158, 161, 162, 165, 167, 170, 173, 174, - 178, 180, 181, 184, 186, 189, 191, 195, 197, 200, - 202, 206, 208, 210, 213, 217, 219, 221, 223, 226, - 230, 232, 234, 237, 239, 242, 245, 247, 250, 253, - 255, 258, 260 + 82, 84, 87, 88, 91, 93, 96, 97, 100, 102, + 105, 106, 109, 111, 114, 115, 118, 120, 123, 124, + 127, 129, 131, 134, 136, 139, 141, 144, 146, 149, + 152, 154, 158, 160, 163, 164, 167, 169, 172, 175, + 176, 180, 182, 183, 186, 188, 191, 193, 197, 199, + 202, 204, 208, 210, 213, 215, 219, 221, 223, 226, + 230, 232, 234, 236, 239, 243, 245, 247, 250, 252, + 255, 258, 260, 263, 266, 268, 271, 273 }; -/* 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[] = { - 36, 0, -1, 37, -1, -1, 37, 38, -1, 40, - -1, 42, -1, 29, -1, 41, -1, 47, -1, 3, - 30, -1, 45, 43, -1, -1, 43, 44, -1, 46, - -1, 96, -1, 11, 30, -1, 91, -1, 92, -1, - 93, -1, 94, -1, 95, -1, 88, -1, 85, -1, - 74, -1, 82, -1, 79, -1, 66, -1, 69, -1, - 72, -1, 73, -1, 62, -1, 64, -1, 63, -1, - 65, -1, 50, -1, 59, -1, 53, -1, 56, -1, - 39, -1, 20, 48, -1, -1, 48, 49, -1, 34, - -1, 20, 51, -1, -1, 51, 52, -1, 34, -1, - 21, 54, -1, -1, 54, 55, -1, 34, -1, 22, - 57, -1, -1, 57, 58, -1, 34, -1, 19, 60, - -1, -1, 60, 61, -1, 34, -1, 7, -1, 7, - 30, -1, 9, -1, 9, 30, -1, 8, -1, 8, - 30, -1, 10, -1, 10, 30, -1, 4, 67, -1, - 68, -1, 67, 27, 68, -1, 33, -1, 6, 70, - -1, -1, 70, 71, -1, 30, -1, 25, 30, -1, - 26, 30, -1, -1, 18, 75, 76, -1, 77, -1, - -1, 77, 78, -1, 30, -1, 23, 80, -1, 81, - -1, 80, 27, 81, -1, 33, -1, 5, 83, -1, - 84, -1, 84, 27, 83, -1, 33, -1, 17, -1, - 17, 86, -1, 86, 27, 87, -1, 87, -1, 33, - -1, 16, -1, 16, 89, -1, 90, 27, 89, -1, - 90, -1, 32, -1, 14, 30, -1, 12, -1, 12, - 30, -1, 15, 28, -1, 13, -1, 13, 30, -1, - 24, 30, -1, 97, -1, 97, 98, -1, 98, -1, - 31, -1 + 37, 0, -1, 38, -1, -1, 38, 39, -1, 41, + -1, 43, -1, 30, -1, 42, -1, 48, -1, 3, + 31, -1, 46, 44, -1, -1, 44, 45, -1, 47, + -1, 100, -1, 11, 31, -1, 95, -1, 96, -1, + 97, -1, 98, -1, 99, -1, 92, -1, 89, -1, + 75, -1, 86, -1, 83, -1, 80, -1, 67, -1, + 70, -1, 73, -1, 74, -1, 63, -1, 65, -1, + 64, -1, 66, -1, 51, -1, 60, -1, 54, -1, + 57, -1, 40, -1, 21, 49, -1, -1, 49, 50, + -1, 35, -1, 21, 52, -1, -1, 52, 53, -1, + 35, -1, 22, 55, -1, -1, 55, 56, -1, 35, + -1, 23, 58, -1, -1, 58, 59, -1, 35, -1, + 20, 61, -1, -1, 61, 62, -1, 35, -1, 7, + -1, 7, 31, -1, 9, -1, 9, 31, -1, 8, + -1, 8, 31, -1, 10, -1, 10, 31, -1, 4, + 68, -1, 69, -1, 68, 28, 69, -1, 34, -1, + 6, 71, -1, -1, 71, 72, -1, 31, -1, 26, + 31, -1, 27, 31, -1, -1, 18, 76, 77, -1, + 78, -1, -1, 78, 79, -1, 31, -1, 19, 81, + -1, 82, -1, 81, 28, 82, -1, 34, -1, 24, + 84, -1, 85, -1, 84, 28, 85, -1, 34, -1, + 5, 87, -1, 88, -1, 88, 28, 87, -1, 34, + -1, 17, -1, 17, 90, -1, 90, 28, 91, -1, + 91, -1, 34, -1, 16, -1, 16, 93, -1, 94, + 28, 93, -1, 94, -1, 33, -1, 14, 31, -1, + 12, -1, 12, 31, -1, 15, 29, -1, 13, -1, + 13, 31, -1, 25, 31, -1, 101, -1, 101, 102, + -1, 102, -1, 32, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ -static const unsigned short int yyrline[] = +static const yytype_uint16 yyrline[] = { 0, 66, 66, 69, 70, 73, 74, 77, 83, 84, 87, 97, 119, 120, 123, 124, 127, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, - 176, 178, 179, 182, 187, 189, 190, 193, 198, 200, - 201, 204, 209, 211, 212, 215, 220, 222, 223, 226, - 231, 232, 240, 241, 249, 250, 258, 259, 267, 270, - 271, 274, 282, 285, 286, 289, 298, 307, 317, 316, - 327, 329, 330, 333, 345, 348, 349, 352, 361, 364, - 365, 368, 377, 378, 381, 382, 385, 393, 394, 397, - 398, 401, 410, 419, 420, 429, 437, 438, 447, 456, - 459, 460, 463 + 174, 177, 179, 180, 183, 188, 190, 191, 194, 199, + 201, 202, 205, 210, 212, 213, 216, 221, 223, 224, + 227, 232, 233, 241, 242, 250, 251, 259, 260, 268, + 271, 272, 275, 283, 286, 287, 290, 299, 308, 318, + 317, 328, 330, 331, 334, 346, 349, 350, 353, 362, + 365, 366, 369, 378, 381, 382, 385, 394, 395, 398, + 399, 402, 410, 411, 414, 415, 418, 427, 436, 437, + 446, 454, 455, 464, 473, 476, 477, 480 }; #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", "DEFAULT_DEPTH", "SHUFFLE", "SUBST", "TAGS", "KFEAT", "KITEM", "KMONS", "KMASK", "NAME", "DEPTH", "ORIENT", - "PLACE", "CHANCE", "MONS", "ITEM", "MARKER", "PRELUDE", "MAIN", + "PLACE", "CHANCE", "MONS", "ITEM", "MARKER", "COLOUR", "PRELUDE", "MAIN", "VALIDATE", "VETO", "NSUBST", "WELCOME", "LFLAGS", "BFLAGS", "COMMA", "INTEGER", "CHARACTER", "STRING", "MAP_LINE", "MONSTER_NAME", "ITEM_INFO", "LUA_LINE", "$accept", "file", "definitions", "definition", @@ -444,121 +582,124 @@ static const char *const yytname[] = "kfeat", "kmons", "kitem", "kmask", "shuffle", "shuffle_specifiers", "shuffle_spec", "tags", "tagstrings", "tagstring", "lflags", "bflags", "marker", "@1", "marker_spec", "mspec_segments", "mspec_segment", - "nsubst", "nsubst_specifiers", "nsubst_spec", "subst", - "subst_specifiers", "subst_spec", "items", "item_specifiers", - "item_specifier", "mons", "mnames", "mname", "place", "depth", "chance", - "orientation", "welcome", "map_def", "map_lines", "map_line", 0 + "colour", "colour_specifiers", "colour_specifier", "nsubst", + "nsubst_specifiers", "nsubst_spec", "subst", "subst_specifiers", + "subst_spec", "items", "item_specifiers", "item_specifier", "mons", + "mnames", "mname", "place", "depth", "chance", "orientation", "welcome", + "map_def", "map_lines", "map_line", 0 }; #endif # 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, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, - 285, 286, 287, 288, 289 + 285, 286, 287, 288, 289, 290 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const unsigned char yyr1[] = +static const yytype_uint8 yyr1[] = { - 0, 35, 36, 37, 37, 38, 38, 39, 40, 40, - 41, 42, 43, 43, 44, 44, 45, 46, 46, 46, - 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, - 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, - 47, 48, 48, 49, 50, 51, 51, 52, 53, 54, - 54, 55, 56, 57, 57, 58, 59, 60, 60, 61, - 62, 62, 63, 63, 64, 64, 65, 65, 66, 67, - 67, 68, 69, 70, 70, 71, 72, 73, 75, 74, - 76, 77, 77, 78, 79, 80, 80, 81, 82, 83, - 83, 84, 85, 85, 86, 86, 87, 88, 88, 89, - 89, 90, 91, 92, 92, 93, 94, 94, 95, 96, - 97, 97, 98 + 0, 36, 37, 38, 38, 39, 39, 40, 41, 41, + 42, 43, 44, 44, 45, 45, 46, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 48, 49, 49, 50, 51, 52, 52, 53, 54, + 55, 55, 56, 57, 58, 58, 59, 60, 61, 61, + 62, 63, 63, 64, 64, 65, 65, 66, 66, 67, + 68, 68, 69, 70, 71, 71, 72, 73, 74, 76, + 75, 77, 78, 78, 79, 80, 81, 81, 82, 83, + 84, 84, 85, 86, 87, 87, 88, 89, 89, 90, + 90, 91, 92, 92, 93, 93, 94, 95, 96, 96, + 97, 98, 98, 99, 100, 101, 101, 102 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ -static const unsigned char yyr2[] = +static const yytype_uint8 yyr2[] = { 0, 2, 1, 0, 2, 1, 1, 1, 1, 1, 2, 2, 0, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 2, 0, 2, 1, 2, 0, 2, 1, 2, 0, - 2, 1, 2, 0, 2, 1, 2, 0, 2, 1, - 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, - 3, 1, 2, 0, 2, 1, 2, 2, 0, 3, - 1, 0, 2, 1, 2, 1, 3, 1, 2, 1, - 3, 1, 1, 2, 3, 1, 1, 1, 2, 3, - 1, 1, 2, 1, 2, 2, 1, 2, 2, 1, - 2, 1, 1 + 1, 2, 0, 2, 1, 2, 0, 2, 1, 2, + 0, 2, 1, 2, 0, 2, 1, 2, 0, 2, + 1, 1, 2, 1, 2, 1, 2, 1, 2, 2, + 1, 3, 1, 2, 0, 2, 1, 2, 2, 0, + 3, 1, 0, 2, 1, 2, 1, 3, 1, 2, + 1, 3, 1, 2, 1, 3, 1, 1, 2, 3, + 1, 1, 1, 2, 3, 1, 1, 2, 1, 2, + 2, 1, 2, 2, 1, 2, 1, 1 }; /* 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[] = { - 3, 0, 2, 1, 0, 0, 41, 4, 5, 8, - 6, 12, 9, 10, 16, 40, 11, 43, 42, 0, - 0, 73, 60, 64, 62, 66, 103, 106, 0, 0, - 97, 92, 78, 57, 45, 49, 53, 0, 0, 0, - 0, 7, 112, 39, 13, 14, 35, 37, 38, 36, - 31, 33, 32, 34, 27, 28, 29, 30, 24, 26, - 25, 23, 22, 17, 18, 19, 20, 21, 15, 109, - 111, 71, 68, 69, 91, 88, 89, 72, 61, 65, - 63, 67, 104, 107, 102, 105, 101, 98, 100, 96, - 93, 95, 81, 56, 44, 48, 52, 87, 84, 85, - 108, 76, 77, 110, 0, 0, 75, 74, 0, 0, - 79, 80, 59, 58, 47, 46, 51, 50, 55, 54, - 0, 70, 90, 99, 94, 83, 82, 86 + 3, 0, 2, 1, 0, 0, 42, 4, 5, 8, + 6, 12, 9, 10, 16, 41, 11, 44, 43, 0, + 0, 74, 61, 65, 63, 67, 108, 111, 0, 0, + 102, 97, 79, 0, 58, 46, 50, 54, 0, 0, + 0, 0, 7, 117, 40, 13, 14, 36, 38, 39, + 37, 32, 34, 33, 35, 28, 29, 30, 31, 24, + 27, 26, 25, 23, 22, 17, 18, 19, 20, 21, + 15, 114, 116, 72, 69, 70, 96, 93, 94, 73, + 62, 66, 64, 68, 109, 112, 107, 110, 106, 103, + 105, 101, 98, 100, 82, 88, 85, 86, 57, 45, + 49, 53, 92, 89, 90, 113, 77, 78, 115, 0, + 0, 76, 75, 0, 0, 80, 81, 0, 60, 59, + 48, 47, 52, 51, 56, 55, 0, 71, 95, 104, + 99, 84, 83, 87, 91 }; -/* YYDEFGOTO[NTERM-NUM]. */ -static const yysigned_char yydefgoto[] = +/* YYDEFGOTO[NTERM-NUM]. */ +static const yytype_int16 yydefgoto[] = { - -1, 1, 2, 7, 43, 8, 9, 10, 16, 44, - 11, 45, 12, 15, 18, 46, 94, 115, 47, 95, - 117, 48, 96, 119, 49, 93, 113, 50, 51, 52, - 53, 54, 72, 73, 55, 77, 107, 56, 57, 58, - 92, 110, 111, 126, 59, 98, 99, 60, 75, 76, - 61, 90, 91, 62, 87, 88, 63, 64, 65, 66, - 67, 68, 69, 70 + -1, 1, 2, 7, 44, 8, 9, 10, 16, 45, + 11, 46, 12, 15, 18, 47, 99, 121, 48, 100, + 123, 49, 101, 125, 50, 98, 119, 51, 52, 53, + 54, 55, 74, 75, 56, 79, 112, 57, 58, 59, + 94, 115, 116, 132, 60, 96, 97, 61, 103, 104, + 62, 77, 78, 63, 92, 93, 64, 89, 90, 65, + 66, 67, 68, 69, 70, 71, 72 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ -#define YYPACT_NINF -68 -static const yysigned_char yypact[] = +#define YYPACT_NINF -72 +static const yytype_int8 yypact[] = { - -68, 7, 20, -68, -6, -2, -68, -68, -68, -68, - -68, -68, -68, -68, -68, -8, -4, -68, -68, -3, - -1, -68, 3, 4, 5, 6, 8, 9, 11, 1, - 10, 12, -68, -68, -68, -68, -68, 13, 14, 17, - 18, -68, -68, -68, -68, -68, -68, -68, -68, -68, - -68, -68, -68, -68, -68, -68, -68, -68, -68, -68, - -68, -68, -68, -68, -68, -68, -68, -68, -68, 19, - -68, -68, 16, -68, -68, -68, 22, 21, -68, -68, - -68, -68, -68, -68, -68, -68, -68, -68, 25, -68, - 26, -68, -68, 23, 24, 27, 28, -68, 29, -68, - -68, -68, -68, -68, -3, -1, -68, -68, 10, 12, - -68, 30, -68, -68, -68, -68, -68, -68, -68, -68, - 13, -68, -68, -68, -68, -68, -68, -68 + -72, 7, 21, -72, -6, -2, -72, -72, -72, -72, + -72, -72, -72, -72, -72, -8, -4, -72, -72, -3, + -1, -72, 3, 4, 5, 6, 8, 9, 10, 1, + 11, 12, -72, 13, -72, -72, -72, -72, 14, 18, + 19, 20, -72, -72, -72, -72, -72, -72, -72, -72, + -72, -72, -72, -72, -72, -72, -72, -72, -72, -72, + -72, -72, -72, -72, -72, -72, -72, -72, -72, -72, + -72, 22, -72, -72, 15, -72, -72, -72, 17, 24, + -72, -72, -72, -72, -72, -72, -72, -72, -72, -72, + 25, -72, 28, -72, -72, -72, 29, -72, 23, 26, + 27, 30, -72, 31, -72, -72, -72, -72, -72, -3, + -1, -72, -72, 11, 12, -72, 32, 13, -72, -72, + -72, -72, -72, -72, -72, -72, 14, -72, -72, -72, + -72, -72, -72, -72, -72 }; /* YYPGOTO[NTERM-NUM]. */ -static const yysigned_char yypgoto[] = +static const yytype_int8 yypgoto[] = { - -68, -68, -68, -68, -68, -68, -68, -68, -68, -68, - -68, -68, -68, -68, -68, -68, -68, -68, -68, -68, - -68, -68, -68, -68, -68, -68, -68, -68, -68, -68, - -68, -68, -68, -67, -68, -68, -68, -68, -68, -68, - -68, -68, -68, -68, -68, -68, -66, -68, -50, -68, - -68, -68, -46, -68, -49, -68, -68, -68, -68, -68, - -68, -68, -68, -5 + -72, -72, -72, -72, -72, -72, -72, -72, -72, -72, + -72, -72, -72, -72, -72, -72, -72, -72, -72, -72, + -72, -72, -72, -72, -72, -72, -72, -72, -72, -72, + -72, -72, -72, -71, -72, -72, -72, -72, -72, -72, + -72, -72, -72, -72, -72, -72, -65, -72, -72, -66, + -72, -46, -72, -72, -72, -48, -72, -45, -72, -72, + -72, -72, -72, -72, -72, -72, 0 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If @@ -566,63 +707,50 @@ static const yysigned_char yypgoto[] = number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -1 -static const unsigned char yytable[] = +static const yytype_uint8 yytable[] = { 19, 20, 21, 22, 23, 24, 25, 3, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 4, 13, 41, 17, 42, 14, 85, - 71, 5, 74, 78, 79, 80, 81, 121, 82, 83, - 6, 84, 86, 104, 100, 89, 97, 101, 102, 105, - 42, 106, 108, 109, 127, 122, 120, 112, 114, 123, - 125, 116, 118, 124, 103 + 38, 39, 40, 41, 4, 13, 42, 17, 43, 14, + 87, 73, 5, 76, 80, 81, 82, 83, 127, 84, + 85, 86, 6, 109, 88, 110, 91, 95, 102, 105, + 106, 107, 133, 113, 43, 111, 114, 117, 118, 126, + 134, 120, 122, 131, 128, 124, 130, 0, 129, 0, + 0, 108 }; -static const unsigned char yycheck[] = +static const yytype_int8 yycheck[] = { 4, 5, 6, 7, 8, 9, 10, 0, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 3, 30, 29, 34, 31, 30, 28, - 33, 11, 33, 30, 30, 30, 30, 104, 30, 30, - 20, 30, 32, 27, 30, 33, 33, 30, 30, 27, - 31, 30, 27, 27, 120, 105, 27, 34, 34, 108, - 30, 34, 34, 109, 69 + 24, 25, 26, 27, 3, 31, 30, 35, 32, 31, + 29, 34, 11, 34, 31, 31, 31, 31, 109, 31, + 31, 31, 21, 28, 33, 28, 34, 34, 34, 31, + 31, 31, 117, 28, 32, 31, 28, 28, 35, 28, + 126, 35, 35, 31, 110, 35, 114, -1, 113, -1, + -1, 71 }; /* 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, 36, 37, 0, 3, 11, 20, 38, 40, 41, - 42, 45, 47, 30, 30, 48, 43, 34, 49, 4, + 0, 37, 38, 0, 3, 11, 21, 39, 41, 42, + 43, 46, 48, 31, 31, 49, 44, 35, 50, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 29, 31, 39, 44, 46, 50, 53, 56, 59, - 62, 63, 64, 65, 66, 69, 72, 73, 74, 79, - 82, 85, 88, 91, 92, 93, 94, 95, 96, 97, - 98, 33, 67, 68, 33, 83, 84, 70, 30, 30, - 30, 30, 30, 30, 30, 28, 32, 89, 90, 33, - 86, 87, 75, 60, 51, 54, 57, 33, 80, 81, - 30, 30, 30, 98, 27, 27, 30, 71, 27, 27, - 76, 77, 34, 61, 34, 52, 34, 55, 34, 58, - 27, 68, 83, 89, 87, 30, 78, 81 + 26, 27, 30, 32, 40, 45, 47, 51, 54, 57, + 60, 63, 64, 65, 66, 67, 70, 73, 74, 75, + 80, 83, 86, 89, 92, 95, 96, 97, 98, 99, + 100, 101, 102, 34, 68, 69, 34, 87, 88, 71, + 31, 31, 31, 31, 31, 31, 31, 29, 33, 93, + 94, 34, 90, 91, 76, 34, 81, 82, 61, 52, + 55, 58, 34, 84, 85, 31, 31, 31, 102, 28, + 28, 31, 72, 28, 28, 77, 78, 28, 35, 62, + 35, 53, 35, 56, 35, 59, 28, 69, 87, 93, + 91, 31, 79, 82, 85 }; -#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) @@ -648,15 +776,15 @@ 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 @@ -671,7 +799,7 @@ while (0) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ - if (N) \ + if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ @@ -685,7 +813,7 @@ while (0) (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ - while (0) + while (YYID (0)) #endif @@ -697,8 +825,8 @@ while (0) # 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) + (Loc).first_line, (Loc).first_column, \ + (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif @@ -725,36 +853,96 @@ while (0) do { \ if (yydebug) \ YYFPRINTF Args; \ -} while (0) +} while (YYID (0)) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yysymprint (stderr, \ - Type, Value); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} 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)) + + +/*--------------------------------. +| 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 *bottom, yytype_int16 *top) #else static void yy_stack_print (bottom, top) - short int *bottom; - short int *top; + yytype_int16 *bottom; + yytype_int16 *top; #endif { YYFPRINTF (stderr, "Stack now"); - for (/* Nothing. */; bottom <= top; ++bottom) + for (; bottom <= top; ++bottom) YYFPRINTF (stderr, " %d", *bottom); YYFPRINTF (stderr, "\n"); } @@ -763,37 +951,45 @@ 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++) + { + fprintf (stderr, " $%d = ", yyi + 1); + yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], + &(yyvsp[(yyi + 1) - (yynrhs)]) + ); + fprintf (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. */ @@ -815,7 +1011,7 @@ 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. */ #ifndef YYMAXDEPTH @@ -827,45 +1023,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; @@ -875,53 +1073,171 @@ 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]); + if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) + return 0; else - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); - - -# ifdef YYPRINT - if (yytype < YYNTOKENS) - YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); -# endif - 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 (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else @@ -932,8 +1248,7 @@ yydestruct (yymsg, yytype, yyvaluep) YYSTYPE *yyvaluep; #endif { - /* Pacify ``unused variable'' warnings. */ - (void) yyvaluep; + YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; @@ -943,7 +1258,7 @@ yydestruct (yymsg, yytype, yyvaluep) { default: - break; + break; } } @@ -951,13 +1266,13 @@ yydestruct (yymsg, yytype, yyvaluep) /* 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 (); @@ -982,14 +1297,18 @@ int yynerrs; `----------*/ #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 @@ -1000,13 +1319,19 @@ yyparse () #endif { - register int yystate; - register int yyn; + int yystate; + int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Look-ahead token as an internal (translated) token number. */ int yytoken = 0; +#if YYERROR_VERBOSE + /* Buffer for error messages, and its allocated size. */ + char yymsgbuf[128]; + char *yymsg = yymsgbuf; + YYSIZE_T yymsg_alloc = sizeof yymsgbuf; +#endif /* Three stacks and their tools: `yyss': related to states, @@ -1017,18 +1342,18 @@ yyparse () to reallocate them elsewhere. */ /* The state stack. */ - short int yyssa[YYINITDEPTH]; - short int *yyss = yyssa; - register short int *yyssp; + yytype_int16 yyssa[YYINITDEPTH]; + yytype_int16 *yyss = yyssa; + yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; - register YYSTYPE *yyvsp; + YYSTYPE *yyvsp; -#define YYPOPSTACK (yyvsp--, yyssp--) +#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) YYSIZE_T yystacksize = YYINITDEPTH; @@ -1037,9 +1362,9 @@ yyparse () YYSTYPE yyval; - /* When reducing, the number of symbols on the RHS of the reduced - rule. */ - int yylen; + /* The number of symbols on the RHS of the reduced rule. + Keep to zero when no symbol should be popped. */ + int yylen = 0; YYDPRINTF ((stderr, "Starting parse\n")); @@ -1056,9 +1381,6 @@ yyparse () yyssp = yyss; yyvsp = yyvs; - - yyvsp[0] = yylval; - goto yysetstate; /*------------------------------------------------------------. @@ -1066,8 +1388,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: @@ -1080,18 +1401,18 @@ 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), @@ -1102,21 +1423,21 @@ 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; + goto yyexhaustedlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); @@ -1147,12 +1468,10 @@ yyparse () `-----------*/ yybackup: -/* Do appropriate processing given the current state. */ -/* Read a look-ahead token if we need one and don't already have one. */ -/* yyresume: */ + /* Do appropriate processing given the current state. Read a + look-ahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to look-ahead token. */ - yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; @@ -1194,22 +1513,21 @@ yybackup: if (yyn == YYFINAL) YYACCEPT; + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; + /* Shift the look-ahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); - /* Discard the token being shifted unless it is eof. */ + /* Discard the shifted token unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; + yystate = yyn; *++yyvsp = yylval; - - /* Count tokens shifted since error; after three, turn off error - status. */ - if (yyerrstatus) - yyerrstatus--; - - yystate = yyn; goto yynewstate; @@ -1290,10 +1608,10 @@ yyreduce: #line 88 "levcomp.ypp" { dgn_reset_default_depth(); - std::string err = dgn_set_default_depth((yyvsp[0].text)); + std::string err = dgn_set_default_depth((yyvsp[(2) - (2)].text)); if (!err.empty()) yyerror(make_stringf("Bad default-depth: %s (%s)", - (yyvsp[0].text), err.c_str()).c_str()); + (yyvsp[(2) - (2)].text), err.c_str()).c_str()); } break; @@ -1344,39 +1662,34 @@ yyreduce: #line 128 "levcomp.ypp" { lc_map.init(); - lc_map.name = (yyvsp[0].text); + lc_map.name = (yyvsp[(2) - (2)].text); map_load_info_t::const_iterator i = - lc_loaded_maps.find((yyvsp[0].text)); + lc_loaded_maps.find((yyvsp[(2) - (2)].text)); if (i != lc_loaded_maps.end()) { yyerror( make_stringf( "Map named '%s' already loaded at %s:%d", - (yyvsp[0].text), + (yyvsp[(2) - (2)].text), i->second.filename.c_str(), i->second.lineno).c_str() ); } lc_map.place_loaded_from = map_file_place(lc_desfile, yylineno); - lc_loaded_maps[(yyvsp[0].text)] = lc_map.place_loaded_from; + lc_loaded_maps[(yyvsp[(2) - (2)].text)] = lc_map.place_loaded_from; } break; - case 39: -#line 173 "levcomp.ypp" - {} - break; - case 40: -#line 176 "levcomp.ypp" - { } +#line 174 "levcomp.ypp" + {} break; case 41: -#line 178 "levcomp.ypp" +#line 177 "levcomp.ypp" { } break; @@ -1386,19 +1699,19 @@ yyreduce: break; case 43: -#line 183 "levcomp.ypp" - { - lc_global_prelude.add(yylineno, (yyvsp[0].text)); - } +#line 180 "levcomp.ypp" + { } break; case 44: -#line 187 "levcomp.ypp" - { } +#line 184 "levcomp.ypp" + { + lc_global_prelude.add(yylineno, (yyvsp[(1) - (1)].text)); + } break; case 45: -#line 189 "levcomp.ypp" +#line 188 "levcomp.ypp" { } break; @@ -1408,19 +1721,19 @@ yyreduce: break; case 47: -#line 194 "levcomp.ypp" - { - lc_map.main.add(yylineno, (yyvsp[0].text)); - } +#line 191 "levcomp.ypp" + { } break; case 48: -#line 198 "levcomp.ypp" - { } +#line 195 "levcomp.ypp" + { + lc_map.main.add(yylineno, (yyvsp[(1) - (1)].text)); + } break; case 49: -#line 200 "levcomp.ypp" +#line 199 "levcomp.ypp" { } break; @@ -1430,19 +1743,19 @@ yyreduce: break; case 51: -#line 205 "levcomp.ypp" - { - lc_map.validate.add(yylineno, (yyvsp[0].text)); - } +#line 202 "levcomp.ypp" + { } break; case 52: -#line 209 "levcomp.ypp" - { } +#line 206 "levcomp.ypp" + { + lc_map.validate.add(yylineno, (yyvsp[(1) - (1)].text)); + } break; case 53: -#line 211 "levcomp.ypp" +#line 210 "levcomp.ypp" { } break; @@ -1452,19 +1765,19 @@ yyreduce: break; case 55: -#line 216 "levcomp.ypp" - { - lc_map.veto.add(yylineno, (yyvsp[0].text)); - } +#line 213 "levcomp.ypp" + { } break; case 56: -#line 220 "levcomp.ypp" - { } +#line 217 "levcomp.ypp" + { + lc_map.veto.add(yylineno, (yyvsp[(1) - (1)].text)); + } break; case 57: -#line 222 "levcomp.ypp" +#line 221 "levcomp.ypp" { } break; @@ -1474,299 +1787,338 @@ yyreduce: break; case 59: -#line 227 "levcomp.ypp" +#line 224 "levcomp.ypp" + { } + break; + + case 60: +#line 228 "levcomp.ypp" { - lc_map.prelude.add(yylineno, (yyvsp[0].text)); + lc_map.prelude.add(yylineno, (yyvsp[(1) - (1)].text)); } break; - case 60: -#line 231 "levcomp.ypp" + case 61: +#line 232 "levcomp.ypp" { } break; - case 61: -#line 233 "levcomp.ypp" + case 62: +#line 234 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("kfeat(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 62: -#line 240 "levcomp.ypp" + case 63: +#line 241 "levcomp.ypp" { } break; - case 63: -#line 242 "levcomp.ypp" + case 64: +#line 243 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("kmons(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 64: -#line 249 "levcomp.ypp" + case 65: +#line 250 "levcomp.ypp" { } break; - case 65: -#line 251 "levcomp.ypp" + case 66: +#line 252 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("kitem(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 66: -#line 258 "levcomp.ypp" + case 67: +#line 259 "levcomp.ypp" { } break; - case 67: -#line 260 "levcomp.ypp" + case 68: +#line 261 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("kmask(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 68: -#line 267 "levcomp.ypp" + case 69: +#line 268 "levcomp.ypp" {} break; - case 71: -#line 275 "levcomp.ypp" + case 72: +#line 276 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("shuffle(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(1) - (1)].text)).c_str())); } break; - case 72: -#line 282 "levcomp.ypp" + case 73: +#line 283 "levcomp.ypp" {} break; - case 75: -#line 290 "levcomp.ypp" + case 76: +#line 291 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("tags(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(1) - (1)].text)).c_str())); } break; - case 76: -#line 299 "levcomp.ypp" + case 77: +#line 300 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("lflags(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 77: -#line 308 "levcomp.ypp" + case 78: +#line 309 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("bflags(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 78: -#line 317 "levcomp.ypp" + case 79: +#line 318 "levcomp.ypp" { lc_map.main.add(yylineno, "marker("); start_marker_segment = true; } break; - case 79: -#line 322 "levcomp.ypp" + case 80: +#line 323 "levcomp.ypp" { lc_map.main.add(yylineno, ")"); } break; - case 83: -#line 334 "levcomp.ypp" + case 84: +#line 335 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf( "%s\"%s\"", start_marker_segment? "" : " .. ", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(1) - (1)].text)).c_str())); start_marker_segment = false; } break; - case 84: -#line 345 "levcomp.ypp" + case 85: +#line 346 "levcomp.ypp" + { } + break; + + case 86: +#line 349 "levcomp.ypp" { } break; case 87: -#line 353 "levcomp.ypp" +#line 350 "levcomp.ypp" + { } + break; + + case 88: +#line 354 "levcomp.ypp" + { + lc_map.main.add( + yylineno, + make_stringf("colour(\"%s\")", + quote_lua_string((yyvsp[(1) - (1)].text)).c_str())); + } + break; + + case 89: +#line 362 "levcomp.ypp" + { } + break; + + case 90: +#line 365 "levcomp.ypp" + { } + break; + + case 91: +#line 366 "levcomp.ypp" + { } + break; + + case 92: +#line 370 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("nsubst(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(1) - (1)].text)).c_str())); } break; - case 88: -#line 361 "levcomp.ypp" + case 93: +#line 378 "levcomp.ypp" { } break; - case 91: -#line 369 "levcomp.ypp" + case 96: +#line 386 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("subst(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(1) - (1)].text)).c_str())); } break; - case 92: -#line 377 "levcomp.ypp" + case 97: +#line 394 "levcomp.ypp" {} break; - case 93: -#line 378 "levcomp.ypp" + case 98: +#line 395 "levcomp.ypp" {} break; - case 96: -#line 386 "levcomp.ypp" + case 101: +#line 403 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("item(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(1) - (1)].text)).c_str())); } break; - case 97: -#line 393 "levcomp.ypp" + case 102: +#line 410 "levcomp.ypp" {} break; - case 98: -#line 394 "levcomp.ypp" + case 103: +#line 411 "levcomp.ypp" {} break; - case 101: -#line 402 "levcomp.ypp" + case 106: +#line 419 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("mons(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(1) - (1)].text)).c_str())); } break; - case 102: -#line 411 "levcomp.ypp" + case 107: +#line 428 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("place(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 103: -#line 419 "levcomp.ypp" + case 108: +#line 436 "levcomp.ypp" {} break; - case 104: -#line 421 "levcomp.ypp" + case 109: +#line 438 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("depth(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 105: -#line 430 "levcomp.ypp" + case 110: +#line 447 "levcomp.ypp" { lc_map.main.add( yylineno, - make_stringf("chance(\"%d\")", (yyvsp[0].i))); + make_stringf("chance(\"%d\")", (yyvsp[(2) - (2)].i))); } break; - case 106: -#line 437 "levcomp.ypp" + case 111: +#line 454 "levcomp.ypp" {} break; - case 107: -#line 439 "levcomp.ypp" + case 112: +#line 456 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("orient(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 108: -#line 448 "levcomp.ypp" + case 113: +#line 465 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("welcome(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(2) - (2)].text)).c_str())); } break; - case 112: -#line 464 "levcomp.ypp" + case 117: +#line 481 "levcomp.ypp" { lc_map.main.add( yylineno, make_stringf("map(\"%s\")", - quote_lua_string((yyvsp[0].text)).c_str())); + quote_lua_string((yyvsp[(1) - (1)].text)).c_str())); } break; +/* Line 1267 of yacc.c. */ +#line 2116 "levcomp.tab.c" + default: break; } + YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); -/* Line 1037 of yacc.c. */ -#line 1765 "levcomp.tab.c" - - yyvsp -= yylen; - yyssp -= yylen; - - + YYPOPSTACK (yylen); + yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; @@ -1795,66 +2147,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 } @@ -1865,23 +2192,15 @@ 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; - yydestruct ("Error: popping", - yystos[*yyssp], yyvsp); - } - } + YYABORT; + } else { - yydestruct ("Error: discarding", yytoken, &yylval); + yydestruct ("Error: discarding", + yytoken, &yylval); yychar = YYEMPTY; } } @@ -1896,15 +2215,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; @@ -1934,8 +2255,9 @@ yyerrlab1: YYABORT; - yydestruct ("Error: popping", yystos[yystate], yyvsp); - YYPOPSTACK; + yydestruct ("Error: popping", + yystos[yystate], yyvsp); + YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } @@ -1946,7 +2268,7 @@ yyerrlab1: *++yyvsp = yylval; - /* Shift the error token. */ + /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; @@ -1964,31 +2286,46 @@ yyacceptlab: | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: - yydestruct ("Error: discarding lookahead", - yytoken, &yylval); - yychar = YYEMPTY; yyresult = 1; goto yyreturn; #ifndef yyoverflow -/*----------------------------------------------. -| yyoverflowlab -- parser overflow comes here. | -`----------------------------------------------*/ -yyoverflowlab: - yyerror ("parser stack overflow"); +/*-------------------------------------------------. +| yyexhaustedlab -- memory exhaustion comes here. | +`-------------------------------------------------*/ +yyexhaustedlab: + yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: + if (yychar != YYEOF && 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 472 "levcomp.ypp" +#line 489 "levcomp.ypp" diff --git a/crawl-ref/source/prebuilt/levcomp.tab.h b/crawl-ref/source/prebuilt/levcomp.tab.h index ac7bd59de9..e44cd6ecfa 100644 --- a/crawl-ref/source/prebuilt/levcomp.tab.h +++ b/crawl-ref/source/prebuilt/levcomp.tab.h @@ -1,7 +1,9 @@ -/* A Bison parser, made by GNU Bison 2.0. */ +/* A Bison parser, made by GNU Bison 2.3. */ -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +/* 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 @@ -15,13 +17,21 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* 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. -/* 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. */ + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ /* Tokens. */ #ifndef YYTOKENTYPE @@ -45,24 +55,26 @@ MONS = 271, ITEM = 272, MARKER = 273, - PRELUDE = 274, - MAIN = 275, - VALIDATE = 276, - VETO = 277, - NSUBST = 278, - WELCOME = 279, - LFLAGS = 280, - BFLAGS = 281, - COMMA = 282, - INTEGER = 283, - CHARACTER = 284, - STRING = 285, - MAP_LINE = 286, - MONSTER_NAME = 287, - ITEM_INFO = 288, - LUA_LINE = 289 + COLOUR = 274, + PRELUDE = 275, + MAIN = 276, + VALIDATE = 277, + VETO = 278, + NSUBST = 279, + WELCOME = 280, + LFLAGS = 281, + BFLAGS = 282, + COMMA = 283, + INTEGER = 284, + CHARACTER = 285, + STRING = 286, + MAP_LINE = 287, + MONSTER_NAME = 288, + ITEM_INFO = 289, + LUA_LINE = 290 }; #endif +/* Tokens. */ #define DEFAULT_DEPTH 258 #define SHUFFLE 259 #define SUBST 260 @@ -79,35 +91,38 @@ #define MONS 271 #define ITEM 272 #define MARKER 273 -#define PRELUDE 274 -#define MAIN 275 -#define VALIDATE 276 -#define VETO 277 -#define NSUBST 278 -#define WELCOME 279 -#define LFLAGS 280 -#define BFLAGS 281 -#define COMMA 282 -#define INTEGER 283 -#define CHARACTER 284 -#define STRING 285 -#define MAP_LINE 286 -#define MONSTER_NAME 287 -#define ITEM_INFO 288 -#define LUA_LINE 289 +#define COLOUR 274 +#define PRELUDE 275 +#define MAIN 276 +#define VALIDATE 277 +#define VETO 278 +#define NSUBST 279 +#define WELCOME 280 +#define LFLAGS 281 +#define BFLAGS 282 +#define COMMA 283 +#define INTEGER 284 +#define CHARACTER 285 +#define STRING 286 +#define MAP_LINE 287 +#define MONSTER_NAME 288 +#define ITEM_INFO 289 +#define LUA_LINE 290 -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE #line 46 "levcomp.ypp" -typedef union YYSTYPE { +{ int i; const char *text; raw_range range; -} YYSTYPE; -/* Line 1274 of yacc.c. */ -#line 111 "levcomp.tab.h" +} +/* Line 1529 of yacc.c. */ +#line 125 "levcomp.tab.h" + YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 @@ -115,5 +130,3 @@ typedef union YYSTYPE { extern YYSTYPE yylval; - - |