#line 2 "dhcp6_lexer.cc" #line 4 "dhcp6_lexer.cc" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ /* %not-for-header */ /* %if-c-only */ /* %if-not-reentrant */ #define yy_create_buffer parser6__create_buffer #define yy_delete_buffer parser6__delete_buffer #define yy_flex_debug parser6__flex_debug #define yy_init_buffer parser6__init_buffer #define yy_flush_buffer parser6__flush_buffer #define yy_load_buffer_state parser6__load_buffer_state #define yy_switch_to_buffer parser6__switch_to_buffer #define yyin parser6_in #define yyleng parser6_leng #define yylex parser6_lex #define yylineno parser6_lineno #define yyout parser6_out #define yyrestart parser6_restart #define yytext parser6_text #define yywrap parser6_wrap #define yyalloc parser6_alloc #define yyrealloc parser6_realloc #define yyfree parser6_free /* %endif */ /* %endif */ /* %ok-for-header */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 1 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* %if-c++-only */ /* %endif */ /* %if-c-only */ /* %endif */ /* %if-c-only */ /* %endif */ /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ /* %if-c-only */ #include #include #include #include /* %endif */ /* %if-tables-serialization */ /* %endif */ /* end standard C headers. */ /* %if-c-or-c++ */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* 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 /* ! C99 */ #endif /* ! FLEXINT_H */ /* %endif */ /* %if-c++-only */ /* %endif */ /* TODO: this is always defined, so inline it */ #define yyconst const #if defined(__GNUC__) && __GNUC__ >= 3 #define yynoreturn __attribute__((__noreturn__)) #else #define yynoreturn #endif /* %not-for-header */ /* Returned upon end-of-file. */ #define YY_NULL 0 /* %ok-for-header */ /* %not-for-header */ /* 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) /* %ok-for-header */ /* %if-reentrant */ /* %endif */ /* %if-not-reentrant */ /* %endif */ /* 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 parser6_restart(parser6_in ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. * Ditto for the __ia64__ case accordingly. */ #define YY_BUF_SIZE 32768 #else #define YY_BUF_SIZE 16384 #endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif /* %if-not-reentrant */ extern int parser6_leng; /* %endif */ /* %if-c-only */ /* %if-not-reentrant */ extern FILE *parser6_in, *parser6_out; /* %endif */ /* %endif */ #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) #define YY_LINENO_REWIND_TO(ptr) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up parser6_text. */ \ 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 parser6_text again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { /* %if-c-only */ FILE *yy_input_file; /* %endif */ /* %if-c++-only */ /* %endif */ char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ int yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via parser6_restart()), so that the user can continue scanning by * just pointing parser6_in at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* %if-c-only Standard (non-C++) definition */ /* %not-for-header */ /* %if-not-reentrant */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */ /* %endif */ /* %ok-for-header */ /* %endif */ /* 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)] /* %if-c-only Standard (non-C++) definition */ /* %if-not-reentrant */ /* %not-for-header */ /* yy_hold_char holds the character lost when parser6_text is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int parser6_leng; /* Points to current character in buffer. */ static char *yy_c_buf_p = NULL; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow parser6_wrap()'s to do buffer switches * instead of setting up a fresh parser6_in. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; /* %ok-for-header */ /* %endif */ void parser6_restart (FILE *input_file ); void parser6__switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE parser6__create_buffer (FILE *file,int size ); void parser6__delete_buffer (YY_BUFFER_STATE b ); void parser6__flush_buffer (YY_BUFFER_STATE b ); void parser6_push_buffer_state (YY_BUFFER_STATE new_buffer ); void parser6_pop_buffer_state (void ); static void parser6_ensure_buffer_stack (void ); static void parser6__load_buffer_state (void ); static void parser6__init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER parser6__flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE parser6__scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE parser6__scan_string (yyconst char *yy_str ); YY_BUFFER_STATE parser6__scan_bytes (yyconst char *bytes,int len ); /* %endif */ void *parser6_alloc (yy_size_t ); void *parser6_realloc (void *,yy_size_t ); void parser6_free (void * ); #define yy_new_buffer parser6__create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ parser6_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ parser6__create_buffer(parser6_in,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ parser6_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ parser6__create_buffer(parser6_in,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* %% [1.0] parser6_text/parser6_in/parser6_out/yy_state_type/parser6_lineno etc. def's & init go here */ /* Begin user sect3 */ #define parser6_wrap() (/*CONSTCOND*/1) #define YY_SKIP_YYWRAP #define FLEX_DEBUG typedef unsigned char YY_CHAR; FILE *parser6_in = NULL, *parser6_out = NULL; typedef int yy_state_type; extern int parser6_lineno; int parser6_lineno = 1; extern char *parser6_text; #ifdef yytext_ptr #undef yytext_ptr #endif #define yytext_ptr parser6_text /* %% [1.5] DFA */ /* %if-c-only Standard (non-C++) definition */ static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yynoreturn yy_fatal_error (yyconst char* msg ); /* %endif */ /* Done after the current pattern has been matched and before the * corresponding action - sets up parser6_text. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ /* %% [2.0] code to fiddle parser6_text and parser6_leng for yymore() goes here \ */\ parser6_leng = (int) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ /* %% [3.0] code to copy yytext_ptr to parser6_text[] goes here, if %array \ */\ (yy_c_buf_p) = yy_cp; /* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */ #define YY_NUM_RULES 161 #define YY_END_OF_BUFFER 162 /* 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[1266] = { 0, 154, 154, 0, 0, 0, 0, 0, 0, 0, 0, 162, 160, 10, 11, 160, 1, 154, 151, 154, 154, 160, 153, 152, 160, 160, 160, 160, 160, 147, 148, 160, 160, 160, 149, 150, 5, 5, 5, 160, 160, 160, 10, 11, 0, 0, 143, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 154, 154, 0, 153, 154, 3, 2, 6, 0, 154, 0, 0, 0, 0, 0, 0, 4, 0, 0, 9, 0, 144, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 146, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 122, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 0, 145, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 157, 0, 156, 155, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 27, 0, 26, 0, 0, 86, 0, 0, 0, 0, 0, 0, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 155, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 30, 0, 0, 0, 0, 0, 87, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 126, 42, 0, 47, 0, 0, 0, 0, 0, 0, 140, 35, 0, 32, 0, 31, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 95, 0, 0, 0, 0, 0, 0, 0, 125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 7, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 97, 0, 0, 0, 0, 0, 94, 0, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 92, 0, 0, 0, 96, 43, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 61, 0, 0, 0, 0, 141, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 108, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 69, 0, 0, 0, 105, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 139, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, 0, 16, 0, 120, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 98, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 124, 0, 37, 0, 116, 0, 0, 0, 0, 0, 0, 20, 0, 0, 63, 0, 0, 0, 0, 118, 45, 0, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 0, 0, 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 88, 0, 0, 0, 64, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 0, 0, 0, 17, 15, 0, 138, 137, 0, 0, 0, 0, 0, 29, 0, 101, 0, 0, 0, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 0, 104, 0, 52, 0, 0, 0, 19, 0, 0, 0, 0, 0, 81, 59, 0, 112, 0, 0, 0, 103, 0, 0, 76, 0, 142, 0, 0, 0, 0, 0, 0, 0, 74, 0, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 55, 136, 0, 12, 0, 0, 0, 0, 0, 0, 0, 40, 0, 39, 18, 0, 0, 93, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 57, 0, 0, 53, 0, 72, 0, 0, 0, 0, 0, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 0, 34, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 133, 0, 0, 0, 0, 0, 0, 0, 82, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 132, 0, 22, 56, 0, 0, 0, 0, 21, 0, 73, 0, 0, 131, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 0, 89, 0, 0, 0, 0, 0, 129, 134, 60, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 130, 0 } ; static yyconst YY_CHAR yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 6, 7, 5, 5, 5, 5, 5, 5, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 15, 14, 16, 14, 14, 14, 17, 5, 18, 5, 19, 20, 5, 21, 22, 23, 24, 25, 26, 5, 27, 5, 28, 5, 29, 5, 30, 31, 32, 5, 33, 34, 35, 36, 37, 38, 5, 39, 5, 40, 41, 42, 5, 43, 5, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 5, 71, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 } ; static yyconst YY_CHAR yy_meta[72] = { 0, 1, 1, 2, 3, 3, 4, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 } ; static yyconst flex_uint16_t yy_base[1278] = { 0, 0, 70, 19, 29, 41, 49, 52, 58, 87, 95, 1628, 1629, 32, 1624, 141, 0, 201, 1629, 206, 88, 11, 213, 1629, 1606, 114, 25, 2, 6, 1629, 1629, 73, 11, 17, 1629, 1629, 1629, 104, 1612, 1567, 0, 1604, 107, 1619, 217, 241, 1629, 185, 1563, 1569, 1589, 93, 58, 190, 91, 211, 200, 14, 267, 213, 175, 269, 64, 231, 1570, 187, 75, 1569, 274, 188, 290, 276, 295, 1552, 195, 296, 325, 305, 1571, 0, 349, 354, 367, 373, 376, 1629, 0, 1629, 267, 295, 290, 317, 339, 351, 355, 358, 1629, 1568, 1607, 1629, 308, 1629, 394, 357, 1555, 1565, 1604, 370, 220, 249, 1559, 367, 377, 369, 379, 302, 1602, 0, 445, 374, 1546, 1554, 304, 1550, 1539, 1540, 371, 1556, 1539, 1548, 374, 200, 366, 1542, 386, 1530, 1586, 402, 1533, 1584, 1526, 1549, 1546, 1546, 1540, 367, 1533, 1526, 1531, 1525, 1536, 1521, 1520, 1534, 366, 1570, 1519, 384, 1531, 1534, 1518, 441, 415, 1532, 1529, 1530, 1528, 1510, 1515, 1511, 1503, 1520, 1512, 0, 385, 420, 406, 419, 427, 440, 1511, 1629, 0, 453, 1502, 1505, 1629, 439, 447, 1629, 1557, 1512, 454, 1555, 458, 1554, 448, 1553, 1629, 493, 1552, 478, 1513, 1508, 1507, 463, 1548, 1542, 1508, 1487, 1495, 1501, 1489, 1503, 1499, 1500, 1500, 1495, 1487, 1489, 1473, 1477, 1490, 1490, 1482, 1472, 1475, 1489, 1629, 1475, 1483, 1486, 1467, 1466, 1516, 1465, 1475, 1513, 484, 1474, 1462, 1473, 1509, 1513, 1466, 9, 1456, 1472, 1453, 1455, 1451, 1457, 1448, 1447, 1460, 1453, 1455, 1459, 1458, 1452, 80, 1459, 1454, 1446, 1452, 1452, 1433, 1449, 1435, 1441, 1448, 1436, 1429, 1443, 1442, 1445, 1427, 1435, 485, 1629, 1629, 486, 1629, 1629, 1422, 0, 445, 1424, 508, 487, 1478, 1629, 1431, 492, 1629, 1476, 1629, 1470, 540, 1629, 482, 1412, 1422, 1472, 1429, 483, 1629, 1427, 1469, 1424, 1421, 1422, 532, 1426, 1464, 1414, 1409, 1406, 1402, 1404, 1453, 1412, 1401, 1450, 1398, 546, 1411, 1411, 1394, 1395, 1408, 1395, 1405, 1400, 1407, 1402, 1387, 402, 1396, 1399, 1394, 1390, 1438, 499, 1629, 1385, 1384, 1377, 1379, 1383, 1372, 1379, 1384, 353, 1429, 1384, 519, 1381, 1385, 1383, 1372, 1372, 1384, 1366, 1358, 1359, 1380, 1362, 1374, 1373, 1359, 1371, 1370, 1369, 1368, 1409, 1408, 1407, 1351, 525, 1364, 1629, 1629, 1363, 0, 511, 1351, 1402, 1401, 1359, 1399, 1629, 1347, 1397, 1629, 538, 595, 517, 1396, 1338, 1629, 1354, 1353, 1340, 1339, 1629, 1341, 1338, 1350, 1346, 1334, 1336, 1629, 1342, 1327, 1329, 1340, 1338, 1333, 563, 1340, 1322, 1371, 1629, 1320, 1336, 1368, 1372, 1330, 1324, 1326, 1327, 1329, 1361, 1314, 1309, 1308, 1310, 1303, 1318, 1296, 1303, 1308, 1356, 1629, 1303, 1299, 1302, 1309, 1294, 1304, 1307, 1296, 1295, 1290, 1629, 1345, 1629, 1289, 1288, 1281, 1298, 1335, 1282, 1287, 1296, 1290, 1294, 566, 1329, 1293, 1273, 1276, 1275, 1283, 1287, 1270, 1326, 1268, 1629, 1629, 1629, 1273, 1629, 1283, 1317, 1279, 0, 1320, 1270, 1629, 1629, 1267, 1629, 1273, 1629, 544, 543, 572, 1629, 1311, 1258, 1257, 1264, 1257, 1269, 1268, 1252, 1267, 1297, 1264, 1300, 1246, 1248, 1260, 1260, 1259, 1629, 1244, 1241, 1255, 1247, 1253, 1244, 1252, 1629, 1237, 1248, 1252, 1234, 1248, 1246, 1229, 1223, 1228, 1225, 1240, 1241, 1238, 1279, 1236, 1629, 1222, 1224, 1270, 1269, 553, 1232, 1215, 1216, 1221, 1212, 1629, 1226, 1212, 587, 1204, 1225, 1222, 1214, 1257, 1211, 1255, 1629, 1203, 1201, 1215, 1218, 1250, 1249, 1196, 1247, 1246, 1629, 574, 1208, 1197, 1199, 1629, 1629, 1242, 1190, 1245, 559, 557, 529, 1204, 1238, 1237, 1236, 1190, 1180, 1233, 1195, 1185, 1230, 1193, 1175, 1183, 1185, 1189, 1224, 1228, 1185, 1184, 1185, 1178, 1167, 1180, 1183, 1178, 1173, 1178, 1175, 1174, 1177, 1172, 1213, 1212, 1156, 1152, 1160, 1208, 1629, 1207, 1156, 1148, 1163, 1150, 1629, 1150, 1159, 1158, 1158, 1142, 1197, 1140, 1153, 1629, 1145, 1137, 1146, 1139, 1150, 1127, 1131, 1182, 1129, 1127, 1138, 1178, 1125, 540, 548, 1119, 1129, 549, 1629, 1179, 1137, 1126, 1130, 1137, 1174, 1629, 1168, 567, 1121, 1129, 1121, 1112, 1115, 1111, 1128, 1123, 1111, 1122, 1106, 1108, 1160, 1106, 1120, 1101, 1151, 1106, 1629, 1114, 1112, 1103, 1112, 1108, 1149, 1091, 1091, 1104, 1103, 1088, 1143, 1085, 1086, 1629, 1629, 1100, 1097, 1100, 1629, 1629, 1099, 1084, 579, 1083, 1081, 1128, 1077, 1131, 1130, 1629, 1075, 1087, 1085, 1126, 1074, 1074, 61, 120, 189, 197, 195, 259, 281, 311, 344, 405, 470, 566, 471, 524, 512, 570, 547, 1629, 613, 563, 579, 580, 1629, 599, 607, 587, 577, 592, 585, 580, 587, 583, 592, 587, 638, 644, 593, 1629, 605, 590, 606, 597, 609, 604, 649, 617, 601, 602, 1629, 620, 603, 605, 661, 606, 1629, 625, 605, 623, 662, 622, 612, 630, 614, 629, 621, 617, 635, 620, 1629, 1629, 628, 673, 628, 1629, 636, 631, 682, 1629, 633, 638, 632, 634, 646, 640, 638, 691, 637, 693, 694, 640, 1629, 639, 647, 645, 644, 658, 659, 660, 676, 681, 655, 665, 651, 658, 663, 670, 711, 712, 661, 665, 1629, 660, 678, 676, 714, 665, 683, 684, 670, 678, 687, 667, 688, 728, 729, 1629, 684, 733, 734, 696, 698, 681, 683, 690, 741, 690, 705, 744, 696, 700, 698, 696, 749, 750, 702, 752, 748, 708, 1629, 713, 706, 715, 709, 704, 714, 710, 1629, 705, 1629, 1629, 706, 704, 723, 724, 725, 707, 712, 719, 752, 743, 715, 774, 719, 735, 727, 731, 1629, 1629, 741, 739, 725, 726, 784, 739, 744, 731, 742, 734, 740, 736, 754, 755, 1629, 1629, 754, 1629, 756, 1629, 741, 760, 750, 801, 756, 798, 1629, 755, 805, 1629, 806, 755, 762, 804, 1629, 1629, 764, 1629, 755, 755, 758, 772, 759, 770, 817, 776, 814, 820, 821, 770, 823, 824, 785, 769, 781, 771, 801, 830, 790, 1629, 832, 781, 777, 793, 798, 786, 838, 797, 1629, 799, 798, 800, 793, 802, 803, 800, 790, 792, 849, 798, 851, 796, 853, 1629, 791, 806, 856, 1629, 1629, 807, 817, 802, 818, 804, 864, 865, 811, 867, 826, 1629, 818, 821, 872, 1629, 1629, 818, 1629, 1629, 826, 876, 827, 878, 860, 1629, 838, 1629, 825, 824, 827, 827, 828, 886, 1629, 831, 888, 843, 834, 849, 849, 852, 852, 849, 854, 1629, 846, 1629, 856, 1629, 857, 858, 855, 1629, 847, 853, 852, 864, 864, 1629, 1629, 903, 1629, 868, 853, 859, 1629, 864, 875, 1629, 872, 1629, 891, 911, 917, 861, 919, 920, 875, 1629, 922, 1629, 862, 919, 884, 880, 922, 872, 877, 930, 888, 932, 933, 896, 885, 936, 880, 897, 882, 897, 881, 938, 939, 904, 890, 901, 948, 920, 907, 1629, 951, 1629, 1629, 900, 1629, 953, 901, 950, 895, 900, 959, 909, 1629, 915, 1629, 1629, 906, 921, 1629, 959, 927, 920, 921, 930, 917, 919, 929, 972, 923, 1629, 974, 921, 1629, 925, 1629, 929, 924, 923, 981, 936, 1629, 978, 940, 943, 986, 929, 931, 939, 929, 945, 939, 955, 994, 1629, 990, 1629, 955, 992, 956, 947, 954, 1629, 951, 956, 1003, 948, 1629, 952, 964, 965, 1008, 952, 953, 961, 1629, 972, 962, 961, 964, 976, 967, 976, 978, 1629, 1020, 980, 1022, 1023, 1629, 1019, 979, 984, 965, 1028, 987, 1030, 989, 990, 1033, 992, 1629, 997, 1629, 1629, 979, 985, 1038, 999, 1629, 985, 1629, 985, 987, 1629, 992, 987, 999, 995, 1629, 998, 1002, 993, 1045, 994, 1010, 1003, 998, 1013, 1004, 1011, 998, 1013, 1060, 1019, 1062, 1007, 1023, 1014, 1028, 1024, 1629, 1068, 1629, 1069, 1070, 1027, 1026, 1027, 1629, 1629, 1629, 1074, 1018, 1034, 1629, 1072, 1023, 1022, 1024, 1035, 1082, 1033, 1629, 1042, 1085, 1629, 1629, 1091, 1096, 1101, 1106, 1111, 1116, 1121, 1124, 1098, 1103, 1105, 1118 } ; static yyconst flex_int16_t yy_def[1278] = { 0, 1266, 1266, 1267, 1267, 1266, 1266, 1266, 1266, 1266, 1266, 1265, 1265, 1265, 1265, 1265, 1268, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1269, 1265, 1265, 1265, 1270, 15, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1271, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1268, 1265, 1265, 1265, 1265, 1265, 1265, 1272, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1269, 1265, 1270, 1265, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1273, 45, 1271, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1272, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1274, 45, 45, 45, 1265, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 1273, 1265, 1271, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1275, 45, 45, 45, 45, 45, 1265, 45, 45, 1265, 45, 1265, 45, 1271, 1265, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 1265, 1265, 1276, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 1265, 45, 1271, 45, 45, 45, 1265, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 1265, 1265, 45, 1265, 45, 45, 1265, 1277, 45, 45, 1265, 1265, 45, 1265, 45, 1265, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 1265, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 1265, 45, 45, 45, 1265, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 1265, 45, 45, 45, 1265, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 1265, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 1265, 45, 1265, 45, 1265, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 1265, 45, 45, 45, 45, 1265, 1265, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 1265, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 1265, 1265, 45, 1265, 1265, 45, 45, 45, 45, 45, 1265, 45, 1265, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 1265, 45, 1265, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 1265, 1265, 45, 1265, 45, 45, 45, 1265, 45, 45, 1265, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 1265, 1265, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 1265, 1265, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 1265, 45, 1265, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 1265, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 1265, 1265, 45, 45, 45, 45, 1265, 45, 1265, 45, 45, 1265, 45, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 1265, 45, 45, 45, 45, 45, 1265, 1265, 1265, 45, 45, 45, 1265, 45, 45, 45, 45, 45, 45, 45, 1265, 45, 45, 1265, 0, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265 } ; static yyconst flex_uint16_t yy_nxt[1701] = { 0, 1265, 13, 14, 13, 1265, 15, 16, 1265, 17, 18, 19, 20, 21, 22, 22, 22, 23, 24, 85, 346, 37, 14, 37, 86, 25, 26, 38, 1265, 1265, 27, 37, 14, 37, 42, 28, 42, 38, 91, 92, 29, 115, 30, 13, 14, 13, 90, 91, 25, 31, 92, 13, 14, 13, 13, 14, 13, 32, 40, 1265, 13, 14, 13, 33, 40, 115, 91, 92, 347, 90, 34, 35, 13, 14, 13, 94, 15, 16, 95, 17, 18, 19, 20, 21, 22, 22, 22, 23, 24, 13, 14, 13, 108, 39, 90, 25, 26, 13, 14, 13, 27, 39, 84, 84, 84, 28, 42, 41, 42, 42, 29, 42, 30, 82, 107, 41, 111, 93, 25, 31, 108, 130, 137, 88, 799, 88, 800, 32, 89, 89, 89, 131, 138, 33, 139, 362, 82, 107, 363, 111, 34, 35, 44, 44, 44, 45, 45, 46, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 47, 45, 48, 49, 50, 51, 45, 52, 53, 54, 45, 45, 45, 45, 55, 56, 45, 57, 45, 45, 58, 45, 45, 59, 45, 60, 61, 62, 63, 64, 65, 66, 52, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 57, 45, 45, 45, 45, 45, 80, 103, 81, 81, 81, 80, 109, 83, 83, 83, 101, 114, 80, 82, 83, 83, 83, 121, 82, 145, 122, 112, 123, 146, 124, 82, 160, 103, 801, 103, 161, 113, 134, 218, 114, 110, 82, 135, 188, 107, 136, 82, 189, 147, 112, 102, 219, 802, 82, 45, 803, 45, 45, 45, 45, 119, 45, 45, 45, 113, 117, 120, 107, 45, 45, 188, 45, 45, 89, 89, 89, 190, 45, 132, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 89, 89, 89, 45, 125, 101, 111, 45, 126, 804, 174, 127, 128, 141, 142, 45, 150, 143, 196, 45, 114, 45, 118, 144, 129, 148, 151, 149, 805, 111, 154, 152, 153, 155, 156, 162, 174, 175, 163, 112, 102, 196, 204, 114, 157, 164, 165, 158, 806, 113, 455, 166, 205, 170, 84, 84, 84, 80, 171, 81, 81, 81, 112, 175, 167, 82, 176, 88, 168, 88, 82, 174, 89, 89, 89, 175, 80, 113, 83, 83, 83, 84, 84, 84, 169, 176, 183, 807, 82, 82, 187, 100, 82, 82, 176, 192, 194, 177, 100, 228, 193, 178, 195, 183, 237, 220, 456, 209, 210, 215, 278, 216, 82, 179, 183, 82, 187, 211, 247, 248, 200, 221, 280, 192, 194, 238, 100, 193, 217, 195, 100, 201, 223, 251, 100, 224, 252, 253, 278, 225, 279, 229, 100, 257, 278, 280, 100, 279, 100, 182, 199, 199, 199, 438, 439, 808, 280, 199, 199, 199, 199, 199, 199, 265, 289, 286, 279, 266, 290, 297, 293, 267, 281, 282, 295, 385, 258, 259, 260, 283, 199, 199, 199, 199, 199, 199, 337, 261, 286, 262, 286, 263, 289, 293, 264, 290, 297, 295, 298, 298, 298, 381, 381, 390, 385, 298, 298, 298, 298, 298, 298, 304, 385, 300, 387, 388, 393, 305, 402, 809, 812, 813, 483, 389, 381, 382, 390, 484, 298, 298, 298, 298, 298, 298, 409, 403, 488, 338, 410, 445, 339, 397, 488, 423, 393, 396, 396, 396, 424, 446, 629, 814, 396, 396, 396, 396, 396, 396, 459, 496, 517, 497, 460, 563, 488, 518, 583, 584, 564, 579, 498, 657, 667, 666, 585, 396, 396, 396, 396, 396, 396, 658, 668, 732, 638, 665, 496, 630, 497, 639, 733, 734, 747, 583, 425, 584, 666, 738, 735, 426, 45, 45, 45, 739, 810, 815, 816, 45, 45, 45, 45, 45, 45, 665, 785, 817, 811, 818, 786, 819, 747, 820, 821, 822, 823, 824, 640, 825, 826, 827, 45, 45, 45, 45, 45, 45, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 822, 838, 839, 821, 840, 841, 842, 843, 844, 845, 846, 847, 848, 851, 852, 853, 854, 849, 855, 856, 857, 858, 859, 860, 861, 862, 863, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 864, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 893, 892, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 850, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 891, 892, 918, 920, 922, 923, 924, 919, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 921, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 957, 979, 980, 981, 982, 983, 958, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1042, 1013, 1043, 1044, 1045, 1046, 1047, 1041, 1048, 1049, 1050, 1051, 1052, 1053, 1003, 1054, 1055, 1056, 1017, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1061, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1096, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1135, 1136, 1137, 1138, 1134, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1154, 1155, 1156, 1129, 1157, 1158, 1159, 1160, 1161, 1162, 1163, 1164, 1165, 1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1179, 1180, 1181, 1182, 1183, 1184, 1185, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195, 1196, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1204, 1205, 1206, 1207, 1208, 1209, 1210, 1211, 1212, 1213, 1214, 1215, 1216, 1217, 1218, 1219, 1220, 1221, 1222, 1223, 1224, 1225, 1226, 1227, 1228, 1229, 1230, 1231, 1232, 1233, 1234, 1235, 1236, 1237, 1238, 1239, 1240, 1241, 1242, 1243, 1244, 1245, 1246, 1247, 1248, 1249, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1259, 1260, 1261, 1262, 1263, 1264, 12, 12, 12, 12, 12, 36, 36, 36, 36, 36, 79, 285, 79, 79, 79, 98, 384, 98, 487, 98, 100, 100, 100, 100, 100, 116, 116, 116, 116, 116, 173, 100, 173, 173, 173, 197, 197, 197, 798, 797, 796, 795, 794, 793, 792, 791, 790, 789, 788, 787, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, 768, 767, 766, 765, 764, 763, 762, 761, 760, 759, 758, 757, 756, 755, 754, 753, 752, 751, 750, 749, 748, 746, 745, 744, 743, 742, 741, 740, 737, 736, 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, 702, 701, 700, 699, 698, 697, 696, 695, 694, 693, 692, 691, 690, 689, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 671, 670, 669, 664, 663, 662, 661, 660, 659, 656, 655, 654, 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 637, 636, 635, 634, 633, 632, 631, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 587, 586, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 562, 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, 526, 525, 524, 523, 522, 521, 520, 519, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500, 499, 495, 494, 493, 492, 491, 490, 489, 486, 485, 482, 481, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 470, 469, 468, 467, 466, 465, 464, 463, 462, 461, 458, 457, 454, 453, 452, 451, 450, 449, 448, 447, 444, 443, 442, 441, 440, 437, 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, 422, 421, 420, 419, 418, 417, 416, 415, 414, 413, 412, 411, 408, 407, 406, 405, 404, 401, 400, 399, 398, 395, 394, 392, 391, 386, 383, 380, 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 365, 364, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 345, 344, 343, 342, 341, 340, 336, 335, 334, 333, 332, 331, 330, 329, 328, 327, 326, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, 313, 312, 311, 310, 309, 308, 307, 306, 303, 302, 301, 299, 198, 296, 294, 292, 291, 288, 287, 284, 277, 276, 275, 274, 273, 272, 271, 270, 269, 268, 256, 255, 254, 250, 249, 246, 245, 244, 243, 242, 241, 240, 239, 236, 235, 234, 233, 232, 231, 230, 227, 226, 222, 214, 213, 212, 208, 207, 206, 203, 202, 198, 191, 186, 185, 184, 181, 180, 172, 159, 140, 133, 106, 105, 104, 43, 99, 97, 96, 87, 43, 1265, 11, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265 } ; static yyconst flex_int16_t yy_chk[1701] = { 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 21, 245, 3, 3, 3, 21, 1, 1, 3, 0, 0, 1, 4, 4, 4, 13, 1, 13, 4, 27, 28, 1, 57, 1, 5, 5, 5, 26, 32, 1, 1, 33, 6, 6, 6, 7, 7, 7, 1, 7, 0, 8, 8, 8, 1, 8, 57, 27, 28, 245, 26, 1, 1, 2, 2, 2, 32, 2, 2, 33, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 9, 9, 9, 52, 5, 31, 2, 2, 10, 10, 10, 2, 6, 20, 20, 20, 2, 37, 9, 37, 42, 2, 42, 2, 20, 51, 10, 54, 31, 2, 2, 52, 62, 66, 25, 723, 25, 724, 2, 25, 25, 25, 62, 66, 2, 66, 260, 20, 51, 260, 54, 2, 2, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 17, 47, 17, 17, 17, 19, 53, 19, 19, 19, 44, 56, 22, 17, 22, 22, 22, 60, 19, 69, 60, 55, 60, 69, 60, 22, 74, 47, 725, 59, 74, 55, 65, 131, 56, 53, 17, 65, 108, 63, 65, 19, 109, 69, 55, 44, 131, 726, 22, 45, 727, 45, 45, 45, 45, 59, 45, 45, 45, 55, 58, 59, 63, 45, 45, 108, 45, 58, 88, 88, 88, 109, 45, 63, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 58, 89, 89, 89, 58, 61, 100, 70, 58, 61, 728, 90, 61, 61, 68, 68, 58, 71, 68, 115, 58, 77, 58, 58, 68, 61, 70, 71, 70, 729, 70, 72, 71, 71, 72, 72, 75, 90, 91, 75, 76, 100, 115, 122, 77, 72, 75, 75, 72, 730, 76, 353, 75, 122, 77, 80, 80, 80, 81, 77, 81, 81, 81, 76, 91, 76, 80, 92, 82, 76, 82, 81, 93, 82, 82, 82, 94, 83, 76, 83, 83, 83, 84, 84, 84, 76, 95, 103, 731, 80, 83, 107, 102, 84, 81, 92, 111, 113, 93, 102, 137, 112, 94, 114, 119, 145, 132, 353, 126, 126, 130, 174, 130, 83, 95, 103, 84, 107, 126, 154, 154, 119, 132, 176, 111, 113, 145, 102, 112, 130, 114, 102, 119, 134, 157, 102, 134, 157, 157, 174, 134, 175, 137, 102, 161, 177, 176, 102, 178, 102, 102, 118, 118, 118, 337, 337, 732, 179, 118, 118, 118, 118, 118, 118, 162, 187, 183, 175, 162, 188, 196, 192, 162, 177, 178, 194, 286, 161, 161, 161, 179, 118, 118, 118, 118, 118, 118, 238, 161, 183, 161, 201, 161, 187, 192, 161, 188, 196, 194, 199, 199, 199, 278, 281, 289, 286, 199, 199, 199, 199, 199, 199, 205, 300, 201, 288, 288, 293, 205, 305, 733, 735, 736, 379, 288, 278, 281, 289, 379, 199, 199, 199, 199, 199, 199, 312, 305, 385, 238, 312, 343, 238, 300, 397, 325, 293, 298, 298, 298, 325, 343, 546, 737, 298, 298, 298, 298, 298, 298, 356, 395, 419, 395, 356, 468, 385, 419, 496, 497, 468, 498, 397, 574, 585, 584, 498, 298, 298, 298, 298, 298, 298, 574, 585, 652, 555, 583, 395, 546, 395, 555, 652, 653, 666, 496, 325, 497, 584, 656, 653, 325, 396, 396, 396, 656, 734, 738, 739, 396, 396, 396, 396, 396, 396, 583, 709, 741, 734, 742, 709, 743, 666, 744, 746, 747, 748, 749, 555, 750, 751, 752, 396, 396, 396, 396, 396, 396, 753, 754, 755, 756, 757, 758, 759, 761, 762, 763, 747, 764, 765, 746, 766, 767, 768, 769, 770, 772, 773, 774, 775, 776, 778, 779, 780, 775, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 793, 794, 795, 797, 798, 799, 801, 802, 803, 789, 804, 805, 806, 807, 808, 809, 810, 811, 812, 814, 815, 816, 817, 818, 819, 820, 821, 823, 822, 824, 825, 826, 827, 828, 829, 830, 831, 832, 834, 835, 775, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 849, 821, 822, 850, 851, 852, 853, 854, 850, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 872, 873, 874, 875, 876, 877, 878, 880, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 851, 896, 897, 898, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 891, 917, 919, 921, 922, 923, 892, 924, 925, 926, 928, 929, 931, 932, 933, 934, 937, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 961, 962, 963, 964, 965, 966, 967, 968, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 985, 986, 987, 957, 990, 991, 992, 993, 994, 986, 995, 996, 997, 998, 999, 1001, 947, 1002, 1003, 1006, 961, 1009, 1010, 1011, 1012, 1013, 1015, 1017, 1018, 1019, 1020, 1021, 1022, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1035, 1037, 1039, 1040, 1041, 1013, 1043, 1044, 1045, 1046, 1047, 1050, 1052, 1053, 1054, 1056, 1057, 1059, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1069, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1061, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1099, 1102, 1104, 1105, 1106, 1107, 1108, 1104, 1109, 1110, 1112, 1115, 1116, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1129, 1130, 1132, 1096, 1134, 1135, 1136, 1137, 1138, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1149, 1150, 1151, 1153, 1155, 1156, 1157, 1158, 1159, 1161, 1162, 1163, 1164, 1166, 1167, 1168, 1169, 1170, 1171, 1172, 1174, 1175, 1176, 1177, 1178, 1179, 1180, 1181, 1183, 1184, 1185, 1186, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195, 1196, 1197, 1198, 1200, 1203, 1204, 1205, 1206, 1208, 1210, 1211, 1213, 1214, 1215, 1216, 1218, 1219, 1220, 1221, 1222, 1223, 1224, 1225, 1226, 1227, 1228, 1229, 1230, 1231, 1232, 1233, 1234, 1235, 1236, 1237, 1238, 1240, 1242, 1243, 1244, 1245, 1246, 1250, 1251, 1252, 1254, 1255, 1256, 1257, 1258, 1259, 1260, 1262, 1263, 1266, 1266, 1266, 1266, 1266, 1267, 1267, 1267, 1267, 1267, 1268, 1274, 1268, 1268, 1268, 1269, 1275, 1269, 1276, 1269, 1270, 1270, 1270, 1270, 1270, 1271, 1271, 1271, 1271, 1271, 1272, 1277, 1272, 1272, 1272, 1273, 1273, 1273, 722, 721, 720, 719, 718, 717, 715, 714, 713, 712, 711, 710, 708, 707, 704, 703, 702, 699, 698, 697, 696, 695, 694, 693, 692, 691, 690, 689, 688, 687, 686, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 671, 670, 669, 668, 667, 665, 663, 662, 661, 660, 659, 658, 655, 654, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 637, 636, 635, 634, 633, 632, 631, 630, 628, 627, 626, 625, 624, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 587, 586, 582, 581, 580, 577, 576, 575, 572, 571, 570, 569, 568, 567, 566, 565, 564, 562, 561, 560, 559, 558, 557, 556, 554, 553, 551, 550, 549, 548, 547, 545, 544, 543, 542, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, 526, 524, 523, 522, 521, 520, 519, 518, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500, 494, 492, 489, 488, 486, 485, 484, 482, 478, 477, 476, 475, 474, 473, 472, 471, 470, 469, 467, 466, 465, 464, 463, 462, 461, 460, 459, 458, 456, 454, 453, 452, 451, 450, 449, 448, 447, 446, 445, 443, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, 422, 421, 420, 418, 417, 416, 415, 414, 413, 411, 410, 409, 408, 407, 406, 404, 403, 402, 401, 399, 398, 393, 392, 390, 389, 388, 387, 386, 383, 380, 378, 377, 376, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 365, 364, 363, 362, 361, 360, 359, 358, 357, 355, 354, 352, 351, 350, 349, 348, 347, 346, 345, 342, 341, 340, 339, 338, 336, 335, 334, 333, 332, 331, 330, 329, 328, 327, 326, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, 313, 311, 310, 309, 308, 307, 304, 303, 302, 301, 297, 295, 292, 290, 287, 284, 277, 276, 275, 274, 273, 272, 271, 270, 269, 268, 267, 266, 265, 264, 263, 262, 261, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 244, 243, 242, 241, 240, 239, 237, 236, 235, 234, 233, 232, 231, 230, 229, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 204, 203, 202, 200, 197, 195, 193, 191, 190, 185, 184, 180, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 160, 159, 158, 156, 155, 153, 152, 151, 150, 149, 148, 147, 146, 144, 143, 142, 141, 140, 139, 138, 136, 135, 133, 129, 128, 127, 125, 124, 123, 121, 120, 116, 110, 106, 105, 104, 98, 97, 78, 73, 67, 64, 50, 49, 48, 43, 41, 39, 38, 24, 14, 11, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265, 1265 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int parser6__flex_debug; int parser6__flex_debug = 1; static yyconst flex_int16_t yy_rule_linenum[161] = { 0, 136, 138, 140, 145, 146, 151, 152, 153, 165, 168, 173, 180, 189, 198, 207, 216, 225, 234, 243, 252, 261, 270, 279, 288, 297, 306, 316, 326, 336, 346, 356, 366, 376, 386, 396, 405, 414, 423, 432, 441, 450, 459, 471, 480, 489, 498, 507, 517, 527, 537, 547, 558, 568, 578, 588, 598, 609, 620, 631, 642, 651, 661, 670, 679, 695, 711, 720, 729, 738, 747, 756, 765, 774, 783, 792, 801, 811, 820, 830, 840, 849, 859, 869, 878, 887, 896, 905, 915, 924, 933, 942, 951, 960, 969, 978, 987, 996, 1006, 1015, 1024, 1034, 1044, 1054, 1063, 1072, 1081, 1092, 1102, 1111, 1121, 1131, 1140, 1149, 1158, 1167, 1177, 1186, 1196, 1205, 1214, 1223, 1232, 1241, 1250, 1259, 1268, 1277, 1286, 1295, 1304, 1313, 1322, 1331, 1340, 1349, 1358, 1367, 1376, 1385, 1394, 1403, 1412, 1422, 1520, 1525, 1530, 1535, 1536, 1537, 1538, 1539, 1540, 1542, 1560, 1573, 1578, 1582, 1584, 1586, 1588 } ; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *parser6_text; #line 1 "dhcp6_lexer.ll" /* Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC") This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #line 8 "dhcp6_lexer.ll" #include #include #include #include #include #include #include #include /* Please avoid C++ style comments (// ... eol) as they break flex 2.6.2 */ /* Work around an incompatibility in flex (at least versions 2.5.31 through 2.5.33): it generates code that does not conform to C89. See Debian bug 333231 . */ # undef parser6_wrap # define parser6_wrap() 1 namespace { bool start_token_flag = false; isc::dhcp::Parser6Context::ParserType start_token_value; unsigned int comment_start_line = 0; using namespace isc::dhcp; }; /* To avoid the call to exit... oops! */ #define YY_FATAL_ERROR(msg) isc::dhcp::Parser6Context::fatal(msg) /* noyywrap disables automatic rewinding for the next file to parse. Since we always parse only a single string, there's no need to do any wraps. And using parser6_wrap requires linking with -lfl, which provides the default parser6_wrap implementation that always returns 1 anyway. */ /* nounput simplifies the lexer, by removing support for putting a character back into the input stream. We never use such capability anyway. */ /* batch means that we'll never use the generated lexer interactively. */ /* avoid to get static global variables to remain with C++. */ /* in last resort %option reentrant */ /* Enables debug mode. To see the debug messages, one needs to also set parser6__flex_debug to 1, then the debug messages will be printed on stderr. */ /* I have no idea what this option does, except it was specified in the bison examples and Postgres folks added it to remove gcc 4.3 warnings. Let's be on the safe side and keep it. */ #define YY_NO_INPUT 1 /* These are not token expressions yet, just convenience expressions that can be used during actual token definitions. Note some can match incorrect inputs (e.g., IP addresses) which must be checked. */ /* for errors */ #line 90 "dhcp6_lexer.ll" /* This code run each time a pattern is matched. It updates the location by moving it ahead by parser6_leng bytes. parser6_leng specifies the length of the currently matched token. */ #define YY_USER_ACTION driver.loc_.columns(parser6_leng); #line 1436 "dhcp6_lexer.cc" #define INITIAL 0 #define COMMENT 1 #define DIR_ENTER 2 #define DIR_INCLUDE 3 #define DIR_EXIT 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. */ /* %if-c-only */ #include /* %endif */ /* %if-c++-only */ /* %endif */ #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif /* %if-c-only Reentrant structure and macros (non-C++). */ /* %if-reentrant */ /* %if-c-only */ static int yy_init_globals (void ); /* %endif */ /* %if-reentrant */ /* %endif */ /* %endif End reentrant structures and macros. */ /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int parser6_lex_destroy (void ); int parser6_get_debug (void ); void parser6_set_debug (int debug_flag ); YY_EXTRA_TYPE parser6_get_extra (void ); void parser6_set_extra (YY_EXTRA_TYPE user_defined ); FILE *parser6_get_in (void ); void parser6_set_in (FILE * _in_str ); FILE *parser6_get_out (void ); void parser6_set_out (FILE * _out_str ); int parser6_get_leng (void ); char *parser6_get_text (void ); int parser6_get_lineno (void ); void parser6_set_lineno (int _line_number ); /* %if-bison-bridge */ /* %endif */ /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int parser6_wrap (void ); #else extern int parser6_wrap (void ); #endif #endif /* %not-for-header */ #ifndef YY_NO_UNPUT #endif /* %ok-for-header */ /* %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 /* %if-c-only Standard (non-C++) definition */ /* %not-for-header */ #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif /* %ok-for-header */ /* %endif */ #endif /* %if-c-only */ /* %endif */ /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ #define YY_READ_BUF_SIZE 16384 #else #define YY_READ_BUF_SIZE 8192 #endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* %if-c-only Standard (non-C++) definition */ /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO do { if (fwrite( parser6_text, (size_t) parser6_leng, 1, parser6_out )) {} } while (0) /* %endif */ /* %if-c++-only C++ definition */ /* %endif */ #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) \ /* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( parser6_in )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( parser6_in ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = (int) fread(buf, 1, max_size, parser6_in))==0 && ferror(parser6_in)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(parser6_in); \ } \ }\ \ /* %if-c++-only C++ definition \ */\ /* %endif */ #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 /* %if-c-only */ #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) /* %endif */ /* %if-c++-only */ /* %endif */ #endif /* %if-tables-serialization structures and prototypes */ /* %not-for-header */ /* %ok-for-header */ /* %not-for-header */ /* %tables-yydmap generated elements */ /* %endif */ /* end tables serialization structures and prototypes */ /* %ok-for-header */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 /* %if-c-only Standard (non-C++) definition */ extern int parser6_lex (void); #define YY_DECL int parser6_lex (void) /* %endif */ /* %if-c++-only C++ definition */ /* %endif */ #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after parser6_text and parser6_leng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK /*LINTED*/break; #endif /* %% [6.0] YY_RULE_SETUP definition goes here */ #define YY_RULE_SETUP \ YY_USER_ACTION /* %not-for-header */ /** The main scanner function which does all the work. */ YY_DECL { yy_state_type yy_current_state; char *yy_cp, *yy_bp; int yy_act; if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! parser6_in ) /* %if-c-only */ parser6_in = stdin; /* %endif */ /* %if-c++-only */ /* %endif */ if ( ! parser6_out ) /* %if-c-only */ parser6_out = stdout; /* %endif */ /* %if-c++-only */ /* %endif */ if ( ! YY_CURRENT_BUFFER ) { parser6_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = parser6__create_buffer(parser6_in,YY_BUF_SIZE ); } parser6__load_buffer_state( ); } { /* %% [7.0] user's declarations go here */ #line 96 "dhcp6_lexer.ll" /* This part of the code is copied over to the verbatim to the top of the generated parser6_lex function. Explanation: http://www.gnu.org/software/bison/manual/html_node/Multiple-start_002dsymbols.html */ /* Code run each time parser6_lex is called. */ driver.loc_.step(); if (start_token_flag) { start_token_flag = false; switch (start_token_value) { case Parser6Context::PARSER_JSON: default: return isc::dhcp::Dhcp6Parser::make_TOPLEVEL_JSON(driver.loc_); case Parser6Context::PARSER_DHCP6: return isc::dhcp::Dhcp6Parser::make_TOPLEVEL_DHCP6(driver.loc_); case Parser6Context::SUBPARSER_DHCP6: return isc::dhcp::Dhcp6Parser::make_SUB_DHCP6(driver.loc_); case Parser6Context::PARSER_INTERFACES: return isc::dhcp::Dhcp6Parser::make_SUB_INTERFACES6(driver.loc_); case Parser6Context::PARSER_SUBNET6: return isc::dhcp::Dhcp6Parser::make_SUB_SUBNET6(driver.loc_); case Parser6Context::PARSER_POOL6: return isc::dhcp::Dhcp6Parser::make_SUB_POOL6(driver.loc_); case Parser6Context::PARSER_PD_POOL: return isc::dhcp::Dhcp6Parser::make_SUB_PD_POOL(driver.loc_); case Parser6Context::PARSER_HOST_RESERVATION: return isc::dhcp::Dhcp6Parser::make_SUB_RESERVATION(driver.loc_); case Parser6Context::PARSER_OPTION_DATA: return isc::dhcp::Dhcp6Parser::make_SUB_OPTION_DATA(driver.loc_); case Parser6Context::PARSER_HOOKS_LIBRARY: return isc::dhcp::Dhcp6Parser::make_SUB_HOOKS_LIBRARY(driver.loc_); case Parser6Context::PARSER_DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_SUB_DHCP_DDNS(driver.loc_); } } #line 1764 "dhcp6_lexer.cc" while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { /* %% [8.0] yymore()-related code goes here */ yy_cp = (yy_c_buf_p); /* Support of parser6_text. */ *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; /* %% [9.0] code to set up and find next match goes here */ yy_current_state = (yy_start); yy_match: do { YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 1266 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c]; ++yy_cp; } while ( yy_current_state != 1265 ); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_find_action: /* %% [10.0] code to find the action number goes here */ yy_act = yy_accept[yy_current_state]; YY_DO_BEFORE_ACTION; /* %% [11.0] code for parser6_lineno update goes here */ do_action: /* This label is used only to access EOF actions. */ /* %% [12.0] debug code goes here */ if ( parser6__flex_debug ) { if ( yy_act == 0 ) fprintf( stderr, "--scanner backing up\n" ); else if ( yy_act < 161 ) fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n", (long)yy_rule_linenum[yy_act], parser6_text ); else if ( yy_act == 161 ) fprintf( stderr, "--accepting default rule (\"%s\")\n", parser6_text ); else if ( yy_act == 162 ) fprintf( stderr, "--(end of buffer or a NUL)\n" ); else fprintf( stderr, "--EOF (start condition %d)\n", YY_START ); } switch ( yy_act ) { /* beginning of action switch */ /* %% [13.0] actions go here */ 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 136 "dhcp6_lexer.ll" ; YY_BREAK case 2: YY_RULE_SETUP #line 138 "dhcp6_lexer.ll" ; YY_BREAK case 3: YY_RULE_SETUP #line 140 "dhcp6_lexer.ll" { BEGIN(COMMENT); comment_start_line = driver.loc_.end.line;; } YY_BREAK case 4: YY_RULE_SETUP #line 145 "dhcp6_lexer.ll" BEGIN(INITIAL); YY_BREAK case 5: YY_RULE_SETUP #line 146 "dhcp6_lexer.ll" ; YY_BREAK case YY_STATE_EOF(COMMENT): #line 147 "dhcp6_lexer.ll" { isc_throw(Dhcp6ParseError, "Comment not closed. (/* in line " << comment_start_line); } YY_BREAK case 6: YY_RULE_SETUP #line 151 "dhcp6_lexer.ll" BEGIN(DIR_ENTER); YY_BREAK case 7: YY_RULE_SETUP #line 152 "dhcp6_lexer.ll" BEGIN(DIR_INCLUDE); YY_BREAK case 8: YY_RULE_SETUP #line 153 "dhcp6_lexer.ll" { /* Include directive. */ /* Extract the filename. */ std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); driver.includeFile(tmp); } YY_BREAK case YY_STATE_EOF(DIR_ENTER): case YY_STATE_EOF(DIR_INCLUDE): case YY_STATE_EOF(DIR_EXIT): #line 162 "dhcp6_lexer.ll" { isc_throw(Dhcp6ParseError, "Directive not closed."); } YY_BREAK case 9: YY_RULE_SETUP #line 165 "dhcp6_lexer.ll" BEGIN(INITIAL); YY_BREAK case 10: YY_RULE_SETUP #line 168 "dhcp6_lexer.ll" { /* Ok, we found a with space. Let's ignore it and update loc variable. */ driver.loc_.step(); } YY_BREAK case 11: /* rule 11 can match eol */ YY_RULE_SETUP #line 173 "dhcp6_lexer.ll" { /* Newline found. Let's update the location and continue. */ driver.loc_.lines(parser6_leng); driver.loc_.step(); } YY_BREAK case 12: YY_RULE_SETUP #line 180 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_ENABLE_UPDATES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("enable-updates", driver.loc_); } } YY_BREAK case 13: YY_RULE_SETUP #line 189 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_QUALIFYING_SUFFIX(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("qualifying-suffix", driver.loc_); } } YY_BREAK case 14: YY_RULE_SETUP #line 198 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_SERVER_IP(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("server-ip", driver.loc_); } } YY_BREAK case 15: YY_RULE_SETUP #line 207 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_SERVER_PORT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("server-port", driver.loc_); } } YY_BREAK case 16: YY_RULE_SETUP #line 216 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_SENDER_IP(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("sender-ip", driver.loc_); } } YY_BREAK case 17: YY_RULE_SETUP #line 225 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_SENDER_PORT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("sender-port", driver.loc_); } } YY_BREAK case 18: YY_RULE_SETUP #line 234 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_MAX_QUEUE_SIZE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("max-queue-size", driver.loc_); } } YY_BREAK case 19: YY_RULE_SETUP #line 243 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_NCR_PROTOCOL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("ncr-protocol", driver.loc_); } } YY_BREAK case 20: YY_RULE_SETUP #line 252 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_NCR_FORMAT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("ncr-format", driver.loc_); } } YY_BREAK case 21: YY_RULE_SETUP #line 261 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_ALWAYS_INCLUDE_FQDN(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("always-include-fqdn", driver.loc_); } } YY_BREAK case 22: YY_RULE_SETUP #line 270 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_OVERRIDE_NO_UPDATE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("override-no-update", driver.loc_); } } YY_BREAK case 23: YY_RULE_SETUP #line 279 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_OVERRIDE_CLIENT_UPDATE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("override-client-update", driver.loc_); } } YY_BREAK case 24: YY_RULE_SETUP #line 288 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_REPLACE_CLIENT_NAME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("replace-client-name", driver.loc_); } } YY_BREAK case 25: YY_RULE_SETUP #line 297 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: return isc::dhcp::Dhcp6Parser::make_GENERATED_PREFIX(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("generated-prefix", driver.loc_); } } YY_BREAK case 26: YY_RULE_SETUP #line 306 "dhcp6_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser6Context::NCR_PROTOCOL) { return isc::dhcp::Dhcp6Parser::make_UDP(driver.loc_); } std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); return isc::dhcp::Dhcp6Parser::make_STRING(tmp, driver.loc_); } YY_BREAK case 27: YY_RULE_SETUP #line 316 "dhcp6_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser6Context::NCR_PROTOCOL) { return isc::dhcp::Dhcp6Parser::make_TCP(driver.loc_); } std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); return isc::dhcp::Dhcp6Parser::make_STRING(tmp, driver.loc_); } YY_BREAK case 28: YY_RULE_SETUP #line 326 "dhcp6_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser6Context::NCR_FORMAT) { return isc::dhcp::Dhcp6Parser::make_JSON(driver.loc_); } std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); return isc::dhcp::Dhcp6Parser::make_STRING(tmp, driver.loc_); } YY_BREAK case 29: YY_RULE_SETUP #line 336 "dhcp6_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser6Context::REPLACE_CLIENT_NAME) { return isc::dhcp::Dhcp6Parser::make_WHEN_PRESENT(driver.loc_); } std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); return isc::dhcp::Dhcp6Parser::make_STRING(tmp, driver.loc_); } YY_BREAK case 30: YY_RULE_SETUP #line 346 "dhcp6_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser6Context::REPLACE_CLIENT_NAME) { return isc::dhcp::Dhcp6Parser::make_WHEN_PRESENT(driver.loc_); } std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); return isc::dhcp::Dhcp6Parser::make_STRING(tmp, driver.loc_); } YY_BREAK case 31: YY_RULE_SETUP #line 356 "dhcp6_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser6Context::REPLACE_CLIENT_NAME) { return isc::dhcp::Dhcp6Parser::make_NEVER(driver.loc_); } std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); return isc::dhcp::Dhcp6Parser::make_STRING(tmp, driver.loc_); } YY_BREAK case 32: YY_RULE_SETUP #line 366 "dhcp6_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser6Context::REPLACE_CLIENT_NAME) { return isc::dhcp::Dhcp6Parser::make_NEVER(driver.loc_); } std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); return isc::dhcp::Dhcp6Parser::make_STRING(tmp, driver.loc_); } YY_BREAK case 33: YY_RULE_SETUP #line 376 "dhcp6_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser6Context::REPLACE_CLIENT_NAME) { return isc::dhcp::Dhcp6Parser::make_ALWAYS(driver.loc_); } std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); return isc::dhcp::Dhcp6Parser::make_STRING(tmp, driver.loc_); } YY_BREAK case 34: YY_RULE_SETUP #line 386 "dhcp6_lexer.ll" { /* dhcp-ddns value keywords are case insensitive */ if (driver.ctx_ == isc::dhcp::Parser6Context::REPLACE_CLIENT_NAME) { return isc::dhcp::Dhcp6Parser::make_WHEN_NOT_PRESENT(driver.loc_); } std::string tmp(parser6_text+1); tmp.resize(tmp.size() - 1); return isc::dhcp::Dhcp6Parser::make_STRING(tmp, driver.loc_); } YY_BREAK case 35: YY_RULE_SETUP #line 396 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONFIG: return isc::dhcp::Dhcp6Parser::make_DHCP6(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("Dhcp6", driver.loc_); } } YY_BREAK case 36: YY_RULE_SETUP #line 405 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_INTERFACES_CONFIG(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("interfaces-config", driver.loc_); } } YY_BREAK case 37: YY_RULE_SETUP #line 414 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::INTERFACES_CONFIG: return isc::dhcp::Dhcp6Parser::make_INTERFACES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("interfaces", driver.loc_); } } YY_BREAK case 38: YY_RULE_SETUP #line 423 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::INTERFACES_CONFIG: return isc::dhcp::Dhcp6Parser::make_RE_DETECT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("re-detect", driver.loc_); } } YY_BREAK case 39: YY_RULE_SETUP #line 432 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_LEASE_DATABASE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("lease-database", driver.loc_); } } YY_BREAK case 40: YY_RULE_SETUP #line 441 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_HOSTS_DATABASE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("hosts-database", driver.loc_); } } YY_BREAK case 41: YY_RULE_SETUP #line 450 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::HOSTS_DATABASE: return isc::dhcp::Dhcp6Parser::make_READONLY(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("readonly", driver.loc_); } } YY_BREAK case 42: YY_RULE_SETUP #line 459 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: case isc::dhcp::Parser6Context::OPTION_DEF: case isc::dhcp::Parser6Context::SERVER_ID: return isc::dhcp::Dhcp6Parser::make_TYPE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("type", driver.loc_); } } YY_BREAK case 43: YY_RULE_SETUP #line 471 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DATABASE_TYPE: return isc::dhcp::Dhcp6Parser::make_MEMFILE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("memfile", driver.loc_); } } YY_BREAK case 44: YY_RULE_SETUP #line 480 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DATABASE_TYPE: return isc::dhcp::Dhcp6Parser::make_MYSQL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("mysql", driver.loc_); } } YY_BREAK case 45: YY_RULE_SETUP #line 489 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DATABASE_TYPE: return isc::dhcp::Dhcp6Parser::make_POSTGRESQL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("postgresql", driver.loc_); } } YY_BREAK case 46: YY_RULE_SETUP #line 498 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DATABASE_TYPE: return isc::dhcp::Dhcp6Parser::make_CQL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("cql", driver.loc_); } } YY_BREAK case 47: YY_RULE_SETUP #line 507 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: return isc::dhcp::Dhcp6Parser::make_USER(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("user", driver.loc_); } } YY_BREAK case 48: YY_RULE_SETUP #line 517 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: return isc::dhcp::Dhcp6Parser::make_PASSWORD(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("password", driver.loc_); } } YY_BREAK case 49: YY_RULE_SETUP #line 527 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: return isc::dhcp::Dhcp6Parser::make_HOST(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("host", driver.loc_); } } YY_BREAK case 50: YY_RULE_SETUP #line 537 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: return isc::dhcp::Dhcp6Parser::make_PORT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("port", driver.loc_); } } YY_BREAK case 51: YY_RULE_SETUP #line 547 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: case isc::dhcp::Parser6Context::SERVER_ID: return isc::dhcp::Dhcp6Parser::make_PERSIST(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("persist", driver.loc_); } } YY_BREAK case 52: YY_RULE_SETUP #line 558 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: return isc::dhcp::Dhcp6Parser::make_LFC_INTERVAL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("lfc-interval", driver.loc_); } } YY_BREAK case 53: YY_RULE_SETUP #line 568 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: return isc::dhcp::Dhcp6Parser::make_CONNECT_TIMEOUT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("connect-timeout", driver.loc_); } } YY_BREAK case 54: YY_RULE_SETUP #line 578 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: return isc::dhcp::Dhcp6Parser::make_KEYSPACE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("keyspace", driver.loc_); } } YY_BREAK case 55: YY_RULE_SETUP #line 588 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: return isc::dhcp::Dhcp6Parser::make_CONTACT_POINTS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("contact-points", driver.loc_); } } YY_BREAK case 56: YY_RULE_SETUP #line 598 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: case isc::dhcp::Parser6Context::SUBNET6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_PREFERRED_LIFETIME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("preferred-lifetime", driver.loc_); } } YY_BREAK case 57: YY_RULE_SETUP #line 609 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: case isc::dhcp::Parser6Context::SUBNET6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_VALID_LIFETIME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("valid-lifetime", driver.loc_); } } YY_BREAK case 58: YY_RULE_SETUP #line 620 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: case isc::dhcp::Parser6Context::SUBNET6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_RENEW_TIMER(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("renew-timer", driver.loc_); } } YY_BREAK case 59: YY_RULE_SETUP #line 631 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: case isc::dhcp::Parser6Context::SUBNET6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_REBIND_TIMER(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("rebind-timer", driver.loc_); } } YY_BREAK case 60: YY_RULE_SETUP #line 642 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_DECLINE_PROBATION_PERIOD(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("decline-probation-period", driver.loc_); } } YY_BREAK case 61: YY_RULE_SETUP #line 651 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_SUBNET6(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("subnet6", driver.loc_); } } YY_BREAK case 62: YY_RULE_SETUP #line 661 "dhcp6_lexer.ll" { switch (driver.ctx_) { case Parser6Context::DHCP6: return Dhcp6Parser::make_SHARED_NETWORKS(driver.loc_); default: return Dhcp6Parser::make_STRING("shared-networks", driver.loc_); } } YY_BREAK case 63: YY_RULE_SETUP #line 670 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_OPTION_DEF(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("option-def", driver.loc_); } } YY_BREAK case 64: YY_RULE_SETUP #line 679 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: case isc::dhcp::Parser6Context::SUBNET6: case isc::dhcp::Parser6Context::POOLS: case isc::dhcp::Parser6Context::PD_POOLS: case isc::dhcp::Parser6Context::RESERVATIONS: case isc::dhcp::Parser6Context::CLIENT_CLASSES: case isc::dhcp::Parser6Context::CLIENT_CLASS: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_OPTION_DATA(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("option-data", driver.loc_); } } YY_BREAK case 65: YY_RULE_SETUP #line 695 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: case isc::dhcp::Parser6Context::OPTION_DEF: case isc::dhcp::Parser6Context::OPTION_DATA: case isc::dhcp::Parser6Context::CLIENT_CLASSES: case isc::dhcp::Parser6Context::CLIENT_CLASS: case isc::dhcp::Parser6Context::LOGGERS: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_NAME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("name", driver.loc_); } } YY_BREAK case 66: YY_RULE_SETUP #line 711 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DATA: return isc::dhcp::Dhcp6Parser::make_DATA(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("data", driver.loc_); } } YY_BREAK case 67: YY_RULE_SETUP #line 720 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DATA: return isc::dhcp::Dhcp6Parser::make_ALWAYS_SEND(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("always-send", driver.loc_); } } YY_BREAK case 68: YY_RULE_SETUP #line 729 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: return isc::dhcp::Dhcp6Parser::make_POOLS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("pools", driver.loc_); } } YY_BREAK case 69: YY_RULE_SETUP #line 738 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: return isc::dhcp::Dhcp6Parser::make_PD_POOLS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("pd-pools", driver.loc_); } } YY_BREAK case 70: YY_RULE_SETUP #line 747 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::PD_POOLS: return isc::dhcp::Dhcp6Parser::make_PREFIX(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("prefix", driver.loc_); } } YY_BREAK case 71: YY_RULE_SETUP #line 756 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::PD_POOLS: return isc::dhcp::Dhcp6Parser::make_PREFIX_LEN(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("prefix-len", driver.loc_); } } YY_BREAK case 72: YY_RULE_SETUP #line 765 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::PD_POOLS: return isc::dhcp::Dhcp6Parser::make_EXCLUDED_PREFIX(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("excluded-prefix", driver.loc_); } } YY_BREAK case 73: YY_RULE_SETUP #line 774 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::PD_POOLS: return isc::dhcp::Dhcp6Parser::make_EXCLUDED_PREFIX_LEN(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("excluded-prefix-len", driver.loc_); } } YY_BREAK case 74: YY_RULE_SETUP #line 783 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::PD_POOLS: return isc::dhcp::Dhcp6Parser::make_DELEGATED_LEN(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("delegated-len", driver.loc_); } } YY_BREAK case 75: YY_RULE_SETUP #line 792 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::POOLS: return isc::dhcp::Dhcp6Parser::make_POOL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("pool", driver.loc_); } } YY_BREAK case 76: YY_RULE_SETUP #line 801 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::POOLS: case isc::dhcp::Parser6Context::PD_POOLS: return isc::dhcp::Dhcp6Parser::make_USER_CONTEXT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("user-context", driver.loc_); } } YY_BREAK case 77: YY_RULE_SETUP #line 811 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: return isc::dhcp::Dhcp6Parser::make_SUBNET(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("subnet", driver.loc_); } } YY_BREAK case 78: YY_RULE_SETUP #line 820 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_INTERFACE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("interface", driver.loc_); } } YY_BREAK case 79: YY_RULE_SETUP #line 830 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_INTERFACE_ID(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("interface-id", driver.loc_); } } YY_BREAK case 80: YY_RULE_SETUP #line 840 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: return isc::dhcp::Dhcp6Parser::make_ID(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("id", driver.loc_); } } YY_BREAK case 81: YY_RULE_SETUP #line 849 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_RAPID_COMMIT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("rapid-commit", driver.loc_); } } YY_BREAK case 82: YY_RULE_SETUP #line 859 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_RESERVATION_MODE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("reservation-mode", driver.loc_); } } YY_BREAK case 83: YY_RULE_SETUP #line 869 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATION_MODE: return isc::dhcp::Dhcp6Parser::make_DISABLED(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("disabled", driver.loc_); } } YY_BREAK case 84: YY_RULE_SETUP #line 878 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATION_MODE: return isc::dhcp::Dhcp6Parser::make_DISABLED(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("off", driver.loc_); } } YY_BREAK case 85: YY_RULE_SETUP #line 887 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATION_MODE: return isc::dhcp::Dhcp6Parser::make_OUT_OF_POOL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("out-of-pool", driver.loc_); } } YY_BREAK case 86: YY_RULE_SETUP #line 896 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATION_MODE: return isc::dhcp::Dhcp6Parser::make_ALL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("all", driver.loc_); } } YY_BREAK case 87: YY_RULE_SETUP #line 905 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: case isc::dhcp::Parser6Context::OPTION_DATA: return isc::dhcp::Dhcp6Parser::make_CODE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("code", driver.loc_); } } YY_BREAK case 88: YY_RULE_SETUP #line 915 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_MAC_SOURCES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("mac-sources", driver.loc_); } } YY_BREAK case 89: YY_RULE_SETUP #line 924 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_RELAY_SUPPLIED_OPTIONS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("relay-supplied-options", driver.loc_); } } YY_BREAK case 90: YY_RULE_SETUP #line 933 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_HOST_RESERVATION_IDENTIFIERS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("host-reservation-identifiers", driver.loc_); } } YY_BREAK case 91: YY_RULE_SETUP #line 942 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONFIG: return isc::dhcp::Dhcp6Parser::make_LOGGING(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("Logging", driver.loc_); } } YY_BREAK case 92: YY_RULE_SETUP #line 951 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LOGGING: return isc::dhcp::Dhcp6Parser::make_LOGGERS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("loggers", driver.loc_); } } YY_BREAK case 93: YY_RULE_SETUP #line 960 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LOGGERS: return isc::dhcp::Dhcp6Parser::make_OUTPUT_OPTIONS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("output_options", driver.loc_); } } YY_BREAK case 94: YY_RULE_SETUP #line 969 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OUTPUT_OPTIONS: return isc::dhcp::Dhcp6Parser::make_OUTPUT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("output", driver.loc_); } } YY_BREAK case 95: YY_RULE_SETUP #line 978 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OUTPUT_OPTIONS: return isc::dhcp::Dhcp6Parser::make_FLUSH(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("flush", driver.loc_); } } YY_BREAK case 96: YY_RULE_SETUP #line 987 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OUTPUT_OPTIONS: return isc::dhcp::Dhcp6Parser::make_MAXSIZE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("maxsize", driver.loc_); } } YY_BREAK case 97: YY_RULE_SETUP #line 996 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OUTPUT_OPTIONS: return isc::dhcp::Dhcp6Parser::make_MAXVER(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("maxver", driver.loc_); } } YY_BREAK case 98: YY_RULE_SETUP #line 1006 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LOGGERS: return isc::dhcp::Dhcp6Parser::make_DEBUGLEVEL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("debuglevel", driver.loc_); } } YY_BREAK case 99: YY_RULE_SETUP #line 1015 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LOGGERS: return isc::dhcp::Dhcp6Parser::make_SEVERITY(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("severity", driver.loc_); } } YY_BREAK case 100: YY_RULE_SETUP #line 1024 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: case isc::dhcp::Parser6Context::RESERVATIONS: return isc::dhcp::Dhcp6Parser::make_CLIENT_CLASSES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("client-classes", driver.loc_); } } YY_BREAK case 101: YY_RULE_SETUP #line 1034 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: case isc::dhcp::Parser6Context::CLIENT_CLASSES: return isc::dhcp::Dhcp6Parser::make_CLIENT_CLASS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("client-class", driver.loc_); } } YY_BREAK case 102: YY_RULE_SETUP #line 1044 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CLIENT_CLASSES: case isc::dhcp::Parser6Context::CLIENT_CLASS: return isc::dhcp::Dhcp6Parser::make_TEST(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("test", driver.loc_); } } YY_BREAK case 103: YY_RULE_SETUP #line 1054 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: return isc::dhcp::Dhcp6Parser::make_RESERVATIONS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("reservations", driver.loc_); } } YY_BREAK case 104: YY_RULE_SETUP #line 1063 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATIONS: return isc::dhcp::Dhcp6Parser::make_IP_ADDRESSES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("ip-addresses", driver.loc_); } } YY_BREAK case 105: YY_RULE_SETUP #line 1072 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATIONS: return isc::dhcp::Dhcp6Parser::make_PREFIXES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("prefixes", driver.loc_); } } YY_BREAK case 106: YY_RULE_SETUP #line 1081 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::MAC_SOURCES: case isc::dhcp::Parser6Context::HOST_RESERVATION_IDENTIFIERS: case isc::dhcp::Parser6Context::RESERVATIONS: return isc::dhcp::Dhcp6Parser::make_DUID(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("duid", driver.loc_); } } YY_BREAK case 107: YY_RULE_SETUP #line 1092 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::HOST_RESERVATION_IDENTIFIERS: case isc::dhcp::Parser6Context::RESERVATIONS: return isc::dhcp::Dhcp6Parser::make_HW_ADDRESS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("hw-address", driver.loc_); } } YY_BREAK case 108: YY_RULE_SETUP #line 1102 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RESERVATIONS: return isc::dhcp::Dhcp6Parser::make_HOSTNAME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("hostname", driver.loc_); } } YY_BREAK case 109: YY_RULE_SETUP #line 1111 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::HOST_RESERVATION_IDENTIFIERS: case isc::dhcp::Parser6Context::RESERVATIONS: return isc::dhcp::Dhcp6Parser::make_FLEX_ID(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("flex-id", driver.loc_); } } YY_BREAK case 110: YY_RULE_SETUP #line 1121 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: case isc::dhcp::Parser6Context::OPTION_DATA: return isc::dhcp::Dhcp6Parser::make_SPACE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("space", driver.loc_); } } YY_BREAK case 111: YY_RULE_SETUP #line 1131 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DATA: return isc::dhcp::Dhcp6Parser::make_CSV_FORMAT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("csv-format", driver.loc_); } } YY_BREAK case 112: YY_RULE_SETUP #line 1140 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: return isc::dhcp::Dhcp6Parser::make_RECORD_TYPES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("record-types", driver.loc_); } } YY_BREAK case 113: YY_RULE_SETUP #line 1149 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: return isc::dhcp::Dhcp6Parser::make_ENCAPSULATE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("encapsulate", driver.loc_); } } YY_BREAK case 114: YY_RULE_SETUP #line 1158 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::OPTION_DEF: return isc::dhcp::Dhcp6Parser::make_ARRAY(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("array", driver.loc_); } } YY_BREAK case 115: YY_RULE_SETUP #line 1167 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SUBNET6: case Parser6Context::SHARED_NETWORK: return isc::dhcp::Dhcp6Parser::make_RELAY(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("relay", driver.loc_); } } YY_BREAK case 116: YY_RULE_SETUP #line 1177 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::RELAY: return isc::dhcp::Dhcp6Parser::make_IP_ADDRESS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("ip-address", driver.loc_); } } YY_BREAK case 117: YY_RULE_SETUP #line 1186 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_HOOKS_LIBRARIES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("hooks-libraries", driver.loc_); } } YY_BREAK case 118: YY_RULE_SETUP #line 1196 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::HOOKS_LIBRARIES: return isc::dhcp::Dhcp6Parser::make_PARAMETERS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("parameters", driver.loc_); } } YY_BREAK case 119: YY_RULE_SETUP #line 1205 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::HOOKS_LIBRARIES: return isc::dhcp::Dhcp6Parser::make_LIBRARY(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("library", driver.loc_); } } YY_BREAK case 120: YY_RULE_SETUP #line 1214 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_SERVER_ID(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("server-id", driver.loc_); } } YY_BREAK case 121: YY_RULE_SETUP #line 1223 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DUID_TYPE: return isc::dhcp::Dhcp6Parser::make_LLT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("LLT", driver.loc_); } } YY_BREAK case 122: YY_RULE_SETUP #line 1232 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DUID_TYPE: return isc::dhcp::Dhcp6Parser::make_EN(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("EN", driver.loc_); } } YY_BREAK case 123: YY_RULE_SETUP #line 1241 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DUID_TYPE: return isc::dhcp::Dhcp6Parser::make_LL(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("LL", driver.loc_); } } YY_BREAK case 124: YY_RULE_SETUP #line 1250 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SERVER_ID: return isc::dhcp::Dhcp6Parser::make_IDENTIFIER(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("identifier", driver.loc_); } } YY_BREAK case 125: YY_RULE_SETUP #line 1259 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SERVER_ID: return isc::dhcp::Dhcp6Parser::make_HTYPE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("htype", driver.loc_); } } YY_BREAK case 126: YY_RULE_SETUP #line 1268 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SERVER_ID: return isc::dhcp::Dhcp6Parser::make_TIME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("time", driver.loc_); } } YY_BREAK case 127: YY_RULE_SETUP #line 1277 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::SERVER_ID: return isc::dhcp::Dhcp6Parser::make_ENTERPRISE_ID(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("enterprise-id", driver.loc_); } } YY_BREAK case 128: YY_RULE_SETUP #line 1286 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_EXPIRED_LEASES_PROCESSING(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("expired-leases-processing", driver.loc_); } } YY_BREAK case 129: YY_RULE_SETUP #line 1295 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: return isc::dhcp::Dhcp6Parser::make_RECLAIM_TIMER_WAIT_TIME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("reclaim-timer-wait-time", driver.loc_); } } YY_BREAK case 130: YY_RULE_SETUP #line 1304 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: return isc::dhcp::Dhcp6Parser::make_FLUSH_RECLAIMED_TIMER_WAIT_TIME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("flush-reclaimed-timer-wait-time", driver.loc_); } } YY_BREAK case 131: YY_RULE_SETUP #line 1313 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: return isc::dhcp::Dhcp6Parser::make_HOLD_RECLAIMED_TIME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("hold-reclaimed-time", driver.loc_); } } YY_BREAK case 132: YY_RULE_SETUP #line 1322 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: return isc::dhcp::Dhcp6Parser::make_MAX_RECLAIM_LEASES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("max-reclaim-leases", driver.loc_); } } YY_BREAK case 133: YY_RULE_SETUP #line 1331 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: return isc::dhcp::Dhcp6Parser::make_MAX_RECLAIM_TIME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("max-reclaim-time", driver.loc_); } } YY_BREAK case 134: YY_RULE_SETUP #line 1340 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::EXPIRED_LEASES_PROCESSING: return isc::dhcp::Dhcp6Parser::make_UNWARNED_RECLAIM_CYCLES(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("unwarned-reclaim-cycles", driver.loc_); } } YY_BREAK case 135: YY_RULE_SETUP #line 1349 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_DHCP4O6_PORT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("dhcp4o6-port", driver.loc_); } } YY_BREAK case 136: YY_RULE_SETUP #line 1358 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_CONTROL_SOCKET(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("control-socket", driver.loc_); } } YY_BREAK case 137: YY_RULE_SETUP #line 1367 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONTROL_SOCKET: return isc::dhcp::Dhcp6Parser::make_SOCKET_TYPE(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("socket-type", driver.loc_); } } YY_BREAK case 138: YY_RULE_SETUP #line 1376 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONTROL_SOCKET: return isc::dhcp::Dhcp6Parser::make_SOCKET_NAME(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("socket-name", driver.loc_); } } YY_BREAK case 139: YY_RULE_SETUP #line 1385 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP6: return isc::dhcp::Dhcp6Parser::make_DHCP_DDNS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("dhcp-ddns", driver.loc_); } } YY_BREAK case 140: YY_RULE_SETUP #line 1394 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONFIG: return isc::dhcp::Dhcp6Parser::make_DHCP4(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("Dhcp4", driver.loc_); } } YY_BREAK case 141: YY_RULE_SETUP #line 1403 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONFIG: return isc::dhcp::Dhcp6Parser::make_DHCPDDNS(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("DhcpDdns", driver.loc_); } } YY_BREAK case 142: YY_RULE_SETUP #line 1412 "dhcp6_lexer.ll" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CONFIG: return isc::dhcp::Dhcp6Parser::make_CONTROL_AGENT(driver.loc_); default: return isc::dhcp::Dhcp6Parser::make_STRING("Control-agent", driver.loc_); } } YY_BREAK case 143: YY_RULE_SETUP #line 1422 "dhcp6_lexer.ll" { /* A string has been matched. It contains the actual string and single quotes. We need to get those quotes out of the way and just use its content, e.g. for 'foo' we should get foo */ std::string raw(parser6_text+1); size_t len = raw.size() - 1; raw.resize(len); std::string decoded; decoded.reserve(len); for (size_t pos = 0; pos < len; ++pos) { int b = 0; char c = raw[pos]; switch (c) { case '"': /* impossible condition */ driver.error(driver.loc_, "Bad quote in \"" + raw + "\""); case '\\': ++pos; if (pos >= len) { /* impossible condition */ driver.error(driver.loc_, "Overflow escape in \"" + raw + "\""); } c = raw[pos]; switch (c) { case '"': case '\\': case '/': decoded.push_back(c); break; case 'b': decoded.push_back('\b'); break; case 'f': decoded.push_back('\f'); break; case 'n': decoded.push_back('\n'); break; case 'r': decoded.push_back('\r'); break; case 't': decoded.push_back('\t'); break; case 'u': /* support only \u0000 to \u00ff */ ++pos; if (pos + 4 > len) { /* impossible condition */ driver.error(driver.loc_, "Overflow unicode escape in \"" + raw + "\""); } if ((raw[pos] != '0') || (raw[pos + 1] != '0')) { driver.error(driver.loc_, "Unsupported unicode escape in \"" + raw + "\""); } pos += 2; c = raw[pos]; if ((c >= '0') && (c <= '9')) { b = (c - '0') << 4; } else if ((c >= 'A') && (c <= 'F')) { b = (c - 'A' + 10) << 4; } else if ((c >= 'a') && (c <= 'f')) { b = (c - 'a' + 10) << 4; } else { /* impossible condition */ driver.error(driver.loc_, "Not hexadecimal in unicode escape in \"" + raw + "\""); } pos++; c = raw[pos]; if ((c >= '0') && (c <= '9')) { b |= c - '0'; } else if ((c >= 'A') && (c <= 'F')) { b |= c - 'A' + 10; } else if ((c >= 'a') && (c <= 'f')) { b |= c - 'a' + 10; } else { /* impossible condition */ driver.error(driver.loc_, "Not hexadecimal in unicode escape in \"" + raw + "\""); } decoded.push_back(static_cast(b & 0xff)); break; default: /* impossible condition */ driver.error(driver.loc_, "Bad escape in \"" + raw + "\""); } break; default: if ((c >= 0) && (c < 0x20)) { /* impossible condition */ driver.error(driver.loc_, "Invalid control in \"" + raw + "\""); } decoded.push_back(c); } } return isc::dhcp::Dhcp6Parser::make_STRING(decoded, driver.loc_); } YY_BREAK case 144: /* rule 144 can match eol */ YY_RULE_SETUP #line 1520 "dhcp6_lexer.ll" { /* Bad string with a forbidden control character inside */ driver.error(driver.loc_, "Invalid control in " + std::string(parser6_text)); } YY_BREAK case 145: /* rule 145 can match eol */ YY_RULE_SETUP #line 1525 "dhcp6_lexer.ll" { /* Bad string with a bad escape inside */ driver.error(driver.loc_, "Bad escape in " + std::string(parser6_text)); } YY_BREAK case 146: YY_RULE_SETUP #line 1530 "dhcp6_lexer.ll" { /* Bad string with an open escape at the end */ driver.error(driver.loc_, "Overflow escape in " + std::string(parser6_text)); } YY_BREAK case 147: YY_RULE_SETUP #line 1535 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_LSQUARE_BRACKET(driver.loc_); } YY_BREAK case 148: YY_RULE_SETUP #line 1536 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_RSQUARE_BRACKET(driver.loc_); } YY_BREAK case 149: YY_RULE_SETUP #line 1537 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_LCURLY_BRACKET(driver.loc_); } YY_BREAK case 150: YY_RULE_SETUP #line 1538 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_RCURLY_BRACKET(driver.loc_); } YY_BREAK case 151: YY_RULE_SETUP #line 1539 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_COMMA(driver.loc_); } YY_BREAK case 152: YY_RULE_SETUP #line 1540 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_COLON(driver.loc_); } YY_BREAK case 153: YY_RULE_SETUP #line 1542 "dhcp6_lexer.ll" { /* An integer was found. */ std::string tmp(parser6_text); int64_t integer = 0; try { /* In substring we want to use negative values (e.g. -1). In enterprise-id we need to use values up to 0xffffffff. To cover both of those use cases, we need at least int64_t. */ integer = boost::lexical_cast(tmp); } catch (const boost::bad_lexical_cast &) { driver.error(driver.loc_, "Failed to convert " + tmp + " to an integer."); } /* The parser needs the string form as double conversion is no lossless */ return isc::dhcp::Dhcp6Parser::make_INTEGER(integer, driver.loc_); } YY_BREAK case 154: YY_RULE_SETUP #line 1560 "dhcp6_lexer.ll" { /* A floating point was found. */ std::string tmp(parser6_text); double fp = 0.0; try { fp = boost::lexical_cast(tmp); } catch (const boost::bad_lexical_cast &) { driver.error(driver.loc_, "Failed to convert " + tmp + " to a floating point."); } return isc::dhcp::Dhcp6Parser::make_FLOAT(fp, driver.loc_); } YY_BREAK case 155: YY_RULE_SETUP #line 1573 "dhcp6_lexer.ll" { string tmp(parser6_text); return isc::dhcp::Dhcp6Parser::make_BOOLEAN(tmp == "true", driver.loc_); } YY_BREAK case 156: YY_RULE_SETUP #line 1578 "dhcp6_lexer.ll" { return isc::dhcp::Dhcp6Parser::make_NULL_TYPE(driver.loc_); } YY_BREAK case 157: YY_RULE_SETUP #line 1582 "dhcp6_lexer.ll" driver.error (driver.loc_, "JSON true reserved keyword is lower case only"); YY_BREAK case 158: YY_RULE_SETUP #line 1584 "dhcp6_lexer.ll" driver.error (driver.loc_, "JSON false reserved keyword is lower case only"); YY_BREAK case 159: YY_RULE_SETUP #line 1586 "dhcp6_lexer.ll" driver.error (driver.loc_, "JSON null reserved keyword is lower case only"); YY_BREAK case 160: YY_RULE_SETUP #line 1588 "dhcp6_lexer.ll" driver.error (driver.loc_, "Invalid character: " + std::string(parser6_text)); YY_BREAK case YY_STATE_EOF(INITIAL): #line 1590 "dhcp6_lexer.ll" { if (driver.states_.empty()) { return isc::dhcp::Dhcp6Parser::make_END(driver.loc_); } driver.loc_ = driver.locs_.back(); driver.locs_.pop_back(); driver.file_ = driver.files_.back(); driver.files_.pop_back(); if (driver.sfile_) { fclose(driver.sfile_); driver.sfile_ = 0; } if (!driver.sfiles_.empty()) { driver.sfile_ = driver.sfiles_.back(); driver.sfiles_.pop_back(); } parser6__delete_buffer(YY_CURRENT_BUFFER); parser6__switch_to_buffer(driver.states_.back()); driver.states_.pop_back(); BEGIN(DIR_EXIT); } YY_BREAK case 161: YY_RULE_SETUP #line 1613 "dhcp6_lexer.ll" ECHO; YY_BREAK #line 3819 "dhcp6_lexer.cc" 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 parser6_in at a new source and called * parser6_lex(). 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; /* %if-c-only */ YY_CURRENT_BUFFER_LVALUE->yy_input_file = parser6_in; /* %endif */ /* %if-c++-only */ /* %endif */ 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 { /* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */ yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( parser6_wrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * parser6_text, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of user's declarations */ } /* end of parser6_lex */ /* %ok-for-header */ /* %if-c++-only */ /* %not-for-header */ /* %ok-for-header */ /* %endif */ /* 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 */ /* %if-c-only */ static int yy_get_next_buffer (void) /* %endif */ /* %if-c++-only */ /* %endif */ { char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; char *source = (yytext_ptr); int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1); for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ parser6_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = NULL; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; parser6_restart(parser6_in ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) parser6_realloc((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 */ /* %if-c-only */ /* %not-for-header */ static yy_state_type yy_get_previous_state (void) /* %endif */ /* %if-c++-only */ /* %endif */ { yy_state_type yy_current_state; char *yy_cp; /* %% [15.0] code to get the start state into yy_current_state goes here */ yy_current_state = (yy_start); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { /* %% [16.0] code to find the next state goes here */ 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 >= 1266 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) 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 ); */ /* %if-c-only */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) /* %endif */ /* %if-c++-only */ /* %endif */ { int yy_is_jam; /* %% [17.0] code to find the next state, and perhaps do backing up, goes here */ char *yy_cp = (yy_c_buf_p); YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 1266 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c]; yy_is_jam = (yy_current_state == 1265); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT /* %if-c-only */ /* %endif */ #endif /* %if-c-only */ #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif /* %endif */ /* %if-c++-only */ /* %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. */ parser6_restart(parser6_in ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( parser6_wrap( ) ) return 0; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve parser6_text */ (yy_hold_char) = *++(yy_c_buf_p); /* %% [19.0] update BOL and parser6_lineno */ return c; } /* %if-c-only */ #endif /* ifndef YY_NO_INPUT */ /* %endif */ /** 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 . */ /* %if-c-only */ void parser6_restart (FILE * input_file ) /* %endif */ /* %if-c++-only */ /* %endif */ { if ( ! YY_CURRENT_BUFFER ){ parser6_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = parser6__create_buffer(parser6_in,YY_BUF_SIZE ); } parser6__init_buffer(YY_CURRENT_BUFFER,input_file ); parser6__load_buffer_state( ); } /* %if-c++-only */ /* %endif */ /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ /* %if-c-only */ void parser6__switch_to_buffer (YY_BUFFER_STATE new_buffer ) /* %endif */ /* %if-c++-only */ /* %endif */ { /* TODO. We should be able to replace this entire function body * with * parser6_pop_buffer_state(); * parser6_push_buffer_state(new_buffer); */ parser6_ensure_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; parser6__load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (parser6_wrap()) processing, but the only time this flag * is looked at is after parser6_wrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } /* %if-c-only */ static void parser6__load_buffer_state (void) /* %endif */ /* %if-c++-only */ /* %endif */ { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; /* %if-c-only */ parser6_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file; /* %endif */ /* %if-c++-only */ /* %endif */ (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. */ /* %if-c-only */ YY_BUFFER_STATE parser6__create_buffer (FILE * file, int size ) /* %endif */ /* %if-c++-only */ /* %endif */ { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) parser6_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in parser6__create_buffer()" ); b->yy_buf_size = (yy_size_t)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 *) parser6_alloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in parser6__create_buffer()" ); b->yy_is_our_buffer = 1; parser6__init_buffer(b,file ); return b; } /* %if-c++-only */ /* %endif */ /** Destroy the buffer. * @param b a buffer created with parser6__create_buffer() * */ /* %if-c-only */ void parser6__delete_buffer (YY_BUFFER_STATE b ) /* %endif */ /* %if-c++-only */ /* %endif */ { 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 ) parser6_free((void *) b->yy_ch_buf ); parser6_free((void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a parser6_restart() or at EOF. */ /* %if-c-only */ static void parser6__init_buffer (YY_BUFFER_STATE b, FILE * file ) /* %endif */ /* %if-c++-only */ /* %endif */ { int oerrno = errno; parser6__flush_buffer(b ); /* %if-c-only */ b->yy_input_file = file; /* %endif */ /* %if-c++-only */ /* %endif */ b->yy_fill_buffer = 1; /* If b is the current buffer, then parser6__init_buffer was _probably_ * called from parser6_restart() 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; } /* %if-c-only */ b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; /* %endif */ /* %if-c++-only */ /* %endif */ 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. * */ /* %if-c-only */ void parser6__flush_buffer (YY_BUFFER_STATE b ) /* %endif */ /* %if-c++-only */ /* %endif */ { 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 ) parser6__load_buffer_state( ); } /* %if-c-or-c++ */ /** 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. * */ /* %if-c-only */ void parser6_push_buffer_state (YY_BUFFER_STATE new_buffer ) /* %endif */ /* %if-c++-only */ /* %endif */ { if (new_buffer == NULL) return; parser6_ensure_buffer_stack(); /* This block is copied from parser6__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 parser6__switch_to_buffer. */ parser6__load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /* %endif */ /* %if-c-or-c++ */ /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ /* %if-c-only */ void parser6_pop_buffer_state (void) /* %endif */ /* %if-c++-only */ /* %endif */ { if (!YY_CURRENT_BUFFER) return; parser6__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { parser6__load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* %endif */ /* %if-c-or-c++ */ /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ /* %if-c-only */ static void parser6_ensure_buffer_stack (void) /* %endif */ /* %if-c++-only */ /* %endif */ { 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; /* After all that talk, this was set to 1 anyways... */ (yy_buffer_stack) = (struct yy_buffer_state**)parser6_alloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in parser6_ensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ yy_size_t grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)parser6_realloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in parser6_ensure_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; } } /* %endif */ /* %if-c-only */ /** 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 parser6__scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return NULL; b = (YY_BUFFER_STATE) parser6_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in parser6__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 = NULL; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; parser6__switch_to_buffer(b ); return b; } /* %endif */ /* %if-c-only */ /** Setup the input buffer state to scan a string. The next call to parser6_lex() 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 * parser6__scan_bytes() instead. */ YY_BUFFER_STATE parser6__scan_string (yyconst char * yystr ) { return parser6__scan_bytes(yystr,(int) strlen(yystr) ); } /* %endif */ /* %if-c-only */ /** Setup the input buffer state to scan the given bytes. The next call to parser6_lex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE parser6__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 = (yy_size_t) (_yybytes_len + 2); buf = (char *) parser6_alloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in parser6__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 = parser6__scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in parser6__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; } /* %endif */ #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif /* %if-c-only */ static void yynoreturn yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* %endif */ /* %if-c++-only */ /* %endif */ /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up parser6_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ parser6_text[parser6_leng] = (yy_hold_char); \ (yy_c_buf_p) = parser6_text + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ parser6_leng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /* %if-c-only */ /* %if-reentrant */ /* %endif */ /** Get the current line number. * */ int parser6_get_lineno (void) { return parser6_lineno; } /** Get the input stream. * */ FILE *parser6_get_in (void) { return parser6_in; } /** Get the output stream. * */ FILE *parser6_get_out (void) { return parser6_out; } /** Get the length of the current token. * */ int parser6_get_leng (void) { return parser6_leng; } /** Get the current token. * */ char *parser6_get_text (void) { return parser6_text; } /* %if-reentrant */ /* %endif */ /** Set the current line number. * @param _line_number line number * */ void parser6_set_lineno (int _line_number ) { parser6_lineno = _line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param _in_str A readable stream. * * @see parser6__switch_to_buffer */ void parser6_set_in (FILE * _in_str ) { parser6_in = _in_str ; } void parser6_set_out (FILE * _out_str ) { parser6_out = _out_str ; } int parser6_get_debug (void) { return parser6__flex_debug; } void parser6_set_debug (int _bdebug ) { parser6__flex_debug = _bdebug ; } /* %endif */ /* %if-reentrant */ /* %if-bison-bridge */ /* %endif */ /* %endif if-c-only */ /* %if-c-only */ static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from parser6_lex_destroy(), so don't allocate here. */ (yy_buffer_stack) = NULL; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = NULL; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT parser6_in = stdin; parser6_out = stdout; #else parser6_in = NULL; parser6_out = NULL; #endif /* For future reference: Set errno on error, since we are called by * parser6_lex_init() */ return 0; } /* %endif */ /* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */ /* parser6_lex_destroy is for both reentrant and non-reentrant scanners. */ int parser6_lex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ parser6__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; parser6_pop_buffer_state(); } /* Destroy the stack itself. */ parser6_free((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * parser6_lex() is called, initialization will occur. */ yy_init_globals( ); /* %if-reentrant */ /* %endif */ return 0; } /* %endif */ /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *parser6_alloc (yy_size_t size ) { return malloc(size); } void *parser6_realloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return realloc(ptr, size); } void parser6_free (void * ptr ) { free( (char *) ptr ); /* see parser6_realloc() for (char *) cast */ } /* %if-tables-serialization definitions */ /* %define-yytables The name for this specific scanner's tables. */ #define YYTABLES_NAME "yytables" /* %endif */ /* %ok-for-header */ #line 1613 "dhcp6_lexer.ll" using namespace isc::dhcp; void Parser6Context::scanStringBegin(const std::string& str, ParserType parser_type) { start_token_flag = true; start_token_value = parser_type; file_ = ""; sfile_ = 0; loc_.initialize(&file_); parser6__flex_debug = trace_scanning_; YY_BUFFER_STATE buffer; buffer = parser6__scan_bytes(str.c_str(), str.size()); if (!buffer) { fatal("cannot scan string"); /* fatal() throws an exception so this can't be reached */ } } void Parser6Context::scanFileBegin(FILE * f, const std::string& filename, ParserType parser_type) { start_token_flag = true; start_token_value = parser_type; file_ = filename; sfile_ = f; loc_.initialize(&file_); parser6__flex_debug = trace_scanning_; YY_BUFFER_STATE buffer; /* See dhcp6_lexer.cc header for available definitions */ buffer = parser6__create_buffer(f, 65536 /*buffer size*/); if (!buffer) { fatal("cannot scan file " + filename); } parser6__switch_to_buffer(buffer); } void Parser6Context::scanEnd() { if (sfile_) fclose(sfile_); sfile_ = 0; static_cast(parser6_lex_destroy()); /* Close files */ while (!sfiles_.empty()) { FILE* f = sfiles_.back(); if (f) { fclose(f); } sfiles_.pop_back(); } /* Delete states */ while (!states_.empty()) { parser6__delete_buffer(states_.back()); states_.pop_back(); } } void Parser6Context::includeFile(const std::string& filename) { if (states_.size() > 10) { fatal("Too many nested include."); } FILE* f = fopen(filename.c_str(), "r"); if (!f) { fatal("Can't open include file " + filename); } if (sfile_) { sfiles_.push_back(sfile_); } sfile_ = f; states_.push_back(YY_CURRENT_BUFFER); YY_BUFFER_STATE buffer; buffer = parser6__create_buffer(f, 65536 /*buffer size*/); if (!buffer) { fatal( "Can't scan include file " + filename); } parser6__switch_to_buffer(buffer); files_.push_back(file_); file_ = filename; locs_.push_back(loc_); loc_.initialize(&file_); BEGIN(INITIAL); } namespace { /** To avoid unused function error */ class Dummy { /* cppcheck-suppress unusedPrivateFunction */ void dummy() { yy_fatal_error("Fix me: how to disable its definition?"); } }; }