mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 22:57:08 +00:00
121cb15d67
git-svn-id: file:///svn/unbound/trunk@1227 be551aaa-1e26-0410-a405-d3ace91eadb9
3141 lines
100 KiB
C
3141 lines
100 KiB
C
#include "util/configyyrename.h"
|
|
|
|
#line 3 "<stdout>"
|
|
|
|
#define YY_INT_ALIGNED short int
|
|
|
|
/* A lexical scanner generated by flex */
|
|
|
|
#define FLEX_SCANNER
|
|
#define YY_FLEX_MAJOR_VERSION 2
|
|
#define YY_FLEX_MINOR_VERSION 5
|
|
#define YY_FLEX_SUBMINOR_VERSION 35
|
|
#if YY_FLEX_SUBMINOR_VERSION > 0
|
|
#define FLEX_BETA
|
|
#endif
|
|
|
|
/* First, we deal with platform-specific or compiler-specific issues. */
|
|
|
|
/* begin standard C headers. */
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <stdlib.h>
|
|
|
|
/* end standard C headers. */
|
|
|
|
/* 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;
|
|
#endif /* ! C99 */
|
|
|
|
/* 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
|
|
|
|
#endif /* ! FLEXINT_H */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
/* The "const" storage-class-modifier is valid. */
|
|
#define YY_USE_CONST
|
|
|
|
#else /* ! __cplusplus */
|
|
|
|
/* C99 requires __STDC__ to be defined as 1. */
|
|
#if defined (__STDC__)
|
|
|
|
#define YY_USE_CONST
|
|
|
|
#endif /* defined (__STDC__) */
|
|
#endif /* ! __cplusplus */
|
|
|
|
#ifdef YY_USE_CONST
|
|
#define yyconst const
|
|
#else
|
|
#define yyconst
|
|
#endif
|
|
|
|
/* Returned upon end-of-file. */
|
|
#define YY_NULL 0
|
|
|
|
/* Promotes a possibly negative, possibly signed char to an unsigned
|
|
* integer for use as an array index. If the signed char is negative,
|
|
* we want to instead treat it as an 8-bit unsigned char, hence the
|
|
* double cast.
|
|
*/
|
|
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned 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
|
|
#define YY_BUF_SIZE 16384
|
|
#endif
|
|
|
|
/* The state buf must be large enough to hold one state per character in the main buffer.
|
|
*/
|
|
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
|
|
|
|
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
|
|
#define YY_TYPEDEF_YY_BUFFER_STATE
|
|
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
|
#endif
|
|
|
|
extern int yyleng;
|
|
|
|
extern FILE *yyin, *yyout;
|
|
|
|
#define EOB_ACT_CONTINUE_SCAN 0
|
|
#define EOB_ACT_END_OF_FILE 1
|
|
#define EOB_ACT_LAST_MATCH 2
|
|
|
|
#define YY_LESS_LINENO(n)
|
|
|
|
/* Return all but the first "n" matched characters back to the input stream. */
|
|
#define yyless(n) \
|
|
do \
|
|
{ \
|
|
/* Undo effects of setting up yytext. */ \
|
|
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_TYPEDEF_YY_SIZE_T
|
|
#define YY_TYPEDEF_YY_SIZE_T
|
|
typedef size_t yy_size_t;
|
|
#endif
|
|
|
|
#ifndef YY_STRUCT_YY_BUFFER_STATE
|
|
#define YY_STRUCT_YY_BUFFER_STATE
|
|
struct yy_buffer_state
|
|
{
|
|
FILE *yy_input_file;
|
|
|
|
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.
|
|
*/
|
|
yy_size_t 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 = 0; /**< Stack as an array. */
|
|
|
|
/* We provide macros for accessing buffer states in case in the
|
|
* future we want to put the buffer states in a more general
|
|
* "scanner state".
|
|
*
|
|
* Returns the top of the stack, or NULL.
|
|
*/
|
|
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
|
|
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
|
|
: NULL)
|
|
|
|
/* Same as previous macro, but useful when we know that the buffer stack is not
|
|
* NULL or when we need an lvalue. For internal use only.
|
|
*/
|
|
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
|
|
|
|
/* yy_hold_char holds the character lost when yytext is formed. */
|
|
static char yy_hold_char;
|
|
static int yy_n_chars; /* number of characters read into yy_ch_buf */
|
|
int yyleng;
|
|
|
|
/* Points to current character in buffer. */
|
|
static char *yy_c_buf_p = (char *) 0;
|
|
static int yy_init = 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 (yyconst char *yy_str );
|
|
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
|
|
|
|
void *yyalloc (yy_size_t );
|
|
void *yyrealloc (void *,yy_size_t );
|
|
void yyfree (void * );
|
|
|
|
#define yy_new_buffer yy_create_buffer
|
|
|
|
#define yy_set_interactive(is_interactive) \
|
|
{ \
|
|
if ( ! YY_CURRENT_BUFFER ){ \
|
|
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 */
|
|
|
|
typedef unsigned char YY_CHAR;
|
|
|
|
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
|
|
|
|
typedef int yy_state_type;
|
|
|
|
extern int yylineno;
|
|
|
|
int yylineno = 1;
|
|
|
|
extern char *yytext;
|
|
#define yytext_ptr yytext
|
|
|
|
static yy_state_type yy_get_previous_state (void );
|
|
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
|
|
static int yy_get_next_buffer (void );
|
|
static void yy_fatal_error (yyconst char msg[] );
|
|
|
|
/* Done after the current pattern has been matched and before the
|
|
* corresponding action - sets up yytext.
|
|
*/
|
|
#define YY_DO_BEFORE_ACTION \
|
|
(yytext_ptr) = yy_bp; \
|
|
(yytext_ptr) -= (yy_more_len); \
|
|
yyleng = (size_t) (yy_cp - (yytext_ptr)); \
|
|
(yy_hold_char) = *yy_cp; \
|
|
*yy_cp = '\0'; \
|
|
(yy_c_buf_p) = yy_cp;
|
|
|
|
#define YY_NUM_RULES 106
|
|
#define YY_END_OF_BUFFER 107
|
|
/* This struct is not used in this scanner,
|
|
but its presence is necessary. */
|
|
struct yy_trans_info
|
|
{
|
|
flex_int32_t yy_verify;
|
|
flex_int32_t yy_nxt;
|
|
};
|
|
static yyconst flex_int16_t yy_accept[955] =
|
|
{ 0,
|
|
1, 1, 90, 90, 94, 94, 98, 98, 102, 102,
|
|
107, 105, 1, 88, 89, 2, 93, 106, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 90, 91, 106, 92, 106,
|
|
94, 95, 96, 106, 101, 98, 99, 100, 106, 102,
|
|
103, 104, 106, 105, 0, 1, 2, 2, 2, 2,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 90, 0, 94, 0, 101, 0, 98,
|
|
|
|
102, 0, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
|
|
105, 105, 105, 105, 105, 105, 105, 105, 48, 105,
|
|
105, 105, 105, 105, 6, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
20, 105, 105, 105, 105, 12, 13, 105, 15, 14,
|
|
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 3, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 97, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 23, 105, 105, 105, 105, 105, 105, 105, 24,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
|
|
105, 105, 60, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 59, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 21, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
22, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 17,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 49, 50, 47, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 5, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 62, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 77, 76, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 25, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 75, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 41, 105, 105, 105,
|
|
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 4, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 83, 105, 16, 105, 52, 53, 51,
|
|
105, 105, 105, 105, 105, 58, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 66, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 31, 105, 105, 105, 105, 105,
|
|
|
|
105, 105, 105, 105, 105, 105, 57, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 61, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 68,
|
|
105, 105, 105, 105, 56, 105, 81, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
32, 33, 105, 71, 105, 105, 27, 105, 73, 105,
|
|
105, 105, 105, 105, 7, 105, 46, 80, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 63, 105, 105, 105, 105,
|
|
|
|
105, 105, 105, 105, 105, 105, 105, 72, 26, 28,
|
|
105, 105, 105, 105, 105, 45, 105, 105, 105, 84,
|
|
105, 105, 105, 105, 105, 44, 105, 105, 105, 105,
|
|
105, 105, 86, 105, 105, 105, 105, 105, 105, 11,
|
|
105, 105, 105, 105, 105, 105, 10, 105, 105, 29,
|
|
105, 85, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 87, 82, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 34, 105, 105, 105, 105, 105, 30, 105, 105,
|
|
105, 64, 65, 105, 105, 67, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 105, 105, 105, 18, 105, 105,
|
|
|
|
105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
|
|
105, 105, 105, 105, 19, 105, 9, 105, 105, 78,
|
|
38, 105, 105, 70, 54, 105, 105, 40, 43, 39,
|
|
105, 35, 105, 8, 105, 69, 105, 105, 105, 36,
|
|
105, 79, 105, 55, 42, 37, 105, 105, 105, 105,
|
|
105, 105, 74, 0
|
|
} ;
|
|
|
|
static yyconst flex_int32_t yy_ec[256] =
|
|
{ 0,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
|
|
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 2, 1, 5, 6, 1, 1, 1, 7, 1,
|
|
1, 1, 1, 1, 8, 1, 1, 1, 1, 1,
|
|
9, 10, 1, 11, 1, 1, 1, 12, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 13, 1, 1, 1, 1, 14, 15, 16, 17,
|
|
|
|
18, 19, 20, 21, 22, 1, 23, 24, 25, 26,
|
|
27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
|
|
37, 38, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 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 yyconst flex_int32_t yy_meta[39] =
|
|
{ 0,
|
|
1, 2, 3, 4, 5, 1, 6, 1, 1, 1,
|
|
1, 1, 1, 1, 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 yyconst flex_int16_t yy_base[966] =
|
|
{ 0,
|
|
0, 0, 36, 39, 43, 50, 62, 74, 55, 67,
|
|
1959, 1945, 49, 1960, 1960, 81, 1960, 88, 32, 83,
|
|
76, 78, 60, 89, 94, 86, 95, 103, 96, 98,
|
|
105, 101, 117, 111, 125, 1944, 1960, 1960, 1960, 57,
|
|
1943, 1960, 1960, 130, 1942, 1952, 1960, 1960, 144, 1940,
|
|
1960, 1960, 136, 1939, 148, 152, 0, 155, 0, 0,
|
|
148, 150, 71, 143, 114, 152, 159, 157, 158, 160,
|
|
161, 162, 163, 169, 167, 170, 178, 179, 180, 182,
|
|
184, 183, 185, 191, 193, 195, 189, 196, 198, 199,
|
|
204, 210, 205, 1938, 220, 1937, 223, 1936, 234, 1946,
|
|
|
|
1934, 238, 227, 231, 220, 218, 233, 240, 241, 202,
|
|
242, 243, 236, 244, 247, 251, 257, 262, 253, 265,
|
|
271, 267, 273, 274, 270, 275, 276, 278, 279, 282,
|
|
283, 284, 287, 289, 290, 280, 307, 308, 292, 286,
|
|
309, 311, 296, 312, 316, 318, 320, 322, 323, 327,
|
|
328, 332, 338, 321, 330, 334, 341, 339, 344, 343,
|
|
348, 349, 359, 352, 355, 353, 363, 364, 366, 367,
|
|
370, 376, 374, 375, 378, 384, 381, 382, 385, 383,
|
|
404, 391, 390, 392, 400, 394, 397, 402, 409, 415,
|
|
426, 408, 414, 416, 425, 428, 430, 434, 432, 435,
|
|
|
|
438, 440, 447, 450, 449, 452, 453, 454, 1933, 458,
|
|
456, 461, 462, 463, 1932, 464, 465, 467, 477, 468,
|
|
466, 478, 480, 487, 488, 481, 490, 398, 493, 494,
|
|
495, 496, 497, 500, 507, 498, 509, 506, 511, 518,
|
|
519, 523, 527, 529, 533, 535, 536, 542, 539, 541,
|
|
528, 544, 538, 545, 554, 557, 558, 559, 566, 563,
|
|
565, 567, 571, 513, 572, 573, 574, 580, 577, 581,
|
|
592, 582, 589, 588, 590, 599, 595, 603, 597, 598,
|
|
605, 606, 609, 610, 618, 608, 611, 619, 621, 626,
|
|
1931, 633, 622, 629, 630, 1930, 1929, 631, 1928, 1927,
|
|
|
|
640, 648, 636, 634, 638, 643, 646, 649, 654, 656,
|
|
658, 663, 669, 660, 673, 664, 675, 676, 677, 678,
|
|
682, 679, 689, 696, 680, 690, 692, 694, 1926, 698,
|
|
701, 699, 700, 702, 706, 714, 710, 711, 715, 712,
|
|
723, 718, 716, 725, 726, 730, 727, 731, 755, 735,
|
|
734, 736, 742, 738, 740, 750, 743, 747, 766, 756,
|
|
757, 768, 1925, 776, 777, 772, 773, 778, 779, 781,
|
|
782, 1924, 787, 786, 788, 789, 796, 797, 804, 1923,
|
|
802, 807, 792, 809, 808, 810, 814, 816, 818, 819,
|
|
820, 823, 822, 834, 827, 831, 828, 835, 840, 838,
|
|
|
|
842, 839, 1922, 843, 849, 845, 847, 852, 853, 854,
|
|
862, 857, 864, 866, 872, 867, 869, 859, 870, 875,
|
|
878, 879, 880, 882, 1921, 885, 886, 887, 895, 902,
|
|
908, 888, 904, 905, 896, 912, 915, 911, 917, 914,
|
|
920, 919, 922, 925, 926, 928, 930, 932, 937, 939,
|
|
941, 942, 944, 946, 947, 948, 1920, 962, 963, 964,
|
|
956, 949, 969, 960, 966, 970, 971, 973, 974, 976,
|
|
1919, 982, 975, 978, 980, 983, 986, 988, 989, 990,
|
|
991, 1002, 1003, 1004, 1005, 1008, 1014, 1015, 1016, 1918,
|
|
1011, 1021, 1023, 1024, 1031, 1027, 1028, 1032, 1033, 1034,
|
|
|
|
1035, 1038, 1036, 1039, 1041, 1040, 1049, 1056, 1044, 1062,
|
|
1065, 1917, 1916, 1915, 1064, 1054, 1042, 1058, 1070, 1071,
|
|
1073, 1075, 1076, 1077, 1914, 1079, 1078, 1081, 550, 1082,
|
|
1088, 1084, 1086, 1913, 1089, 1091, 1093, 1098, 1099, 1101,
|
|
1108, 1109, 1102, 1105, 1111, 1112, 1116, 1118, 1120, 1121,
|
|
1122, 1123, 1912, 1911, 1126, 1127, 1137, 1129, 1136, 1144,
|
|
1133, 1141, 1147, 1149, 1150, 1154, 1151, 1910, 1161, 1163,
|
|
1159, 1157, 1169, 1170, 1171, 1173, 1909, 1172, 1174, 1175,
|
|
1176, 1179, 1182, 1183, 1197, 1184, 1185, 1193, 1201, 1198,
|
|
1204, 1210, 1209, 1212, 1214, 1215, 1908, 1221, 1206, 1222,
|
|
|
|
1219, 1225, 1231, 1227, 1220, 1228, 1229, 1230, 1232, 1234,
|
|
1235, 1236, 1249, 1237, 1242, 1907, 1246, 1258, 1252, 1256,
|
|
1254, 1260, 1264, 1265, 1266, 1267, 1268, 1273, 1275, 1282,
|
|
1279, 1285, 1284, 1287, 1289, 1297, 1290, 1293, 1299, 1294,
|
|
1296, 1302, 1303, 1906, 1305, 1905, 1306, 1904, 1903, 1902,
|
|
1314, 1310, 1318, 1320, 1324, 1901, 1315, 1327, 1321, 1325,
|
|
1329, 1331, 1330, 1332, 1333, 1339, 1343, 1345, 1346, 1347,
|
|
1349, 1353, 1355, 1356, 1357, 1358, 1359, 1360, 1364, 1369,
|
|
1366, 1367, 1361, 1381, 1382, 1900, 1383, 1384, 1386, 1390,
|
|
1387, 1391, 1392, 1401, 1899, 1394, 1407, 1408, 1402, 1410,
|
|
|
|
1412, 1404, 1411, 1414, 1417, 1419, 1898, 1420, 1421, 1424,
|
|
1425, 1431, 1438, 1432, 1441, 1427, 1897, 1442, 1449, 1435,
|
|
1451, 1443, 1446, 1454, 1455, 1459, 1461, 1463, 1465, 1466,
|
|
1467, 1469, 1471, 1472, 1473, 1474, 1475, 1477, 1481, 1896,
|
|
1482, 1487, 1489, 1498, 1895, 1483, 1894, 1497, 1499, 1503,
|
|
1505, 1507, 1495, 1506, 1513, 1512, 1515, 1516, 1517, 1363,
|
|
1893, 1892, 1519, 1891, 1523, 1527, 1890, 1529, 1889, 1536,
|
|
1532, 1524, 1534, 1535, 1888, 1538, 1887, 1886, 1541, 1542,
|
|
1543, 1550, 1545, 1547, 1551, 1552, 1554, 1558, 1559, 1553,
|
|
1560, 1561, 1566, 1567, 1570, 1885, 1574, 1575, 1577, 1580,
|
|
|
|
1581, 1582, 1584, 1590, 1587, 1586, 1588, 1884, 1883, 1882,
|
|
1589, 1592, 1599, 1602, 1593, 1881, 1606, 1603, 1612, 1880,
|
|
1613, 1609, 1615, 1617, 1618, 1876, 1619, 1620, 1626, 1627,
|
|
1629, 1635, 1872, 1632, 1636, 1639, 1640, 1642, 1644, 1871,
|
|
1638, 1645, 1651, 1646, 1652, 1654, 1870, 1657, 1658, 1866,
|
|
1662, 1865, 1664, 1667, 1669, 1674, 1676, 1665, 1682, 1680,
|
|
1681, 1861, 1860, 1671, 1684, 1686, 1688, 1687, 1690, 1691,
|
|
1694, 1859, 1695, 1697, 1703, 1704, 1696, 1853, 1707, 1699,
|
|
1398, 1825, 1824, 1711, 1709, 1823, 1717, 1719, 1720, 1721,
|
|
1723, 1724, 1725, 1726, 1727, 1729, 1733, 1822, 1740, 1731,
|
|
|
|
1735, 1743, 1747, 1744, 1748, 1753, 1758, 1754, 1759, 1761,
|
|
1763, 1766, 1768, 1770, 1821, 1774, 1818, 1777, 1778, 1817,
|
|
1816, 1780, 1781, 1815, 1814, 1771, 1784, 1812, 1811, 1749,
|
|
1792, 1186, 1785, 1007, 1794, 751, 1782, 1796, 1798, 645,
|
|
1801, 600, 1802, 520, 437, 345, 1787, 1804, 1805, 1807,
|
|
1808, 1810, 300, 1960, 1839, 1845, 1851, 1857, 220, 1863,
|
|
1869, 1875, 144, 1880, 1886
|
|
} ;
|
|
|
|
static yyconst flex_int16_t yy_def[966] =
|
|
{ 0,
|
|
954, 1, 955, 955, 956, 956, 957, 957, 958, 958,
|
|
954, 959, 954, 954, 954, 960, 954, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 961, 954, 954, 954, 961,
|
|
962, 954, 954, 962, 963, 954, 954, 954, 963, 964,
|
|
954, 954, 964, 959, 959, 954, 965, 960, 965, 960,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 961, 961, 962, 962, 963, 963, 954,
|
|
|
|
964, 964, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 959, 959, 959, 959, 959, 959, 959,
|
|
959, 959, 959, 0, 954, 954, 954, 954, 954, 954,
|
|
954, 954, 954, 954, 954
|
|
} ;
|
|
|
|
static yyconst flex_int16_t yy_nxt[1999] =
|
|
{ 0,
|
|
12, 13, 14, 14, 15, 16, 17, 12, 12, 12,
|
|
12, 12, 18, 19, 12, 20, 21, 12, 22, 12,
|
|
23, 24, 25, 26, 27, 28, 29, 30, 12, 31,
|
|
32, 33, 34, 35, 12, 12, 12, 12, 37, 38,
|
|
39, 37, 38, 39, 55, 42, 38, 61, 40, 43,
|
|
56, 40, 42, 38, 57, 44, 43, 51, 51, 52,
|
|
94, 94, 44, 46, 47, 47, 48, 53, 38, 51,
|
|
51, 52, 55, 69, 49, 46, 47, 47, 48, 53,
|
|
38, 70, 59, 55, 59, 59, 49, 59, 55, 54,
|
|
55, 54, 54, 60, 54, 55, 62, 65, 55, 66,
|
|
|
|
105, 55, 67, 63, 68, 71, 55, 55, 55, 64,
|
|
55, 73, 74, 55, 72, 55, 77, 55, 87, 81,
|
|
78, 75, 84, 55, 82, 76, 55, 83, 80, 55,
|
|
89, 85, 88, 96, 86, 79, 96, 55, 92, 101,
|
|
101, 91, 93, 107, 98, 98, 90, 98, 98, 54,
|
|
98, 54, 54, 56, 54, 55, 59, 57, 59, 59,
|
|
55, 59, 55, 103, 55, 104, 109, 60, 106, 55,
|
|
55, 55, 55, 55, 55, 55, 112, 114, 113, 55,
|
|
115, 55, 55, 120, 118, 108, 110, 111, 119, 121,
|
|
55, 55, 55, 116, 55, 55, 55, 55, 123, 117,
|
|
|
|
126, 55, 122, 55, 124, 55, 128, 55, 55, 133,
|
|
55, 55, 127, 125, 55, 129, 55, 55, 132, 130,
|
|
54, 137, 55, 94, 94, 131, 96, 135, 134, 96,
|
|
55, 136, 55, 138, 139, 98, 151, 98, 98, 55,
|
|
98, 101, 101, 55, 140, 55, 142, 145, 55, 143,
|
|
144, 141, 55, 55, 55, 55, 55, 146, 152, 55,
|
|
153, 154, 147, 55, 159, 55, 148, 155, 158, 55,
|
|
156, 161, 149, 150, 55, 160, 157, 55, 163, 55,
|
|
165, 166, 55, 55, 164, 55, 55, 55, 55, 167,
|
|
55, 55, 55, 168, 55, 55, 55, 162, 55, 55,
|
|
|
|
173, 55, 55, 176, 55, 171, 182, 169, 55, 177,
|
|
178, 170, 55, 172, 179, 181, 184, 174, 175, 55,
|
|
55, 55, 183, 55, 55, 187, 185, 188, 55, 189,
|
|
55, 190, 55, 55, 55, 55, 180, 186, 193, 55,
|
|
55, 195, 55, 194, 55, 197, 55, 191, 192, 196,
|
|
55, 55, 198, 55, 201, 55, 55, 55, 200, 203,
|
|
55, 55, 199, 209, 55, 55, 204, 55, 202, 205,
|
|
210, 55, 206, 207, 208, 55, 55, 215, 55, 55,
|
|
216, 211, 55, 218, 212, 214, 55, 55, 55, 213,
|
|
55, 222, 220, 55, 55, 55, 55, 55, 223, 221,
|
|
|
|
225, 217, 55, 55, 55, 219, 55, 236, 227, 55,
|
|
55, 234, 55, 224, 55, 226, 55, 233, 228, 229,
|
|
55, 55, 235, 238, 282, 237, 55, 55, 55, 230,
|
|
231, 232, 241, 239, 240, 242, 243, 55, 55, 244,
|
|
55, 245, 55, 246, 55, 254, 55, 55, 252, 55,
|
|
55, 249, 55, 248, 247, 251, 253, 257, 255, 55,
|
|
256, 55, 55, 250, 55, 55, 55, 261, 55, 259,
|
|
55, 262, 258, 55, 55, 55, 55, 55, 55, 55,
|
|
55, 264, 268, 265, 270, 260, 266, 269, 263, 55,
|
|
55, 273, 55, 55, 277, 267, 272, 271, 274, 55,
|
|
|
|
55, 279, 55, 281, 278, 55, 55, 55, 55, 55,
|
|
55, 276, 55, 286, 289, 275, 283, 280, 55, 55,
|
|
291, 55, 290, 55, 284, 55, 288, 287, 285, 292,
|
|
55, 55, 55, 294, 296, 55, 298, 293, 297, 55,
|
|
55, 55, 321, 295, 299, 55, 300, 55, 55, 302,
|
|
55, 55, 301, 55, 55, 303, 55, 55, 304, 305,
|
|
308, 306, 55, 307, 586, 309, 55, 311, 310, 55,
|
|
55, 55, 312, 316, 313, 55, 315, 55, 55, 55,
|
|
318, 317, 319, 55, 55, 55, 55, 325, 320, 55,
|
|
323, 324, 55, 55, 55, 314, 327, 322, 326, 328,
|
|
|
|
55, 55, 55, 329, 55, 331, 334, 55, 335, 55,
|
|
55, 55, 55, 330, 332, 55, 333, 55, 55, 336,
|
|
55, 55, 55, 55, 337, 340, 341, 342, 338, 339,
|
|
55, 55, 345, 55, 55, 343, 347, 344, 55, 348,
|
|
349, 55, 55, 55, 346, 55, 55, 354, 55, 351,
|
|
55, 350, 55, 360, 363, 55, 352, 55, 55, 353,
|
|
55, 55, 365, 361, 355, 364, 55, 356, 55, 367,
|
|
55, 357, 55, 368, 362, 55, 55, 358, 359, 373,
|
|
366, 55, 370, 369, 372, 55, 371, 55, 55, 55,
|
|
55, 55, 55, 374, 55, 382, 375, 376, 379, 378,
|
|
|
|
380, 55, 55, 381, 55, 384, 55, 377, 55, 385,
|
|
55, 55, 55, 55, 55, 383, 386, 388, 55, 387,
|
|
391, 393, 55, 55, 55, 390, 55, 55, 55, 389,
|
|
55, 392, 396, 399, 395, 55, 398, 55, 55, 55,
|
|
394, 403, 55, 55, 397, 400, 55, 55, 55, 401,
|
|
55, 415, 55, 404, 55, 55, 420, 402, 416, 55,
|
|
412, 413, 55, 55, 421, 418, 405, 55, 55, 55,
|
|
406, 411, 407, 419, 414, 417, 408, 409, 55, 425,
|
|
55, 423, 410, 426, 55, 55, 422, 424, 55, 55,
|
|
55, 55, 427, 55, 55, 430, 431, 429, 55, 55,
|
|
|
|
55, 55, 428, 435, 55, 436, 437, 433, 55, 55,
|
|
439, 440, 432, 434, 55, 441, 55, 438, 442, 55,
|
|
55, 55, 55, 444, 445, 446, 55, 447, 55, 448,
|
|
55, 55, 55, 443, 55, 55, 451, 452, 453, 55,
|
|
55, 455, 457, 55, 454, 449, 55, 55, 460, 450,
|
|
55, 55, 55, 456, 55, 55, 465, 55, 458, 55,
|
|
459, 55, 466, 462, 55, 55, 55, 461, 464, 55,
|
|
469, 55, 467, 471, 55, 463, 55, 468, 55, 55,
|
|
470, 55, 55, 474, 55, 473, 472, 55, 475, 478,
|
|
55, 55, 55, 476, 55, 477, 481, 55, 55, 55,
|
|
|
|
55, 492, 479, 484, 480, 482, 486, 55, 55, 489,
|
|
485, 483, 488, 490, 55, 491, 55, 55, 487, 496,
|
|
55, 493, 497, 55, 55, 495, 55, 55, 498, 55,
|
|
494, 55, 55, 499, 55, 500, 504, 55, 55, 501,
|
|
55, 502, 55, 503, 55, 505, 508, 506, 512, 55,
|
|
513, 55, 514, 55, 55, 507, 55, 509, 55, 55,
|
|
55, 55, 511, 517, 516, 518, 510, 519, 55, 520,
|
|
521, 522, 55, 515, 55, 55, 55, 523, 55, 524,
|
|
525, 55, 55, 55, 529, 55, 55, 55, 55, 533,
|
|
55, 526, 55, 534, 55, 55, 537, 527, 55, 528,
|
|
|
|
55, 55, 55, 55, 530, 532, 541, 536, 543, 542,
|
|
531, 539, 535, 538, 55, 55, 55, 55, 540, 55,
|
|
55, 549, 550, 55, 545, 548, 55, 55, 55, 551,
|
|
546, 544, 553, 55, 554, 55, 55, 547, 556, 55,
|
|
55, 552, 555, 55, 55, 55, 55, 55, 55, 564,
|
|
55, 55, 55, 55, 55, 565, 55, 557, 558, 561,
|
|
568, 55, 559, 560, 563, 566, 55, 562, 55, 571,
|
|
55, 567, 572, 569, 55, 570, 55, 55, 575, 573,
|
|
574, 577, 55, 55, 576, 55, 579, 55, 55, 55,
|
|
55, 55, 581, 55, 55, 588, 55, 580, 55, 587,
|
|
|
|
55, 55, 578, 55, 590, 55, 591, 582, 583, 584,
|
|
55, 55, 585, 55, 55, 589, 595, 55, 596, 597,
|
|
55, 55, 593, 55, 55, 604, 598, 592, 55, 594,
|
|
55, 599, 55, 55, 55, 55, 600, 602, 55, 55,
|
|
603, 55, 601, 615, 608, 55, 609, 610, 55, 55,
|
|
614, 605, 606, 55, 607, 616, 55, 611, 612, 55,
|
|
613, 55, 55, 55, 617, 618, 55, 622, 624, 55,
|
|
625, 55, 627, 55, 620, 55, 619, 626, 628, 621,
|
|
623, 55, 55, 55, 55, 55, 55, 55, 55, 629,
|
|
634, 55, 635, 636, 55, 55, 55, 55, 55, 630,
|
|
|
|
637, 631, 632, 633, 640, 55, 639, 641, 638, 55,
|
|
55, 643, 644, 55, 642, 646, 55, 647, 55, 645,
|
|
648, 55, 55, 649, 55, 650, 55, 55, 652, 654,
|
|
651, 55, 55, 55, 55, 653, 656, 55, 657, 55,
|
|
55, 55, 55, 55, 55, 665, 55, 55, 55, 55,
|
|
658, 661, 659, 666, 55, 655, 667, 660, 55, 662,
|
|
663, 55, 669, 672, 55, 673, 55, 664, 55, 671,
|
|
55, 676, 55, 668, 670, 675, 55, 55, 55, 55,
|
|
55, 677, 684, 674, 680, 55, 687, 55, 681, 685,
|
|
678, 55, 688, 686, 55, 679, 55, 55, 683, 55,
|
|
|
|
682, 55, 55, 690, 692, 55, 55, 689, 55, 55,
|
|
695, 55, 696, 697, 55, 55, 694, 55, 55, 701,
|
|
698, 703, 55, 693, 699, 691, 55, 55, 700, 702,
|
|
55, 705, 55, 55, 706, 707, 55, 55, 704, 55,
|
|
709, 55, 55, 55, 55, 55, 708, 716, 711, 715,
|
|
717, 55, 712, 710, 713, 55, 714, 55, 55, 55,
|
|
720, 55, 719, 725, 721, 55, 722, 55, 55, 55,
|
|
55, 55, 55, 55, 726, 55, 55, 806, 55, 55,
|
|
718, 55, 723, 729, 728, 730, 724, 731, 727, 733,
|
|
732, 734, 735, 55, 55, 55, 55, 740, 55, 55,
|
|
|
|
737, 738, 55, 55, 55, 739, 55, 743, 736, 744,
|
|
55, 741, 745, 55, 55, 746, 55, 742, 747, 55,
|
|
55, 748, 55, 55, 55, 749, 55, 750, 751, 55,
|
|
752, 55, 55, 55, 903, 757, 55, 55, 760, 55,
|
|
755, 753, 761, 55, 55, 758, 754, 55, 759, 762,
|
|
55, 756, 764, 55, 55, 55, 763, 765, 55, 766,
|
|
767, 55, 769, 55, 771, 768, 55, 55, 773, 772,
|
|
775, 55, 770, 55, 777, 55, 778, 55, 55, 55,
|
|
780, 55, 774, 55, 55, 55, 55, 55, 782, 55,
|
|
784, 776, 781, 55, 55, 55, 786, 788, 787, 55,
|
|
|
|
785, 55, 791, 779, 783, 792, 793, 55, 790, 55,
|
|
55, 55, 794, 789, 796, 55, 795, 55, 55, 55,
|
|
801, 797, 798, 800, 55, 55, 799, 55, 55, 55,
|
|
802, 55, 807, 804, 808, 55, 55, 805, 809, 55,
|
|
810, 55, 803, 811, 55, 812, 55, 55, 55, 816,
|
|
55, 813, 815, 55, 55, 55, 818, 55, 817, 55,
|
|
819, 820, 55, 55, 55, 55, 55, 814, 821, 826,
|
|
55, 55, 55, 55, 823, 824, 822, 825, 55, 55,
|
|
827, 833, 55, 831, 832, 830, 55, 55, 835, 55,
|
|
828, 829, 55, 55, 55, 840, 55, 841, 55, 55,
|
|
|
|
55, 55, 55, 834, 55, 55, 836, 846, 838, 837,
|
|
847, 55, 839, 842, 55, 55, 843, 850, 55, 844,
|
|
845, 55, 849, 852, 55, 55, 853, 55, 848, 55,
|
|
55, 55, 55, 851, 856, 857, 855, 859, 55, 55,
|
|
862, 55, 854, 860, 55, 858, 863, 55, 55, 864,
|
|
55, 55, 55, 861, 55, 868, 55, 55, 55, 865,
|
|
866, 867, 872, 55, 55, 869, 55, 873, 870, 55,
|
|
55, 875, 874, 878, 55, 871, 55, 55, 876, 55,
|
|
880, 55, 877, 55, 881, 882, 55, 883, 55, 885,
|
|
884, 886, 55, 55, 55, 879, 55, 887, 55, 55,
|
|
|
|
55, 888, 55, 55, 889, 891, 55, 55, 55, 55,
|
|
896, 55, 894, 890, 898, 55, 55, 900, 892, 55,
|
|
899, 55, 902, 55, 904, 895, 897, 893, 901, 55,
|
|
905, 55, 55, 55, 906, 55, 55, 55, 55, 55,
|
|
915, 55, 912, 55, 911, 55, 908, 55, 909, 907,
|
|
916, 917, 55, 910, 920, 55, 55, 914, 921, 55,
|
|
55, 55, 918, 913, 924, 55, 55, 922, 919, 925,
|
|
55, 55, 928, 55, 929, 55, 927, 930, 55, 923,
|
|
55, 932, 55, 55, 926, 931, 55, 933, 934, 55,
|
|
55, 936, 55, 55, 55, 935, 55, 55, 937, 55,
|
|
|
|
939, 941, 938, 940, 55, 942, 55, 944, 55, 945,
|
|
55, 943, 946, 55, 55, 947, 55, 55, 948, 55,
|
|
55, 953, 55, 55, 55, 949, 55, 55, 55, 55,
|
|
55, 950, 951, 55, 55, 55, 55, 55, 952, 36,
|
|
36, 36, 36, 36, 36, 41, 41, 41, 41, 41,
|
|
41, 45, 45, 45, 45, 45, 45, 50, 50, 50,
|
|
50, 50, 50, 58, 58, 55, 58, 58, 58, 94,
|
|
94, 55, 55, 55, 94, 96, 96, 55, 55, 96,
|
|
101, 101, 55, 55, 55, 101, 59, 59, 55, 59,
|
|
59, 59, 55, 55, 55, 55, 55, 55, 55, 55,
|
|
|
|
55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
|
|
55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
|
|
55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
|
|
55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
|
|
55, 55, 55, 55, 55, 55, 102, 100, 99, 97,
|
|
95, 55, 102, 100, 99, 97, 95, 55, 954, 11,
|
|
954, 954, 954, 954, 954, 954, 954, 954, 954, 954,
|
|
954, 954, 954, 954, 954, 954, 954, 954, 954, 954,
|
|
954, 954, 954, 954, 954, 954, 954, 954, 954, 954,
|
|
954, 954, 954, 954, 954, 954, 954, 954
|
|
|
|
} ;
|
|
|
|
static yyconst flex_int16_t yy_chk[1999] =
|
|
{ 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, 3, 3,
|
|
3, 4, 4, 4, 19, 5, 5, 19, 3, 5,
|
|
13, 4, 6, 6, 13, 5, 6, 9, 9, 9,
|
|
40, 40, 6, 7, 7, 7, 7, 9, 7, 10,
|
|
10, 10, 23, 23, 7, 8, 8, 8, 8, 10,
|
|
8, 23, 16, 63, 16, 16, 8, 16, 21, 18,
|
|
22, 18, 18, 16, 18, 20, 20, 21, 26, 21,
|
|
|
|
63, 24, 21, 20, 22, 24, 25, 27, 29, 20,
|
|
30, 25, 26, 32, 24, 28, 28, 31, 32, 30,
|
|
28, 27, 31, 34, 30, 27, 65, 30, 29, 33,
|
|
33, 31, 32, 44, 31, 28, 44, 35, 35, 53,
|
|
53, 34, 35, 65, 963, 49, 33, 49, 49, 55,
|
|
49, 55, 55, 56, 55, 64, 58, 56, 58, 58,
|
|
61, 58, 62, 61, 66, 62, 67, 58, 64, 68,
|
|
69, 67, 70, 71, 72, 73, 70, 72, 71, 75,
|
|
72, 74, 76, 75, 74, 66, 68, 69, 74, 76,
|
|
77, 78, 79, 72, 80, 82, 81, 83, 78, 73,
|
|
|
|
81, 87, 77, 84, 79, 85, 83, 86, 88, 88,
|
|
89, 90, 82, 80, 110, 84, 91, 93, 87, 85,
|
|
959, 91, 92, 95, 95, 86, 97, 89, 88, 97,
|
|
106, 90, 105, 92, 93, 99, 110, 99, 99, 103,
|
|
99, 102, 102, 104, 103, 107, 105, 108, 113, 106,
|
|
107, 104, 108, 109, 111, 112, 114, 109, 111, 115,
|
|
112, 113, 109, 116, 117, 119, 109, 114, 116, 117,
|
|
114, 119, 109, 109, 118, 118, 115, 120, 121, 122,
|
|
123, 124, 125, 121, 122, 123, 124, 126, 127, 125,
|
|
128, 129, 136, 126, 130, 131, 132, 120, 140, 133,
|
|
|
|
131, 134, 135, 134, 139, 129, 139, 127, 143, 135,
|
|
136, 128, 953, 130, 137, 138, 140, 132, 133, 137,
|
|
138, 141, 139, 142, 144, 143, 141, 144, 145, 145,
|
|
146, 146, 147, 154, 148, 149, 137, 142, 149, 150,
|
|
151, 151, 155, 150, 152, 153, 156, 147, 148, 152,
|
|
153, 158, 154, 157, 157, 160, 159, 946, 156, 159,
|
|
161, 162, 155, 164, 164, 166, 160, 165, 158, 161,
|
|
165, 163, 162, 163, 163, 167, 168, 169, 169, 170,
|
|
170, 166, 171, 172, 166, 168, 173, 174, 172, 167,
|
|
175, 176, 174, 177, 178, 180, 176, 179, 177, 175,
|
|
|
|
179, 171, 183, 182, 184, 173, 186, 185, 180, 187,
|
|
228, 183, 185, 178, 188, 179, 181, 182, 181, 181,
|
|
192, 189, 184, 187, 228, 186, 193, 190, 194, 181,
|
|
181, 181, 190, 188, 189, 191, 191, 195, 191, 192,
|
|
196, 193, 197, 194, 199, 201, 198, 200, 199, 945,
|
|
201, 197, 202, 196, 195, 198, 200, 204, 202, 203,
|
|
203, 205, 204, 197, 206, 207, 208, 208, 211, 206,
|
|
210, 210, 205, 212, 213, 214, 216, 217, 221, 218,
|
|
220, 212, 217, 213, 219, 207, 214, 218, 211, 219,
|
|
222, 222, 223, 226, 224, 216, 221, 220, 222, 224,
|
|
|
|
225, 225, 227, 227, 224, 229, 230, 231, 232, 233,
|
|
236, 223, 234, 232, 235, 222, 229, 226, 238, 235,
|
|
237, 237, 236, 239, 230, 264, 234, 233, 231, 238,
|
|
240, 241, 944, 240, 242, 242, 244, 239, 243, 243,
|
|
251, 244, 264, 241, 245, 245, 246, 246, 247, 248,
|
|
253, 249, 247, 250, 248, 249, 252, 254, 250, 251,
|
|
254, 252, 529, 253, 529, 254, 255, 255, 254, 256,
|
|
257, 258, 256, 259, 257, 260, 258, 261, 259, 262,
|
|
261, 260, 262, 263, 265, 266, 267, 268, 263, 269,
|
|
266, 267, 268, 270, 272, 257, 270, 265, 269, 271,
|
|
|
|
274, 273, 275, 271, 271, 273, 276, 277, 277, 279,
|
|
280, 276, 942, 272, 274, 278, 275, 281, 282, 278,
|
|
286, 283, 284, 287, 279, 282, 283, 284, 280, 281,
|
|
285, 288, 287, 289, 293, 285, 289, 286, 290, 290,
|
|
292, 294, 295, 298, 288, 292, 304, 301, 303, 294,
|
|
305, 293, 301, 303, 306, 306, 295, 940, 307, 298,
|
|
302, 308, 308, 304, 302, 307, 309, 302, 310, 310,
|
|
311, 302, 314, 311, 305, 312, 316, 302, 302, 316,
|
|
309, 313, 313, 312, 315, 315, 314, 317, 318, 319,
|
|
320, 322, 325, 317, 321, 325, 318, 319, 322, 321,
|
|
|
|
323, 323, 326, 324, 327, 327, 328, 320, 324, 328,
|
|
330, 332, 333, 331, 334, 326, 328, 331, 335, 330,
|
|
334, 336, 337, 338, 340, 333, 336, 339, 343, 332,
|
|
342, 335, 339, 342, 338, 341, 341, 344, 345, 347,
|
|
337, 346, 346, 348, 340, 343, 351, 350, 352, 344,
|
|
354, 354, 355, 347, 353, 357, 357, 345, 354, 358,
|
|
351, 352, 356, 936, 358, 355, 348, 349, 360, 361,
|
|
349, 350, 349, 356, 353, 354, 349, 349, 359, 362,
|
|
362, 360, 349, 364, 366, 367, 359, 361, 364, 365,
|
|
368, 369, 365, 370, 371, 368, 369, 367, 374, 373,
|
|
|
|
375, 376, 366, 374, 383, 375, 376, 371, 377, 378,
|
|
378, 379, 370, 373, 381, 381, 379, 377, 381, 382,
|
|
385, 384, 386, 383, 384, 385, 387, 386, 388, 387,
|
|
389, 390, 391, 382, 393, 392, 390, 391, 392, 395,
|
|
397, 394, 396, 396, 393, 388, 394, 398, 399, 389,
|
|
400, 402, 399, 395, 401, 404, 405, 406, 397, 407,
|
|
398, 405, 406, 401, 408, 409, 410, 400, 404, 412,
|
|
409, 418, 407, 411, 411, 402, 413, 408, 414, 416,
|
|
410, 417, 419, 414, 415, 413, 412, 420, 415, 418,
|
|
421, 422, 423, 416, 424, 417, 421, 426, 427, 428,
|
|
|
|
432, 432, 419, 424, 420, 422, 427, 429, 435, 430,
|
|
426, 423, 429, 430, 430, 431, 433, 434, 428, 436,
|
|
431, 433, 437, 438, 436, 435, 440, 437, 438, 439,
|
|
434, 442, 441, 439, 443, 440, 441, 444, 445, 440,
|
|
446, 440, 447, 440, 448, 442, 445, 443, 449, 449,
|
|
450, 450, 451, 451, 452, 444, 453, 446, 454, 455,
|
|
456, 462, 448, 454, 453, 455, 447, 456, 461, 458,
|
|
459, 460, 464, 452, 458, 459, 460, 461, 465, 462,
|
|
463, 463, 466, 467, 467, 468, 469, 473, 470, 472,
|
|
474, 464, 475, 472, 472, 476, 475, 465, 477, 466,
|
|
|
|
478, 479, 480, 481, 468, 470, 479, 474, 481, 480,
|
|
469, 477, 473, 476, 482, 483, 484, 485, 478, 934,
|
|
486, 487, 488, 491, 483, 486, 487, 488, 489, 489,
|
|
484, 482, 492, 492, 493, 493, 494, 485, 495, 496,
|
|
497, 491, 494, 495, 498, 499, 500, 501, 503, 503,
|
|
502, 504, 506, 505, 517, 504, 509, 496, 497, 500,
|
|
507, 507, 498, 499, 502, 505, 516, 501, 508, 510,
|
|
518, 506, 511, 508, 510, 509, 515, 511, 517, 515,
|
|
516, 519, 519, 520, 518, 521, 521, 522, 523, 524,
|
|
527, 526, 523, 528, 530, 531, 532, 522, 533, 530,
|
|
|
|
531, 535, 520, 536, 533, 537, 535, 524, 526, 527,
|
|
538, 539, 528, 540, 543, 532, 539, 544, 540, 541,
|
|
541, 542, 537, 545, 546, 548, 542, 536, 547, 538,
|
|
548, 543, 549, 550, 551, 552, 544, 546, 555, 556,
|
|
547, 558, 545, 559, 552, 561, 552, 555, 559, 557,
|
|
558, 549, 550, 562, 551, 560, 560, 556, 557, 563,
|
|
557, 564, 565, 567, 561, 562, 566, 566, 569, 572,
|
|
570, 571, 572, 569, 564, 570, 563, 571, 572, 565,
|
|
567, 573, 574, 575, 578, 576, 579, 580, 581, 573,
|
|
579, 582, 580, 581, 583, 584, 586, 587, 932, 574,
|
|
|
|
582, 575, 576, 578, 585, 588, 584, 586, 583, 585,
|
|
590, 588, 589, 589, 587, 591, 591, 592, 599, 590,
|
|
593, 593, 592, 594, 594, 595, 595, 596, 598, 600,
|
|
596, 601, 605, 598, 600, 599, 602, 602, 603, 604,
|
|
606, 607, 608, 603, 609, 609, 610, 611, 612, 614,
|
|
604, 605, 604, 610, 615, 601, 611, 604, 617, 606,
|
|
607, 613, 613, 617, 619, 618, 621, 608, 620, 615,
|
|
618, 621, 622, 612, 614, 620, 623, 624, 625, 626,
|
|
627, 622, 629, 619, 625, 628, 631, 629, 626, 630,
|
|
623, 631, 632, 630, 630, 624, 633, 632, 628, 634,
|
|
|
|
627, 635, 637, 634, 636, 638, 640, 633, 641, 636,
|
|
639, 639, 640, 641, 642, 643, 638, 645, 647, 647,
|
|
642, 651, 652, 637, 643, 635, 651, 657, 645, 647,
|
|
653, 653, 654, 659, 654, 655, 655, 660, 652, 658,
|
|
658, 661, 663, 662, 664, 665, 657, 665, 660, 664,
|
|
666, 666, 661, 659, 662, 667, 663, 668, 669, 670,
|
|
669, 671, 668, 674, 670, 672, 671, 673, 674, 675,
|
|
676, 677, 678, 683, 675, 760, 679, 760, 681, 682,
|
|
667, 680, 672, 678, 677, 679, 673, 679, 676, 681,
|
|
680, 682, 683, 684, 685, 687, 688, 689, 689, 691,
|
|
|
|
685, 687, 690, 692, 693, 688, 696, 692, 684, 693,
|
|
881, 690, 694, 694, 699, 696, 702, 691, 697, 697,
|
|
698, 698, 700, 703, 701, 699, 704, 700, 701, 705,
|
|
702, 706, 708, 709, 881, 708, 710, 711, 711, 716,
|
|
705, 703, 712, 712, 714, 709, 704, 720, 710, 713,
|
|
713, 706, 715, 715, 718, 722, 714, 716, 723, 718,
|
|
719, 719, 721, 721, 723, 720, 724, 725, 725, 724,
|
|
726, 726, 722, 727, 728, 728, 729, 729, 730, 731,
|
|
731, 732, 725, 733, 734, 735, 736, 737, 733, 738,
|
|
735, 727, 732, 739, 741, 746, 737, 739, 738, 742,
|
|
|
|
736, 743, 743, 730, 734, 744, 746, 753, 742, 748,
|
|
744, 749, 748, 741, 750, 750, 749, 751, 754, 752,
|
|
755, 751, 752, 754, 756, 755, 753, 757, 758, 759,
|
|
756, 763, 763, 758, 765, 765, 772, 759, 766, 766,
|
|
768, 768, 757, 770, 771, 771, 773, 774, 770, 776,
|
|
776, 772, 774, 779, 780, 781, 780, 783, 779, 784,
|
|
781, 782, 782, 785, 786, 790, 787, 773, 783, 788,
|
|
788, 789, 791, 792, 785, 786, 784, 787, 793, 794,
|
|
789, 795, 795, 793, 794, 792, 797, 798, 798, 799,
|
|
790, 791, 800, 801, 802, 803, 803, 804, 806, 805,
|
|
|
|
807, 811, 804, 797, 812, 815, 799, 812, 801, 800,
|
|
813, 813, 802, 805, 814, 818, 806, 817, 817, 807,
|
|
811, 822, 815, 819, 819, 821, 821, 823, 814, 824,
|
|
825, 827, 828, 818, 824, 825, 823, 828, 829, 830,
|
|
831, 831, 822, 829, 834, 827, 832, 832, 835, 834,
|
|
841, 836, 837, 830, 838, 838, 839, 842, 844, 835,
|
|
836, 837, 843, 843, 845, 839, 846, 844, 841, 848,
|
|
849, 846, 845, 851, 851, 842, 853, 858, 848, 854,
|
|
854, 855, 849, 864, 855, 856, 856, 857, 857, 859,
|
|
858, 860, 860, 861, 859, 853, 865, 861, 866, 868,
|
|
|
|
867, 864, 869, 870, 865, 867, 871, 873, 877, 874,
|
|
873, 880, 870, 866, 875, 875, 876, 877, 868, 879,
|
|
876, 885, 880, 884, 884, 871, 874, 869, 879, 887,
|
|
885, 888, 889, 890, 887, 891, 892, 893, 894, 895,
|
|
896, 896, 893, 900, 892, 897, 889, 901, 890, 888,
|
|
897, 899, 899, 891, 902, 902, 904, 895, 903, 903,
|
|
905, 930, 900, 894, 906, 906, 908, 904, 901, 907,
|
|
907, 909, 910, 910, 911, 911, 909, 912, 912, 905,
|
|
913, 914, 914, 926, 908, 913, 916, 916, 918, 918,
|
|
919, 922, 922, 923, 937, 919, 927, 933, 923, 947,
|
|
|
|
927, 933, 926, 931, 931, 935, 935, 938, 938, 939,
|
|
939, 937, 941, 941, 943, 943, 948, 949, 947, 950,
|
|
951, 952, 952, 929, 928, 948, 925, 924, 921, 920,
|
|
917, 949, 950, 915, 898, 886, 883, 882, 951, 955,
|
|
955, 955, 955, 955, 955, 956, 956, 956, 956, 956,
|
|
956, 957, 957, 957, 957, 957, 957, 958, 958, 958,
|
|
958, 958, 958, 960, 960, 878, 960, 960, 960, 961,
|
|
961, 872, 863, 862, 961, 962, 962, 852, 850, 962,
|
|
964, 964, 847, 840, 833, 964, 965, 965, 826, 965,
|
|
965, 965, 820, 816, 810, 809, 808, 796, 778, 777,
|
|
|
|
775, 769, 767, 764, 762, 761, 747, 745, 740, 717,
|
|
707, 695, 686, 656, 650, 649, 648, 646, 644, 616,
|
|
597, 577, 568, 554, 553, 534, 525, 514, 513, 512,
|
|
490, 471, 457, 425, 403, 380, 372, 363, 329, 300,
|
|
299, 297, 296, 291, 215, 209, 101, 100, 98, 96,
|
|
94, 54, 50, 46, 45, 41, 36, 12, 11, 954,
|
|
954, 954, 954, 954, 954, 954, 954, 954, 954, 954,
|
|
954, 954, 954, 954, 954, 954, 954, 954, 954, 954,
|
|
954, 954, 954, 954, 954, 954, 954, 954, 954, 954,
|
|
954, 954, 954, 954, 954, 954, 954, 954
|
|
|
|
} ;
|
|
|
|
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
|
|
static int yy_more_flag = 0;
|
|
static int yy_more_len = 0;
|
|
#define yymore() ((yy_more_flag) = 1)
|
|
#define YY_MORE_ADJ (yy_more_len)
|
|
#define YY_RESTORE_YY_MORE_OFFSET
|
|
char *yytext;
|
|
#line 1 "util/configlexer.lex"
|
|
#line 2 "util/configlexer.lex"
|
|
/*
|
|
* configlexer.lex - lexical analyzer for unbound config file
|
|
*
|
|
* Copyright (c) 2001-2006, NLnet Labs. All rights reserved
|
|
*
|
|
* See LICENSE for the license.
|
|
*
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <ctype.h>
|
|
#include <string.h>
|
|
#include <strings.h>
|
|
|
|
#include "util/configyyrename.h"
|
|
#include "util/config_file.h"
|
|
#include "util/configparser.h"
|
|
void ub_c_error(const char *message);
|
|
|
|
#if 0
|
|
#define LEXOUT(s) printf s /* used ONLY when debugging */
|
|
#else
|
|
#define LEXOUT(s)
|
|
#endif
|
|
|
|
#define YDOUT LEXOUT(("v(%s )", yytext))
|
|
|
|
struct inc_state {
|
|
char* filename;
|
|
int line;
|
|
};
|
|
static struct inc_state parse_stack[MAXINCLUDES];
|
|
static YY_BUFFER_STATE include_stack[MAXINCLUDES];
|
|
static int config_include_stack_ptr = 0;
|
|
|
|
static void config_start_include(const char* filename)
|
|
{
|
|
FILE *input;
|
|
if(strlen(filename) == 0) {
|
|
ub_c_error_msg("empty include file name");
|
|
return;
|
|
}
|
|
if(config_include_stack_ptr >= MAXINCLUDES) {
|
|
ub_c_error_msg("includes nested too deeply, skipped (>%d)", MAXINCLUDES);
|
|
return;
|
|
}
|
|
input = fopen(filename, "r");
|
|
if(!input) {
|
|
ub_c_error_msg("cannot open include file '%s': %s",
|
|
filename, strerror(errno));
|
|
return;
|
|
}
|
|
LEXOUT(("switch_to_include_file(%s) ", filename));
|
|
parse_stack[config_include_stack_ptr].filename = cfg_parser->filename;
|
|
parse_stack[config_include_stack_ptr].line = cfg_parser->line;
|
|
include_stack[config_include_stack_ptr] = YY_CURRENT_BUFFER;
|
|
cfg_parser->filename = strdup(filename);
|
|
cfg_parser->line = 1;
|
|
yy_switch_to_buffer(yy_create_buffer(input,YY_BUF_SIZE));
|
|
++config_include_stack_ptr;
|
|
}
|
|
|
|
static void config_end_include(void)
|
|
{
|
|
--config_include_stack_ptr;
|
|
free(cfg_parser->filename);
|
|
cfg_parser->filename = parse_stack[config_include_stack_ptr].filename;
|
|
cfg_parser->line = parse_stack[config_include_stack_ptr].line;
|
|
yy_delete_buffer(YY_CURRENT_BUFFER);
|
|
yy_switch_to_buffer(include_stack[config_include_stack_ptr]);
|
|
}
|
|
|
|
#ifndef yy_set_bol /* compat definition, for flex 2.4.6 */
|
|
#define yy_set_bol(at_bol) \
|
|
{ \
|
|
if ( ! yy_current_buffer ) \
|
|
yy_current_buffer = yy_create_buffer(yyin,YY_BUF_SIZE ); \
|
|
yy_current_buffer->yy_ch_buf[0] = ((at_bol)?'\n':' '); \
|
|
}
|
|
#endif
|
|
|
|
#define YY_NO_INPUT 1
|
|
#line 88 "util/configlexer.lex"
|
|
#ifndef YY_NO_UNPUT
|
|
#define YY_NO_UNPUT 1
|
|
#endif
|
|
#ifndef YY_NO_INPUT
|
|
#define YY_NO_INPUT 1
|
|
#endif
|
|
|
|
#line 1299 "<stdout>"
|
|
|
|
#define INITIAL 0
|
|
#define quotedstring 1
|
|
#define singlequotedstr 2
|
|
#define include 3
|
|
#define include_quoted 4
|
|
|
|
#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 yytext_ptr
|
|
static void yy_flex_strncpy (char *,yyconst char *,int );
|
|
#endif
|
|
|
|
#ifdef YY_NEED_STRLEN
|
|
static int yy_flex_strlen (yyconst 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
|
|
#define YY_READ_BUF_SIZE 8192
|
|
#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 fwrite( yytext, yyleng, 1, yyout )
|
|
#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 = '*'; \
|
|
unsigned 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 = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
|
|
{ \
|
|
if( errno != EINTR) \
|
|
{ \
|
|
YY_FATAL_ERROR( "input in flex scanner failed" ); \
|
|
break; \
|
|
} \
|
|
errno=0; \
|
|
clearerr(yyin); \
|
|
} \
|
|
}\
|
|
\
|
|
|
|
#endif
|
|
|
|
/* No semi-colon after return; correct usage is to write "yyterminate();" -
|
|
* 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 break;
|
|
#endif
|
|
|
|
#define YY_RULE_SETUP \
|
|
YY_USER_ACTION
|
|
|
|
/** The main scanner function which does all the work.
|
|
*/
|
|
YY_DECL
|
|
{
|
|
register yy_state_type yy_current_state;
|
|
register char *yy_cp, *yy_bp;
|
|
register int yy_act;
|
|
|
|
#line 107 "util/configlexer.lex"
|
|
|
|
#line 1485 "<stdout>"
|
|
|
|
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( );
|
|
}
|
|
|
|
while ( 1 ) /* loops until end-of-file is reached */
|
|
{
|
|
(yy_more_len) = 0;
|
|
if ( (yy_more_flag) )
|
|
{
|
|
(yy_more_len) = (yy_c_buf_p) - (yytext_ptr);
|
|
(yy_more_flag) = 0;
|
|
}
|
|
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_match:
|
|
do
|
|
{
|
|
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
|
if ( yy_accept[yy_current_state] )
|
|
{
|
|
(yy_last_accepting_state) = yy_current_state;
|
|
(yy_last_accepting_cpos) = yy_cp;
|
|
}
|
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
|
{
|
|
yy_current_state = (int) yy_def[yy_current_state];
|
|
if ( yy_current_state >= 955 )
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
}
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
|
++yy_cp;
|
|
}
|
|
while ( yy_base[yy_current_state] != 1960 );
|
|
|
|
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;
|
|
|
|
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 108 "util/configlexer.lex"
|
|
{ LEXOUT(("SP ")); /* ignore */ }
|
|
YY_BREAK
|
|
case 2:
|
|
YY_RULE_SETUP
|
|
#line 109 "util/configlexer.lex"
|
|
{ LEXOUT(("comment(%s) ", yytext)); /* ignore */ }
|
|
YY_BREAK
|
|
case 3:
|
|
YY_RULE_SETUP
|
|
#line 110 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_SERVER;}
|
|
YY_BREAK
|
|
case 4:
|
|
YY_RULE_SETUP
|
|
#line 111 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_NUM_THREADS;}
|
|
YY_BREAK
|
|
case 5:
|
|
YY_RULE_SETUP
|
|
#line 112 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_VERBOSITY;}
|
|
YY_BREAK
|
|
case 6:
|
|
YY_RULE_SETUP
|
|
#line 113 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_PORT;}
|
|
YY_BREAK
|
|
case 7:
|
|
YY_RULE_SETUP
|
|
#line 114 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_OUTGOING_RANGE;}
|
|
YY_BREAK
|
|
case 8:
|
|
YY_RULE_SETUP
|
|
#line 115 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_OUTGOING_PORT_PERMIT;}
|
|
YY_BREAK
|
|
case 9:
|
|
YY_RULE_SETUP
|
|
#line 116 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_OUTGOING_PORT_AVOID;}
|
|
YY_BREAK
|
|
case 10:
|
|
YY_RULE_SETUP
|
|
#line 117 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_OUTGOING_NUM_TCP;}
|
|
YY_BREAK
|
|
case 11:
|
|
YY_RULE_SETUP
|
|
#line 118 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_INCOMING_NUM_TCP;}
|
|
YY_BREAK
|
|
case 12:
|
|
YY_RULE_SETUP
|
|
#line 119 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DO_IP4;}
|
|
YY_BREAK
|
|
case 13:
|
|
YY_RULE_SETUP
|
|
#line 120 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DO_IP6;}
|
|
YY_BREAK
|
|
case 14:
|
|
YY_RULE_SETUP
|
|
#line 121 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DO_UDP;}
|
|
YY_BREAK
|
|
case 15:
|
|
YY_RULE_SETUP
|
|
#line 122 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DO_TCP;}
|
|
YY_BREAK
|
|
case 16:
|
|
YY_RULE_SETUP
|
|
#line 123 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DO_DAEMONIZE;}
|
|
YY_BREAK
|
|
case 17:
|
|
YY_RULE_SETUP
|
|
#line 124 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_INTERFACE;}
|
|
YY_BREAK
|
|
case 18:
|
|
YY_RULE_SETUP
|
|
#line 125 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_OUTGOING_INTERFACE;}
|
|
YY_BREAK
|
|
case 19:
|
|
YY_RULE_SETUP
|
|
#line 126 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_INTERFACE_AUTOMATIC;}
|
|
YY_BREAK
|
|
case 20:
|
|
YY_RULE_SETUP
|
|
#line 127 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_CHROOT;}
|
|
YY_BREAK
|
|
case 21:
|
|
YY_RULE_SETUP
|
|
#line 128 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_USERNAME;}
|
|
YY_BREAK
|
|
case 22:
|
|
YY_RULE_SETUP
|
|
#line 129 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DIRECTORY;}
|
|
YY_BREAK
|
|
case 23:
|
|
YY_RULE_SETUP
|
|
#line 130 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_LOGFILE;}
|
|
YY_BREAK
|
|
case 24:
|
|
YY_RULE_SETUP
|
|
#line 131 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_PIDFILE;}
|
|
YY_BREAK
|
|
case 25:
|
|
YY_RULE_SETUP
|
|
#line 132 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_ROOT_HINTS;}
|
|
YY_BREAK
|
|
case 26:
|
|
YY_RULE_SETUP
|
|
#line 133 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_MSG_BUFFER_SIZE;}
|
|
YY_BREAK
|
|
case 27:
|
|
YY_RULE_SETUP
|
|
#line 134 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_MSG_CACHE_SIZE;}
|
|
YY_BREAK
|
|
case 28:
|
|
YY_RULE_SETUP
|
|
#line 135 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_MSG_CACHE_SLABS;}
|
|
YY_BREAK
|
|
case 29:
|
|
YY_RULE_SETUP
|
|
#line 136 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_RRSET_CACHE_SIZE;}
|
|
YY_BREAK
|
|
case 30:
|
|
YY_RULE_SETUP
|
|
#line 137 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_RRSET_CACHE_SLABS;}
|
|
YY_BREAK
|
|
case 31:
|
|
YY_RULE_SETUP
|
|
#line 138 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_CACHE_MAX_TTL;}
|
|
YY_BREAK
|
|
case 32:
|
|
YY_RULE_SETUP
|
|
#line 139 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_INFRA_HOST_TTL;}
|
|
YY_BREAK
|
|
case 33:
|
|
YY_RULE_SETUP
|
|
#line 140 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_INFRA_LAME_TTL;}
|
|
YY_BREAK
|
|
case 34:
|
|
YY_RULE_SETUP
|
|
#line 141 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_INFRA_CACHE_SLABS;}
|
|
YY_BREAK
|
|
case 35:
|
|
YY_RULE_SETUP
|
|
#line 142 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_INFRA_CACHE_NUMHOSTS;}
|
|
YY_BREAK
|
|
case 36:
|
|
YY_RULE_SETUP
|
|
#line 143 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_INFRA_CACHE_LAME_SIZE;}
|
|
YY_BREAK
|
|
case 37:
|
|
YY_RULE_SETUP
|
|
#line 144 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_NUM_QUERIES_PER_THREAD;}
|
|
YY_BREAK
|
|
case 38:
|
|
YY_RULE_SETUP
|
|
#line 145 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_TARGET_FETCH_POLICY;}
|
|
YY_BREAK
|
|
case 39:
|
|
YY_RULE_SETUP
|
|
#line 146 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_HARDEN_SHORT_BUFSIZE;}
|
|
YY_BREAK
|
|
case 40:
|
|
YY_RULE_SETUP
|
|
#line 147 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_HARDEN_LARGE_QUERIES;}
|
|
YY_BREAK
|
|
case 41:
|
|
YY_RULE_SETUP
|
|
#line 148 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_HARDEN_GLUE;}
|
|
YY_BREAK
|
|
case 42:
|
|
YY_RULE_SETUP
|
|
#line 149 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_HARDEN_DNNSEC_STRIPPED;}
|
|
YY_BREAK
|
|
case 43:
|
|
YY_RULE_SETUP
|
|
#line 150 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_HARDEN_REFERRAL_PATH;}
|
|
YY_BREAK
|
|
case 44:
|
|
YY_RULE_SETUP
|
|
#line 151 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_USE_CAPS_FOR_ID;}
|
|
YY_BREAK
|
|
case 45:
|
|
YY_RULE_SETUP
|
|
#line 152 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_PRIVATE_ADDRESS;}
|
|
YY_BREAK
|
|
case 46:
|
|
YY_RULE_SETUP
|
|
#line 153 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_PRIVATE_DOMAIN;}
|
|
YY_BREAK
|
|
case 47:
|
|
YY_RULE_SETUP
|
|
#line 154 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_STUB_ZONE;}
|
|
YY_BREAK
|
|
case 48:
|
|
YY_RULE_SETUP
|
|
#line 155 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_NAME;}
|
|
YY_BREAK
|
|
case 49:
|
|
YY_RULE_SETUP
|
|
#line 156 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_STUB_ADDR;}
|
|
YY_BREAK
|
|
case 50:
|
|
YY_RULE_SETUP
|
|
#line 157 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_STUB_HOST;}
|
|
YY_BREAK
|
|
case 51:
|
|
YY_RULE_SETUP
|
|
#line 158 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_FORWARD_ZONE;}
|
|
YY_BREAK
|
|
case 52:
|
|
YY_RULE_SETUP
|
|
#line 159 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_FORWARD_ADDR;}
|
|
YY_BREAK
|
|
case 53:
|
|
YY_RULE_SETUP
|
|
#line 160 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_FORWARD_HOST;}
|
|
YY_BREAK
|
|
case 54:
|
|
YY_RULE_SETUP
|
|
#line 161 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DO_NOT_QUERY_ADDRESS;}
|
|
YY_BREAK
|
|
case 55:
|
|
YY_RULE_SETUP
|
|
#line 162 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DO_NOT_QUERY_LOCALHOST;}
|
|
YY_BREAK
|
|
case 56:
|
|
YY_RULE_SETUP
|
|
#line 163 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_ACCESS_CONTROL;}
|
|
YY_BREAK
|
|
case 57:
|
|
YY_RULE_SETUP
|
|
#line 164 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_HIDE_IDENTITY;}
|
|
YY_BREAK
|
|
case 58:
|
|
YY_RULE_SETUP
|
|
#line 165 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_HIDE_VERSION;}
|
|
YY_BREAK
|
|
case 59:
|
|
YY_RULE_SETUP
|
|
#line 166 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_IDENTITY;}
|
|
YY_BREAK
|
|
case 60:
|
|
YY_RULE_SETUP
|
|
#line 167 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_VERSION;}
|
|
YY_BREAK
|
|
case 61:
|
|
YY_RULE_SETUP
|
|
#line 168 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_MODULE_CONF;}
|
|
YY_BREAK
|
|
case 62:
|
|
YY_RULE_SETUP
|
|
#line 169 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DLV_ANCHOR;}
|
|
YY_BREAK
|
|
case 63:
|
|
YY_RULE_SETUP
|
|
#line 170 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_DLV_ANCHOR_FILE;}
|
|
YY_BREAK
|
|
case 64:
|
|
YY_RULE_SETUP
|
|
#line 171 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_TRUST_ANCHOR_FILE;}
|
|
YY_BREAK
|
|
case 65:
|
|
YY_RULE_SETUP
|
|
#line 172 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_TRUSTED_KEYS_FILE;}
|
|
YY_BREAK
|
|
case 66:
|
|
YY_RULE_SETUP
|
|
#line 173 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_TRUST_ANCHOR;}
|
|
YY_BREAK
|
|
case 67:
|
|
YY_RULE_SETUP
|
|
#line 174 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_VAL_OVERRIDE_DATE;}
|
|
YY_BREAK
|
|
case 68:
|
|
YY_RULE_SETUP
|
|
#line 175 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_BOGUS_TTL;}
|
|
YY_BREAK
|
|
case 69:
|
|
YY_RULE_SETUP
|
|
#line 176 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_VAL_CLEAN_ADDITIONAL;}
|
|
YY_BREAK
|
|
case 70:
|
|
YY_RULE_SETUP
|
|
#line 177 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_VAL_PERMISSIVE_MODE;}
|
|
YY_BREAK
|
|
case 71:
|
|
YY_RULE_SETUP
|
|
#line 178 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_KEY_CACHE_SIZE;}
|
|
YY_BREAK
|
|
case 72:
|
|
YY_RULE_SETUP
|
|
#line 179 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_KEY_CACHE_SLABS;}
|
|
YY_BREAK
|
|
case 73:
|
|
YY_RULE_SETUP
|
|
#line 180 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_NEG_CACHE_SIZE;}
|
|
YY_BREAK
|
|
case 74:
|
|
YY_RULE_SETUP
|
|
#line 181 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_VAL_NSEC3_KEYSIZE_ITERATIONS;}
|
|
YY_BREAK
|
|
case 75:
|
|
YY_RULE_SETUP
|
|
#line 182 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_USE_SYSLOG;}
|
|
YY_BREAK
|
|
case 76:
|
|
YY_RULE_SETUP
|
|
#line 183 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_LOCAL_ZONE;}
|
|
YY_BREAK
|
|
case 77:
|
|
YY_RULE_SETUP
|
|
#line 184 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_LOCAL_DATA;}
|
|
YY_BREAK
|
|
case 78:
|
|
YY_RULE_SETUP
|
|
#line 185 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_STATISTICS_INTERVAL;}
|
|
YY_BREAK
|
|
case 79:
|
|
YY_RULE_SETUP
|
|
#line 186 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_STATISTICS_CUMULATIVE;}
|
|
YY_BREAK
|
|
case 80:
|
|
YY_RULE_SETUP
|
|
#line 187 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_REMOTE_CONTROL; }
|
|
YY_BREAK
|
|
case 81:
|
|
YY_RULE_SETUP
|
|
#line 188 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_CONTROL_ENABLE; }
|
|
YY_BREAK
|
|
case 82:
|
|
YY_RULE_SETUP
|
|
#line 189 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_CONTROL_INTERFACE; }
|
|
YY_BREAK
|
|
case 83:
|
|
YY_RULE_SETUP
|
|
#line 190 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_CONTROL_PORT; }
|
|
YY_BREAK
|
|
case 84:
|
|
YY_RULE_SETUP
|
|
#line 191 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_SERVER_KEY_FILE; }
|
|
YY_BREAK
|
|
case 85:
|
|
YY_RULE_SETUP
|
|
#line 192 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_SERVER_CERT_FILE; }
|
|
YY_BREAK
|
|
case 86:
|
|
YY_RULE_SETUP
|
|
#line 193 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_CONTROL_KEY_FILE; }
|
|
YY_BREAK
|
|
case 87:
|
|
YY_RULE_SETUP
|
|
#line 194 "util/configlexer.lex"
|
|
{ YDOUT; return VAR_CONTROL_CERT_FILE; }
|
|
YY_BREAK
|
|
case 88:
|
|
/* rule 88 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 195 "util/configlexer.lex"
|
|
{ LEXOUT(("NL\n")); cfg_parser->line++;}
|
|
YY_BREAK
|
|
/* Quoted strings. Strip leading and ending quotes */
|
|
case 89:
|
|
YY_RULE_SETUP
|
|
#line 198 "util/configlexer.lex"
|
|
{ BEGIN(quotedstring); LEXOUT(("QS ")); }
|
|
YY_BREAK
|
|
case YY_STATE_EOF(quotedstring):
|
|
#line 199 "util/configlexer.lex"
|
|
{
|
|
yyerror("EOF inside quoted string");
|
|
BEGIN(INITIAL);
|
|
}
|
|
YY_BREAK
|
|
case 90:
|
|
YY_RULE_SETUP
|
|
#line 203 "util/configlexer.lex"
|
|
{ LEXOUT(("STR(%s) ", yytext)); yymore(); }
|
|
YY_BREAK
|
|
case 91:
|
|
/* rule 91 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 204 "util/configlexer.lex"
|
|
{ cfg_parser->line++; yymore(); }
|
|
YY_BREAK
|
|
case 92:
|
|
YY_RULE_SETUP
|
|
#line 205 "util/configlexer.lex"
|
|
{
|
|
LEXOUT(("QE "));
|
|
BEGIN(INITIAL);
|
|
yytext[yyleng - 1] = '\0';
|
|
yylval.str = strdup(yytext);
|
|
if(!yylval.str)
|
|
yyerror("out of memory");
|
|
return STRING;
|
|
}
|
|
YY_BREAK
|
|
/* Single Quoted strings. Strip leading and ending quotes */
|
|
case 93:
|
|
YY_RULE_SETUP
|
|
#line 216 "util/configlexer.lex"
|
|
{ BEGIN(singlequotedstr); LEXOUT(("SQS ")); }
|
|
YY_BREAK
|
|
case YY_STATE_EOF(singlequotedstr):
|
|
#line 217 "util/configlexer.lex"
|
|
{
|
|
yyerror("EOF inside quoted string");
|
|
BEGIN(INITIAL);
|
|
}
|
|
YY_BREAK
|
|
case 94:
|
|
YY_RULE_SETUP
|
|
#line 221 "util/configlexer.lex"
|
|
{ LEXOUT(("STR(%s) ", yytext)); yymore(); }
|
|
YY_BREAK
|
|
case 95:
|
|
/* rule 95 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 222 "util/configlexer.lex"
|
|
{ cfg_parser->line++; yymore(); }
|
|
YY_BREAK
|
|
case 96:
|
|
YY_RULE_SETUP
|
|
#line 223 "util/configlexer.lex"
|
|
{
|
|
LEXOUT(("SQE "));
|
|
BEGIN(INITIAL);
|
|
yytext[yyleng - 1] = '\0';
|
|
yylval.str = strdup(yytext);
|
|
if(!yylval.str)
|
|
yyerror("out of memory");
|
|
return STRING;
|
|
}
|
|
YY_BREAK
|
|
/* include: directive */
|
|
case 97:
|
|
YY_RULE_SETUP
|
|
#line 234 "util/configlexer.lex"
|
|
{ LEXOUT(("v(%s) ", yytext)); BEGIN(include); }
|
|
YY_BREAK
|
|
case YY_STATE_EOF(include):
|
|
#line 235 "util/configlexer.lex"
|
|
{
|
|
yyerror("EOF inside include directive");
|
|
BEGIN(INITIAL);
|
|
}
|
|
YY_BREAK
|
|
case 98:
|
|
YY_RULE_SETUP
|
|
#line 239 "util/configlexer.lex"
|
|
{ LEXOUT(("ISP ")); /* ignore */ }
|
|
YY_BREAK
|
|
case 99:
|
|
/* rule 99 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 240 "util/configlexer.lex"
|
|
{ LEXOUT(("NL\n")); cfg_parser->line++;}
|
|
YY_BREAK
|
|
case 100:
|
|
YY_RULE_SETUP
|
|
#line 241 "util/configlexer.lex"
|
|
{ LEXOUT(("IQS ")); BEGIN(include_quoted); }
|
|
YY_BREAK
|
|
case 101:
|
|
YY_RULE_SETUP
|
|
#line 242 "util/configlexer.lex"
|
|
{
|
|
LEXOUT(("Iunquotedstr(%s) ", yytext));
|
|
config_start_include(yytext);
|
|
BEGIN(INITIAL);
|
|
}
|
|
YY_BREAK
|
|
case YY_STATE_EOF(include_quoted):
|
|
#line 247 "util/configlexer.lex"
|
|
{
|
|
yyerror("EOF inside quoted string");
|
|
BEGIN(INITIAL);
|
|
}
|
|
YY_BREAK
|
|
case 102:
|
|
YY_RULE_SETUP
|
|
#line 251 "util/configlexer.lex"
|
|
{ LEXOUT(("ISTR(%s) ", yytext)); yymore(); }
|
|
YY_BREAK
|
|
case 103:
|
|
/* rule 103 can match eol */
|
|
YY_RULE_SETUP
|
|
#line 252 "util/configlexer.lex"
|
|
{ cfg_parser->line++; yymore(); }
|
|
YY_BREAK
|
|
case 104:
|
|
YY_RULE_SETUP
|
|
#line 253 "util/configlexer.lex"
|
|
{
|
|
LEXOUT(("IQE "));
|
|
yytext[yyleng - 1] = '\0';
|
|
config_start_include(yytext);
|
|
BEGIN(INITIAL);
|
|
}
|
|
YY_BREAK
|
|
case YY_STATE_EOF(INITIAL):
|
|
#line 259 "util/configlexer.lex"
|
|
{
|
|
yy_set_bol(1); /* Set beginning of line, so "^" rules match. */
|
|
if (config_include_stack_ptr == 0) {
|
|
yyterminate();
|
|
} else {
|
|
fclose(yyin);
|
|
config_end_include();
|
|
}
|
|
}
|
|
YY_BREAK
|
|
case 105:
|
|
YY_RULE_SETUP
|
|
#line 269 "util/configlexer.lex"
|
|
{ LEXOUT(("unquotedstr(%s) ", yytext));
|
|
yylval.str = strdup(yytext); return STRING; }
|
|
YY_BREAK
|
|
case 106:
|
|
YY_RULE_SETUP
|
|
#line 272 "util/configlexer.lex"
|
|
ECHO;
|
|
YY_BREAK
|
|
#line 2178 "<stdout>"
|
|
|
|
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 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)
|
|
{
|
|
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
|
register char *source = (yytext_ptr);
|
|
register int number_to_move, i;
|
|
int ret_val;
|
|
|
|
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_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;
|
|
|
|
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,b->yy_buf_size + 2 );
|
|
}
|
|
else
|
|
/* Can't grow it, we don't own it. */
|
|
b->yy_ch_buf = 0;
|
|
|
|
if ( ! b->yy_ch_buf )
|
|
YY_FATAL_ERROR(
|
|
"fatal error - scanner input buffer overflow" );
|
|
|
|
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
|
|
|
|
num_to_read = YY_CURRENT_BUFFER_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), (size_t) 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_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
|
|
/* Extend the array by 50%, plus the number we really need. */
|
|
yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
|
|
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
|
|
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
|
|
}
|
|
|
|
(yy_n_chars) += number_to_move;
|
|
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
|
|
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
|
|
|
|
return ret_val;
|
|
}
|
|
|
|
/* yy_get_previous_state - get the state just before the EOB char was reached */
|
|
|
|
static yy_state_type yy_get_previous_state (void)
|
|
{
|
|
register yy_state_type yy_current_state;
|
|
register char *yy_cp;
|
|
|
|
yy_current_state = (yy_start);
|
|
|
|
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
|
|
{
|
|
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
|
if ( yy_accept[yy_current_state] )
|
|
{
|
|
(yy_last_accepting_state) = yy_current_state;
|
|
(yy_last_accepting_cpos) = yy_cp;
|
|
}
|
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
|
{
|
|
yy_current_state = (int) yy_def[yy_current_state];
|
|
if ( yy_current_state >= 955 )
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
}
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) 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 )
|
|
{
|
|
register int yy_is_jam;
|
|
register char *yy_cp = (yy_c_buf_p);
|
|
|
|
register YY_CHAR yy_c = 1;
|
|
if ( yy_accept[yy_current_state] )
|
|
{
|
|
(yy_last_accepting_state) = yy_current_state;
|
|
(yy_last_accepting_cpos) = yy_cp;
|
|
}
|
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
|
{
|
|
yy_current_state = (int) yy_def[yy_current_state];
|
|
if ( yy_current_state >= 955 )
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
}
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
|
yy_is_jam = (yy_current_state == 954);
|
|
|
|
return yy_is_jam ? 0 : yy_current_state;
|
|
}
|
|
|
|
#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 = (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 EOF;
|
|
|
|
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);
|
|
|
|
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(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 );
|
|
}
|
|
|
|
#ifndef __cplusplus
|
|
extern int isatty (int );
|
|
#endif /* __cplusplus */
|
|
|
|
/* Initializes or reinitializes a buffer.
|
|
* This function is sometimes called more than once on the same buffer,
|
|
* such as during a yyrestart() or at EOF.
|
|
*/
|
|
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
|
|
|
|
{
|
|
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)
|
|
{
|
|
int num_to_alloc;
|
|
|
|
if (!(yy_buffer_stack)) {
|
|
|
|
/* First allocation is just for 2 elements, since we don't know if this
|
|
* scanner will even need a stack. We use 2 instead of 1 to avoid an
|
|
* immediate realloc on the next call.
|
|
*/
|
|
num_to_alloc = 1;
|
|
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
|
|
(num_to_alloc * sizeof(struct yy_buffer_state*)
|
|
);
|
|
if ( ! (yy_buffer_stack) )
|
|
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
|
|
|
|
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
|
|
|
|
(yy_buffer_stack_max) = num_to_alloc;
|
|
(yy_buffer_stack_top) = 0;
|
|
return;
|
|
}
|
|
|
|
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
|
|
|
|
/* Increase the buffer to prepare for a possible push. */
|
|
int grow_size = 8 /* arbitrary grow size */;
|
|
|
|
num_to_alloc = (yy_buffer_stack_max) + grow_size;
|
|
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
|
|
((yy_buffer_stack),
|
|
num_to_alloc * sizeof(struct yy_buffer_state*)
|
|
);
|
|
if ( ! (yy_buffer_stack) )
|
|
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
|
|
|
|
/* zero only the new slots.*/
|
|
memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
|
|
(yy_buffer_stack_max) = num_to_alloc;
|
|
}
|
|
}
|
|
|
|
/** Setup the input buffer state to scan directly from a user-specified character buffer.
|
|
* @param base the character buffer
|
|
* @param size the size in bytes of the character buffer
|
|
*
|
|
* @return the newly allocated buffer state object.
|
|
*/
|
|
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
|
|
{
|
|
YY_BUFFER_STATE b;
|
|
|
|
if ( size < 2 ||
|
|
base[size-2] != YY_END_OF_BUFFER_CHAR ||
|
|
base[size-1] != YY_END_OF_BUFFER_CHAR )
|
|
/* They forgot to leave room for the EOB's. */
|
|
return 0;
|
|
|
|
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
|
|
if ( ! b )
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
|
|
|
|
b->yy_buf_size = 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 = 0;
|
|
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 (yyconst char * yystr )
|
|
{
|
|
|
|
return yy_scan_bytes(yystr,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 bytes the byte buffer to scan
|
|
* @param len the number of bytes in the buffer pointed to by @a bytes.
|
|
*
|
|
* @return the newly allocated buffer state object.
|
|
*/
|
|
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
|
|
{
|
|
YY_BUFFER_STATE b;
|
|
char *buf;
|
|
yy_size_t n;
|
|
int i;
|
|
|
|
/* Get memory for full buffer, including space for trailing EOB's. */
|
|
n = _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 yy_fatal_error (yyconst char* msg )
|
|
{
|
|
(void) 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
|
|
*
|
|
*/
|
|
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.
|
|
*/
|
|
|
|
(yy_buffer_stack) = 0;
|
|
(yy_buffer_stack_top) = 0;
|
|
(yy_buffer_stack_max) = 0;
|
|
(yy_c_buf_p) = (char *) 0;
|
|
(yy_init) = 0;
|
|
(yy_start) = 0;
|
|
|
|
/* Defined in main.c */
|
|
#ifdef YY_STDINIT
|
|
yyin = stdin;
|
|
yyout = stdout;
|
|
#else
|
|
yyin = (FILE *) 0;
|
|
yyout = (FILE *) 0;
|
|
#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, yyconst char * s2, int n )
|
|
{
|
|
register int i;
|
|
for ( i = 0; i < n; ++i )
|
|
s1[i] = s2[i];
|
|
}
|
|
#endif
|
|
|
|
#ifdef YY_NEED_STRLEN
|
|
static int yy_flex_strlen (yyconst char * s )
|
|
{
|
|
register int n;
|
|
for ( n = 0; s[n]; ++n )
|
|
;
|
|
|
|
return n;
|
|
}
|
|
#endif
|
|
|
|
void *yyalloc (yy_size_t size )
|
|
{
|
|
return (void *) 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 (void *) realloc( (char *) ptr, size );
|
|
}
|
|
|
|
void yyfree (void * ptr )
|
|
{
|
|
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
|
|
}
|
|
|
|
#define YYTABLES_NAME "yytables"
|
|
|
|
#line 272 "util/configlexer.lex"
|
|
|
|
|
|
|