diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
commit | dcc721a95bef6f0d8e6d8775b8efe33e5aecd562 (patch) | |
tree | 66a2774cd0ee294d019efd71d2544c70f42b2842 /grammar/lexer.c | |
parent | Initial commit. (diff) | |
download | rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.tar.xz rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.zip |
Adding upstream version 8.2402.0.upstream/8.2402.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'grammar/lexer.c')
-rw-r--r-- | grammar/lexer.c | 4150 |
1 files changed, 4150 insertions, 0 deletions
diff --git a/grammar/lexer.c b/grammar/lexer.c new file mode 100644 index 0000000..6667bfc --- /dev/null +++ b/grammar/lexer.c @@ -0,0 +1,4150 @@ +#ifndef __clang_analyzer__ /* this is not really our code */ +#include "config.h" + +#line 5 "lexer.c" + +#define YY_INT_ALIGNED short int + +/* A lexical scanner generated by flex */ + +#define FLEX_SCANNER +#define YY_FLEX_MAJOR_VERSION 2 +#define YY_FLEX_MINOR_VERSION 6 +#define YY_FLEX_SUBMINOR_VERSION 4 +#if YY_FLEX_SUBMINOR_VERSION > 0 +#define FLEX_BETA +#endif + +/* First, we deal with platform-specific or compiler-specific issues. */ + +/* begin standard C headers. */ +#include <stdio.h> +#include <string.h> +#include <errno.h> +#include <stdlib.h> + +/* end standard C headers. */ + +/* flex integer type definitions */ + +#ifndef FLEXINT_H +#define FLEXINT_H + +/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ + +#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + +/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, + * if you want the limit (max/min) macros for int types. + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS 1 +#endif + +#include <inttypes.h> +typedef int8_t flex_int8_t; +typedef uint8_t flex_uint8_t; +typedef int16_t flex_int16_t; +typedef uint16_t flex_uint16_t; +typedef int32_t flex_int32_t; +typedef uint32_t flex_uint32_t; +#else +typedef signed char flex_int8_t; +typedef short int flex_int16_t; +typedef int flex_int32_t; +typedef unsigned char flex_uint8_t; +typedef unsigned short int flex_uint16_t; +typedef unsigned int flex_uint32_t; + +/* 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 + +#ifndef SIZE_MAX +#define SIZE_MAX (~(size_t)0) +#endif + +#endif /* ! C99 */ + +#endif /* ! FLEXINT_H */ + +/* begin standard C++ headers. */ + +/* TODO: this is always defined, so inline it */ +#define yyconst const + +#if defined(__GNUC__) && __GNUC__ >= 3 +#define yynoreturn __attribute__((__noreturn__)) +#else +#define yynoreturn +#endif + +/* Returned upon end-of-file. */ +#define YY_NULL 0 + +/* Promotes a possibly negative, possibly signed char to an + * integer in range [0..255] for use as an array index. + */ +#define YY_SC_TO_UI(c) ((YY_CHAR) (c)) + +/* Enter a start condition. This macro really ought to take a parameter, + * but we do it the disgusting crufty way forced on us by the ()-less + * definition of BEGIN. + */ +#define BEGIN (yy_start) = 1 + 2 * +/* Translate the current start state into a value that can be later handed + * to BEGIN to return to the state. The YYSTATE alias is for lex + * compatibility. + */ +#define YY_START (((yy_start) - 1) / 2) +#define YYSTATE YY_START +/* Action number for EOF rule of a given start state. */ +#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) +/* Special action meaning "start processing a new file". */ +#define YY_NEW_FILE yyrestart( yyin ) +#define YY_END_OF_BUFFER_CHAR 0 + +/* Size of default input buffer. */ +#ifndef YY_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else +#define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ +#endif + +/* The state buf must be large enough to hold one state per character in the main buffer. + */ +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) + +#ifndef YY_TYPEDEF_YY_BUFFER_STATE +#define YY_TYPEDEF_YY_BUFFER_STATE +typedef struct yy_buffer_state *YY_BUFFER_STATE; +#endif + +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#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 + + /* 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) + #define YY_LINENO_REWIND_TO(dst) \ + do {\ + const char *p;\ + for ( p = yy_cp-1; p >= (dst); --p)\ + if ( *p == '\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. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + *yy_cp = (yy_hold_char); \ + YY_RESTORE_YY_MORE_OFFSET \ + (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) +#define unput(c) yyunput( c, (yytext_ptr) ) + +#ifndef YY_STRUCT_YY_BUFFER_STATE +#define YY_STRUCT_YY_BUFFER_STATE +struct yy_buffer_state + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + int yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; + + int yy_bs_lineno; /**< The line count. */ + int yy_bs_column; /**< The column count. */ + + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; + +#define YY_BUFFER_NEW 0 +#define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +#define YY_BUFFER_EOF_PENDING 2 + + }; +#endif /* !YY_STRUCT_YY_BUFFER_STATE */ + +/* Stack of input buffers. */ +static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ +static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ +static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */ + +/* We provide macros for accessing buffer states in case in the + * future we want to put the buffer states in a more general + * "scanner state". + * + * Returns the top of the stack, or NULL. + */ +#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ + ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ + : NULL) +/* Same as previous macro, but useful when we know that the buffer stack is not + * NULL or when we need an lvalue. For internal use only. + */ +#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] + +/* yy_hold_char holds the character lost when 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 = NULL; +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 + * instead of setting up a fresh yyin. A bit of a hack ... + */ +static int yy_did_buffer_switch_on_eof; + +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 ); + +static void yyensure_buffer_stack ( void ); +static void yy_load_buffer_state ( void ); +static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file ); +#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) + +YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size ); +YY_BUFFER_STATE yy_scan_string ( const char *yy_str ); +YY_BUFFER_STATE yy_scan_bytes ( const 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 ){ \ + 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 ){\ + 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_LVALUE->yy_at_bol) + +/* Begin user sect3 */ + +#define yywrap() (/*CONSTCOND*/1) +#define YY_SKIP_YYWRAP +typedef flex_uint8_t YY_CHAR; + +FILE *yyin = NULL, *yyout = NULL; + +typedef int yy_state_type; + +extern int yylineno; +int yylineno = 1; + +extern char *yytext; +#ifdef yytext_ptr +#undef yytext_ptr +#endif +#define yytext_ptr yytext + +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 yynoreturn yy_fatal_error ( const 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; \ + *yy_cp = '\0'; \ + (yy_c_buf_p) = yy_cp; +#define YY_NUM_RULES 121 +#define YY_END_OF_BUFFER 122 +/* 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 const flex_int16_t yy_accept[667] = + { 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 9, 9, 0, 0, 122, 120, 119, 119, + 120, 120, 120, 56, 91, 120, 120, 120, 120, 96, + 120, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 57, 58, 90, 119, 91, + 120, 120, 120, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 112, 111, + 111, 112, 112, 97, 99, 112, 102, 98, 100, 101, + 112, 109, 109, 109, 71, 71, 70, 69, 68, 54, + 53, 53, 54, 10, 9, 9, 10, 10, 4, 8, + + 7, 52, 49, 49, 52, 52, 44, 22, 24, 52, + 11, 28, 20, 23, 19, 25, 21, 43, 43, 14, + 34, 18, 35, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 26, 27, 52, 0, 0, 118, 0, + 0, 95, 95, 95, 93, 105, 96, 0, 96, 96, + 96, 96, 96, 96, 96, 1, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 0, 0, 0, 0, 0, 0, 0, 0, 95, 0, + 0, 0, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 1, 96, 96, 96, 96, 96, 96, 96, + + 96, 96, 96, 96, 96, 96, 96, 0, 103, 0, + 0, 110, 106, 98, 0, 0, 104, 109, 109, 108, + 72, 68, 55, 9, 0, 6, 0, 0, 5, 0, + 32, 0, 47, 0, 0, 44, 44, 44, 44, 0, + 45, 0, 107, 41, 0, 43, 30, 33, 29, 31, + 51, 51, 51, 13, 51, 37, 51, 15, 51, 51, + 0, 0, 46, 0, 114, 0, 113, 0, 0, 116, + 0, 95, 95, 92, 92, 93, 94, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 63, 96, 96, 96, + + 96, 89, 0, 117, 95, 0, 0, 89, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 63, 96, 96, + 96, 96, 0, 0, 0, 0, 0, 0, 48, 0, + 0, 0, 0, 0, 42, 16, 51, 51, 17, 51, + 51, 0, 0, 0, 115, 95, 92, 92, 94, 96, + 61, 96, 96, 96, 60, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 59, + 96, 96, 96, 0, 0, 0, 96, 61, 96, 96, + 60, 96, 96, 96, 96, 96, 96, 96, 96, 96, + + 96, 96, 96, 96, 96, 59, 96, 96, 96, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 51, 51, 51, 12, 0, 0, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 64, 96, 96, 96, 65, 0, + 0, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 64, 96, 96, 96, 65, + 0, 0, 0, 0, 51, 51, 51, 96, 96, 96, + 96, 96, 96, 96, 96, 0, 81, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 0, 0, + + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 51, 50, 51, 0, + 87, 96, 96, 96, 96, 2, 0, 76, 96, 96, + 96, 0, 82, 0, 75, 96, 96, 96, 96, 96, + 96, 96, 0, 88, 0, 96, 96, 2, 96, 96, + 96, 96, 96, 96, 96, 51, 51, 96, 96, 66, + 96, 0, 86, 96, 96, 96, 96, 96, 96, 0, + 78, 96, 96, 88, 96, 66, 96, 96, 96, 96, + 96, 36, 51, 96, 0, 80, 96, 96, 96, 96, + 96, 0, 79, 96, 0, 77, 0, 74, 96, 96, + + 51, 51, 96, 0, 84, 96, 96, 96, 96, 96, + 96, 96, 38, 39, 96, 96, 0, 73, 96, 96, + 96, 96, 51, 96, 96, 96, 96, 96, 96, 40, + 62, 0, 83, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 0, + 85, 96, 96, 96, 96, 96, 96, 96, 3, 96, + 96, 96, 96, 96, 67, 0 + } ; + +static const YY_CHAR yy_ec[256] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, + 21, 21, 21, 21, 21, 22, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, + 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, + 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, + + 66, 67, 68, 69, 70, 39, 71, 72, 73, 74, + 75, 76, 77, 78, 79, 80, 81, 51, 82, 83, + 84, 85, 86, 59, 87, 88, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1 + } ; + +static const YY_CHAR yy_meta[89] = + { 0, + 1, 2, 3, 4, 5, 6, 1, 7, 1, 1, + 8, 1, 1, 9, 10, 11, 12, 13, 14, 15, + 15, 16, 17, 18, 1, 19, 1, 20, 21, 22, + 23, 24, 24, 24, 22, 25, 25, 25, 25, 25, + 25, 25, 26, 25, 25, 25, 26, 25, 26, 25, + 27, 25, 28, 25, 25, 21, 8, 21, 1, 29, + 30, 22, 23, 24, 24, 24, 22, 25, 25, 25, + 25, 25, 25, 26, 25, 25, 25, 26, 25, 26, + 25, 25, 28, 25, 25, 1, 1, 1 + } ; + +static const flex_int16_t yy_base[773] = + { 0, + 0, 88, 176, 0, 262, 263, 265, 268, 260, 265, + 287, 0, 374, 389, 405, 0, 1379, 4863, 4863, 4863, + 0, 1366, 0, 4863, 4863, 1351, 260, 0, 1346, 0, + 0, 462, 465, 444, 458, 456, 460, 462, 458, 473, + 476, 484, 473, 477, 470, 4863, 4863, 0, 547, 363, + 1339, 570, 538, 586, 599, 646, 611, 607, 609, 647, + 650, 645, 648, 667, 696, 669, 713, 711, 4863, 4863, + 4863, 506, 1342, 4863, 4863, 1325, 4863, 0, 4863, 4863, + 337, 1170, 1161, 1125, 0, 4863, 4863, 4863, 499, 4863, + 4863, 4863, 0, 4863, 564, 588, 531, 530, 4863, 4863, + + 4863, 4863, 4863, 4863, 1091, 626, 748, 4863, 4863, 624, + 4863, 4863, 4863, 4863, 4863, 4863, 1069, 591, 716, 4863, + 257, 1048, 1031, 471, 0, 481, 549, 569, 562, 565, + 649, 679, 635, 4863, 4863, 342, 778, 1019, 4863, 806, + 787, 0, 793, 635, 0, 4863, 0, 994, 683, 720, + 729, 731, 847, 849, 853, 0, 866, 856, 664, 683, + 854, 855, 869, 864, 865, 858, 864, 867, 868, 866, + 944, 899, 0, 1002, 931, 0, 937, 919, 967, 981, + 500, 981, 1015, 944, 991, 1028, 990, 991, 1015, 939, + 989, 1012, 876, 1027, 1019, 1035, 1033, 1031, 1032, 1052, + + 1073, 1044, 941, 1053, 1077, 1081, 1086, 641, 4863, 368, + 799, 4863, 4863, 0, 500, 376, 4863, 796, 790, 4863, + 0, 1116, 0, 1137, 648, 4863, 1122, 741, 4863, 1126, + 4863, 1098, 4863, 744, 1128, 1165, 1171, 0, 1179, 893, + 4863, 1142, 4863, 622, 0, 1138, 4863, 4863, 4863, 4863, + 0, 901, 973, 0, 1133, 0, 1051, 0, 1142, 1140, + 512, 1157, 4863, 1165, 4863, 784, 4863, 1240, 1210, 1229, + 781, 1327, 775, 0, 0, 0, 0, 1152, 1079, 1159, + 700, 1160, 1164, 1171, 1084, 1282, 1293, 1292, 1286, 1289, + 1306, 1295, 1296, 1298, 1309, 1310, 0, 1301, 1302, 1314, + + 1315, 0, 1216, 4863, 1348, 629, 995, 1369, 1382, 1393, + 1313, 1364, 1360, 1378, 1392, 1316, 1375, 1318, 1387, 1377, + 1390, 1407, 1396, 1422, 1402, 1439, 1441, 1394, 1440, 1442, + 1454, 1455, 1472, 1479, 1195, 0, 1335, 0, 4863, 1401, + 1470, 0, 1481, 0, 0, 0, 1396, 1438, 0, 1450, + 1460, 1488, 0, 736, 4863, 712, 0, 0, 0, 1460, + 640, 1457, 1472, 1467, 0, 1489, 1492, 1474, 1476, 1480, + 627, 1490, 1498, 1499, 1491, 1505, 1511, 1494, 1496, 0, + 1504, 844, 1498, 1544, 1548, 1554, 1516, 1522, 1531, 1543, + 1525, 1538, 1555, 1542, 1546, 1548, 1549, 1536, 1565, 1578, + + 1560, 1594, 1592, 1575, 1593, 1564, 1584, 1598, 1599, 1637, + 1625, 1631, 0, 1641, 0, 1647, 0, 1653, 0, 1655, + 0, 1619, 1610, 1620, 0, 1657, 0, 1637, 1625, 1654, + 1644, 1639, 1653, 1648, 1658, 1694, 1648, 1653, 1667, 1656, + 1661, 1661, 1660, 1675, 0, 1675, 1680, 1668, 0, 760, + 912, 1672, 1691, 1684, 1690, 1673, 1696, 1745, 1719, 1718, + 1724, 1726, 1729, 1725, 1741, 1709, 1742, 1747, 1748, 1738, + 957, 1167, 1773, 0, 1717, 1732, 1737, 1822, 1756, 1762, + 1757, 1782, 1778, 1825, 1784, 1829, 4863, 565, 1771, 1851, + 1854, 1790, 1803, 1791, 492, 1793, 1794, 1802, 1598, 978, + + 1857, 1805, 1831, 1827, 1880, 1844, 1834, 1885, 1905, 1852, + 1859, 1864, 1870, 1873, 1878, 1861, 1806, 0, 872, 1935, + 4863, 1853, 1871, 1894, 1876, 0, 1959, 4863, 1962, 1892, + 1909, 1966, 4863, 1977, 4863, 1916, 1920, 1006, 1918, 1980, + 1933, 1939, 1123, 4863, 1928, 1947, 1957, 1935, 1991, 1963, + 1967, 1956, 2009, 1975, 1983, 1952, 1968, 1976, 2040, 0, + 1972, 2054, 4863, 1992, 1980, 1995, 1999, 2068, 2001, 2071, + 4863, 2075, 2082, 2042, 2086, 2019, 2021, 2054, 2098, 2101, + 2104, 464, 2016, 2050, 2117, 4863, 2128, 2051, 2075, 2077, + 2074, 2132, 4863, 2073, 2147, 4863, 2150, 4863, 2122, 2092, + + 2085, 2088, 2103, 2163, 4863, 2106, 2177, 436, 2126, 2128, + 2130, 2143, 0, 344, 2129, 2138, 2183, 4863, 2126, 2141, + 2133, 2150, 2158, 2149, 2204, 2151, 2163, 2158, 2179, 0, + 0, 2223, 4863, 2180, 2169, 322, 2178, 2174, 2190, 2181, + 2198, 2188, 2194, 2210, 2203, 2276, 2188, 2210, 2212, 2279, + 4863, 2203, 2214, 2217, 2229, 2229, 2256, 2232, 0, 2260, + 2218, 2258, 263, 2259, 4863, 4863, 2336, 2366, 2396, 2426, + 2456, 2486, 2495, 2523, 2553, 2574, 2589, 2616, 2636, 2656, + 2684, 2708, 2728, 2757, 2787, 2805, 2834, 2864, 2894, 2913, + 2942, 2972, 3002, 3028, 3057, 3073, 3102, 3132, 3162, 3192, + + 3222, 3252, 3273, 3288, 3315, 3335, 3352, 3374, 3398, 3426, + 3453, 3477, 3498, 3527, 3552, 3579, 3597, 3626, 3649, 3679, + 3709, 3728, 3757, 3782, 3810, 3835, 3863, 3893, 3918, 3942, + 3967, 3996, 4021, 4035, 4045, 4074, 4099, 4129, 4159, 4189, + 4219, 4249, 4279, 4309, 4339, 4360, 4385, 4410, 4434, 4455, + 4484, 4514, 4530, 4540, 4559, 4573, 4583, 4593, 4603, 4618, + 4642, 4672, 4702, 4732, 4748, 4758, 4768, 4778, 4788, 4798, + 4808, 4832 + } ; + +static const flex_int16_t yy_def[773] = + { 0, + 666, 666, 666, 3, 667, 667, 668, 668, 669, 669, + 666, 11, 670, 670, 666, 15, 666, 666, 666, 666, + 671, 672, 673, 666, 666, 666, 674, 674, 675, 676, + 677, 676, 676, 676, 676, 676, 676, 676, 676, 676, + 676, 676, 676, 676, 676, 666, 666, 674, 678, 679, + 680, 681, 682, 683, 683, 683, 56, 56, 56, 56, + 56, 56, 56, 56, 56, 56, 56, 56, 666, 666, + 666, 684, 685, 666, 666, 666, 666, 686, 666, 666, + 687, 688, 688, 666, 689, 666, 666, 666, 666, 666, + 666, 666, 690, 666, 666, 666, 691, 692, 666, 666, + + 666, 666, 666, 666, 666, 693, 694, 666, 666, 695, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 696, 696, 696, 696, 696, 696, 696, + 696, 696, 696, 666, 666, 697, 698, 699, 666, 666, + 666, 700, 700, 701, 702, 666, 703, 704, 703, 703, + 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, + 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, + 705, 706, 707, 708, 706, 709, 666, 707, 710, 708, + 708, 711, 712, 703, 713, 713, 186, 186, 186, 186, + 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, + + 186, 186, 186, 186, 186, 186, 186, 714, 666, 715, + 716, 666, 666, 717, 718, 719, 666, 720, 720, 666, + 721, 666, 722, 666, 723, 666, 724, 725, 666, 726, + 666, 727, 666, 728, 729, 730, 730, 731, 730, 732, + 666, 733, 666, 666, 734, 666, 666, 666, 666, 666, + 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, + 736, 737, 666, 666, 666, 738, 666, 666, 666, 666, + 739, 740, 741, 742, 743, 744, 745, 746, 746, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, + + 746, 747, 666, 666, 740, 666, 748, 749, 750, 750, + 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, + 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, + 310, 310, 751, 752, 666, 753, 666, 754, 666, 755, + 666, 756, 666, 757, 758, 759, 759, 759, 759, 759, + 759, 666, 760, 761, 666, 762, 763, 764, 745, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, + 746, 746, 746, 748, 748, 748, 310, 310, 310, 310, + 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, + + 310, 310, 310, 310, 310, 310, 310, 310, 310, 751, + 752, 666, 765, 666, 766, 666, 767, 666, 768, 666, + 769, 759, 759, 759, 759, 666, 770, 746, 746, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 746, 666, + 666, 310, 310, 310, 310, 310, 310, 310, 310, 310, + 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, + 751, 752, 666, 771, 759, 759, 759, 746, 746, 746, + 746, 746, 746, 746, 746, 666, 666, 746, 746, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 666, 772, + + 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, + 310, 310, 310, 310, 310, 310, 759, 759, 759, 666, + 666, 746, 746, 746, 746, 746, 666, 666, 746, 746, + 746, 666, 666, 666, 666, 746, 746, 746, 746, 746, + 746, 746, 772, 666, 772, 310, 310, 310, 310, 310, + 310, 310, 310, 310, 310, 759, 759, 746, 746, 746, + 746, 666, 666, 746, 746, 746, 746, 746, 746, 666, + 666, 746, 746, 772, 310, 310, 310, 310, 310, 310, + 310, 759, 759, 746, 666, 666, 746, 746, 746, 746, + 746, 666, 666, 746, 666, 666, 666, 666, 310, 310, + + 759, 759, 746, 666, 666, 746, 746, 746, 746, 746, + 310, 310, 759, 759, 746, 746, 666, 666, 746, 746, + 746, 310, 759, 746, 746, 746, 746, 746, 310, 759, + 746, 666, 666, 746, 746, 746, 310, 746, 746, 746, + 310, 746, 746, 746, 310, 746, 746, 746, 310, 666, + 666, 746, 746, 310, 746, 746, 310, 746, 746, 310, + 746, 310, 746, 310, 666, 0, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666 + } ; + +static const flex_int16_t yy_nxt[4952] = + { 0, + 18, 19, 20, 19, 21, 18, 22, 23, 18, 24, + 18, 18, 18, 25, 26, 18, 27, 28, 29, 30, + 30, 30, 31, 18, 18, 18, 28, 28, 28, 32, + 30, 33, 34, 35, 36, 37, 30, 38, 30, 30, + 39, 40, 30, 30, 41, 30, 42, 43, 44, 45, + 30, 30, 30, 30, 30, 18, 18, 18, 28, 30, + 18, 32, 30, 33, 34, 35, 36, 37, 30, 38, + 30, 39, 40, 30, 30, 41, 30, 42, 43, 44, + 45, 30, 30, 30, 30, 46, 47, 48, 18, 49, + 20, 49, 21, 18, 22, 23, 18, 24, 18, 18, + + 18, 50, 51, 18, 52, 28, 29, 30, 30, 30, + 53, 18, 18, 18, 28, 28, 28, 54, 55, 56, + 57, 58, 59, 60, 55, 61, 55, 55, 62, 63, + 55, 55, 64, 55, 65, 66, 67, 68, 55, 55, + 55, 55, 55, 18, 18, 18, 28, 30, 18, 54, + 55, 56, 57, 58, 59, 60, 55, 61, 55, 62, + 63, 55, 55, 64, 55, 65, 66, 67, 68, 55, + 55, 55, 55, 46, 47, 48, 69, 70, 71, 70, + 69, 72, 73, 69, 69, 69, 69, 69, 74, 69, + 69, 75, 69, 69, 76, 69, 69, 69, 69, 69, + + 69, 77, 69, 69, 69, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 79, 69, 80, 69, 69, 81, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 69, 69, 69, 83, 83, 86, 86, 86, 86, + 86, 86, 88, 143, 665, 84, 84, 88, 144, 89, + 89, 89, 247, 248, 89, 89, 89, 90, 91, 92, + 91, 90, 90, 90, 90, 90, 90, 90, 90, 90, + + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 90, 90, 90, 90, 90, 90, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 90, 90, 90, 95, 96, 95, 176, 97, + 176, 640, 177, 177, 98, 99, 100, 333, 333, 101, + 95, 96, 95, 216, 97, 334, 334, 217, 262, 98, + + 99, 100, 263, 623, 101, 102, 103, 104, 103, 105, + 106, 102, 107, 108, 109, 110, 111, 112, 113, 114, + 115, 116, 102, 117, 118, 119, 119, 102, 120, 121, + 122, 123, 102, 102, 124, 125, 126, 127, 128, 125, + 125, 125, 129, 125, 125, 125, 125, 130, 131, 125, + 125, 125, 132, 133, 125, 125, 125, 125, 125, 125, + 134, 102, 135, 102, 102, 136, 124, 125, 126, 127, + 128, 125, 125, 125, 129, 125, 125, 125, 130, 131, + 125, 125, 125, 132, 133, 125, 125, 125, 125, 125, + 102, 102, 102, 149, 150, 619, 156, 152, 153, 154, + + 155, 158, 159, 306, 157, 161, 166, 666, 151, 162, + 168, 209, 170, 252, 169, 307, 160, 164, 222, 222, + 222, 167, 163, 601, 253, 149, 150, 152, 156, 153, + 154, 155, 158, 165, 159, 157, 226, 161, 166, 151, + 229, 162, 168, 170, 252, 180, 169, 160, 171, 164, + 171, 539, 167, 163, 181, 253, 216, 148, 148, 148, + 217, 173, 210, 173, 165, 224, 224, 224, 262, 174, + 142, 142, 263, 142, 142, 142, 142, 142, 142, 142, + 142, 142, 142, 143, 142, 142, 230, 227, 144, 224, + 224, 224, 254, 142, 142, 142, 142, 142, 142, 175, + + 147, 183, 147, 176, 256, 184, 184, 147, 257, 147, + 244, 244, 175, 147, 183, 147, 176, 186, 184, 184, + 147, 255, 147, 254, 530, 142, 142, 142, 142, 142, + 142, 233, 306, 234, 241, 256, 185, 275, 185, 257, + 185, 244, 244, 245, 307, 147, 209, 190, 142, 186, + 185, 255, 191, 226, 185, 142, 142, 142, 147, 175, + 147, 183, 147, 176, 189, 184, 184, 147, 185, 147, + 185, 260, 185, 245, 185, 187, 185, 196, 190, 185, + 242, 185, 235, 191, 193, 185, 438, 192, 195, 188, + 185, 197, 194, 185, 189, 258, 198, 210, 185, 429, + + 199, 288, 203, 260, 227, 147, 185, 187, 185, 196, + 185, 185, 185, 200, 355, 289, 193, 204, 192, 195, + 188, 185, 197, 194, 185, 185, 258, 259, 198, 201, + 185, 278, 199, 288, 203, 246, 246, 246, 355, 185, + 185, 185, 185, 185, 200, 202, 205, 289, 204, 339, + 206, 229, 236, 207, 185, 237, 185, 185, 259, 364, + 279, 201, 278, 450, 238, 236, 237, 238, 238, 238, + 185, 280, 185, 281, 185, 451, 202, 355, 205, 264, + 265, 264, 206, 355, 207, 185, 267, 185, 269, 270, + 269, 279, 219, 271, 272, 270, 272, 230, 219, 273, + + 340, 212, 280, 238, 281, 238, 266, 266, 267, 266, + 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, + 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, + 266, 266, 266, 266, 266, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 266, 266, 266, 266, 266, 266, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 266, 266, 266, 282, 283, 284, 285, 448, 287, + + 290, 291, 292, 241, 294, 296, 297, 298, 299, 300, + 286, 295, 293, 301, 176, 499, 176, 500, 177, 177, + 303, 304, 303, 557, 185, 282, 283, 284, 448, 285, + 287, 290, 291, 346, 292, 294, 296, 297, 298, 299, + 300, 286, 295, 293, 301, 171, 176, 171, 176, 242, + 177, 177, 176, 557, 176, 185, 177, 177, 173, 183, + 173, 176, 209, 184, 184, 346, 174, 142, 305, 304, + 305, 142, 142, 142, 142, 142, 142, 142, 142, 142, + 142, 142, 142, 544, 306, 142, 313, 185, 666, 328, + 142, 142, 142, 142, 142, 142, 307, 181, 384, 385, + + 148, 148, 148, 277, 175, 147, 183, 147, 176, 180, + 184, 184, 147, 210, 147, 347, 277, 313, 185, 302, + 328, 139, 142, 142, 142, 142, 142, 142, 302, 147, + 310, 147, 302, 311, 545, 314, 147, 185, 185, 185, + 302, 175, 147, 183, 147, 176, 347, 184, 184, 147, + 147, 147, 142, 142, 142, 315, 250, 312, 316, 568, + 185, 310, 318, 185, 311, 320, 314, 185, 185, 185, + 185, 317, 319, 249, 147, 185, 309, 321, 322, 185, + 185, 185, 243, 185, 327, 323, 315, 147, 312, 568, + 316, 185, 185, 318, 185, 324, 329, 320, 185, 349, + + 185, 185, 317, 233, 319, 234, 185, 309, 321, 322, + 185, 185, 185, 325, 185, 327, 231, 323, 330, 361, + 326, 185, 331, 185, 368, 185, 324, 329, 544, 185, + 349, 185, 185, 332, 185, 222, 222, 222, 224, 224, + 224, 335, 335, 220, 325, 337, 337, 341, 341, 330, + 361, 326, 185, 331, 235, 368, 185, 246, 246, 246, + 185, 343, 343, 219, 332, 185, 264, 265, 264, 238, + 348, 350, 219, 351, 336, 238, 352, 352, 338, 545, + 342, 238, 238, 238, 238, 238, 238, 238, 238, 360, + 238, 238, 238, 365, 344, 238, 238, 366, 238, 238, + + 238, 367, 348, 350, 336, 351, 362, 363, 338, 353, + 342, 269, 270, 269, 412, 412, 271, 303, 304, 303, + 238, 360, 238, 216, 344, 365, 238, 217, 238, 366, + 269, 270, 269, 367, 238, 271, 238, 362, 363, 353, + 266, 266, 267, 266, 266, 266, 266, 266, 266, 266, + 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, + 266, 266, 266, 266, 266, 266, 266, 266, 266, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 266, 266, 266, 266, 266, + + 266, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 266, 266, 266, 272, 270, + 272, 369, 370, 273, 371, 372, 373, 374, 213, 375, + 376, 377, 378, 379, 212, 380, 381, 382, 383, 305, + 304, 305, 141, 185, 414, 414, 394, 396, 185, 146, + 389, 390, 369, 370, 141, 371, 372, 373, 139, 374, + 375, 376, 377, 302, 378, 379, 380, 381, 666, 382, + 383, 666, 302, 147, 185, 147, 302, 394, 396, 185, + 147, 389, 390, 391, 302, 175, 147, 183, 147, 176, + + 185, 184, 184, 147, 185, 147, 175, 147, 183, 147, + 176, 392, 184, 184, 147, 185, 147, 185, 185, 387, + 416, 416, 393, 364, 395, 391, 398, 185, 147, 397, + 185, 185, 185, 388, 185, 185, 185, 399, 400, 666, + 401, 147, 185, 392, 422, 403, 185, 185, 185, 185, + 666, 387, 147, 417, 393, 395, 666, 398, 185, 666, + 397, 185, 185, 185, 388, 185, 402, 185, 399, 666, + 400, 401, 404, 185, 405, 422, 403, 209, 185, 185, + 185, 185, 185, 417, 406, 423, 407, 408, 409, 418, + 418, 410, 410, 185, 185, 185, 424, 402, 411, 411, + + 420, 420, 425, 428, 404, 430, 405, 426, 426, 431, + 185, 185, 185, 185, 432, 406, 423, 407, 433, 408, + 409, 434, 666, 435, 436, 185, 185, 424, 210, 437, + 439, 440, 441, 425, 428, 216, 430, 442, 443, 217, + 444, 431, 445, 446, 447, 432, 449, 384, 385, 666, + 433, 666, 666, 434, 435, 436, 185, 450, 666, 452, + 437, 439, 185, 440, 441, 185, 666, 455, 442, 451, + 443, 185, 444, 445, 446, 447, 460, 449, 185, 453, + 454, 429, 185, 185, 456, 666, 185, 185, 185, 185, + 452, 457, 666, 185, 458, 185, 185, 459, 461, 455, + + 185, 499, 185, 500, 185, 185, 463, 460, 438, 185, + 453, 462, 454, 185, 185, 185, 456, 185, 185, 185, + 185, 465, 457, 466, 468, 458, 185, 464, 459, 666, + 461, 185, 185, 185, 185, 185, 185, 463, 185, 185, + 467, 666, 209, 462, 472, 472, 185, 470, 475, 185, + 225, 225, 469, 465, 466, 468, 471, 471, 476, 464, + 228, 228, 479, 185, 185, 185, 473, 473, 477, 185, + 185, 467, 232, 232, 240, 240, 261, 261, 470, 478, + 475, 216, 469, 480, 483, 217, 481, 482, 484, 476, + 485, 666, 488, 210, 479, 486, 486, 486, 489, 477, + + 490, 666, 491, 492, 493, 487, 494, 495, 496, 497, + 478, 498, 185, 505, 501, 480, 483, 481, 482, 484, + 502, 504, 485, 488, 185, 666, 503, 666, 506, 489, + 185, 185, 490, 491, 492, 493, 185, 494, 666, 495, + 496, 497, 498, 185, 505, 501, 486, 486, 486, 185, + 666, 508, 502, 504, 517, 185, 487, 503, 185, 185, + 506, 185, 185, 507, 185, 185, 185, 185, 510, 185, + 509, 512, 511, 513, 666, 514, 515, 666, 185, 518, + 185, 185, 185, 508, 519, 185, 517, 185, 185, 185, + 185, 516, 234, 234, 507, 185, 185, 185, 522, 510, + + 185, 509, 512, 511, 523, 513, 524, 514, 515, 185, + 518, 525, 185, 185, 526, 519, 185, 529, 185, 185, + 531, 666, 516, 520, 520, 520, 527, 527, 527, 522, + 486, 486, 486, 521, 537, 523, 528, 524, 536, 538, + 487, 540, 541, 525, 542, 185, 526, 546, 556, 529, + 666, 531, 532, 532, 532, 534, 534, 534, 520, 520, + 520, 666, 533, 548, 666, 535, 537, 185, 521, 536, + 538, 185, 540, 541, 185, 542, 185, 549, 546, 556, + 547, 527, 527, 527, 185, 558, 532, 532, 532, 666, + 551, 528, 185, 530, 666, 548, 533, 185, 185, 185, + + 550, 185, 185, 555, 185, 185, 534, 534, 534, 549, + 185, 547, 552, 185, 666, 185, 535, 558, 185, 559, + 185, 553, 551, 185, 561, 185, 554, 560, 185, 539, + 185, 550, 185, 574, 555, 185, 520, 520, 520, 666, + 564, 185, 565, 552, 185, 185, 521, 666, 666, 185, + 559, 185, 553, 566, 567, 561, 185, 554, 569, 560, + 527, 527, 527, 562, 562, 562, 572, 532, 532, 532, + 528, 564, 573, 563, 565, 185, 185, 533, 534, 534, + 534, 570, 570, 570, 545, 566, 567, 185, 535, 569, + 576, 571, 562, 562, 562, 575, 185, 185, 572, 582, + + 577, 578, 563, 185, 573, 583, 185, 185, 580, 579, + 570, 570, 570, 584, 666, 185, 581, 666, 185, 587, + 571, 588, 576, 185, 666, 666, 575, 185, 185, 589, + 582, 185, 577, 578, 185, 590, 591, 583, 185, 579, + 580, 585, 585, 585, 594, 584, 185, 544, 581, 185, + 587, 586, 666, 588, 185, 562, 562, 562, 666, 185, + 589, 599, 185, 666, 602, 563, 590, 666, 591, 592, + 592, 592, 570, 570, 570, 594, 595, 595, 595, 593, + 185, 606, 571, 597, 597, 597, 596, 585, 585, 585, + 185, 600, 599, 598, 185, 602, 603, 586, 545, 592, + + 592, 592, 595, 595, 595, 597, 597, 597, 607, 593, + 608, 666, 596, 606, 609, 598, 610, 666, 585, 585, + 585, 666, 613, 600, 614, 185, 185, 603, 586, 604, + 604, 604, 612, 592, 592, 592, 615, 666, 185, 605, + 607, 185, 608, 593, 185, 609, 616, 610, 595, 595, + 595, 597, 597, 597, 613, 611, 614, 185, 596, 620, + 624, 598, 185, 612, 604, 604, 604, 621, 615, 185, + 185, 625, 185, 626, 605, 185, 622, 616, 617, 617, + 617, 627, 628, 185, 617, 617, 617, 611, 618, 619, + 629, 620, 624, 185, 618, 630, 666, 631, 621, 634, + + 635, 185, 636, 625, 626, 632, 632, 632, 622, 638, + 666, 639, 627, 628, 185, 633, 637, 666, 185, 185, + 641, 629, 642, 643, 632, 632, 632, 630, 631, 644, + 634, 645, 635, 636, 633, 646, 647, 652, 185, 648, + 653, 638, 639, 185, 655, 649, 666, 666, 637, 185, + 185, 641, 185, 642, 656, 643, 666, 185, 657, 658, + 644, 654, 659, 645, 663, 661, 646, 647, 652, 185, + 665, 648, 653, 666, 185, 655, 649, 650, 650, 650, + 650, 650, 650, 185, 666, 656, 660, 651, 185, 657, + 651, 658, 654, 662, 659, 663, 185, 661, 185, 185, + + 185, 666, 666, 666, 664, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 660, 666, + 666, 666, 666, 666, 666, 662, 666, 185, 666, 185, + 185, 185, 666, 666, 666, 664, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 85, 85, 85, 85, + 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, + 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, + 85, 85, 85, 85, 85, 85, 87, 87, 87, 87, + + 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, + 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, + 87, 87, 87, 87, 87, 87, 94, 94, 94, 94, + 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, + 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, + 94, 94, 94, 94, 94, 94, 137, 666, 666, 666, + 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, + 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, + 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 140, 140, 140, 140, + 140, 140, 140, 142, 142, 666, 142, 142, 142, 142, + 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, + 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, + 142, 142, 142, 145, 145, 145, 145, 145, 145, 145, + 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, + 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, + 145, 145, 145, 147, 147, 147, 666, 666, 147, 147, + 666, 147, 666, 666, 666, 147, 147, 147, 147, 147, + + 147, 147, 147, 148, 148, 666, 666, 666, 666, 666, + 148, 148, 148, 148, 148, 148, 148, 172, 666, 172, + 666, 666, 666, 666, 172, 172, 666, 172, 666, 666, + 666, 666, 172, 666, 666, 666, 666, 172, 172, 172, + 172, 172, 172, 172, 175, 666, 175, 666, 175, 666, + 175, 666, 666, 666, 666, 666, 666, 175, 175, 175, + 175, 175, 175, 175, 178, 666, 666, 178, 178, 666, + 178, 178, 178, 666, 666, 666, 666, 178, 178, 178, + 178, 178, 178, 178, 179, 179, 666, 179, 179, 179, + 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, + + 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, + 179, 179, 179, 179, 182, 666, 666, 666, 666, 182, + 666, 666, 182, 182, 666, 666, 666, 666, 666, 182, + 182, 182, 182, 182, 182, 182, 185, 185, 185, 185, + 185, 666, 185, 185, 666, 185, 666, 666, 666, 185, + 185, 185, 185, 185, 185, 185, 185, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 211, 211, 211, + 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, + + 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, + 211, 211, 211, 211, 211, 211, 211, 214, 666, 214, + 214, 666, 666, 666, 666, 666, 214, 214, 214, 214, + 214, 214, 214, 214, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 218, 218, 218, 218, 218, 218, + 218, 218, 666, 218, 218, 218, 218, 218, 218, 218, + 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + 218, 218, 218, 218, 221, 666, 666, 666, 221, 221, + + 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, + 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, + 221, 221, 221, 221, 223, 223, 666, 223, 223, 666, + 666, 666, 666, 666, 223, 223, 223, 223, 223, 223, + 223, 223, 225, 225, 225, 225, 225, 225, 666, 225, + 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, + 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, + 225, 225, 228, 228, 228, 228, 228, 228, 228, 228, + 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, + 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, + + 228, 228, 232, 232, 232, 232, 232, 232, 232, 232, + 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, + 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, + 232, 232, 239, 666, 239, 666, 666, 666, 666, 239, + 239, 239, 239, 239, 666, 666, 666, 666, 239, 239, + 239, 239, 239, 239, 239, 239, 239, 240, 240, 240, + 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, + 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, + 240, 240, 240, 240, 240, 240, 240, 251, 251, 666, + 666, 666, 666, 666, 251, 251, 251, 251, 251, 251, + + 251, 251, 261, 261, 261, 261, 261, 261, 261, 261, + 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, + 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, + 261, 261, 137, 137, 137, 137, 137, 137, 137, 137, + 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, + 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, + 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 142, 142, 666, 142, 142, 142, 142, 142, + + 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, + 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, + 142, 142, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 276, 276, 666, 276, 276, 276, 276, 276, + 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, + 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, + 276, 276, 147, 147, 147, 666, 666, 147, 147, 666, + 147, 666, 666, 666, 147, 147, 147, 147, 147, 147, + + 147, 147, 148, 148, 148, 666, 666, 666, 666, 148, + 148, 148, 148, 148, 148, 148, 172, 666, 172, 666, + 666, 666, 666, 172, 172, 666, 172, 666, 666, 666, + 666, 172, 666, 666, 666, 666, 172, 172, 172, 172, + 172, 172, 172, 175, 666, 175, 666, 175, 666, 175, + 666, 666, 666, 666, 666, 666, 175, 175, 175, 175, + 175, 175, 175, 178, 178, 666, 178, 178, 178, 666, + 666, 666, 666, 178, 178, 178, 178, 178, 178, 178, + 181, 666, 666, 666, 666, 181, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 181, 181, 181, 181, 181, + + 181, 181, 302, 666, 666, 666, 302, 666, 302, 666, + 302, 666, 302, 666, 666, 302, 302, 666, 666, 302, + 302, 302, 302, 302, 302, 302, 179, 179, 179, 179, + 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, + 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, + 179, 179, 179, 179, 179, 179, 182, 666, 666, 666, + 666, 666, 666, 182, 182, 666, 666, 182, 182, 182, + 666, 666, 666, 666, 182, 182, 182, 182, 182, 182, + 182, 308, 666, 666, 666, 308, 308, 308, 308, 308, + 666, 308, 308, 666, 308, 308, 666, 666, 308, 308, + + 308, 308, 308, 308, 308, 308, 185, 185, 185, 185, + 185, 666, 185, 185, 666, 185, 666, 666, 666, 185, + 185, 185, 185, 185, 185, 185, 185, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 666, 208, + 666, 666, 666, 666, 666, 666, 208, 666, 666, 666, + 666, 208, 666, 208, 208, 666, 666, 208, 208, 211, + 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, + 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, + + 211, 211, 211, 211, 211, 211, 211, 211, 211, 214, + 666, 214, 214, 666, 666, 666, 666, 666, 214, 214, + 214, 214, 214, 214, 214, 214, 215, 215, 215, 215, + 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 215, 215, 215, 666, 666, 666, + 666, 666, 666, 215, 666, 666, 666, 666, 215, 666, + 215, 215, 666, 666, 215, 215, 666, 666, 215, 218, + 218, 218, 218, 218, 218, 218, 218, 666, 218, 218, + 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + + 218, 218, 218, 218, 218, 218, 218, 218, 218, 221, + 666, 666, 666, 221, 221, 221, 221, 221, 221, 221, + 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, + 221, 221, 221, 221, 221, 221, 221, 221, 221, 223, + 223, 666, 223, 223, 666, 666, 666, 666, 666, 223, + 223, 223, 223, 223, 223, 223, 223, 225, 225, 225, + 225, 225, 225, 666, 225, 225, 225, 225, 225, 225, + 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, + 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, + 666, 666, 666, 666, 666, 666, 225, 666, 666, 666, + + 666, 666, 666, 666, 225, 666, 666, 225, 666, 225, + 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, + 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, + 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, + 228, 228, 228, 666, 666, 666, 666, 666, 666, 228, + 666, 666, 666, 666, 666, 666, 666, 228, 666, 666, + 228, 666, 228, 232, 232, 232, 232, 232, 232, 232, + 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, + 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, + 232, 232, 232, 234, 234, 234, 234, 234, 234, 234, + + 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, + 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, + 234, 234, 234, 232, 232, 232, 666, 666, 666, 666, + 666, 666, 232, 666, 666, 666, 666, 666, 666, 666, + 232, 666, 666, 232, 666, 232, 239, 666, 666, 666, + 666, 666, 666, 239, 239, 666, 239, 239, 666, 666, + 666, 666, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 238, 666, 666, 666, 666, 666, 666, 238, 238, + 666, 238, 238, 666, 666, 666, 666, 238, 238, 238, + 238, 238, 238, 238, 238, 238, 240, 240, 240, 240, + + 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, + 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, + 240, 240, 240, 240, 240, 240, 240, 240, 240, 666, + 666, 666, 666, 666, 666, 240, 666, 666, 666, 666, + 666, 666, 666, 240, 666, 666, 240, 666, 240, 345, + 345, 666, 666, 666, 666, 666, 345, 345, 345, 251, + 251, 666, 666, 666, 666, 666, 251, 251, 251, 251, + 251, 251, 251, 251, 261, 261, 261, 261, 261, 261, + 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, + 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, + + 261, 261, 261, 261, 261, 666, 261, 666, 666, 666, + 666, 666, 666, 261, 666, 666, 666, 666, 666, 666, + 666, 261, 666, 666, 261, 666, 261, 666, 261, 266, + 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, + 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, + 266, 266, 266, 266, 266, 266, 266, 266, 266, 354, + 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, + 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, + 354, 354, 354, 354, 354, 354, 354, 354, 354, 142, + 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, + + 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, + 142, 142, 142, 142, 142, 142, 142, 142, 142, 356, + 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, + 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, + 356, 356, 356, 356, 356, 356, 356, 356, 356, 357, + 357, 666, 357, 357, 357, 357, 357, 357, 357, 357, + 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + 357, 357, 357, 357, 357, 357, 357, 357, 357, 358, + 358, 666, 358, 358, 358, 358, 358, 358, 358, 358, + 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + + 358, 358, 358, 358, 358, 358, 358, 358, 358, 276, + 276, 666, 276, 276, 276, 276, 276, 276, 276, 276, + 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, + 276, 276, 276, 276, 276, 276, 276, 276, 276, 359, + 359, 666, 359, 359, 359, 359, 359, 359, 359, 359, + 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + 359, 359, 359, 359, 359, 359, 359, 359, 359, 147, + 147, 147, 666, 666, 147, 147, 666, 147, 666, 666, + 666, 147, 147, 147, 147, 147, 147, 147, 147, 302, + 666, 666, 666, 302, 666, 302, 666, 302, 666, 302, + + 666, 666, 302, 302, 666, 666, 302, 302, 302, 302, + 302, 302, 302, 386, 386, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 386, 386, 386, 386, 386, 386, 386, 308, 666, + 666, 666, 308, 308, 308, 308, 308, 666, 308, 308, + 666, 308, 308, 666, 666, 308, 308, 308, 308, 308, + 308, 308, 308, 185, 185, 185, 185, 185, 666, 185, + 185, 666, 185, 666, 666, 666, 185, 185, 185, 185, + 185, 185, 185, 185, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 413, 413, 666, 666, 666, 666, + 666, 413, 413, 413, 415, 415, 666, 666, 666, 666, + 666, 415, 415, 415, 234, 234, 234, 666, 666, 666, + 666, 666, 666, 234, 666, 666, 666, 666, 666, 666, + 666, 234, 666, 666, 234, 666, 234, 419, 419, 666, + 666, 666, 666, 666, 419, 419, 419, 421, 421, 666, + + 666, 666, 666, 666, 421, 421, 421, 345, 345, 666, + 666, 666, 666, 666, 345, 345, 345, 251, 251, 666, + 666, 666, 666, 666, 251, 251, 251, 251, 251, 251, + 251, 251, 427, 427, 666, 666, 666, 666, 666, 427, + 427, 427, 354, 354, 354, 354, 354, 354, 354, 354, + 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, + 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, + 354, 354, 356, 356, 356, 356, 356, 356, 356, 356, + 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, + 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, + + 356, 356, 357, 357, 666, 357, 357, 357, 357, 357, + 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + 357, 357, 358, 358, 666, 358, 358, 358, 358, 358, + 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + 358, 358, 225, 225, 666, 666, 666, 666, 666, 225, + 225, 225, 228, 228, 666, 666, 666, 666, 666, 228, + 228, 228, 474, 474, 666, 666, 666, 666, 666, 474, + 474, 474, 232, 232, 666, 666, 666, 666, 666, 232, + + 232, 232, 240, 240, 666, 666, 666, 666, 666, 240, + 240, 240, 261, 261, 666, 666, 666, 666, 666, 261, + 261, 261, 234, 234, 666, 666, 666, 666, 666, 234, + 234, 234, 543, 543, 543, 543, 543, 543, 543, 543, + 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, + 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, + 543, 543, 17, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666 + } ; + +static const flex_int16_t yy_chk[4952] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 5, 6, 7, 7, 7, 8, + 8, 8, 9, 27, 663, 5, 6, 10, 27, 9, + 9, 9, 121, 121, 10, 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, 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, 13, 13, 13, 50, 13, + 50, 636, 50, 50, 13, 13, 13, 210, 210, 13, + 14, 14, 14, 81, 14, 216, 216, 81, 136, 14, + + 14, 14, 136, 614, 14, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 32, 33, 608, 38, 34, 35, 36, + + 37, 39, 40, 181, 38, 41, 43, 181, 33, 41, + 44, 72, 45, 124, 44, 181, 40, 42, 89, 89, + 89, 43, 41, 582, 126, 32, 33, 34, 38, 35, + 36, 37, 39, 42, 40, 38, 97, 41, 43, 33, + 98, 41, 44, 45, 124, 53, 44, 40, 49, 42, + 49, 495, 43, 41, 53, 126, 215, 53, 53, 53, + 215, 49, 72, 49, 42, 95, 95, 95, 261, 49, + 52, 52, 261, 52, 52, 52, 52, 52, 52, 52, + 52, 52, 52, 52, 52, 52, 98, 97, 52, 96, + 96, 96, 127, 52, 52, 52, 52, 52, 52, 54, + + 54, 54, 54, 54, 129, 54, 54, 54, 130, 54, + 118, 118, 55, 55, 55, 55, 55, 54, 55, 55, + 55, 128, 55, 127, 488, 52, 52, 52, 52, 52, + 52, 106, 306, 106, 110, 129, 58, 144, 59, 130, + 57, 244, 244, 118, 306, 54, 208, 58, 144, 54, + 58, 128, 59, 225, 57, 52, 52, 52, 55, 56, + 56, 56, 56, 56, 57, 56, 56, 56, 58, 56, + 59, 133, 57, 118, 62, 56, 60, 63, 58, 61, + 110, 58, 106, 59, 61, 57, 371, 60, 62, 56, + 60, 63, 61, 61, 57, 131, 64, 208, 66, 361, + + 64, 159, 66, 133, 225, 56, 62, 56, 60, 63, + 64, 61, 66, 64, 356, 160, 61, 66, 60, 62, + 56, 60, 63, 61, 61, 65, 131, 132, 64, 65, + 66, 149, 64, 159, 66, 119, 119, 119, 354, 65, + 68, 64, 67, 66, 64, 65, 67, 160, 66, 234, + 67, 228, 107, 68, 68, 107, 67, 65, 132, 281, + 150, 65, 149, 450, 107, 107, 107, 107, 107, 107, + 65, 151, 68, 152, 67, 450, 65, 273, 67, 137, + 137, 137, 67, 271, 68, 68, 266, 67, 141, 141, + 141, 150, 219, 141, 143, 143, 143, 228, 218, 143, + + 234, 211, 151, 107, 152, 107, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 153, 154, 155, 157, 382, 158, + + 161, 162, 163, 240, 164, 165, 166, 167, 168, 169, + 157, 164, 163, 170, 172, 451, 172, 451, 172, 172, + 178, 178, 178, 519, 193, 153, 154, 155, 382, 157, + 158, 161, 162, 252, 163, 164, 165, 166, 167, 168, + 169, 157, 164, 163, 170, 171, 175, 171, 175, 240, + 175, 175, 177, 519, 177, 193, 177, 177, 171, 184, + 171, 184, 471, 184, 184, 252, 171, 179, 179, 179, + 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, + 179, 179, 179, 500, 182, 179, 190, 190, 180, 203, + 179, 179, 179, 179, 179, 179, 182, 182, 307, 307, + + 182, 182, 182, 182, 185, 185, 185, 185, 185, 174, + 185, 185, 185, 471, 185, 253, 148, 190, 190, 183, + 203, 138, 179, 179, 179, 179, 179, 179, 183, 183, + 187, 183, 183, 188, 500, 191, 183, 191, 187, 188, + 183, 186, 186, 186, 186, 186, 253, 186, 186, 186, + 185, 186, 179, 179, 179, 192, 123, 189, 194, 538, + 192, 187, 195, 189, 188, 197, 191, 195, 191, 187, + 188, 194, 196, 122, 183, 194, 186, 198, 199, 198, + 199, 197, 117, 196, 202, 200, 192, 186, 189, 538, + 194, 192, 202, 195, 189, 200, 204, 197, 195, 257, + + 200, 204, 194, 232, 196, 232, 194, 186, 198, 199, + 198, 199, 197, 201, 196, 202, 105, 200, 205, 279, + 201, 201, 206, 202, 285, 205, 200, 204, 543, 206, + 257, 200, 204, 207, 207, 222, 222, 222, 224, 224, + 224, 227, 227, 84, 201, 230, 230, 235, 235, 205, + 279, 201, 201, 206, 232, 285, 205, 246, 246, 246, + 206, 242, 242, 83, 207, 207, 264, 264, 264, 236, + 255, 259, 82, 260, 227, 237, 262, 262, 230, 543, + 235, 236, 236, 239, 236, 236, 236, 237, 237, 278, + 237, 237, 237, 282, 242, 239, 239, 283, 239, 239, + + 239, 284, 255, 259, 227, 260, 280, 280, 230, 262, + 235, 269, 269, 269, 335, 335, 269, 303, 303, 303, + 236, 278, 236, 472, 242, 282, 237, 472, 237, 283, + 270, 270, 270, 284, 239, 270, 239, 280, 280, 262, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 272, 272, + 272, 286, 287, 272, 288, 289, 290, 291, 76, 292, + 293, 294, 295, 296, 73, 298, 299, 300, 301, 305, + 305, 305, 51, 311, 337, 337, 316, 318, 318, 29, + 311, 311, 286, 287, 26, 288, 289, 290, 22, 291, + 292, 293, 294, 308, 295, 296, 298, 299, 17, 300, + 301, 0, 308, 308, 311, 308, 308, 316, 318, 318, + 308, 311, 311, 313, 308, 309, 309, 309, 309, 309, + + 313, 309, 309, 309, 312, 309, 310, 310, 310, 310, + 310, 314, 310, 310, 310, 317, 310, 320, 314, 309, + 340, 340, 315, 312, 317, 313, 320, 319, 308, 319, + 321, 313, 315, 310, 328, 312, 323, 321, 322, 0, + 323, 309, 325, 314, 347, 325, 317, 322, 320, 314, + 0, 309, 310, 340, 315, 317, 0, 320, 319, 0, + 319, 321, 324, 315, 310, 328, 324, 323, 321, 0, + 322, 323, 326, 325, 327, 347, 325, 333, 322, 326, + 329, 327, 330, 340, 329, 348, 330, 331, 332, 341, + 341, 333, 333, 324, 331, 332, 350, 324, 334, 334, + + 343, 343, 351, 360, 326, 362, 327, 352, 352, 363, + 326, 329, 327, 330, 364, 329, 348, 330, 366, 331, + 332, 367, 0, 368, 369, 331, 332, 350, 333, 370, + 372, 373, 374, 351, 360, 334, 362, 375, 376, 334, + 377, 363, 378, 379, 381, 364, 383, 384, 384, 0, + 366, 385, 385, 367, 368, 369, 387, 386, 386, 387, + 370, 372, 388, 373, 374, 391, 0, 392, 375, 386, + 376, 389, 377, 378, 379, 381, 398, 383, 392, 389, + 390, 388, 394, 390, 393, 0, 395, 387, 396, 397, + 387, 394, 0, 388, 395, 393, 391, 396, 399, 392, + + 401, 499, 389, 499, 406, 399, 401, 398, 397, 392, + 389, 400, 390, 394, 390, 404, 393, 395, 400, 396, + 397, 403, 394, 404, 407, 395, 393, 402, 396, 0, + 399, 401, 403, 405, 402, 406, 399, 401, 408, 409, + 405, 0, 410, 400, 411, 411, 404, 409, 422, 400, + 412, 412, 408, 403, 404, 407, 410, 410, 423, 402, + 414, 414, 429, 403, 405, 402, 416, 416, 424, 408, + 409, 405, 418, 418, 420, 420, 426, 426, 409, 428, + 422, 411, 408, 430, 433, 411, 431, 432, 434, 423, + 435, 0, 437, 410, 429, 436, 436, 436, 438, 424, + + 439, 0, 440, 441, 442, 436, 443, 444, 446, 447, + 428, 448, 452, 456, 452, 430, 433, 431, 432, 434, + 453, 455, 435, 437, 454, 0, 454, 0, 457, 438, + 455, 453, 439, 440, 441, 442, 457, 443, 0, 444, + 446, 447, 448, 452, 456, 452, 458, 458, 458, 466, + 0, 460, 453, 455, 475, 454, 458, 454, 460, 459, + 457, 455, 453, 459, 461, 464, 462, 457, 462, 463, + 461, 464, 463, 465, 0, 467, 468, 0, 470, 476, + 466, 465, 467, 460, 477, 458, 475, 468, 469, 460, + 459, 469, 473, 473, 459, 461, 464, 462, 479, 462, + + 463, 461, 464, 463, 480, 465, 481, 467, 468, 470, + 476, 482, 465, 467, 483, 477, 458, 485, 468, 469, + 489, 0, 469, 478, 478, 478, 484, 484, 484, 479, + 486, 486, 486, 478, 493, 480, 484, 481, 492, 494, + 486, 496, 497, 482, 498, 502, 483, 502, 517, 485, + 0, 489, 490, 490, 490, 491, 491, 491, 501, 501, + 501, 0, 490, 504, 0, 491, 493, 504, 501, 492, + 494, 503, 496, 497, 507, 498, 502, 506, 502, 517, + 503, 505, 505, 505, 506, 522, 508, 508, 508, 0, + 511, 505, 510, 507, 0, 504, 508, 501, 504, 511, + + 510, 516, 503, 516, 512, 507, 509, 509, 509, 506, + 513, 503, 512, 514, 0, 506, 509, 522, 515, 523, + 505, 514, 511, 510, 525, 508, 515, 524, 501, 513, + 511, 510, 516, 545, 516, 512, 520, 520, 520, 0, + 530, 513, 531, 512, 514, 509, 520, 0, 0, 515, + 523, 505, 514, 536, 537, 525, 508, 515, 539, 524, + 527, 527, 527, 529, 529, 529, 541, 532, 532, 532, + 527, 530, 542, 529, 531, 548, 509, 532, 534, 534, + 534, 540, 540, 540, 545, 536, 537, 546, 534, 539, + 547, 540, 549, 549, 549, 546, 552, 547, 541, 556, + + 550, 551, 549, 550, 542, 557, 548, 551, 554, 552, + 553, 553, 553, 558, 0, 554, 555, 0, 546, 561, + 553, 564, 547, 555, 0, 0, 546, 552, 547, 565, + 556, 549, 550, 551, 550, 566, 567, 557, 551, 552, + 554, 559, 559, 559, 569, 558, 554, 574, 555, 553, + 561, 559, 0, 564, 555, 562, 562, 562, 0, 576, + 565, 577, 549, 0, 583, 562, 566, 0, 567, 568, + 568, 568, 570, 570, 570, 569, 572, 572, 572, 568, + 553, 588, 570, 573, 573, 573, 572, 575, 575, 575, + 576, 578, 577, 573, 578, 583, 584, 575, 574, 579, + + 579, 579, 580, 580, 580, 581, 581, 581, 589, 579, + 590, 0, 580, 588, 591, 581, 594, 0, 585, 585, + 585, 0, 601, 578, 602, 578, 575, 584, 585, 587, + 587, 587, 600, 592, 592, 592, 603, 0, 579, 587, + 589, 580, 590, 592, 581, 591, 606, 594, 595, 595, + 595, 597, 597, 597, 601, 599, 602, 575, 595, 609, + 615, 597, 599, 600, 604, 604, 604, 610, 603, 579, + 611, 616, 580, 619, 604, 581, 612, 606, 607, 607, + 607, 620, 621, 612, 617, 617, 617, 599, 607, 611, + 622, 609, 615, 599, 617, 623, 0, 624, 610, 626, + + 627, 611, 628, 616, 619, 625, 625, 625, 612, 634, + 0, 635, 620, 621, 612, 625, 629, 0, 637, 629, + 637, 622, 638, 639, 632, 632, 632, 623, 624, 640, + 626, 641, 627, 628, 632, 642, 643, 647, 641, 644, + 648, 634, 635, 645, 652, 645, 0, 0, 629, 637, + 629, 637, 649, 638, 653, 639, 0, 654, 654, 655, + 640, 649, 656, 641, 661, 658, 642, 643, 647, 641, + 664, 644, 648, 0, 645, 652, 645, 646, 646, 646, + 650, 650, 650, 649, 0, 653, 657, 646, 654, 654, + 650, 655, 649, 660, 656, 661, 657, 658, 662, 664, + + 660, 0, 0, 0, 662, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 657, 0, + 0, 0, 0, 0, 0, 660, 0, 657, 0, 662, + 664, 660, 0, 0, 0, 662, 667, 667, 667, 667, + 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, + 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, + 667, 667, 667, 667, 667, 667, 668, 668, 668, 668, + 668, 668, 668, 668, 668, 668, 668, 668, 668, 668, + 668, 668, 668, 668, 668, 668, 668, 668, 668, 668, + 668, 668, 668, 668, 668, 668, 669, 669, 669, 669, + + 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, + 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, + 669, 669, 669, 669, 669, 669, 670, 670, 670, 670, + 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, + 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, + 670, 670, 670, 670, 670, 670, 671, 0, 0, 0, + 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, + 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, + 671, 671, 671, 671, 671, 671, 672, 672, 672, 672, + 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, + + 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, + 672, 672, 672, 672, 672, 672, 673, 673, 673, 673, + 673, 673, 673, 674, 674, 0, 674, 674, 674, 674, + 674, 674, 674, 674, 674, 674, 674, 674, 674, 674, + 674, 674, 674, 674, 674, 674, 674, 674, 674, 674, + 674, 674, 674, 675, 675, 675, 675, 675, 675, 675, + 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, + 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, + 675, 675, 675, 676, 676, 676, 0, 0, 676, 676, + 0, 676, 0, 0, 0, 676, 676, 676, 676, 676, + + 676, 676, 676, 677, 677, 0, 0, 0, 0, 0, + 677, 677, 677, 677, 677, 677, 677, 678, 0, 678, + 0, 0, 0, 0, 678, 678, 0, 678, 0, 0, + 0, 0, 678, 0, 0, 0, 0, 678, 678, 678, + 678, 678, 678, 678, 679, 0, 679, 0, 679, 0, + 679, 0, 0, 0, 0, 0, 0, 679, 679, 679, + 679, 679, 679, 679, 680, 0, 0, 680, 680, 0, + 680, 680, 680, 0, 0, 0, 0, 680, 680, 680, + 680, 680, 680, 680, 681, 681, 0, 681, 681, 681, + 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, + + 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, + 681, 681, 681, 681, 682, 0, 0, 0, 0, 682, + 0, 0, 682, 682, 0, 0, 0, 0, 0, 682, + 682, 682, 682, 682, 682, 682, 683, 683, 683, 683, + 683, 0, 683, 683, 0, 683, 0, 0, 0, 683, + 683, 683, 683, 683, 683, 683, 683, 684, 684, 684, + 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, + 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, + 684, 684, 684, 684, 684, 684, 684, 685, 685, 685, + 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, + + 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, + 685, 685, 685, 685, 685, 685, 685, 686, 0, 686, + 686, 0, 0, 0, 0, 0, 686, 686, 686, 686, + 686, 686, 686, 686, 687, 687, 687, 687, 687, 687, + 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, + 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, + 687, 687, 687, 687, 688, 688, 688, 688, 688, 688, + 688, 688, 0, 688, 688, 688, 688, 688, 688, 688, + 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, + 688, 688, 688, 688, 689, 0, 0, 0, 689, 689, + + 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, + 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, + 689, 689, 689, 689, 690, 690, 0, 690, 690, 0, + 0, 0, 0, 0, 690, 690, 690, 690, 690, 690, + 690, 690, 691, 691, 691, 691, 691, 691, 0, 691, + 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, + 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, + 691, 691, 692, 692, 692, 692, 692, 692, 692, 692, + 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, + 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, + + 692, 692, 693, 693, 693, 693, 693, 693, 693, 693, + 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, + 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, + 693, 693, 694, 0, 694, 0, 0, 0, 0, 694, + 694, 694, 694, 694, 0, 0, 0, 0, 694, 694, + 694, 694, 694, 694, 694, 694, 694, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 696, 696, 0, + 0, 0, 0, 0, 696, 696, 696, 696, 696, 696, + + 696, 696, 697, 697, 697, 697, 697, 697, 697, 697, + 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, + 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, + 697, 697, 698, 698, 698, 698, 698, 698, 698, 698, + 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, + 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, + 698, 698, 699, 699, 699, 699, 699, 699, 699, 699, + 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, + 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, + 699, 699, 700, 700, 0, 700, 700, 700, 700, 700, + + 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, + 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, + 700, 700, 701, 701, 701, 701, 701, 701, 701, 701, + 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, + 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, + 701, 701, 702, 702, 0, 702, 702, 702, 702, 702, + 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, + 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, + 702, 702, 703, 703, 703, 0, 0, 703, 703, 0, + 703, 0, 0, 0, 703, 703, 703, 703, 703, 703, + + 703, 703, 704, 704, 704, 0, 0, 0, 0, 704, + 704, 704, 704, 704, 704, 704, 705, 0, 705, 0, + 0, 0, 0, 705, 705, 0, 705, 0, 0, 0, + 0, 705, 0, 0, 0, 0, 705, 705, 705, 705, + 705, 705, 705, 706, 0, 706, 0, 706, 0, 706, + 0, 0, 0, 0, 0, 0, 706, 706, 706, 706, + 706, 706, 706, 707, 707, 0, 707, 707, 707, 0, + 0, 0, 0, 707, 707, 707, 707, 707, 707, 707, + 708, 0, 0, 0, 0, 708, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 708, 708, 708, 708, 708, + + 708, 708, 709, 0, 0, 0, 709, 0, 709, 0, + 709, 0, 709, 0, 0, 709, 709, 0, 0, 709, + 709, 709, 709, 709, 709, 709, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 711, 0, 0, 0, + 0, 0, 0, 711, 711, 0, 0, 711, 711, 711, + 0, 0, 0, 0, 711, 711, 711, 711, 711, 711, + 711, 712, 0, 0, 0, 712, 712, 712, 712, 712, + 0, 712, 712, 0, 712, 712, 0, 0, 712, 712, + + 712, 712, 712, 712, 712, 712, 713, 713, 713, 713, + 713, 0, 713, 713, 0, 713, 0, 0, 0, 713, + 713, 713, 713, 713, 713, 713, 713, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 715, 0, 715, + 0, 0, 0, 0, 0, 0, 715, 0, 0, 0, + 0, 715, 0, 715, 715, 0, 0, 715, 715, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + + 716, 716, 716, 716, 716, 716, 716, 716, 716, 717, + 0, 717, 717, 0, 0, 0, 0, 0, 717, 717, + 717, 717, 717, 717, 717, 717, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 719, 0, 0, 0, + 0, 0, 0, 719, 0, 0, 0, 0, 719, 0, + 719, 719, 0, 0, 719, 719, 0, 0, 719, 720, + 720, 720, 720, 720, 720, 720, 720, 0, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + + 720, 720, 720, 720, 720, 720, 720, 720, 720, 721, + 0, 0, 0, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 722, + 722, 0, 722, 722, 0, 0, 0, 0, 0, 722, + 722, 722, 722, 722, 722, 722, 722, 723, 723, 723, + 723, 723, 723, 0, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 724, 724, 724, + 0, 0, 0, 0, 0, 0, 724, 0, 0, 0, + + 0, 0, 0, 0, 724, 0, 0, 724, 0, 724, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 726, 726, 726, 0, 0, 0, 0, 0, 0, 726, + 0, 0, 0, 0, 0, 0, 0, 726, 0, 0, + 726, 0, 726, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 728, 728, 728, 728, 728, 728, 728, + + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 729, 729, 729, 0, 0, 0, 0, + 0, 0, 729, 0, 0, 0, 0, 0, 0, 0, + 729, 0, 0, 729, 0, 729, 730, 0, 0, 0, + 0, 0, 0, 730, 730, 0, 730, 730, 0, 0, + 0, 0, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 731, 0, 0, 0, 0, 0, 0, 731, 731, + 0, 731, 731, 0, 0, 0, 0, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 732, 732, 732, 732, + + 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, + 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, + 732, 732, 732, 732, 732, 732, 733, 733, 733, 0, + 0, 0, 0, 0, 0, 733, 0, 0, 0, 0, + 0, 0, 0, 733, 0, 0, 733, 0, 733, 734, + 734, 0, 0, 0, 0, 0, 734, 734, 734, 735, + 735, 0, 0, 0, 0, 0, 735, 735, 735, 735, + 735, 735, 735, 735, 736, 736, 736, 736, 736, 736, + 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, + 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, + + 736, 736, 736, 736, 737, 0, 737, 0, 0, 0, + 0, 0, 0, 737, 0, 0, 0, 0, 0, 0, + 0, 737, 0, 0, 737, 0, 737, 0, 737, 738, + 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, + 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, + 738, 738, 738, 738, 738, 738, 738, 738, 738, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 742, + 742, 0, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 743, + 743, 0, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + + 743, 743, 743, 743, 743, 743, 743, 743, 743, 744, + 744, 0, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 745, + 745, 0, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 746, + 746, 746, 0, 0, 746, 746, 0, 746, 0, 0, + 0, 746, 746, 746, 746, 746, 746, 746, 746, 747, + 0, 0, 0, 747, 0, 747, 0, 747, 0, 747, + + 0, 0, 747, 747, 0, 0, 747, 747, 747, 747, + 747, 747, 747, 748, 748, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 748, 748, 748, 748, 748, 748, 748, 749, 0, + 0, 0, 749, 749, 749, 749, 749, 0, 749, 749, + 0, 749, 749, 0, 0, 749, 749, 749, 749, 749, + 749, 749, 749, 750, 750, 750, 750, 750, 0, 750, + 750, 0, 750, 0, 0, 0, 750, 750, 750, 750, + 750, 750, 750, 750, 751, 751, 751, 751, 751, 751, + 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, + + 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, + 751, 751, 751, 751, 752, 752, 752, 752, 752, 752, + 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, + 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, + 752, 752, 752, 752, 753, 753, 0, 0, 0, 0, + 0, 753, 753, 753, 754, 754, 0, 0, 0, 0, + 0, 754, 754, 754, 755, 755, 755, 0, 0, 0, + 0, 0, 0, 755, 0, 0, 0, 0, 0, 0, + 0, 755, 0, 0, 755, 0, 755, 756, 756, 0, + 0, 0, 0, 0, 756, 756, 756, 757, 757, 0, + + 0, 0, 0, 0, 757, 757, 757, 758, 758, 0, + 0, 0, 0, 0, 758, 758, 758, 759, 759, 0, + 0, 0, 0, 0, 759, 759, 759, 759, 759, 759, + 759, 759, 760, 760, 0, 0, 0, 0, 0, 760, + 760, 760, 761, 761, 761, 761, 761, 761, 761, 761, + 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, + 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, + 761, 761, 762, 762, 762, 762, 762, 762, 762, 762, + 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, + 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, + + 762, 762, 763, 763, 0, 763, 763, 763, 763, 763, + 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, + 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, + 763, 763, 764, 764, 0, 764, 764, 764, 764, 764, + 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, + 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, + 764, 764, 765, 765, 0, 0, 0, 0, 0, 765, + 765, 765, 766, 766, 0, 0, 0, 0, 0, 766, + 766, 766, 767, 767, 0, 0, 0, 0, 0, 767, + 767, 767, 768, 768, 0, 0, 0, 0, 0, 768, + + 768, 768, 769, 769, 0, 0, 0, 0, 0, 769, + 769, 769, 770, 770, 0, 0, 0, 0, 0, 770, + 770, 770, 771, 771, 0, 0, 0, 0, 0, 771, + 771, 771, 772, 772, 772, 772, 772, 772, 772, 772, + 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, + 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, + 772, 772, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, + 666 + } ; + +/* Table of booleans, true if rule could match eol. */ +static const flex_int32_t yy_rule_can_match_eol[122] = + { 0, +0, 0, 0, 0, 1, 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, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, + 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 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 "lexer.l" +#line 2 "lexer.l" + /* Lex file for rsyslog config format v2 (RainerScript). + * Please note: this file introduces the new config format, but maintains + * backward compatibility. In order to do so, the grammar is not 100% clean, + * but IMHO still sufficiently easy both to understand for programmers + * maitaining the code as well as users writing the config file. Users are, + * of course, encouraged to use new constructs only. But it needs to be noted + * that some of the legacy constructs (specifically the in-front-of-action + * PRI filter) are very hard to beat in ease of use, at least for simpler + * cases. So while we hope that cfsysline support can be dropped some time in + * the future, we will probably keep these useful constructs. + * + * Copyright 2011-2014 Rainer Gerhards and Adiscon GmbH. + * + * This file is part of the rsyslog runtime library. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * -or- + * see COPYING.ASL20 in the source distribution + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <libestr.h> +#include <ctype.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> +#include <fcntl.h> +#include "rsyslog.h" +#include "srUtils.h" +#include "parserif.h" + +PRAGMA_IGNORE_Wsign_compare +PRAGMA_IGNORE_Wmissing_noreturn + +FILE *fp_rs_full_conf_output = NULL; + +/* TODO: move this to a better modules, refactor -- rgerhards, 2018-01-22 */ +static char * +read_file(const char *const filename) +{ + char *content = NULL; + int fd = -1; + struct stat sb; + ssize_t nread; + assert(filename != NULL); + + if((fd = open((const char*) filename, O_RDONLY)) == -1) { + goto done; + } + + if(fstat(fd, &sb) == -1) { + goto done; + } + + content = malloc(sb.st_size+1); + if(content == NULL) { + goto done; + } + + nread = read(fd, content, sb.st_size); + content[nread] = '\0'; + if(nread != (ssize_t) sb.st_size) { + free(content); + content = NULL; + goto done; + } + +done: + if(fd != -1) { + close(fd); + } + return content; +} + +static es_str_t* ATTR_NONNULL(1) +expand_backticks_echo(const char *param) +{ + assert(param != NULL); + assert(strncmp(param, "echo ", sizeof("echo ")-1) == 0); + char envvar[512]; + int i_envvar = 0; + int in_env = 0; + es_str_t *estr; + + param += sizeof("echo ")-1; + if((estr = es_newStr(strlen(param))) == NULL) { + goto done; + } + + while(*param) { + if(in_env) { + if(isspace(*param) || *param == '/') { + envvar[i_envvar] = '\0'; + const char *envval = getenv(envvar); + if(envval != NULL) + es_addBuf(&estr, envval, strlen(envval)); + es_addChar(&estr, *param); /* curr char part of output! */ + i_envvar = 0; + in_env = 0; + } else if(i_envvar > sizeof(envvar) - 1) { + parser_errmsg("environment variable too long, begins with %s", envvar); + goto done; + } else { + envvar[i_envvar++] = *param; + } + } else if (*param == '$') { + in_env = 1; + } else { + es_addChar(&estr, *param); + } + ++param; + } + + /* final check, we may be in env var name (very probable!) */ + if(in_env) { + envvar[i_envvar] = '\0'; + const char *envval = getenv(envvar); + if(envval != NULL) + es_addBuf(&estr, envval, strlen(envval)); + } + +done: return estr; +} + + +static es_str_t* ATTR_NONNULL(1) +expand_backticks(char *const param) +{ + es_str_t *estr; + assert(param != NULL); + + if(strncmp(param, "echo ", sizeof("echo ")-1) == 0) { + estr = expand_backticks_echo(param); + } else if(strncmp(param, "cat ", sizeof("cat ")-1) == 0) { + const char *val = read_file(param+4); + if(val == NULL) { + parser_errmsg("file could not be accessed for `%s`", param); + const char *errmsg = "/* file cound not be accessed - see" + "error messages */"; + estr = es_newStrFromCStr(errmsg, strlen(errmsg)); + } else { + estr = es_newStrFromCStr(val, strlen(val)); + } + free((void*) val); + } else { + parser_errmsg("invalid backtick parameter `%s` - replaced by " + "empty string (\"\")", param); + estr = es_newStr(1); + } + + return estr; +} +#line 1974 "lexer.c" +#line 172 "lexer.l" + /*%option noyywrap nodefault case-insensitive */ +/* avoid compiler warning: `yyunput' defined but not used */ +#define YY_NO_INPUT 1 + + /* INOBJ is selected if we are inside an object (name/value pairs!) */ + + /* COMMENT is "the usual trick" to handle C-style comments */ + + /* INCL is in $IncludeConfig processing (skip to include file) */ + + /* LINENO: support for setting the linenumber */ + + /* INCALL: support for the call statement */ + + /* IN_PROCEDURE_CALL: support for the call statement */ + + /* EXPR is a bit ugly, but we need it to support pre v6-syntax. The problem + * is that cfsysline statement start with $..., the same like variables in + * an expression. However, cfsysline statements can never appear inside an + * expression. So we create a specific expr mode, which is turned on after + * we lexed a keyword that needs to be followed by an expression (using + * knowledge from the upper layer...). In expr mode, we strictly do + * expression-based parsing. Expr mode is stopped when we reach a token + * that can not be part of an expression (currently only "then"). As I + * wrote this ugly, but the price needed to pay in order to remain + * compatible to the previous format. + */ +#include <ctype.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <strings.h> +#include <libestr.h> +#include "rainerscript.h" +#include "parserif.h" +#include "grammar.h" +static int preCommentState; /* save for lex state before a comment */ + +struct bufstack { + struct bufstack *prev; + YY_BUFFER_STATE bs; + int lineno; + char *fn; + es_str_t *estr; +} *currbs = NULL; + +char *cnfcurrfn; /* name of currently processed file */ + +int popfile(void); +int cnfSetLexFile(const char *fname); + +static void cnfPrintToken(const char *token); +extern int yydebug; + +/* somehow, I need these prototype even though the headers are + * included. I guess that's some autotools magic I don't understand... + */ +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) \ + && !defined(__DragonflyBSD__) && !defined(_AIX) +int fileno(FILE *stream); +#endif + + +#line 2039 "lexer.c" +#line 2040 "lexer.c" + +#define INITIAL 0 +#define INOBJ 1 +#define COMMENT 2 +#define INCL 3 +#define LINENO 4 +#define INCALL 5 +#define IN_PROCEDURE_CALL 6 +#define EXPR 7 + +#ifndef YY_NO_UNISTD_H +/* Special case for "unistd.h", since it is non-ANSI. We include it way + * down here because we want the user's section 1 to have been scanned first. + * The user has a chance to override it with an option. + */ +#include <unistd.h> +#endif + +#ifndef YY_EXTRA_TYPE +#define YY_EXTRA_TYPE void * +#endif + +static int yy_init_globals ( void ); + +/* Accessor methods to globals. + These are made visible to non-reentrant scanners for convenience. */ + +int yylex_destroy ( void ); + +int yyget_debug ( void ); + +void yyset_debug ( int debug_flag ); + +YY_EXTRA_TYPE yyget_extra ( void ); + +void yyset_extra ( YY_EXTRA_TYPE user_defined ); + +FILE *yyget_in ( void ); + +void yyset_in ( FILE * _in_str ); + +FILE *yyget_out ( void ); + +void yyset_out ( FILE * _out_str ); + + int yyget_leng ( void ); + +char *yyget_text ( void ); + +int yyget_lineno ( void ); + +void yyset_lineno ( int _line_number ); + +/* Macros after this point can all be overridden by user definitions in + * section 1. + */ + +#ifndef YY_SKIP_YYWRAP +#ifdef __cplusplus +extern "C" int yywrap ( void ); +#else +extern int yywrap ( void ); +#endif +#endif + +#ifndef YY_NO_UNPUT + +#endif + +#ifndef yytext_ptr +static void yy_flex_strncpy ( char *, const char *, int ); +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen ( const char * ); +#endif + +#ifndef YY_NO_INPUT +#ifdef __cplusplus +static int yyinput ( void ); +#else +static int input ( void ); +#endif + +#endif + +/* Amount of stuff to slurp up with each read. */ +#ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k */ +#define YY_READ_BUF_SIZE 16384 +#else +#define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ +#endif + +/* Copy whatever the last rule matched to the standard output. */ +#ifndef ECHO +/* This used to be an fputs(), but since the string might contain NUL's, + * we now use fwrite(). + */ +#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) +#endif + +/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, + * is returned in "result". + */ +#ifndef YY_INPUT +#define YY_INPUT(buf,result,max_size) \ + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ + { \ + int c = '*'; \ + int n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else \ + { \ + errno=0; \ + while ( (result = (int) fread(buf, 1, (yy_size_t) 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();" - + * we don't want an extra ';' after the "return" because that will cause + * some compilers to complain about unreachable statements. + */ +#ifndef yyterminate +#define yyterminate() return YY_NULL +#endif + +/* Number of entries by which start-condition stack grows. */ +#ifndef YY_START_STACK_INCR +#define YY_START_STACK_INCR 25 +#endif + +/* Report a fatal error. */ +#ifndef YY_FATAL_ERROR +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) +#endif + +/* end tables serialization structures and prototypes */ + +/* Default declaration of generated scanner - a define so the user can + * easily add parameters. + */ +#ifndef YY_DECL +#define YY_DECL_IS_OURS 1 + +extern int 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. + */ +#ifndef YY_USER_ACTION +#define YY_USER_ACTION +#endif + +/* Code executed at the end of each rule. */ +#ifndef YY_BREAK +#define YY_BREAK /*LINTED*/break; +#endif + +#define YY_RULE_SETUP \ + if ( yyleng > 0 ) \ + 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 +{ + yy_state_type yy_current_state; + char *yy_cp, *yy_bp; + int yy_act; + + if ( !(yy_init) ) + { + (yy_init) = 1; + +#ifdef YY_USER_INIT + YY_USER_INIT; +#endif + + if ( ! (yy_start) ) + (yy_start) = 1; /* first start state */ + + if ( ! yyin ) + yyin = stdin; + + if ( ! yyout ) + yyout = stdout; + + if ( ! YY_CURRENT_BUFFER ) { + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer( yyin, YY_BUF_SIZE ); + } + + yy_load_buffer_state( ); + } + + { +#line 240 "lexer.l" + + +#line 243 "lexer.l" + /* keywords */ +#line 2270 "lexer.c" + + while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ + { + yy_cp = (yy_c_buf_p); + + /* Support of yytext. */ + *yy_cp = (yy_hold_char); + + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; + + yy_current_state = (yy_start); + yy_current_state += YY_AT_BOL(); +yy_match: + do + { + 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 >= 667 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + ++yy_cp; + } + while ( yy_base[yy_current_state] != 4863 ); + +yy_find_action: + yy_act = yy_accept[yy_current_state]; + if ( yy_act == 0 ) + { /* have to back up */ + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + yy_act = yy_accept[yy_current_state]; + } + + YY_DO_BEFORE_ACTION; + + 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++; +; + } + +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 244 "lexer.l" +{ cnfPrintToken(yytext); BEGIN EXPR; return IF; } + YY_BREAK +case 2: +YY_RULE_SETUP +#line 245 "lexer.l" +{ cnfPrintToken(yytext); BEGIN EXPR; return FOREACH; } + YY_BREAK +case 3: +YY_RULE_SETUP +#line 246 "lexer.l" +{ cnfPrintToken(yytext); BEGIN IN_PROCEDURE_CALL; return RELOAD_LOOKUP_TABLE_PROCEDURE; } + YY_BREAK +case 4: +YY_RULE_SETUP +#line 247 "lexer.l" +{ cnfPrintToken(yytext); return yytext[0]; } + YY_BREAK +case 5: +/* rule 5 can match eol */ +YY_RULE_SETUP +#line 248 "lexer.l" +{ + cnfPrintToken(yytext); yytext[yyleng-1] = '\0'; + unescapeStr((uchar*)yytext+1, yyleng-2); + yylval.estr = es_newStrFromBuf(yytext+1, strlen(yytext)-1); + return STRING; } + YY_BREAK +case 6: +/* rule 6 can match eol */ +YY_RULE_SETUP +#line 253 "lexer.l" +{ + cnfPrintToken(yytext); yytext[yyleng-1] = '\0'; + unescapeStr((uchar*)yytext+1, yyleng-2); + yylval.estr = es_newStrFromBuf(yytext+1, strlen(yytext)-1); + return STRING; } + YY_BREAK +case 7: +YY_RULE_SETUP +#line 258 "lexer.l" +{ cnfPrintToken(yytext); return yytext[0]; } + YY_BREAK +case 8: +YY_RULE_SETUP +#line 259 "lexer.l" +{ cnfPrintToken(yytext); BEGIN INITIAL; return yytext[0]; } + YY_BREAK +case 9: +/* rule 9 can match eol */ +YY_RULE_SETUP +#line 260 "lexer.l" +{cnfPrintToken(yytext); } + YY_BREAK +case 10: +YY_RULE_SETUP +#line 261 "lexer.l" +{ cnfPrintToken(yytext); parser_errmsg("invalid character '%s' in expression " + "- is there an invalid escape sequence somewhere?", + yytext); } + YY_BREAK +case 11: +YY_RULE_SETUP +#line 264 "lexer.l" +{ cnfPrintToken(yytext); BEGIN EXPR; return yytext[0]; } + YY_BREAK +case 12: +YY_RULE_SETUP +#line 265 "lexer.l" +{ cnfPrintToken(yytext); BEGIN INITIAL; return THEN; } + YY_BREAK +case 13: +YY_RULE_SETUP +#line 266 "lexer.l" +{ cnfPrintToken(yytext); BEGIN INITIAL; return DO; } + YY_BREAK +case 14: +YY_RULE_SETUP +#line 267 "lexer.l" +{ cnfPrintToken(yytext); BEGIN INITIAL; return ';'; } + YY_BREAK +case 15: +YY_RULE_SETUP +#line 268 "lexer.l" +{ cnfPrintToken(yytext); return OR; } + YY_BREAK +case 16: +YY_RULE_SETUP +#line 269 "lexer.l" +{ cnfPrintToken(yytext); return AND; } + YY_BREAK +case 17: +YY_RULE_SETUP +#line 270 "lexer.l" +{ cnfPrintToken(yytext); return NOT; } + YY_BREAK +case 18: +#line 272 "lexer.l" +case 19: +#line 273 "lexer.l" +case 20: +#line 274 "lexer.l" +case 21: +#line 275 "lexer.l" +case 22: +#line 276 "lexer.l" +case 23: +#line 277 "lexer.l" +case 24: +#line 278 "lexer.l" +case 25: +#line 279 "lexer.l" +case 26: +#line 280 "lexer.l" +case 27: +#line 281 "lexer.l" +case 28: +YY_RULE_SETUP +#line 281 "lexer.l" +{ cnfPrintToken(yytext); return yytext[0]; } + YY_BREAK +case 29: +YY_RULE_SETUP +#line 282 "lexer.l" +{ cnfPrintToken(yytext); return CMP_EQ; } + YY_BREAK +case 30: +YY_RULE_SETUP +#line 283 "lexer.l" +{ cnfPrintToken(yytext); return CMP_LE; } + YY_BREAK +case 31: +YY_RULE_SETUP +#line 284 "lexer.l" +{ cnfPrintToken(yytext); return CMP_GE; } + YY_BREAK +case 32: +#line 286 "lexer.l" +case 33: +YY_RULE_SETUP +#line 286 "lexer.l" +{ cnfPrintToken(yytext); return CMP_NE; } + YY_BREAK +case 34: +YY_RULE_SETUP +#line 287 "lexer.l" +{ cnfPrintToken(yytext); return CMP_LT; } + YY_BREAK +case 35: +YY_RULE_SETUP +#line 288 "lexer.l" +{ cnfPrintToken(yytext); return CMP_GT; } + YY_BREAK +case 36: +YY_RULE_SETUP +#line 289 "lexer.l" +{ cnfPrintToken(yytext); return CMP_CONTAINS; } + YY_BREAK +case 37: +YY_RULE_SETUP +#line 290 "lexer.l" +{ cnfPrintToken(yytext); return ITERATOR_ASSIGNMENT; } + YY_BREAK +case 38: +YY_RULE_SETUP +#line 291 "lexer.l" +{ cnfPrintToken(yytext); return CMP_CONTAINSI; } + YY_BREAK +case 39: +YY_RULE_SETUP +#line 292 "lexer.l" +{ cnfPrintToken(yytext); return CMP_STARTSWITH; } + YY_BREAK +case 40: +YY_RULE_SETUP +#line 293 "lexer.l" +{ cnfPrintToken(yytext); return CMP_STARTSWITHI; } + YY_BREAK +case 41: +#line 295 "lexer.l" +case 42: +#line 296 "lexer.l" +case 43: +YY_RULE_SETUP +#line 296 "lexer.l" +{ cnfPrintToken(yytext); yylval.n = strtoll(yytext, NULL, 0); return NUMBER; } + YY_BREAK +case 44: +YY_RULE_SETUP +#line 297 "lexer.l" +{ cnfPrintToken(yytext); yylval.s = strdup(yytext+1); return VAR; } + YY_BREAK +case 45: +/* rule 45 can match eol */ +YY_RULE_SETUP +#line 298 "lexer.l" +{ + cnfPrintToken(yytext); yytext[yyleng-1] = '\0'; + unescapeStr((uchar*)yytext+1, yyleng-2); + yylval.estr = es_newStrFromBuf(yytext+1, strlen(yytext)-1); + return STRING; } + YY_BREAK +case 46: +/* rule 46 can match eol */ +YY_RULE_SETUP +#line 303 "lexer.l" +{ + cnfPrintToken(yytext); yytext[yyleng-1] = '\0'; + unescapeStr((uchar*)yytext+1, yyleng-2); + yylval.estr = expand_backticks(yytext+1); + return STRING; } + YY_BREAK +case 47: +/* rule 47 can match eol */ +YY_RULE_SETUP +#line 308 "lexer.l" +{ + cnfPrintToken(yytext); yytext[yyleng-1] = '\0'; + unescapeStr((uchar*)yytext+1, yyleng-2); + yylval.estr = es_newStrFromBuf(yytext+1, strlen(yytext)-1); + return STRING; } + YY_BREAK +case 48: +/* rule 48 can match eol */ +YY_RULE_SETUP +#line 313 "lexer.l" +{ + cnfPrintToken(yytext); parser_errmsg("$-sign in double quotes must be " + "escaped, problem string is: %s", + yytext); } + YY_BREAK +case 49: +/* rule 49 can match eol */ +YY_RULE_SETUP +#line 317 "lexer.l" +{ cnfPrintToken(yytext); } + YY_BREAK +case 50: +YY_RULE_SETUP +#line 318 "lexer.l" +{ cnfPrintToken(yytext); return EXISTS; } /* special case function (see rainerscript.c) */ + YY_BREAK +case 51: +YY_RULE_SETUP +#line 319 "lexer.l" +{ cnfPrintToken(yytext); yylval.estr = es_newStrFromCStr(yytext, yyleng); + return FUNC; } + YY_BREAK +case 52: +YY_RULE_SETUP +#line 321 "lexer.l" +{ cnfPrintToken(yytext); parser_errmsg("invalid character '%s' in expression " + "- is there an invalid escape sequence somewhere?", + yytext); } + YY_BREAK +case 53: +/* rule 53 can match eol */ +YY_RULE_SETUP +#line 324 "lexer.l" +{ cnfPrintToken(yytext); } + YY_BREAK +case 54: +YY_RULE_SETUP +#line 325 "lexer.l" +{ cnfPrintToken(yytext); parser_errmsg("invalid character '%s' in 'call' statement" + "- is there an invalid escape sequence somewhere?", + yytext); } + YY_BREAK +case 55: +YY_RULE_SETUP +#line 328 "lexer.l" +{ cnfPrintToken(yytext); yylval.estr = es_newStrFromCStr(yytext, yyleng); + BEGIN INITIAL; + return NAME; } + YY_BREAK +case 56: +YY_RULE_SETUP +#line 331 "lexer.l" +{ cnfPrintToken(yytext); return '&'; } + YY_BREAK +case 57: +YY_RULE_SETUP +#line 332 "lexer.l" +{ cnfPrintToken(yytext); return '{'; } + YY_BREAK +case 58: +YY_RULE_SETUP +#line 333 "lexer.l" +{ cnfPrintToken(yytext); return '}'; } + YY_BREAK +case 59: +YY_RULE_SETUP +#line 334 "lexer.l" +{ cnfPrintToken(yytext); return STOP; } + YY_BREAK +case 60: +YY_RULE_SETUP +#line 335 "lexer.l" +{ cnfPrintToken(yytext); return ELSE; } + YY_BREAK +case 61: +YY_RULE_SETUP +#line 336 "lexer.l" +{ cnfPrintToken(yytext); BEGIN INCALL; return CALL; } + YY_BREAK +case 62: +YY_RULE_SETUP +#line 337 "lexer.l" +{ cnfPrintToken(yytext); BEGIN EXPR; return CALL_INDIRECT; } + YY_BREAK +case 63: +YY_RULE_SETUP +#line 338 "lexer.l" +{ cnfPrintToken(yytext); BEGIN EXPR; return SET; } + YY_BREAK +case 64: +YY_RULE_SETUP +#line 339 "lexer.l" +{ cnfPrintToken(yytext); BEGIN EXPR; return RESET; } + YY_BREAK +case 65: +YY_RULE_SETUP +#line 340 "lexer.l" +{ cnfPrintToken(yytext); BEGIN EXPR; return UNSET; } + YY_BREAK +case 66: +YY_RULE_SETUP +#line 341 "lexer.l" +{ cnfPrintToken(yytext); return CONTINUE; } + YY_BREAK +/* line number support because the "preprocessor" combines lines and so needs + * to tell us the real source line. + */ +case 67: +YY_RULE_SETUP +#line 345 "lexer.l" +{ cnfPrintToken(yytext); BEGIN LINENO; } + YY_BREAK +case 68: +YY_RULE_SETUP +#line 346 "lexer.l" +{ cnfPrintToken(yytext); yylineno = atoi(yytext) - 1; } + YY_BREAK +case 69: +YY_RULE_SETUP +#line 347 "lexer.l" +{ cnfPrintToken(yytext); BEGIN INITIAL; } + YY_BREAK +case 70: +/* rule 70 can match eol */ +YY_RULE_SETUP +#line 348 "lexer.l" + + YY_BREAK +/* $IncludeConfig must be detected as part of CFSYSLINE, because this is + * always the longest match :-( + */ +case 71: +/* rule 71 can match eol */ +YY_RULE_SETUP +#line 352 "lexer.l" + + YY_BREAK +case 72: +YY_RULE_SETUP +#line 353 "lexer.l" +{ cnfPrintToken(yytext); if(cnfDoInclude(yytext, 0) != 0) + yyterminate(); + BEGIN INITIAL; } + YY_BREAK +case 73: +/* rule 73 can match eol */ +YY_RULE_SETUP +#line 356 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_MAINQ; + BEGIN INOBJ; return BEGINOBJ; } + YY_BREAK +case 74: +/* rule 74 can match eol */ +YY_RULE_SETUP +#line 358 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_TIMEZONE; + BEGIN INOBJ; return BEGINOBJ; } + YY_BREAK +case 75: +/* rule 75 can match eol */ +YY_RULE_SETUP +#line 360 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_PARSER; + BEGIN INOBJ; return BEGINOBJ; } + YY_BREAK +case 76: +/* rule 76 can match eol */ +YY_RULE_SETUP +#line 362 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_GLOBAL; + BEGIN INOBJ; return BEGINOBJ; } + YY_BREAK +case 77: +/* rule 77 can match eol */ +YY_RULE_SETUP +#line 364 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_TPL; + BEGIN INOBJ; return BEGIN_TPL; } + YY_BREAK +case 78: +/* rule 78 can match eol */ +YY_RULE_SETUP +#line 366 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_RULESET; + BEGIN INOBJ; return BEGIN_RULESET; } + YY_BREAK +case 79: +/* rule 79 can match eol */ +YY_RULE_SETUP +#line 368 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_PROPERTY; + BEGIN INOBJ; return BEGIN_PROPERTY; } + YY_BREAK +case 80: +/* rule 80 can match eol */ +YY_RULE_SETUP +#line 370 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_CONSTANT; + BEGIN INOBJ; return BEGIN_CONSTANT; } + YY_BREAK +case 81: +/* rule 81 can match eol */ +YY_RULE_SETUP +#line 372 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_INPUT; + BEGIN INOBJ; return BEGINOBJ; } + YY_BREAK +case 82: +/* rule 82 can match eol */ +YY_RULE_SETUP +#line 374 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_MODULE; + BEGIN INOBJ; return BEGINOBJ; } + YY_BREAK +case 83: +/* rule 83 can match eol */ +YY_RULE_SETUP +#line 376 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_LOOKUP_TABLE; + BEGIN INOBJ; return BEGINOBJ; } + YY_BREAK +case 84: +/* rule 84 can match eol */ +YY_RULE_SETUP +#line 378 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_DYN_STATS; + BEGIN INOBJ; return BEGINOBJ; } + YY_BREAK +case 85: +/* rule 85 can match eol */ +YY_RULE_SETUP +#line 380 "lexer.l" +{ cnfPrintToken(yytext); yylval.objType = CNFOBJ_PERCTILE_STATS; + BEGIN INOBJ; return BEGINOBJ; } + YY_BREAK +case 86: +/* rule 86 can match eol */ +YY_RULE_SETUP +#line 382 "lexer.l" +{ cnfPrintToken(yytext); BEGIN INOBJ; return BEGIN_INCLUDE; } + YY_BREAK +case 87: +/* rule 87 can match eol */ +YY_RULE_SETUP +#line 383 "lexer.l" +{ cnfPrintToken(yytext); BEGIN INOBJ; return BEGIN_ACTION; } + YY_BREAK +case 88: +/* rule 88 can match eol */ +YY_RULE_SETUP +#line 384 "lexer.l" +{ + cnfPrintToken(yytext); yylval.s = strdup(rmLeadingSpace(yytext)); + dbgprintf("lexer: propfilt is '%s'\n", yylval.s); + return PROPFILT; + } + YY_BREAK +case 89: +YY_RULE_SETUP +#line 389 "lexer.l" +{ cnfPrintToken(yytext); yylval.s = strdup(rmLeadingSpace(yytext)); return PRIFILT; } + YY_BREAK +case 90: +#line 391 "lexer.l" +case 91: +#line 392 "lexer.l" +case 92: +/* rule 92 can match eol */ +#line 393 "lexer.l" +case 93: +/* rule 93 can match eol */ +#line 394 "lexer.l" +case 94: +/* rule 94 can match eol */ +#line 395 "lexer.l" +case 95: +/* rule 95 can match eol */ +#line 396 "lexer.l" +case 96: +/* rule 96 can match eol */ +YY_RULE_SETUP +#line 396 "lexer.l" +{ cnfPrintToken(yytext); yylval.s = yytext; return LEGACY_ACTION; } + YY_BREAK +case 97: +YY_RULE_SETUP +#line 397 "lexer.l" +{ cnfPrintToken(yytext); BEGIN INITIAL; return ENDOBJ; } + YY_BREAK +case 98: +YY_RULE_SETUP +#line 398 "lexer.l" +{ cnfPrintToken(yytext); yylval.estr = es_newStrFromCStr(yytext, yyleng); + return NAME; } + YY_BREAK +case 99: +#line 401 "lexer.l" +case 100: +#line 402 "lexer.l" +case 101: +#line 403 "lexer.l" +case 102: +YY_RULE_SETUP +#line 403 "lexer.l" +{ cnfPrintToken(yytext); return(yytext[0]); } + YY_BREAK +case 103: +/* rule 103 can match eol */ +YY_RULE_SETUP +#line 404 "lexer.l" +{ + cnfPrintToken(yytext); yytext[yyleng-1] = '\0'; + unescapeStr((uchar*)yytext+1, yyleng-2); + yylval.estr = es_newStrFromBuf(yytext+1, strlen(yytext)-1); + return STRING; } + YY_BREAK +case 104: +/* rule 104 can match eol */ +YY_RULE_SETUP +#line 409 "lexer.l" +{ + cnfPrintToken(yytext); yytext[yyleng-1] = '\0'; + unescapeStr((uchar*)yytext+1, yyleng-2); + yylval.estr = expand_backticks(yytext+1); + return STRING; } + YY_BREAK +/*yylval.estr = es_newStrFromBuf(yytext+1, yyleng-2); + return VALUE; }*/ +case 105: +YY_RULE_SETUP +#line 416 "lexer.l" +{ cnfPrintToken(yytext); preCommentState = YY_START; BEGIN COMMENT; } + YY_BREAK +case 106: +YY_RULE_SETUP +#line 417 "lexer.l" +{ cnfPrintToken(yytext); preCommentState = YY_START; BEGIN COMMENT; } + YY_BREAK +case 107: +YY_RULE_SETUP +#line 418 "lexer.l" +{ cnfPrintToken(yytext); preCommentState = YY_START; BEGIN COMMENT; } + YY_BREAK +case 108: +YY_RULE_SETUP +#line 419 "lexer.l" +{ cnfPrintToken(yytext); BEGIN preCommentState; } + YY_BREAK +case 109: +/* rule 109 can match eol */ +YY_RULE_SETUP +#line 420 "lexer.l" + + YY_BREAK +case 110: +*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 421 "lexer.l" +/* skip comments in input */ + YY_BREAK +case 111: +/* rule 111 can match eol */ +YY_RULE_SETUP +#line 422 "lexer.l" +{ cnfPrintToken(yytext); } + YY_BREAK +case 112: +YY_RULE_SETUP +#line 423 "lexer.l" +{ cnfPrintToken(yytext); parser_errmsg("invalid character '%s' in object definition " + "- is there an invalid escape sequence somewhere?", + yytext); } + YY_BREAK +case 113: +*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 426 "lexer.l" +{ cnfPrintToken(yytext); /* see comment on $IncludeConfig above */ + if(!strncasecmp(yytext, "$includeconfig ", 14)) { + yyless((yy_size_t)14); + BEGIN INCL; + } else if(!strncasecmp(yytext, "$ruleset ", 9)) { + yylval.s = strdup(yytext); + return LEGACY_RULESET; + } else { + cnfDoCfsysline(strdup(yytext)); + } + } + YY_BREAK +case 114: +*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 437 "lexer.l" +{ cnfPrintToken(yytext); yylval.s = strdup(yytext); return BSD_TAG_SELECTOR; } + YY_BREAK +case 115: +/* rule 115 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +YY_LINENO_REWIND_TO(yy_cp - 1); +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 438 "lexer.l" +{ cnfPrintToken(yytext); yylval.s = strdup(yytext); return BSD_HOST_SELECTOR; } + YY_BREAK +case 116: +/* rule 116 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +YY_LINENO_REWIND_TO(yy_cp - 1); +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 439 "lexer.l" +{ cnfPrintToken(yytext); yylval.s = strdup(yytext); return BSD_HOST_SELECTOR; } + YY_BREAK +case 117: +*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 440 "lexer.l" +{ cnfPrintToken(yytext); yylval.s = strdup(yytext); return BSD_HOST_SELECTOR; } + YY_BREAK +case 118: +/* rule 118 can match eol */ +YY_RULE_SETUP +#line 441 "lexer.l" +{cnfPrintToken(yytext); }/* skip comments in input */ + YY_BREAK +case 119: +/* rule 119 can match eol */ +YY_RULE_SETUP +#line 442 "lexer.l" +{cnfPrintToken(yytext); }/* drop whitespace */ + YY_BREAK +case 120: +YY_RULE_SETUP +#line 443 "lexer.l" +{ cnfPrintToken(yytext); parser_errmsg("invalid character '%s' " + "- is there an invalid escape sequence somewhere?", + yytext); } + YY_BREAK +case YY_STATE_EOF(INITIAL): +case YY_STATE_EOF(INOBJ): +case YY_STATE_EOF(COMMENT): +case YY_STATE_EOF(INCL): +case YY_STATE_EOF(LINENO): +case YY_STATE_EOF(INCALL): +case YY_STATE_EOF(IN_PROCEDURE_CALL): +case YY_STATE_EOF(EXPR): +#line 446 "lexer.l" +{ if(popfile() != 0) yyterminate(); } + YY_BREAK +case 121: +YY_RULE_SETUP +#line 448 "lexer.l" +YY_FATAL_ERROR( "flex scanner jammed" ); + YY_BREAK +#line 3030 "lexer.c" + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = (yy_hold_char); + YY_RESTORE_YY_MORE_OFFSET + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between YY_CURRENT_BUFFER and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++(yy_c_buf_p); + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = (yy_c_buf_p); + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_END_OF_FILE: + { + (yy_did_buffer_switch_on_eof) = 0; + + if ( yywrap( ) ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = + (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + (yy_c_buf_p) = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of user's declarations */ +} /* end of yylex */ + +/* yy_get_next_buffer - try to read in a new buffer + * + * Returns a code representing an action: + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ +static int yy_get_next_buffer (void) +{ + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + char *source = (yytext_ptr); + int number_to_move, i; + int ret_val; + + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1); + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; + + else + { + int num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ + + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; + + int yy_c_buf_p_offset = + (int) ((yy_c_buf_p) - b->yy_ch_buf); + + if ( b->yy_is_our_buffer ) + { + int new_size = b->yy_buf_size * 2; + + if ( new_size <= 0 ) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; + + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yyrealloc( (void *) b->yy_ch_buf, + (yy_size_t) (b->yy_buf_size + 2) ); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = NULL; + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( + "fatal error - scanner input buffer overflow" ); + + (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; + + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - + number_to_move - 1; + + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), + (yy_n_chars), num_to_read ); + + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + if ( (yy_n_chars) == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart( yyin ); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + /* Extend the array by 50%, plus the number we really need. */ + int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( + (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + /* "- 2" to take care of EOB's */ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); + } + + (yy_n_chars) += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; + + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + + return ret_val; +} + +/* yy_get_previous_state - get the state just before the EOB char was reached */ + + static yy_state_type yy_get_previous_state (void) +{ + yy_state_type yy_current_state; + char *yy_cp; + + yy_current_state = (yy_start); + yy_current_state += YY_AT_BOL(); + + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) + { + 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 >= 667 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + } + + return yy_current_state; +} + +/* yy_try_NUL_trans - try to make a transition on the NUL character + * + * synopsis + * next_state = yy_try_NUL_trans( current_state ); + */ + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) +{ + int yy_is_jam; + char *yy_cp = (yy_c_buf_p); + + 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 >= 667 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + yy_is_jam = (yy_current_state == 666); + + return yy_is_jam ? 0 : yy_current_state; +} + +#ifndef YY_NO_UNPUT + +#endif + +#ifndef YY_NO_INPUT +#ifdef __cplusplus + static int yyinput (void) +#else + static int input (void) +#endif + +{ + int c; + + *(yy_c_buf_p) = (yy_hold_char); + + if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + /* This was really a NUL. */ + *(yy_c_buf_p) = '\0'; + + else + { /* need more input */ + int offset = (int) ((yy_c_buf_p) - (yytext_ptr)); + ++(yy_c_buf_p); + + switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + yyrestart( yyin ); + + /*FALLTHROUGH*/ + + case EOB_ACT_END_OF_FILE: + { + if ( yywrap( ) ) + return 0; + + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; +#ifdef __cplusplus + return yyinput(); +#else + return input(); +#endif + } + + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = (yytext_ptr) + offset; + break; + } + } + } + + c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ + *(yy_c_buf_p) = '\0'; /* preserve yytext */ + (yy_hold_char) = *++(yy_c_buf_p); + + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); + if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol ) + + yylineno++; +; + + return c; +} +#endif /* ifndef YY_NO_INPUT */ + +/** Immediately switch to a different input stream. + * @param input_file A readable stream. + * + * @note This function does not reset the start condition to @c INITIAL . + */ + void 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( ); +} + +/** 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 ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + YY_CURRENT_BUFFER_LVALUE = new_buffer; + 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; +} + +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); +} + +/** 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) yyalloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_buf_size = size; + + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (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 ); + + return b; +} + +/** 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 ) /* Not sure if we should pop here. */ + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; + + if ( b->yy_is_our_buffer ) + yyfree( (void *) b->yy_ch_buf ); + + yyfree( (void *) b ); +} + +/* 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 ) + +{ + int oerrno = errno; + + yy_flush_buffer( b ); + + b->yy_input_file = file; + b->yy_fill_buffer = 1; + + /* If b is the current buffer, then yy_init_buffer was _probably_ + * called from yyrestart() or through yy_get_next_buffer. + * In that case, we don't want to reset the lineno or column. + */ + if (b != YY_CURRENT_BUFFER){ + b->yy_bs_lineno = 1; + b->yy_bs_column = 0; + } + + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; + + errno = oerrno; +} + +/** 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; + + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + + b->yy_buf_pos = &b->yy_ch_buf[0]; + + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; + + if ( b == YY_CURRENT_BUFFER ) + yy_load_buffer_state( ); +} + +/** Pushes the new state onto the stack. The new state becomes + * the current state. This function will allocate the stack + * if necessary. + * @param new_buffer The new state. + * + */ +void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) +{ + if (new_buffer == NULL) + return; + + yyensure_buffer_stack(); + + /* This block is copied from yy_switch_to_buffer. */ + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + /* Only push if top exists. Otherwise, replace top. */ + if (YY_CURRENT_BUFFER) + (yy_buffer_stack_top)++; + YY_CURRENT_BUFFER_LVALUE = new_buffer; + + /* copied from yy_switch_to_buffer. */ + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; +} + +/** Removes and deletes the top of the stack, if present. + * The next element becomes the new top. + * + */ +void yypop_buffer_state (void) +{ + if (!YY_CURRENT_BUFFER) + return; + + yy_delete_buffer(YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + if ((yy_buffer_stack_top) > 0) + --(yy_buffer_stack_top); + + if (YY_CURRENT_BUFFER) { + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; + } +} + +/* Allocates the stack if it does not exist. + * Guarantees space for at least one push. + */ +static void yyensure_buffer_stack (void) +{ + yy_size_t num_to_alloc; + + if (!(yy_buffer_stack)) { + + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. + */ + num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc + (num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + + (yy_buffer_stack_max) = num_to_alloc; + (yy_buffer_stack_top) = 0; + return; + } + + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ + + /* Increase the buffer to prepare for a possible push. */ + yy_size_t grow_size = 8 /* arbitrary grow size */; + + num_to_alloc = (yy_buffer_stack_max) + grow_size; + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc + ((yy_buffer_stack), + num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + /* zero only the new slots.*/ + memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); + (yy_buffer_stack_max) = num_to_alloc; + } +} + +/** Setup the input buffer state to scan directly from a user-specified character buffer. + * @param base the character buffer + * @param size the size in bytes of the character buffer + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) +{ + YY_BUFFER_STATE b; + + if ( size < 2 || + base[size-2] != YY_END_OF_BUFFER_CHAR || + base[size-1] != YY_END_OF_BUFFER_CHAR ) + /* They forgot to leave room for the EOB's. */ + return NULL; + + b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + + b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = NULL; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; + + yy_switch_to_buffer( b ); + + return b; +} + +/** 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 (const char * yystr ) +{ + + return yy_scan_bytes( yystr, (int) strlen(yystr) ); +} + +/** Setup the input buffer state to scan the given bytes. The next call to yylex() will + * scan from a @e copy of @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_bytes (const 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 = (yy_size_t) (_yybytes_len + 2); + buf = (char *) yyalloc( n ); + if ( ! buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); + + for ( i = 0; i < _yybytes_len; ++i ) + buf[i] = yybytes[i]; + + buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; + + b = yy_scan_buffer( buf, n ); + if ( ! b ) + YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); + + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; + + return b; +} + +#ifndef YY_EXIT_FAILURE +#define YY_EXIT_FAILURE 2 +#endif + +static void yynoreturn yy_fatal_error (const char* msg ) +{ + fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); +} + +/* Redefine yyless() so it works in section 3 code. */ + +#undef yyless +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up 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 ) + +/* Accessor methods (get/set functions) to struct members. */ + +/** Get the current line number. + * + */ +int yyget_lineno (void) +{ + + return yylineno; +} + +/** Get the input stream. + * + */ +FILE *yyget_in (void) +{ + return yyin; +} + +/** Get the output stream. + * + */ +FILE *yyget_out (void) +{ + return yyout; +} + +/** Get the length of the current token. + * + */ +int yyget_leng (void) +{ + return yyleng; +} + +/** Get the current token. + * + */ + +char *yyget_text (void) +{ + return yytext; +} + +/** Set the current line number. + * @param _line_number line number + * + */ +void yyset_lineno (int _line_number ) +{ + + yylineno = _line_number; +} + +/** Set the input stream. This does not discard the current + * input buffer. + * @param _in_str A readable stream. + * + * @see yy_switch_to_buffer + */ +void yyset_in (FILE * _in_str ) +{ + yyin = _in_str ; +} + +void yyset_out (FILE * _out_str ) +{ + yyout = _out_str ; +} + +int yyget_debug (void) +{ + return yy_flex_debug; +} + +void yyset_debug (int _bdebug ) +{ + yy_flex_debug = _bdebug ; +} + +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) = NULL; + (yy_buffer_stack_top) = 0; + (yy_buffer_stack_max) = 0; + (yy_c_buf_p) = NULL; + (yy_init) = 0; + (yy_start) = 0; + +/* Defined in main.c */ +#ifdef YY_STDINIT + yyin = stdin; + yyout = stdout; +#else + yyin = NULL; + yyout = NULL; +#endif + + /* 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(); + } + + /* Destroy the stack itself. */ + yyfree((yy_buffer_stack) ); + (yy_buffer_stack) = NULL; + + /* Reset the globals. This is important in a non-reentrant scanner so the next time + * yylex() is called, initialization will occur. */ + yy_init_globals( ); + + return 0; +} + +/* + * Internal utility routines. + */ + +#ifndef yytext_ptr +static void yy_flex_strncpy (char* s1, const char * s2, int n ) +{ + + int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; +} +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen (const char * s ) +{ + int n; + for ( n = 0; s[n]; ++n ) + ; + + return n; +} +#endif + +void *yyalloc (yy_size_t size ) +{ + return malloc(size); +} + +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 + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return realloc(ptr, size); +} + +void yyfree (void * ptr ) +{ + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ +} + +#define YYTABLES_NAME "yytables" + +#line 448 "lexer.l" + +static void cnfPrintToken(const char *token) +{ + if(fp_rs_full_conf_output != NULL) { + fprintf(fp_rs_full_conf_output, "%s", token); + } +} + +/* add config file or text the the stack of config objects to be + * processed. + * cnfobjname is either the file name or "text" if generated from + * text ("text" can also be replaced by something more intelligent + * by the caller. + * The provided string is freed. + */ +int ATTR_NONNULL() +cnfAddConfigBuffer(es_str_t *const str, const char *const cnfobj_name) +{ + struct bufstack *bs; + int r = 0; + assert(str != NULL); + assert(cnfobj_name != NULL); + + if((bs = malloc(sizeof(struct bufstack))) == NULL) { + r = 1; + goto done; + } + + if(currbs != NULL) + currbs->lineno = yylineno; + bs->prev = currbs; + bs->fn = strdup(cnfobj_name); + yy_size_t lll = es_strlen(str); + /* NOTE: yy_scan_buffer() does an automatic yy_switch_to_buffer to the new buffer */ + bs->bs = yy_scan_buffer((char*)es_getBufAddr(str), lll); + bs->estr = str; /* needed so we can free it later */ + currbs = bs; + cnfcurrfn = bs->fn; + yylineno = 1; + dbgprintf("config parser: pushed config fragment on top of stack: %s\n", cnfobj_name); + + if(fp_rs_full_conf_output != NULL) { + fprintf(fp_rs_full_conf_output, "\n##### BEGIN CONFIG: %s (put on stack)\n", cnfcurrfn); + } + +done: + if(r != 0) { + es_deleteStr(str); + } + return r; +} + + +/* set a new buffers. Returns 0 on success, 1 on error, 2 on file not exists. + * note: in case of error, errno must be kept valid! + */ +int +cnfSetLexFile(const char *const fname) +{ + es_str_t *str = NULL; + struct bufstack *bs; + FILE *fp; + int r = 0; + + /* check for invalid recursive include */ + for(bs = currbs ; bs != NULL ; bs = bs->prev) { + if(!strcmp(fname, bs->fn)) { + parser_errmsg("trying to include file '%s', " + "which is already included - ignored", fname); + r = 1; + goto done; + } + } + + if(fname == NULL) { + fp = stdin; + } else { + if((fp = fopen(fname, "r")) == NULL) { + r = 2; + goto done; + } + } + readConfFile(fp, &str); + if(fp != stdin) + fclose(fp); + + r = cnfAddConfigBuffer(str, ((fname == NULL) ? "stdin" : fname)); + +done: + return r; +} + + +/* returns 0 on success, something else otherwise */ +int +popfile(void) +{ + struct bufstack *bs = currbs; + + if(fp_rs_full_conf_output != NULL) { + fprintf(fp_rs_full_conf_output, "\n##### END CONFIG: %s\n", cnfcurrfn); + } + + if(bs == NULL) + return 1; + + /* delete current entry. But we must not free the file name if + * this is the top-level file, because then it may still be used + * in error messages for other processing steps. + * TODO: change this to another method which stores the file + * name inside the config objects. In the longer term, this is + * necessary, as otherwise we may provide wrong file name information + * at the end of include files as well. -- rgerhards, 2011-07-22 + */ + dbgprintf("config parser: reached end of file %s\n", bs->fn); + yy_delete_buffer(bs->bs); + if(bs->prev != NULL) + free(bs->fn); + free(bs->estr); + + /* switch back to previous */ + currbs = bs->prev; + free(bs); + + if(currbs == NULL) { + dbgprintf("config parser: parsing completed\n"); + return 1; /* all processed */ + } + + yy_switch_to_buffer(currbs->bs); + yylineno = currbs->lineno; + cnfcurrfn = currbs->fn; + dbgprintf("config parser: resume parsing of file %s at line %d\n", + cnfcurrfn, yylineno); + return 0; +} + +void +tellLexEndParsing(void) +{ + free(cnfcurrfn); + cnfcurrfn= NULL; +} +#endif // #ifndef __clang_analyzer__ + |