--- /dev/null
+#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 0
+#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 <stdio.h>
+#include <string.h>
+#include <errno.h>
+#include <stdlib.h>
+/* %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 <inttypes.h>. Non-C99 systems may or may not. */
+
+#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+
+/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
+ * if you want the limit (max/min) macros for int types.
+ */
+#ifndef __STDC_LIMIT_MACROS
+#define __STDC_LIMIT_MACROS 1
+#endif
+
+#include <inttypes.h>
+typedef int8_t flex_int8_t;
+typedef uint8_t flex_uint8_t;
+typedef int16_t flex_int16_t;
+typedef uint16_t flex_uint16_t;
+typedef int32_t flex_int32_t;
+typedef uint32_t flex_uint32_t;
+#else
+typedef signed char flex_int8_t;
+typedef short int flex_int16_t;
+typedef int flex_int32_t;
+typedef unsigned char flex_uint8_t;
+typedef unsigned short int flex_uint16_t;
+typedef unsigned int flex_uint32_t;
+
+/* Limits of integral types. */
+#ifndef INT8_MIN
+#define INT8_MIN (-128)
+#endif
+#ifndef INT16_MIN
+#define INT16_MIN (-32767-1)
+#endif
+#ifndef INT32_MIN
+#define INT32_MIN (-2147483647-1)
+#endif
+#ifndef INT8_MAX
+#define INT8_MAX (127)
+#endif
+#ifndef INT16_MAX
+#define INT16_MAX (32767)
+#endif
+#ifndef INT32_MAX
+#define INT32_MAX (2147483647)
+#endif
+#ifndef UINT8_MAX
+#define UINT8_MAX (255U)
+#endif
+#ifndef UINT16_MAX
+#define UINT16_MAX (65535U)
+#endif
+#ifndef UINT32_MAX
+#define UINT32_MAX (4294967295U)
+#endif
+
+#endif /* ! C99 */
+
+#endif /* ! FLEXINT_H */
+
+/* %endif */
+
+/* %if-c++-only */
+/* %endif */
+
+#ifdef __cplusplus
+
+/* The "const" storage-class-modifier is valid. */
+#define YY_USE_CONST
+
+#else /* ! __cplusplus */
+
+/* C99 requires __STDC__ to be defined as 1. */
+#if defined (__STDC__)
+
+#define YY_USE_CONST
+
+#endif /* defined (__STDC__) */
+#endif /* ! __cplusplus */
+
+#ifdef YY_USE_CONST
+#define yyconst const
+#else
+#define yyconst
+#endif
+
+/* %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 yy_size_t 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.
+ */
+ yy_size_t yy_buf_size;
+
+ /* Number of characters read into yy_ch_buf, not including EOB
+ * characters.
+ */
+ int yy_n_chars;
+
+ /* Whether we "own" the buffer - i.e., we know we created it,
+ * and can realloc() it to grow it, and should free() it to
+ * delete it.
+ */
+ int yy_is_our_buffer;
+
+ /* Whether this is an "interactive" input source; if so, and
+ * if we're using stdio for input, then we want to use getc()
+ * instead of fread(), to make sure we stop fetching input after
+ * each newline.
+ */
+ int yy_is_interactive;
+
+ /* Whether we're considered to be at the beginning of a line.
+ * If so, '^' rules will be active on the next match, otherwise
+ * not.
+ */
+ int yy_at_bol;
+
+ int yy_bs_lineno; /**< The line count. */
+ int yy_bs_column; /**< The column count. */
+
+ /* Whether to try to fill the input buffer when we reach the
+ * end of it.
+ */
+ int yy_fill_buffer;
+
+ int yy_buffer_status;
+
+#define YY_BUFFER_NEW 0
+#define YY_BUFFER_NORMAL 1
+ /* When an EOF's been seen but there's still some text to process
+ * then we mark the buffer as YY_EOF_PENDING, to indicate that we
+ * shouldn't try reading from the input source any more. We might
+ * still have a bunch of tokens to match, though, because of
+ * possible backing-up.
+ *
+ * When we actually see the EOF, we change the status to "new"
+ * (via 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 = 0; /**< 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 */
+yy_size_t parser6_leng;
+
+/* Points to current character in buffer. */
+static char *yy_c_buf_p = (char *) 0;
+static int yy_init = 0; /* whether we need to initialize */
+static int yy_start = 0; /* start state number */
+
+/* Flag which is used to allow 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,yy_size_t 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 = (FILE *) 0, *parser6_out = (FILE *) 0;
+
+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 );
+#if defined(__GNUC__) && __GNUC__ >= 3
+__attribute__((__noreturn__))
+#endif
+static void 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 = (size_t) (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 106
+#define YY_END_OF_BUFFER 107
+/* This struct is not used in this scanner,
+ but its presence is necessary. */
+struct yy_trans_info
+ {
+ flex_int32_t yy_verify;
+ flex_int32_t yy_nxt;
+ };
+static yyconst flex_int16_t yy_accept[759] =
+ { 0,
+ 102, 102, 0, 0, 0, 0, 0, 0, 0, 0,
+ 107, 105, 10, 11, 105, 1, 102, 99, 102, 102,
+ 105, 101, 100, 105, 105, 95, 96, 105, 105, 105,
+ 97, 98, 5, 5, 5, 105, 105, 105, 10, 11,
+ 0, 0, 91, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1, 102, 102, 0, 101, 102, 3, 2,
+ 6, 0, 102, 0, 0, 0, 4, 0, 0, 9,
+ 0, 92, 0, 0, 0, 0, 94, 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, 8, 0, 0, 0, 0, 93,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 45, 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, 104, 103, 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, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 48, 0, 0,
+ 33, 0, 0, 0, 0, 0, 64, 0, 0, 0,
+ 0, 0, 21, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 32, 0, 0, 0,
+
+ 0, 0, 0, 41, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 60,
+ 80, 18, 19, 0, 0, 0, 0, 89, 12, 0,
+ 0, 71, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 79, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 34, 0, 0, 0, 0, 0,
+ 0, 72, 0, 0, 0, 0, 0, 0, 67, 0,
+ 0, 0, 7, 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, 55, 0, 0, 0, 0, 0, 0, 36, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 42, 0, 0, 0, 0, 52, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 76,
+ 53, 0, 0, 0, 0, 0, 0, 22, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 29, 0, 84, 90, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+
+ 66, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 20, 35, 0, 0, 63, 0, 17,
+ 0, 0, 0, 0, 0, 0, 57, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 88, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 43, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 77, 0, 0, 0,
+ 0, 0, 68, 56, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 65, 78, 0, 14, 0, 73,
+ 0, 0, 0, 0, 0, 30, 0, 75, 0, 37,
+
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 70, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 49, 31, 0, 0,
+ 0, 0, 0, 0, 26, 0, 0, 87, 86, 0,
+ 59, 0, 0, 0, 0, 83, 0, 0, 0, 0,
+ 0, 0, 44, 0, 62, 0, 23, 0, 0, 46,
+ 27, 69, 0, 0, 61, 0, 0, 0, 0, 40,
+ 81, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 58, 85, 0, 0, 0, 0, 0,
+ 16, 0, 15, 54, 0, 0, 0, 25, 0, 38,
+
+ 0, 0, 74, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 47, 0, 0, 0, 0,
+ 13, 0, 0, 0, 0, 0, 0, 24, 0, 0,
+ 39, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 50, 0, 0, 0, 28,
+ 0, 0, 82, 0, 0, 0, 51, 0
+ } ;
+
+static yyconst YY_CHAR yy_ec[256] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 4, 5, 6, 7, 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, 21, 21, 22, 23, 21,
+ 5, 5, 5, 5, 5, 24, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+ 25, 26, 27, 5, 28, 5, 29, 30, 31, 32,
+
+ 33, 34, 35, 36, 37, 5, 38, 39, 40, 41,
+ 42, 43, 5, 44, 45, 46, 47, 48, 49, 50,
+ 51, 5, 52, 5, 53, 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[54] =
+ { 0,
+ 1, 1, 2, 3, 3, 4, 3, 3, 3, 3,
+ 3, 3, 5, 6, 6, 6, 3, 3, 3, 3,
+ 6, 6, 6, 3, 3, 5, 3, 3, 6, 7,
+ 6, 6, 6, 7, 3, 3, 3, 3, 3, 3,
+ 5, 3, 3, 5, 3, 5, 5, 3, 3, 3,
+ 3, 3, 3
+ } ;
+
+static yyconst flex_uint16_t yy_base[771] =
+ { 0,
+ 0, 0, 52, 55, 58, 0, 56, 60, 41, 57,
+ 1021, 1022, 78, 1017, 111, 0, 153, 1022, 158, 73,
+ 71, 173, 1022, 999, 168, 1022, 1022, 989, 970, 972,
+ 1022, 1022, 1022, 96, 1002, 973, 0, 994, 99, 1009,
+ 169, 185, 1022, 975, 968, 228, 965, 63, 161, 130,
+ 156, 160, 178, 979, 978, 43, 206, 171, 204, 212,
+ 961, 190, 0, 245, 265, 275, 280, 250, 1022, 0,
+ 1022, 228, 241, 966, 965, 956, 1022, 971, 995, 1022,
+ 187, 1022, 953, 968, 963, 991, 0, 300, 952, 958,
+ 235, 946, 947, 269, 961, 954, 239, 135, 259, 939,
+
+ 978, 276, 942, 976, 957, 954, 954, 948, 951, 941,
+ 934, 933, 208, 967, 933, 934, 942, 931, 296, 192,
+ 942, 943, 941, 925, 929, 925, 934, 927, 921, 0,
+ 919, 924, 929, 922, 1022, 0, 917, 924, 952, 1022,
+ 328, 928, 923, 922, 908, 942, 923, 904, 911, 916,
+ 905, 915, 917, 912, 905, 906, 904, 895, 897, 910,
+ 1022, 897, 904, 907, 890, 923, 889, 897, 920, 897,
+ 892, 885, 898, 881, 882, 879, 884, 888, 884, 888,
+ 882, 876, 888, 883, 882, 866, 880, 874, 880, 869,
+ 863, 875, 874, 862, 868, 859, 870, 1022, 1022, 855,
+
+ 0, 290, 864, 349, 849, 858, 892, 853, 862, 889,
+ 859, 856, 857, 282, 885, 847, 845, 841, 843, 841,
+ 362, 852, 852, 837, 838, 849, 847, 842, 849, 844,
+ 831, 869, 832, 826, 832, 822, 828, 832, 265, 274,
+ 836, 825, 825, 821, 813, 814, 818, 828, 816, 826,
+ 825, 824, 850, 849, 848, 847, 820, 814, 818, 0,
+ 843, 842, 815, 805, 394, 839, 798, 1022, 801, 800,
+ 1022, 802, 799, 810, 806, 795, 1022, 791, 792, 802,
+ 800, 821, 1022, 787, 801, 818, 822, 795, 789, 791,
+ 792, 812, 781, 777, 776, 777, 1022, 777, 771, 783,
+
+ 773, 772, 768, 1022, 806, 767, 760, 798, 767, 775,
+ 774, 313, 794, 756, 759, 765, 755, 794, 753, 1022,
+ 1022, 1022, 1022, 787, 755, 763, 0, 1022, 1022, 754,
+ 759, 1022, 782, 753, 747, 757, 756, 742, 755, 770,
+ 738, 740, 750, 750, 742, 747, 739, 746, 1022, 733,
+ 742, 746, 730, 741, 726, 720, 725, 722, 757, 311,
+ 721, 722, 726, 718, 1022, 719, 334, 731, 722, 749,
+ 748, 1022, 713, 711, 727, 744, 708, 742, 1022, 312,
+ 713, 710, 1022, 705, 743, 717, 736, 706, 697, 733,
+ 710, 701, 730, 701, 702, 706, 726, 699, 690, 701,
+
+ 704, 699, 694, 699, 696, 699, 694, 720, 719, 680,
+ 691, 1022, 680, 688, 688, 674, 712, 684, 1022, 677,
+ 670, 672, 662, 666, 665, 663, 672, 662, 670, 655,
+ 306, 1022, 699, 667, 697, 696, 1022, 662, 655, 670,
+ 665, 654, 664, 650, 651, 664, 647, 680, 651, 659,
+ 655, 681, 640, 640, 651, 650, 637, 635, 636, 1022,
+ 1022, 648, 355, 635, 633, 670, 669, 1022, 642, 640,
+ 666, 631, 664, 632, 617, 624, 626, 628, 632, 657,
+ 633, 610, 1022, 626, 1022, 1022, 630, 616, 611, 617,
+ 611, 643, 647, 610, 605, 617, 606, 615, 603, 602,
+
+ 1022, 616, 599, 599, 342, 597, 612, 592, 606, 592,
+ 603, 590, 590, 1022, 1022, 623, 592, 1022, 592, 1022,
+ 591, 587, 586, 595, 585, 620, 1022, 585, 581, 590,
+ 577, 590, 614, 613, 576, 578, 1022, 572, 582, 603,
+ 569, 583, 582, 562, 579, 602, 601, 1022, 569, 363,
+ 360, 575, 575, 558, 573, 595, 563, 593, 559, 591,
+ 559, 562, 561, 554, 548, 550, 1022, 557, 556, 542,
+ 542, 548, 1022, 1022, 555, 551, 537, 576, 544, 547,
+ 534, 534, 548, 547, 1022, 1022, 543, 1022, 543, 1022,
+ 528, 543, 532, 564, 563, 1022, 526, 1022, 530, 1022,
+
+ 520, 521, 519, 526, 556, 291, 555, 554, 522, 369,
+ 525, 528, 515, 549, 1022, 522, 519, 519, 514, 504,
+ 504, 542, 505, 540, 500, 538, 1022, 1022, 502, 508,
+ 535, 534, 533, 505, 1022, 497, 530, 1022, 1022, 495,
+ 1022, 489, 487, 486, 525, 1022, 524, 492, 483, 480,
+ 468, 453, 1022, 443, 1022, 444, 1022, 62, 76, 1022,
+ 1022, 1022, 167, 168, 1022, 254, 314, 332, 309, 1022,
+ 1022, 304, 344, 311, 334, 371, 351, 380, 383, 344,
+ 380, 360, 388, 1022, 1022, 353, 390, 354, 392, 358,
+ 1022, 363, 1022, 1022, 367, 363, 373, 1022, 370, 1022,
+
+ 373, 369, 1022, 403, 383, 379, 377, 415, 411, 396,
+ 388, 394, 426, 400, 388, 1022, 392, 395, 406, 406,
+ 1022, 433, 403, 408, 436, 410, 411, 1022, 403, 402,
+ 1022, 402, 407, 408, 413, 406, 406, 408, 412, 418,
+ 419, 451, 426, 418, 426, 1022, 455, 427, 426, 1022,
+ 458, 432, 1022, 422, 422, 462, 1022, 1022, 468, 475,
+ 482, 489, 496, 503, 507, 512, 514, 516, 518, 520
+ } ;
+
+static yyconst flex_int16_t yy_def[771] =
+ { 0,
+ 758, 1, 759, 759, 1, 5, 5, 5, 5, 5,
+ 758, 758, 758, 758, 758, 760, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 761, 758, 758, 758,
+ 762, 15, 758, 42, 42, 763, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 760, 758, 758, 758, 758, 758, 758, 764,
+ 758, 758, 758, 758, 758, 758, 758, 758, 761, 758,
+ 762, 758, 765, 42, 42, 766, 42, 763, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 764,
+ 758, 758, 758, 758, 758, 767, 42, 42, 766, 758,
+ 763, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 758, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 758, 758, 758, 758,
+
+ 768, 42, 42, 763, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 758, 769,
+ 42, 42, 42, 42, 763, 42, 42, 758, 42, 42,
+ 758, 42, 42, 42, 42, 42, 758, 42, 42, 42,
+ 42, 42, 758, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 758, 42, 42, 42,
+
+ 42, 42, 42, 758, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 758,
+ 758, 758, 758, 42, 42, 758, 770, 758, 758, 42,
+ 42, 758, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 758, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 758, 42, 42, 42, 42, 42,
+ 42, 758, 42, 42, 42, 42, 42, 42, 758, 42,
+ 42, 42, 758, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 758, 42, 42, 42, 42, 42, 42, 758, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 758, 42, 42, 42, 42, 758, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 758,
+ 758, 42, 42, 42, 42, 42, 42, 758, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 758, 42, 758, 758, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+
+ 758, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 758, 758, 42, 42, 758, 42, 758,
+ 42, 42, 42, 42, 42, 42, 758, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 758, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 758, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 758, 42, 42, 42,
+ 42, 42, 758, 758, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 758, 758, 42, 758, 42, 758,
+ 42, 42, 42, 42, 42, 758, 42, 758, 42, 758,
+
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 758, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 758, 758, 42, 42,
+ 42, 42, 42, 42, 758, 42, 42, 758, 758, 42,
+ 758, 42, 42, 42, 42, 758, 42, 42, 42, 42,
+ 42, 42, 758, 42, 758, 42, 758, 42, 42, 758,
+ 758, 758, 42, 42, 758, 42, 42, 42, 42, 758,
+ 758, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 758, 758, 42, 42, 42, 42, 42,
+ 758, 42, 758, 758, 42, 42, 42, 758, 42, 758,
+
+ 42, 42, 758, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 758, 42, 42, 42, 42,
+ 758, 42, 42, 42, 42, 42, 42, 758, 42, 42,
+ 758, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 758, 42, 42, 42, 758,
+ 42, 42, 758, 42, 42, 42, 758, 0, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758
+ } ;
+
+static yyconst flex_uint16_t yy_nxt[1076] =
+ { 0,
+ 12, 13, 14, 13, 12, 15, 16, 12, 17, 18,
+ 19, 20, 21, 22, 22, 22, 23, 24, 12, 12,
+ 12, 12, 25, 12, 26, 12, 27, 12, 12, 12,
+ 12, 12, 25, 28, 12, 12, 12, 12, 12, 12,
+ 29, 12, 12, 12, 12, 30, 12, 12, 12, 12,
+ 12, 31, 32, 34, 14, 34, 34, 14, 34, 35,
+ 38, 37, 35, 12, 12, 37, 12, 12, 12, 12,
+ 12, 12, 12, 12, 12, 12, 38, 12, 69, 39,
+ 12, 39, 12, 70, 12, 111, 68, 68, 68, 112,
+ 12, 12, 12, 12, 36, 66, 12, 39, 12, 39,
+
+ 39, 90, 39, 12, 91, 66, 679, 92, 680, 12,
+ 12, 41, 41, 41, 42, 42, 43, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 44, 42, 45, 42, 46, 42, 42, 47,
+ 42, 48, 49, 50, 42, 42, 51, 52, 42, 53,
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 42,
+ 42, 42, 42, 42, 64, 155, 65, 65, 65, 64,
+ 97, 67, 67, 67, 82, 66, 72, 156, 72, 98,
+ 66, 73, 73, 73, 64, 66, 67, 67, 67, 93,
+ 66, 102, 82, 94, 83, 66, 95, 99, 681, 118,
+
+ 103, 100, 104, 119, 101, 66, 42, 96, 42, 682,
+ 105, 106, 83, 42, 107, 42, 42, 42, 128, 108,
+ 42, 42, 129, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 87, 113, 186, 120, 114, 115, 187,
+ 42, 73, 73, 73, 124, 121, 122, 116, 125, 117,
+ 123, 173, 174, 42, 73, 73, 73, 42, 68, 68,
+ 68, 42, 126, 68, 68, 68, 144, 66, 42, 153,
+ 304, 42, 66, 42, 88, 145, 64, 66, 65, 65,
+ 65, 161, 66, 72, 154, 72, 683, 66, 73, 73,
+ 73, 64, 275, 67, 67, 67, 276, 66, 148, 149,
+
+ 157, 636, 66, 158, 261, 262, 306, 150, 162, 305,
+ 307, 263, 66, 141, 141, 141, 412, 432, 372, 684,
+ 141, 141, 141, 373, 180, 181, 182, 433, 141, 141,
+ 141, 141, 141, 141, 183, 637, 184, 685, 413, 419,
+ 185, 204, 204, 204, 420, 686, 481, 548, 204, 204,
+ 204, 482, 549, 687, 688, 689, 204, 204, 204, 204,
+ 204, 204, 265, 265, 265, 590, 421, 283, 588, 265,
+ 265, 265, 284, 589, 641, 690, 691, 265, 265, 265,
+ 265, 265, 265, 510, 692, 693, 550, 511, 694, 695,
+ 696, 697, 591, 698, 699, 700, 702, 703, 704, 705,
+
+ 701, 642, 285, 706, 707, 708, 286, 42, 42, 42,
+ 709, 710, 711, 712, 42, 42, 42, 713, 714, 715,
+ 716, 717, 42, 42, 42, 42, 42, 42, 718, 719,
+ 720, 721, 722, 723, 724, 725, 726, 727, 728, 729,
+ 730, 731, 732, 733, 734, 735, 736, 737, 738, 739,
+ 740, 741, 742, 743, 744, 745, 746, 747, 748, 749,
+ 750, 751, 752, 753, 754, 755, 756, 757, 33, 33,
+ 33, 33, 33, 33, 33, 63, 678, 63, 63, 63,
+ 63, 63, 79, 677, 79, 676, 79, 79, 79, 81,
+ 81, 81, 81, 81, 81, 81, 86, 86, 86, 86,
+
+ 86, 86, 86, 130, 675, 130, 130, 130, 130, 130,
+ 81, 81, 674, 81, 139, 139, 139, 139, 139, 201,
+ 201, 260, 260, 327, 327, 81, 81, 673, 672, 671,
+ 670, 669, 668, 667, 666, 665, 664, 663, 662, 661,
+ 660, 659, 658, 657, 656, 655, 654, 653, 652, 651,
+ 650, 649, 648, 647, 646, 645, 644, 643, 640, 639,
+ 638, 635, 634, 633, 632, 631, 630, 629, 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, 587, 586, 585, 584, 583,
+ 582, 581, 580, 579, 578, 577, 576, 575, 574, 573,
+ 572, 571, 570, 569, 568, 567, 566, 565, 564, 563,
+ 562, 561, 560, 559, 558, 557, 556, 555, 554, 553,
+ 552, 551, 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, 518, 517, 516, 515, 514, 513, 512, 509, 508,
+ 507, 506, 505, 504, 503, 502, 501, 500, 499, 498,
+ 497, 496, 495, 494, 493, 492, 491, 490, 489, 488,
+
+ 487, 486, 485, 484, 483, 480, 479, 478, 477, 476,
+ 475, 474, 473, 472, 471, 470, 469, 468, 467, 466,
+ 465, 464, 463, 462, 461, 460, 459, 458, 457, 456,
+ 455, 454, 453, 452, 451, 450, 449, 448, 447, 446,
+ 445, 444, 443, 442, 441, 440, 439, 438, 437, 436,
+ 435, 434, 431, 430, 429, 428, 427, 426, 425, 424,
+ 423, 422, 418, 417, 416, 415, 414, 411, 410, 409,
+ 408, 407, 406, 405, 404, 403, 402, 401, 400, 399,
+ 398, 397, 396, 395, 394, 393, 392, 391, 390, 389,
+ 388, 387, 386, 385, 384, 383, 382, 381, 380, 379,
+
+ 378, 377, 376, 375, 374, 371, 370, 369, 368, 367,
+ 366, 365, 364, 363, 362, 361, 360, 359, 358, 357,
+ 356, 355, 354, 353, 352, 351, 350, 349, 348, 347,
+ 346, 345, 344, 343, 342, 341, 340, 339, 338, 337,
+ 336, 335, 334, 333, 332, 331, 330, 329, 328, 326,
+ 325, 324, 323, 322, 321, 320, 319, 318, 317, 316,
+ 315, 314, 313, 312, 311, 310, 309, 308, 303, 302,
+ 301, 300, 299, 298, 297, 296, 295, 294, 293, 292,
+ 291, 290, 289, 288, 287, 282, 281, 280, 279, 278,
+ 277, 274, 273, 272, 271, 270, 269, 268, 267, 266,
+
+ 264, 259, 199, 258, 257, 256, 255, 254, 253, 252,
+ 251, 250, 249, 248, 247, 246, 245, 244, 243, 242,
+ 241, 240, 239, 238, 237, 236, 235, 234, 233, 232,
+ 231, 230, 229, 228, 227, 226, 225, 224, 223, 222,
+ 221, 220, 219, 218, 217, 216, 215, 214, 213, 212,
+ 211, 210, 209, 208, 207, 206, 205, 140, 203, 202,
+ 200, 199, 198, 197, 196, 195, 194, 193, 192, 191,
+ 190, 189, 188, 179, 178, 177, 176, 175, 172, 171,
+ 170, 169, 168, 167, 166, 165, 164, 163, 160, 159,
+ 152, 151, 147, 146, 143, 142, 140, 138, 137, 136,
+
+ 135, 134, 133, 132, 131, 127, 110, 109, 89, 85,
+ 84, 40, 80, 78, 77, 76, 75, 74, 71, 40,
+ 758, 11, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758
+ } ;
+
+static yyconst flex_int16_t yy_chk[1076] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 3, 3, 3, 4, 4, 4, 3,
+ 9, 7, 4, 5, 5, 8, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5, 5, 10, 9, 21, 13,
+ 5, 13, 5, 21, 5, 56, 20, 20, 20, 56,
+ 5, 5, 7, 10, 5, 20, 8, 34, 5, 34,
+
+ 39, 48, 39, 5, 48, 20, 658, 48, 659, 5,
+ 5, 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, 98, 17, 17, 17, 19,
+ 50, 19, 19, 19, 41, 17, 25, 98, 25, 50,
+ 19, 25, 25, 25, 22, 17, 22, 22, 22, 49,
+ 19, 52, 81, 49, 41, 22, 49, 51, 663, 58,
+
+ 52, 51, 52, 58, 51, 22, 42, 49, 42, 664,
+ 53, 53, 81, 42, 53, 42, 42, 42, 62, 53,
+ 42, 42, 62, 42, 42, 42, 42, 42, 42, 42,
+ 42, 42, 42, 46, 57, 120, 59, 57, 57, 120,
+ 46, 72, 72, 72, 60, 59, 59, 57, 60, 57,
+ 59, 113, 113, 46, 73, 73, 73, 46, 64, 64,
+ 64, 46, 60, 68, 68, 68, 91, 64, 46, 97,
+ 239, 46, 68, 46, 46, 91, 65, 64, 65, 65,
+ 65, 102, 68, 66, 97, 66, 666, 65, 66, 66,
+ 66, 67, 214, 67, 67, 67, 214, 65, 94, 94,
+
+ 99, 606, 67, 99, 202, 202, 240, 94, 102, 239,
+ 240, 202, 67, 88, 88, 88, 360, 380, 312, 667,
+ 88, 88, 88, 312, 119, 119, 119, 380, 88, 88,
+ 88, 88, 88, 88, 119, 606, 119, 668, 360, 367,
+ 119, 141, 141, 141, 367, 669, 431, 505, 141, 141,
+ 141, 431, 505, 672, 673, 674, 141, 141, 141, 141,
+ 141, 141, 204, 204, 204, 551, 367, 221, 550, 204,
+ 204, 204, 221, 550, 610, 675, 676, 204, 204, 204,
+ 204, 204, 204, 463, 677, 678, 505, 463, 679, 680,
+ 681, 682, 551, 683, 686, 687, 688, 689, 690, 692,
+
+ 687, 610, 221, 695, 696, 697, 221, 265, 265, 265,
+ 699, 701, 702, 704, 265, 265, 265, 705, 706, 707,
+ 708, 709, 265, 265, 265, 265, 265, 265, 710, 711,
+ 712, 713, 714, 715, 717, 718, 719, 720, 722, 723,
+ 724, 725, 726, 727, 729, 730, 732, 733, 734, 735,
+ 736, 737, 738, 739, 740, 741, 742, 743, 744, 745,
+ 747, 748, 749, 751, 752, 754, 755, 756, 759, 759,
+ 759, 759, 759, 759, 759, 760, 656, 760, 760, 760,
+ 760, 760, 761, 654, 761, 652, 761, 761, 761, 762,
+ 762, 762, 762, 762, 762, 762, 763, 763, 763, 763,
+
+ 763, 763, 763, 764, 651, 764, 764, 764, 764, 764,
+ 765, 765, 650, 765, 766, 766, 766, 766, 766, 767,
+ 767, 768, 768, 769, 769, 770, 770, 649, 648, 647,
+ 645, 644, 643, 642, 640, 637, 636, 634, 633, 632,
+ 631, 630, 629, 626, 625, 624, 623, 622, 621, 620,
+ 619, 618, 617, 616, 614, 613, 612, 611, 609, 608,
+ 607, 605, 604, 603, 602, 601, 599, 597, 595, 594,
+ 593, 592, 591, 589, 587, 584, 583, 582, 581, 580,
+ 579, 578, 577, 576, 575, 572, 571, 570, 569, 568,
+ 566, 565, 564, 563, 562, 561, 560, 559, 558, 557,
+
+ 556, 555, 554, 553, 552, 549, 547, 546, 545, 544,
+ 543, 542, 541, 540, 539, 538, 536, 535, 534, 533,
+ 532, 531, 530, 529, 528, 526, 525, 524, 523, 522,
+ 521, 519, 517, 516, 513, 512, 511, 510, 509, 508,
+ 507, 506, 504, 503, 502, 500, 499, 498, 497, 496,
+ 495, 494, 493, 492, 491, 490, 489, 488, 487, 484,
+ 482, 481, 480, 479, 478, 477, 476, 475, 474, 473,
+ 472, 471, 470, 469, 467, 466, 465, 464, 462, 459,
+ 458, 457, 456, 455, 454, 453, 452, 451, 450, 449,
+ 448, 447, 446, 445, 444, 443, 442, 441, 440, 439,
+
+ 438, 436, 435, 434, 433, 430, 429, 428, 427, 426,
+ 425, 424, 423, 422, 421, 420, 418, 417, 416, 415,
+ 414, 413, 411, 410, 409, 408, 407, 406, 405, 404,
+ 403, 402, 401, 400, 399, 398, 397, 396, 395, 394,
+ 393, 392, 391, 390, 389, 388, 387, 386, 385, 384,
+ 382, 381, 378, 377, 376, 375, 374, 373, 371, 370,
+ 369, 368, 366, 364, 363, 362, 361, 359, 358, 357,
+ 356, 355, 354, 353, 352, 351, 350, 348, 347, 346,
+ 345, 344, 343, 342, 341, 340, 339, 338, 337, 336,
+ 335, 334, 333, 331, 330, 326, 325, 324, 319, 318,
+
+ 317, 316, 315, 314, 313, 311, 310, 309, 308, 307,
+ 306, 305, 303, 302, 301, 300, 299, 298, 296, 295,
+ 294, 293, 292, 291, 290, 289, 288, 287, 286, 285,
+ 284, 282, 281, 280, 279, 278, 276, 275, 274, 273,
+ 272, 270, 269, 267, 266, 264, 263, 262, 261, 259,
+ 258, 257, 256, 255, 254, 253, 252, 251, 250, 249,
+ 248, 247, 246, 245, 244, 243, 242, 241, 238, 237,
+ 236, 235, 234, 233, 232, 231, 230, 229, 228, 227,
+ 226, 225, 224, 223, 222, 220, 219, 218, 217, 216,
+ 215, 213, 212, 211, 210, 209, 208, 207, 206, 205,
+
+ 203, 200, 197, 196, 195, 194, 193, 192, 191, 190,
+ 189, 188, 187, 186, 185, 184, 183, 182, 181, 180,
+ 179, 178, 177, 176, 175, 174, 173, 172, 171, 170,
+ 169, 168, 167, 166, 165, 164, 163, 162, 160, 159,
+ 158, 157, 156, 155, 154, 153, 152, 151, 150, 149,
+ 148, 147, 146, 145, 144, 143, 142, 139, 138, 137,
+ 134, 133, 132, 131, 129, 128, 127, 126, 125, 124,
+ 123, 122, 121, 118, 117, 116, 115, 114, 112, 111,
+ 110, 109, 108, 107, 106, 105, 104, 103, 101, 100,
+ 96, 95, 93, 92, 90, 89, 86, 85, 84, 83,
+
+ 79, 78, 76, 75, 74, 61, 55, 54, 47, 45,
+ 44, 40, 38, 36, 35, 30, 29, 28, 24, 14,
+ 11, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758, 758, 758, 758, 758, 758,
+ 758, 758, 758, 758, 758
+ } ;
+
+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[106] =
+ { 0,
+ 130, 132, 134, 139, 140, 145, 146, 147, 159, 162,
+ 167, 174, 183, 192, 201, 210, 219, 228, 240, 250,
+ 260, 270, 281, 291, 301, 311, 321, 331, 340, 349,
+ 358, 373, 388, 397, 406, 415, 424, 433, 442, 451,
+ 460, 469, 478, 487, 496, 505, 514, 523, 533, 542,
+ 551, 560, 569, 578, 587, 596, 605, 614, 624, 634,
+ 644, 653, 662, 671, 682, 692, 701, 711, 720, 729,
+ 738, 747, 756, 765, 775, 784, 793, 802, 811, 820,
+ 829, 838, 847, 856, 865, 874, 883, 892, 901, 910,
+ 919, 982, 987, 992, 997, 998, 999, 1000, 1001, 1002,
+
+ 1004, 1022, 1035, 1040, 1044
+ } ;
+
+/* 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) 2015-2016 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 <cerrno>
+#include <climits>
+#include <cstdlib>
+#include <string>
+#include <dhcp6/parser_context.h>
+#include <asiolink/io_address.h>
+#include <boost/lexical_cast.hpp>
+#include <exceptions/exceptions.h>
+
+// 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
+// <http://bugs.debian.org/cgi-bin/bugreport.cgi?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;
+
+};
+
+// 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 86 "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 1134 "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 <unistd.h>
+/* %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 );
+
+yy_size_t 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, 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 = 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 92 "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_);
+ }
+ }
+
+
+#line 1460 "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 >= 759 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ ++yy_cp;
+ }
+ while ( yy_current_state != 758 );
+ 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 < 106 )
+ fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
+ (long)yy_rule_linenum[yy_act], parser6_text );
+ else if ( yy_act == 106 )
+ fprintf( stderr, "--accepting default rule (\"%s\")\n",
+ parser6_text );
+ else if ( yy_act == 107 )
+ 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 130 "dhcp6_lexer.ll"
+;
+ YY_BREAK
+case 2:
+YY_RULE_SETUP
+#line 132 "dhcp6_lexer.ll"
+;
+ YY_BREAK
+case 3:
+YY_RULE_SETUP
+#line 134 "dhcp6_lexer.ll"
+{
+ BEGIN(COMMENT);
+ comment_start_line = driver.loc_.end.line;;
+}
+ YY_BREAK
+case 4:
+YY_RULE_SETUP
+#line 139 "dhcp6_lexer.ll"
+BEGIN(INITIAL);
+ YY_BREAK
+case 5:
+YY_RULE_SETUP
+#line 140 "dhcp6_lexer.ll"
+;
+ YY_BREAK
+case YY_STATE_EOF(COMMENT):
+#line 141 "dhcp6_lexer.ll"
+{
+ isc_throw(Dhcp6ParseError, "Comment not closed. (/* in line " << comment_start_line);
+}
+ YY_BREAK
+case 6:
+YY_RULE_SETUP
+#line 145 "dhcp6_lexer.ll"
+BEGIN(DIR_ENTER);
+ YY_BREAK
+case 7:
+YY_RULE_SETUP
+#line 146 "dhcp6_lexer.ll"
+BEGIN(DIR_INCLUDE);
+ YY_BREAK
+case 8:
+YY_RULE_SETUP
+#line 147 "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 156 "dhcp6_lexer.ll"
+{
+ isc_throw(Dhcp6ParseError, "Directive not closed.");
+}
+ YY_BREAK
+case 9:
+YY_RULE_SETUP
+#line 159 "dhcp6_lexer.ll"
+BEGIN(INITIAL);
+ YY_BREAK
+case 10:
+YY_RULE_SETUP
+#line 162 "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 167 "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 174 "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 13:
+YY_RULE_SETUP
+#line 183 "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 14:
+YY_RULE_SETUP
+#line 192 "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 15:
+YY_RULE_SETUP
+#line 201 "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 16:
+YY_RULE_SETUP
+#line 210 "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 17:
+YY_RULE_SETUP
+#line 219 "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 18:
+YY_RULE_SETUP
+#line 228 "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 19:
+YY_RULE_SETUP
+#line 240 "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 20:
+YY_RULE_SETUP
+#line 250 "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 21:
+YY_RULE_SETUP
+#line 260 "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 22:
+YY_RULE_SETUP
+#line 270 "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 23:
+YY_RULE_SETUP
+#line 281 "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 24:
+YY_RULE_SETUP
+#line 291 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::DHCP6:
+ case isc::dhcp::Parser6Context::SUBNET6:
+ return isc::dhcp::Dhcp6Parser::make_PREFERRED_LIFETIME(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("preferred-lifetime", driver.loc_);
+ }
+}
+ YY_BREAK
+case 25:
+YY_RULE_SETUP
+#line 301 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::DHCP6:
+ case isc::dhcp::Parser6Context::SUBNET6:
+ return isc::dhcp::Dhcp6Parser::make_VALID_LIFETIME(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("valid-lifetime", driver.loc_);
+ }
+}
+ YY_BREAK
+case 26:
+YY_RULE_SETUP
+#line 311 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::DHCP6:
+ case isc::dhcp::Parser6Context::SUBNET6:
+ return isc::dhcp::Dhcp6Parser::make_RENEW_TIMER(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("renew-timer", driver.loc_);
+ }
+}
+ YY_BREAK
+case 27:
+YY_RULE_SETUP
+#line 321 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::DHCP6:
+ case isc::dhcp::Parser6Context::SUBNET6:
+ return isc::dhcp::Dhcp6Parser::make_REBIND_TIMER(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("rebind-timer", driver.loc_);
+ }
+}
+ YY_BREAK
+case 28:
+YY_RULE_SETUP
+#line 331 "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 29:
+YY_RULE_SETUP
+#line 340 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::DHCP6:
+ return isc::dhcp::Dhcp6Parser::make_SUBNET6(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("subnet6", driver.loc_);
+ }
+}
+ YY_BREAK
+case 30:
+YY_RULE_SETUP
+#line 349 "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 31:
+YY_RULE_SETUP
+#line 358 "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:
+ return isc::dhcp::Dhcp6Parser::make_OPTION_DATA(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("option-data", driver.loc_);
+ }
+}
+ YY_BREAK
+case 32:
+YY_RULE_SETUP
+#line 373 "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:
+ return isc::dhcp::Dhcp6Parser::make_NAME(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("name", driver.loc_);
+ }
+}
+ YY_BREAK
+case 33:
+YY_RULE_SETUP
+#line 388 "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 34:
+YY_RULE_SETUP
+#line 397 "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 35:
+YY_RULE_SETUP
+#line 406 "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 36:
+YY_RULE_SETUP
+#line 415 "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 37:
+YY_RULE_SETUP
+#line 424 "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 38:
+YY_RULE_SETUP
+#line 433 "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 39:
+YY_RULE_SETUP
+#line 442 "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 40:
+YY_RULE_SETUP
+#line 451 "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 41:
+YY_RULE_SETUP
+#line 460 "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 42:
+YY_RULE_SETUP
+#line 469 "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 43:
+YY_RULE_SETUP
+#line 478 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::SUBNET6:
+ return isc::dhcp::Dhcp6Parser::make_INTERFACE(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("interface", driver.loc_);
+ }
+}
+ YY_BREAK
+case 44:
+YY_RULE_SETUP
+#line 487 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::SUBNET6:
+ return isc::dhcp::Dhcp6Parser::make_INTERFACE_ID(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("interface-id", driver.loc_);
+ }
+}
+ YY_BREAK
+case 45:
+YY_RULE_SETUP
+#line 496 "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 46:
+YY_RULE_SETUP
+#line 505 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::SUBNET6:
+ return isc::dhcp::Dhcp6Parser::make_RAPID_COMMIT(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("rapid-commit", driver.loc_);
+ }
+}
+ YY_BREAK
+case 47:
+YY_RULE_SETUP
+#line 514 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::SUBNET6:
+ return isc::dhcp::Dhcp6Parser::make_RESERVATION_MODE(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("reservation-mode", driver.loc_);
+ }
+}
+ YY_BREAK
+case 48:
+YY_RULE_SETUP
+#line 523 "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 49:
+YY_RULE_SETUP
+#line 533 "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 50:
+YY_RULE_SETUP
+#line 542 "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 51:
+YY_RULE_SETUP
+#line 551 "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 52:
+YY_RULE_SETUP
+#line 560 "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 53:
+YY_RULE_SETUP
+#line 569 "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 54:
+YY_RULE_SETUP
+#line 578 "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 55:
+YY_RULE_SETUP
+#line 587 "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 56:
+YY_RULE_SETUP
+#line 596 "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 57:
+YY_RULE_SETUP
+#line 605 "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 58:
+YY_RULE_SETUP
+#line 614 "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 59:
+YY_RULE_SETUP
+#line 624 "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 60:
+YY_RULE_SETUP
+#line 634 "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 61:
+YY_RULE_SETUP
+#line 644 "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 62:
+YY_RULE_SETUP
+#line 653 "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 63:
+YY_RULE_SETUP
+#line 662 "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 64:
+YY_RULE_SETUP
+#line 671 "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 65:
+YY_RULE_SETUP
+#line 682 "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 66:
+YY_RULE_SETUP
+#line 692 "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 67:
+YY_RULE_SETUP
+#line 701 "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 68:
+YY_RULE_SETUP
+#line 711 "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 69:
+YY_RULE_SETUP
+#line 720 "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 70:
+YY_RULE_SETUP
+#line 729 "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 71:
+YY_RULE_SETUP
+#line 738 "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 72:
+YY_RULE_SETUP
+#line 747 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::SUBNET6:
+ return isc::dhcp::Dhcp6Parser::make_RELAY(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("relay", driver.loc_);
+ }
+}
+ YY_BREAK
+case 73:
+YY_RULE_SETUP
+#line 756 "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 74:
+YY_RULE_SETUP
+#line 765 "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 75:
+YY_RULE_SETUP
+#line 775 "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 76:
+YY_RULE_SETUP
+#line 784 "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 77:
+YY_RULE_SETUP
+#line 793 "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 78:
+YY_RULE_SETUP
+#line 802 "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 79:
+YY_RULE_SETUP
+#line 811 "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 80:
+YY_RULE_SETUP
+#line 820 "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 81:
+YY_RULE_SETUP
+#line 829 "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 82:
+YY_RULE_SETUP
+#line 838 "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 83:
+YY_RULE_SETUP
+#line 847 "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 84:
+YY_RULE_SETUP
+#line 856 "dhcp6_lexer.ll"
+{
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::DHCP6:
+ return isc::dhcp::Dhcp6Parser::make_VERSION(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("version", driver.loc_);
+ }
+}
+ YY_BREAK
+case 85:
+YY_RULE_SETUP
+#line 865 "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 86:
+YY_RULE_SETUP
+#line 874 "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 87:
+YY_RULE_SETUP
+#line 883 "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 88:
+YY_RULE_SETUP
+#line 892 "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 89:
+YY_RULE_SETUP
+#line 901 "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 90:
+YY_RULE_SETUP
+#line 910 "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 91:
+YY_RULE_SETUP
+#line 919 "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) {
+ 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':
+ // not yet implemented
+ driver.error(driver.loc_, "Unsupported unicode escape in \"" + raw + "\"");
+ default:
+ // impossible condition
+ driver.error(driver.loc_, "Bad escape in \"" + raw + "\"");
+ }
+ break;
+ default:
+ if (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 92:
+/* rule 92 can match eol */
+YY_RULE_SETUP
+#line 982 "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 93:
+/* rule 93 can match eol */
+YY_RULE_SETUP
+#line 987 "dhcp6_lexer.ll"
+{
+ // Bad string with a bad escape inside
+ driver.error(driver.loc_, "Bad escape in " + std::string(parser6_text));
+}
+ YY_BREAK
+case 94:
+YY_RULE_SETUP
+#line 992 "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 95:
+YY_RULE_SETUP
+#line 997 "dhcp6_lexer.ll"
+{ return isc::dhcp::Dhcp6Parser::make_LSQUARE_BRACKET(driver.loc_); }
+ YY_BREAK
+case 96:
+YY_RULE_SETUP
+#line 998 "dhcp6_lexer.ll"
+{ return isc::dhcp::Dhcp6Parser::make_RSQUARE_BRACKET(driver.loc_); }
+ YY_BREAK
+case 97:
+YY_RULE_SETUP
+#line 999 "dhcp6_lexer.ll"
+{ return isc::dhcp::Dhcp6Parser::make_LCURLY_BRACKET(driver.loc_); }
+ YY_BREAK
+case 98:
+YY_RULE_SETUP
+#line 1000 "dhcp6_lexer.ll"
+{ return isc::dhcp::Dhcp6Parser::make_RCURLY_BRACKET(driver.loc_); }
+ YY_BREAK
+case 99:
+YY_RULE_SETUP
+#line 1001 "dhcp6_lexer.ll"
+{ return isc::dhcp::Dhcp6Parser::make_COMMA(driver.loc_); }
+ YY_BREAK
+case 100:
+YY_RULE_SETUP
+#line 1002 "dhcp6_lexer.ll"
+{ return isc::dhcp::Dhcp6Parser::make_COLON(driver.loc_); }
+ YY_BREAK
+case 101:
+YY_RULE_SETUP
+#line 1004 "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<int64_t>(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 102:
+YY_RULE_SETUP
+#line 1022 "dhcp6_lexer.ll"
+{
+ // A floating point was found.
+ std::string tmp(parser6_text);
+ double fp = 0.0;
+ try {
+ fp = boost::lexical_cast<double>(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 103:
+YY_RULE_SETUP
+#line 1035 "dhcp6_lexer.ll"
+{
+ string tmp(parser6_text);
+ return isc::dhcp::Dhcp6Parser::make_BOOLEAN(tmp == "true", driver.loc_);
+}
+ YY_BREAK
+case 104:
+YY_RULE_SETUP
+#line 1040 "dhcp6_lexer.ll"
+{
+ return isc::dhcp::Dhcp6Parser::make_NULL_TYPE(driver.loc_);
+}
+ YY_BREAK
+case 105:
+YY_RULE_SETUP
+#line 1044 "dhcp6_lexer.ll"
+driver.error (driver.loc_, "Invalid character: " + std::string(parser6_text));
+ YY_BREAK
+case YY_STATE_EOF(INITIAL):
+#line 1046 "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 106:
+YY_RULE_SETUP
+#line 1069 "dhcp6_lexer.ll"
+ECHO;
+ YY_BREAK
+#line 2814 "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);
+ yy_size_t 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 = (yy_size_t) ((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
+ {
+ yy_size_t 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 )
+ {
+ yy_size_t 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 = 0;
+
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR(
+ "fatal error - scanner input buffer overflow" );
+
+ (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
+
+ num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
+ number_to_move - 1;
+
+ }
+
+ if ( num_to_read > YY_READ_BUF_SIZE )
+ num_to_read = YY_READ_BUF_SIZE;
+
+ /* Read in more data. */
+ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
+ (yy_n_chars), 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 ((int) ((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 >= 759 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ }
+
+ return yy_current_state;
+}
+
+/* yy_try_NUL_trans - try to make a transition on the NUL character
+ *
+ * synopsis
+ * next_state = yy_try_NUL_trans( current_state );
+ */
+/* %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 >= 759 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_is_jam = (yy_current_state == 758);
+
+ 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 */
+ yy_size_t 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 EOF;
+
+ if ( ! (yy_did_buffer_switch_on_eof) )
+ YY_NEW_FILE;
+#ifdef __cplusplus
+ return yyinput();
+#else
+ return input();
+#endif
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ (yy_c_buf_p) = (yytext_ptr) + offset;
+ break;
+ }
+ }
+ }
+
+ c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
+ *(yy_c_buf_p) = '\0'; /* preserve 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 */
+{
+ yy_size_t num_to_alloc;
+
+ if (!(yy_buffer_stack)) {
+
+ /* First allocation is just for 2 elements, since we don't know if this
+ * scanner will even need a stack. We use 2 instead of 1 to avoid an
+ * immediate realloc on the next call.
+ */
+ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
+ (yy_buffer_stack) = (struct yy_buffer_state**)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 0;
+
+ 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 = 0;
+ b->yy_n_chars = b->yy_buf_size;
+ b->yy_is_interactive = 0;
+ b->yy_at_bol = 1;
+ b->yy_fill_buffer = 0;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ 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,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, yy_size_t _yybytes_len )
+{
+ YY_BUFFER_STATE b;
+ char *buf;
+ yy_size_t n;
+ yy_size_t i;
+
+ /* Get memory for full buffer, including space for trailing EOB's. */
+ n = _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 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.
+ *
+ */
+yy_size_t 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) = 0;
+ (yy_buffer_stack_top) = 0;
+ (yy_buffer_stack_max) = 0;
+ (yy_c_buf_p) = (char *) 0;
+ (yy_init) = 0;
+ (yy_start) = 0;
+
+/* Defined in main.c */
+#ifdef YY_STDINIT
+ parser6_in = stdin;
+ parser6_out = stdout;
+#else
+ parser6_in = (FILE *) 0;
+ parser6_out = (FILE *) 0;
+#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 (void *) 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 (void *) realloc( (char *) 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 1069 "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_ = "<string>";
+ 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<void>(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?"); }
+};
+}
+
--- /dev/null
+// A Bison parser, made by GNU Bison 3.0.4.
+
+// Skeleton implementation for Bison LALR(1) parsers in C++
+
+// Copyright (C) 2002-2015 Free Software Foundation, Inc.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+// As a special exception, you may create a larger work that contains
+// part or all of the Bison parser skeleton and distribute that work
+// under terms of your choice, so long as that work isn't itself a
+// parser generator using the skeleton or a modified version thereof
+// as a parser skeleton. Alternatively, if you modify or redistribute
+// the parser skeleton itself, you may (at your option) remove this
+// special exception, which will cause the skeleton and the resulting
+// Bison output files to be licensed under the GNU General Public
+// License without this special exception.
+
+// This special exception was added by the Free Software Foundation in
+// version 2.2 of Bison.
+
+// Take the name prefix into account.
+#define yylex parser6_lex
+
+// First part of user declarations.
+
+#line 39 "dhcp6_parser.cc" // lalr1.cc:404
+
+# ifndef YY_NULLPTR
+# if defined __cplusplus && 201103L <= __cplusplus
+# define YY_NULLPTR nullptr
+# else
+# define YY_NULLPTR 0
+# endif
+# endif
+
+#include "dhcp6_parser.h"
+
+// User implementation prologue.
+
+#line 53 "dhcp6_parser.cc" // lalr1.cc:412
+// Unqualified %code blocks.
+#line 34 "dhcp6_parser.yy" // lalr1.cc:413
+
+#include <dhcp6/parser_context.h>
+
+#line 59 "dhcp6_parser.cc" // lalr1.cc:413
+
+
+#ifndef YY_
+# if defined YYENABLE_NLS && YYENABLE_NLS
+# if ENABLE_NLS
+# include <libintl.h> // FIXME: INFRINGES ON USER NAME SPACE.
+# define YY_(msgid) dgettext ("bison-runtime", msgid)
+# endif
+# endif
+# ifndef YY_
+# define YY_(msgid) msgid
+# endif
+#endif
+
+#define YYRHSLOC(Rhs, K) ((Rhs)[K].location)
+/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
+ If N is 0, then set CURRENT to the empty location which ends
+ the previous symbol: RHS[0] (always defined). */
+
+# ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do \
+ if (N) \
+ { \
+ (Current).begin = YYRHSLOC (Rhs, 1).begin; \
+ (Current).end = YYRHSLOC (Rhs, N).end; \
+ } \
+ else \
+ { \
+ (Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
+ } \
+ while (/*CONSTCOND*/ false)
+# endif
+
+
+// Suppress unused-variable warnings by "using" E.
+#define YYUSE(E) ((void) (E))
+
+// Enable debugging if requested.
+#if PARSER6_DEBUG
+
+// A pseudo ostream that takes yydebug_ into account.
+# define YYCDEBUG if (yydebug_) (*yycdebug_)
+
+# define YY_SYMBOL_PRINT(Title, Symbol) \
+ do { \
+ if (yydebug_) \
+ { \
+ *yycdebug_ << Title << ' '; \
+ yy_print_ (*yycdebug_, Symbol); \
+ *yycdebug_ << std::endl; \
+ } \
+ } while (false)
+
+# define YY_REDUCE_PRINT(Rule) \
+ do { \
+ if (yydebug_) \
+ yy_reduce_print_ (Rule); \
+ } while (false)
+
+# define YY_STACK_PRINT() \
+ do { \
+ if (yydebug_) \
+ yystack_print_ (); \
+ } while (false)
+
+#else // !PARSER6_DEBUG
+
+# define YYCDEBUG if (false) std::cerr
+# define YY_SYMBOL_PRINT(Title, Symbol) YYUSE(Symbol)
+# define YY_REDUCE_PRINT(Rule) static_cast<void>(0)
+# define YY_STACK_PRINT() static_cast<void>(0)
+
+#endif // !PARSER6_DEBUG
+
+#define yyerrok (yyerrstatus_ = 0)
+#define yyclearin (yyla.clear ())
+
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrorlab
+#define YYRECOVERING() (!!yyerrstatus_)
+
+#line 14 "dhcp6_parser.yy" // lalr1.cc:479
+namespace isc { namespace dhcp {
+#line 145 "dhcp6_parser.cc" // lalr1.cc:479
+
+ /* Return YYSTR after stripping away unnecessary quotes and
+ backslashes, so that it's suitable for yyerror. The heuristic is
+ that double-quoting is unnecessary unless the string contains an
+ apostrophe, a comma, or backslash (other than backslash-backslash).
+ YYSTR is taken from yytname. */
+ std::string
+ Dhcp6Parser::yytnamerr_ (const char *yystr)
+ {
+ if (*yystr == '"')
+ {
+ std::string yyr = "";
+ char const *yyp = yystr;
+
+ for (;;)
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ // Fall through.
+ default:
+ yyr += *yyp;
+ break;
+
+ case '"':
+ return yyr;
+ }
+ do_not_strip_quotes: ;
+ }
+
+ return yystr;
+ }
+
+
+ /// Build a parser object.
+ Dhcp6Parser::Dhcp6Parser (isc::dhcp::Parser6Context& ctx_yyarg)
+ :
+#if PARSER6_DEBUG
+ yydebug_ (false),
+ yycdebug_ (&std::cerr),
+#endif
+ ctx (ctx_yyarg)
+ {}
+
+ Dhcp6Parser::~Dhcp6Parser ()
+ {}
+
+
+ /*---------------.
+ | Symbol types. |
+ `---------------*/
+
+
+
+ // by_state.
+ inline
+ Dhcp6Parser::by_state::by_state ()
+ : state (empty_state)
+ {}
+
+ inline
+ Dhcp6Parser::by_state::by_state (const by_state& other)
+ : state (other.state)
+ {}
+
+ inline
+ void
+ Dhcp6Parser::by_state::clear ()
+ {
+ state = empty_state;
+ }
+
+ inline
+ void
+ Dhcp6Parser::by_state::move (by_state& that)
+ {
+ state = that.state;
+ that.clear ();
+ }
+
+ inline
+ Dhcp6Parser::by_state::by_state (state_type s)
+ : state (s)
+ {}
+
+ inline
+ Dhcp6Parser::symbol_number_type
+ Dhcp6Parser::by_state::type_get () const
+ {
+ if (state == empty_state)
+ return empty_symbol;
+ else
+ return yystos_[state];
+ }
+
+ inline
+ Dhcp6Parser::stack_symbol_type::stack_symbol_type ()
+ {}
+
+
+ inline
+ Dhcp6Parser::stack_symbol_type::stack_symbol_type (state_type s, symbol_type& that)
+ : super_type (s, that.location)
+ {
+ switch (that.type_get ())
+ {
+ case 117: // value
+ case 341: // version_value
+ value.move< ElementPtr > (that.value);
+ break;
+
+ case 103: // "boolean"
+ value.move< bool > (that.value);
+ break;
+
+ case 102: // "floating point"
+ value.move< double > (that.value);
+ break;
+
+ case 101: // "integer"
+ value.move< int64_t > (that.value);
+ break;
+
+ case 100: // "constant string"
+ value.move< std::string > (that.value);
+ break;
+
+ default:
+ break;
+ }
+
+ // that is emptied.
+ that.type = empty_symbol;
+ }
+
+ inline
+ Dhcp6Parser::stack_symbol_type&
+ Dhcp6Parser::stack_symbol_type::operator= (const stack_symbol_type& that)
+ {
+ state = that.state;
+ switch (that.type_get ())
+ {
+ case 117: // value
+ case 341: // version_value
+ value.copy< ElementPtr > (that.value);
+ break;
+
+ case 103: // "boolean"
+ value.copy< bool > (that.value);
+ break;
+
+ case 102: // "floating point"
+ value.copy< double > (that.value);
+ break;
+
+ case 101: // "integer"
+ value.copy< int64_t > (that.value);
+ break;
+
+ case 100: // "constant string"
+ value.copy< std::string > (that.value);
+ break;
+
+ default:
+ break;
+ }
+
+ location = that.location;
+ return *this;
+ }
+
+
+ template <typename Base>
+ inline
+ void
+ Dhcp6Parser::yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const
+ {
+ if (yymsg)
+ YY_SYMBOL_PRINT (yymsg, yysym);
+ }
+
+#if PARSER6_DEBUG
+ template <typename Base>
+ void
+ Dhcp6Parser::yy_print_ (std::ostream& yyo,
+ const basic_symbol<Base>& yysym) const
+ {
+ std::ostream& yyoutput = yyo;
+ YYUSE (yyoutput);
+ symbol_number_type yytype = yysym.type_get ();
+ // Avoid a (spurious) G++ 4.8 warning about "array subscript is
+ // below array bounds".
+ if (yysym.empty ())
+ std::abort ();
+ yyo << (yytype < yyntokens_ ? "token" : "nterm")
+ << ' ' << yytname_[yytype] << " ("
+ << yysym.location << ": ";
+ switch (yytype)
+ {
+ case 100: // "constant string"
+
+#line 191 "dhcp6_parser.yy" // lalr1.cc:636
+ { yyoutput << yysym.value.template as< std::string > (); }
+#line 354 "dhcp6_parser.cc" // lalr1.cc:636
+ break;
+
+ case 101: // "integer"
+
+#line 191 "dhcp6_parser.yy" // lalr1.cc:636
+ { yyoutput << yysym.value.template as< int64_t > (); }
+#line 361 "dhcp6_parser.cc" // lalr1.cc:636
+ break;
+
+ case 102: // "floating point"
+
+#line 191 "dhcp6_parser.yy" // lalr1.cc:636
+ { yyoutput << yysym.value.template as< double > (); }
+#line 368 "dhcp6_parser.cc" // lalr1.cc:636
+ break;
+
+ case 103: // "boolean"
+
+#line 191 "dhcp6_parser.yy" // lalr1.cc:636
+ { yyoutput << yysym.value.template as< bool > (); }
+#line 375 "dhcp6_parser.cc" // lalr1.cc:636
+ break;
+
+ case 117: // value
+
+#line 191 "dhcp6_parser.yy" // lalr1.cc:636
+ { yyoutput << yysym.value.template as< ElementPtr > (); }
+#line 382 "dhcp6_parser.cc" // lalr1.cc:636
+ break;
+
+ case 341: // version_value
+
+#line 191 "dhcp6_parser.yy" // lalr1.cc:636
+ { yyoutput << yysym.value.template as< ElementPtr > (); }
+#line 389 "dhcp6_parser.cc" // lalr1.cc:636
+ break;
+
+
+ default:
+ break;
+ }
+ yyo << ')';
+ }
+#endif
+
+ inline
+ void
+ Dhcp6Parser::yypush_ (const char* m, state_type s, symbol_type& sym)
+ {
+ stack_symbol_type t (s, sym);
+ yypush_ (m, t);
+ }
+
+ inline
+ void
+ Dhcp6Parser::yypush_ (const char* m, stack_symbol_type& s)
+ {
+ if (m)
+ YY_SYMBOL_PRINT (m, s);
+ yystack_.push (s);
+ }
+
+ inline
+ void
+ Dhcp6Parser::yypop_ (unsigned int n)
+ {
+ yystack_.pop (n);
+ }
+
+#if PARSER6_DEBUG
+ std::ostream&
+ Dhcp6Parser::debug_stream () const
+ {
+ return *yycdebug_;
+ }
+
+ void
+ Dhcp6Parser::set_debug_stream (std::ostream& o)
+ {
+ yycdebug_ = &o;
+ }
+
+
+ Dhcp6Parser::debug_level_type
+ Dhcp6Parser::debug_level () const
+ {
+ return yydebug_;
+ }
+
+ void
+ Dhcp6Parser::set_debug_level (debug_level_type l)
+ {
+ yydebug_ = l;
+ }
+#endif // PARSER6_DEBUG
+
+ inline Dhcp6Parser::state_type
+ Dhcp6Parser::yy_lr_goto_state_ (state_type yystate, int yysym)
+ {
+ int yyr = yypgoto_[yysym - yyntokens_] + yystate;
+ if (0 <= yyr && yyr <= yylast_ && yycheck_[yyr] == yystate)
+ return yytable_[yyr];
+ else
+ return yydefgoto_[yysym - yyntokens_];
+ }
+
+ inline bool
+ Dhcp6Parser::yy_pact_value_is_default_ (int yyvalue)
+ {
+ return yyvalue == yypact_ninf_;
+ }
+
+ inline bool
+ Dhcp6Parser::yy_table_value_is_error_ (int yyvalue)
+ {
+ return yyvalue == yytable_ninf_;
+ }
+
+ int
+ Dhcp6Parser::parse ()
+ {
+ // State.
+ int yyn;
+ /// Length of the RHS of the rule being reduced.
+ int yylen = 0;
+
+ // Error handling.
+ int yynerrs_ = 0;
+ int yyerrstatus_ = 0;
+
+ /// The lookahead symbol.
+ symbol_type yyla;
+
+ /// The locations where the error started and ended.
+ stack_symbol_type yyerror_range[3];
+
+ /// The return value of parse ().
+ int yyresult;
+
+ // FIXME: This shoud be completely indented. It is not yet to
+ // avoid gratuitous conflicts when merging into the master branch.
+ try
+ {
+ YYCDEBUG << "Starting parse" << std::endl;
+
+
+ /* Initialize the stack. The initial state will be set in
+ yynewstate, since the latter expects the semantical and the
+ location values to have been already stored, initialize these
+ stacks with a primary value. */
+ yystack_.clear ();
+ yypush_ (YY_NULLPTR, 0, yyla);
+
+ // A new symbol was pushed on the stack.
+ yynewstate:
+ YYCDEBUG << "Entering state " << yystack_[0].state << std::endl;
+
+ // Accept?
+ if (yystack_[0].state == yyfinal_)
+ goto yyacceptlab;
+
+ goto yybackup;
+
+ // Backup.
+ yybackup:
+
+ // Try to take a decision without lookahead.
+ yyn = yypact_[yystack_[0].state];
+ if (yy_pact_value_is_default_ (yyn))
+ goto yydefault;
+
+ // Read a lookahead token.
+ if (yyla.empty ())
+ {
+ YYCDEBUG << "Reading a token: ";
+ try
+ {
+ symbol_type yylookahead (yylex (ctx));
+ yyla.move (yylookahead);
+ }
+ catch (const syntax_error& yyexc)
+ {
+ error (yyexc);
+ goto yyerrlab1;
+ }
+ }
+ YY_SYMBOL_PRINT ("Next token is", yyla);
+
+ /* If the proper action on seeing token YYLA.TYPE is to reduce or
+ to detect an error, take that action. */
+ yyn += yyla.type_get ();
+ if (yyn < 0 || yylast_ < yyn || yycheck_[yyn] != yyla.type_get ())
+ goto yydefault;
+
+ // Reduce or error.
+ yyn = yytable_[yyn];
+ if (yyn <= 0)
+ {
+ if (yy_table_value_is_error_ (yyn))
+ goto yyerrlab;
+ yyn = -yyn;
+ goto yyreduce;
+ }
+
+ // Count tokens shifted since error; after three, turn off error status.
+ if (yyerrstatus_)
+ --yyerrstatus_;
+
+ // Shift the lookahead token.
+ yypush_ ("Shifting", yyn, yyla);
+ goto yynewstate;
+
+ /*-----------------------------------------------------------.
+ | yydefault -- do the default action for the current state. |
+ `-----------------------------------------------------------*/
+ yydefault:
+ yyn = yydefact_[yystack_[0].state];
+ if (yyn == 0)
+ goto yyerrlab;
+ goto yyreduce;
+
+ /*-----------------------------.
+ | yyreduce -- Do a reduction. |
+ `-----------------------------*/
+ yyreduce:
+ yylen = yyr2_[yyn];
+ {
+ stack_symbol_type yylhs;
+ yylhs.state = yy_lr_goto_state_(yystack_[yylen].state, yyr1_[yyn]);
+ /* Variants are always initialized to an empty instance of the
+ correct type. The default '$$ = $1' action is NOT applied
+ when using variants. */
+ switch (yyr1_[yyn])
+ {
+ case 117: // value
+ case 341: // version_value
+ yylhs.value.build< ElementPtr > ();
+ break;
+
+ case 103: // "boolean"
+ yylhs.value.build< bool > ();
+ break;
+
+ case 102: // "floating point"
+ yylhs.value.build< double > ();
+ break;
+
+ case 101: // "integer"
+ yylhs.value.build< int64_t > ();
+ break;
+
+ case 100: // "constant string"
+ yylhs.value.build< std::string > ();
+ break;
+
+ default:
+ break;
+ }
+
+
+ // Compute the default @$.
+ {
+ slice<stack_symbol_type, stack_type> slice (yystack_, yylen);
+ YYLLOC_DEFAULT (yylhs.location, slice, yylen);
+ }
+
+ // Perform the reduction.
+ YY_REDUCE_PRINT (yyn);
+ try
+ {
+ switch (yyn)
+ {
+ case 2:
+#line 200 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.NO_KEYWORD; }
+#line 630 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 4:
+#line 201 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.CONFIG; }
+#line 636 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 6:
+#line 202 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.DHCP6; }
+#line 642 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 8:
+#line 203 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.INTERFACES_CONFIG; }
+#line 648 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 10:
+#line 204 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.SUBNET6; }
+#line 654 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 12:
+#line 205 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.POOLS; }
+#line 660 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 14:
+#line 206 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.PD_POOLS; }
+#line 666 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 16:
+#line 207 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.RESERVATIONS; }
+#line 672 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 18:
+#line 208 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.OPTION_DEF; }
+#line 678 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 20:
+#line 209 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.OPTION_DATA; }
+#line 684 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 22:
+#line 210 "dhcp6_parser.yy" // lalr1.cc:859
+ { ctx.ctx_ = ctx.HOOKS_LIBRARIES; }
+#line 690 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 24:
+#line 218 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); }
+#line 696 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 25:
+#line 219 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); }
+#line 702 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 26:
+#line 220 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); }
+#line 708 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 27:
+#line 221 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); }
+#line 714 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 28:
+#line 222 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
+#line 720 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 29:
+#line 223 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 726 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 30:
+#line 224 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 732 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 31:
+#line 227 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Push back the JSON value on the stack
+ ctx.stack_.push_back(yystack_[0].value.as< ElementPtr > ());
+}
+#line 741 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 32:
+#line 232 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // This code is executed when we're about to start parsing
+ // the content of the map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 752 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 33:
+#line 237 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // map parsing completed. If we ever want to do any wrap up
+ // (maybe some sanity checking), this would be the best place
+ // for it.
+}
+#line 762 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 36:
+#line 248 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // map containing a single entry
+ ctx.stack_.back()->set(yystack_[2].value.as< std::string > (), yystack_[0].value.as< ElementPtr > ());
+ }
+#line 771 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 37:
+#line 252 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // map consisting of a shorter map followed by
+ // comma and string:value
+ ctx.stack_.back()->set(yystack_[2].value.as< std::string > (), yystack_[0].value.as< ElementPtr > ());
+ }
+#line 781 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 38:
+#line 259 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(l);
+}
+#line 790 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 39:
+#line 262 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // list parsing complete. Put any sanity checking here
+}
+#line 798 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 40:
+#line 267 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // List parsing about to start
+}
+#line 806 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 41:
+#line 269 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // list parsing complete. Put any sanity checking here
+ //ctx.stack_.pop_back();
+}
+#line 815 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 44:
+#line 278 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // List consisting of a single element.
+ ctx.stack_.back()->add(yystack_[0].value.as< ElementPtr > ());
+ }
+#line 824 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 45:
+#line 282 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // List ending with , and a value.
+ ctx.stack_.back()->add(yystack_[0].value.as< ElementPtr > ());
+ }
+#line 833 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 46:
+#line 293 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ const std::string& where = ctx.contextName();
+ const std::string& keyword = yystack_[1].value.as< std::string > ();
+ error(yystack_[1].location,
+ "got unexpected keyword \"" + keyword + "\" in " + where + " map.");
+}
+#line 844 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 47:
+#line 303 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // This code is executed when we're about to start parsing
+ // the content of the map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 855 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 48:
+#line 308 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // map parsing completed. If we ever want to do any wrap up
+ // (maybe some sanity checking), this would be the best place
+ // for it.
+}
+#line 865 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 56:
+#line 327 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // This code is executed when we're about to start parsing
+ // the content of the map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("Dhcp6", m);
+ ctx.stack_.push_back(m);
+ ctx.enter(ctx.DHCP6);
+}
+#line 878 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 57:
+#line 334 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // map parsing completed. If we ever want to do any wrap up
+ // (maybe some sanity checking), this would be the best place
+ // for it.
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 890 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 58:
+#line 344 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Parse the Dhcp6 map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 900 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 59:
+#line 348 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // parsing completed
+}
+#line 908 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 85:
+#line 383 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("preferred-lifetime", prf);
+}
+#line 917 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 86:
+#line 388 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("valid-lifetime", prf);
+}
+#line 926 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 87:
+#line 393 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("renew-timer", prf);
+}
+#line 935 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 88:
+#line 398 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("rebind-timer", prf);
+}
+#line 944 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 89:
+#line 403 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr dpp(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("decline-probation-period", dpp);
+}
+#line 953 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 90:
+#line 408 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr i(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("interfaces-config", i);
+ ctx.stack_.push_back(i);
+ ctx.enter(ctx.INTERFACES_CONFIG);
+}
+#line 964 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 91:
+#line 413 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 973 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 92:
+#line 418 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Parse the interfaces-config map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 983 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 93:
+#line 422 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // parsing completed
+}
+#line 991 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 94:
+#line 426 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("interfaces", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1002 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 95:
+#line 431 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1011 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 96:
+#line 436 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr i(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("lease-database", i);
+ ctx.stack_.push_back(i);
+ ctx.enter(ctx.LEASE_DATABASE);
+}
+#line 1022 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 97:
+#line 441 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1031 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 98:
+#line 446 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr i(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("hosts-database", i);
+ ctx.stack_.push_back(i);
+ ctx.enter(ctx.HOSTS_DATABASE);
+}
+#line 1042 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 99:
+#line 451 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1051 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 111:
+#line 471 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1059 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 112:
+#line 473 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr prf(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("type", prf);
+ ctx.leave();
+}
+#line 1069 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 113:
+#line 479 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1077 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 114:
+#line 481 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr user(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("user", user);
+ ctx.leave();
+}
+#line 1087 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 115:
+#line 487 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1095 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 116:
+#line 489 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr pwd(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("password", pwd);
+ ctx.leave();
+}
+#line 1105 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 117:
+#line 495 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1113 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 118:
+#line 497 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr h(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("host", h);
+ ctx.leave();
+}
+#line 1123 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 119:
+#line 503 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1131 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 120:
+#line 505 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr name(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("name", name);
+ ctx.leave();
+}
+#line 1141 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 121:
+#line 511 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr n(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("persist", n);
+}
+#line 1150 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 122:
+#line 516 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("lfc-interval", n);
+}
+#line 1159 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 123:
+#line 521 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr n(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("readonly", n);
+}
+#line 1168 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 124:
+#line 526 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("mac-sources", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.MAC_SOURCES);
+}
+#line 1179 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 125:
+#line 531 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1188 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 130:
+#line 544 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr duid(new StringElement("duid", ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(duid);
+}
+#line 1197 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 131:
+#line 549 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr duid(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(duid);
+}
+#line 1206 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 132:
+#line 554 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("host-reservation-identifiers", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.HOST_RESERVATION_IDENTIFIERS);
+}
+#line 1217 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 133:
+#line 559 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1226 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 138:
+#line 572 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr hwaddr(new StringElement("hw-address", ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(hwaddr);
+}
+#line 1235 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 139:
+#line 577 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("relay-supplied-options", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1246 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 140:
+#line 582 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1255 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 141:
+#line 587 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("hooks-libraries", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.HOOKS_LIBRARIES);
+}
+#line 1266 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 142:
+#line 592 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1275 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 147:
+#line 605 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(m);
+ ctx.stack_.push_back(m);
+}
+#line 1285 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 148:
+#line 609 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+}
+#line 1293 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 149:
+#line 613 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Parse the hooks-libraries list entry map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 1303 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 150:
+#line 617 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // parsing completed
+}
+#line 1311 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 155:
+#line 628 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1319 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 156:
+#line 630 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr lib(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("library", lib);
+ ctx.leave();
+}
+#line 1329 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 157:
+#line 636 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1337 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 158:
+#line 638 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.back()->set("parameters", yystack_[0].value.as< ElementPtr > ());
+ ctx.leave();
+}
+#line 1346 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 159:
+#line 644 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("expired-leases-processing", m);
+ ctx.stack_.push_back(m);
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1357 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 160:
+#line 649 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1366 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 163:
+#line 661 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set(yystack_[2].value.as< std::string > (), value);
+}
+#line 1375 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 164:
+#line 669 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("subnet6", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.SUBNET6);
+}
+#line 1386 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 165:
+#line 674 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1395 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 170:
+#line 694 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(m);
+ ctx.stack_.push_back(m);
+}
+#line 1405 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 171:
+#line 698 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Once we reached this place, the subnet parsing is now complete.
+ // If we want to, we can implement default values here.
+ // In particular we can do things like this:
+ // if (!ctx.stack_.back()->get("interface")) {
+ // ctx.stack_.back()->set("interface", StringElement("loopback"));
+ // }
+ //
+ // We can also stack up one level (Dhcp6) and copy over whatever
+ // global parameters we want to:
+ // if (!ctx.stack_.back()->get("renew-timer")) {
+ // ElementPtr renew = ctx_stack_[...].get("renew-timer");
+ // if (renew) {
+ // ctx.stack_.back()->set("renew-timer", renew);
+ // }
+ // }
+ ctx.stack_.pop_back();
+}
+#line 1428 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 172:
+#line 717 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Parse the subnet6 list entry map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 1438 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 173:
+#line 721 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // parsing completed
+}
+#line 1446 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 193:
+#line 750 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1454 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 194:
+#line 752 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr subnet(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("subnet", subnet);
+ ctx.leave();
+}
+#line 1464 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 195:
+#line 758 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1472 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 196:
+#line 760 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr iface(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("interface", iface);
+ ctx.leave();
+}
+#line 1482 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 197:
+#line 766 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1490 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 198:
+#line 768 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr iface(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("interface-id", iface);
+ ctx.leave();
+}
+#line 1500 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 199:
+#line 774 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.CLIENT_CLASS);
+}
+#line 1508 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 200:
+#line 776 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr cls(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("client-class", cls);
+ ctx.leave();
+}
+#line 1518 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 201:
+#line 782 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1526 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 202:
+#line 784 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr rm(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("reservation-mode", rm);
+ ctx.leave();
+}
+#line 1536 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 203:
+#line 790 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr id(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("id", id);
+}
+#line 1545 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 204:
+#line 795 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr rc(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("rapid-commit", rc);
+}
+#line 1554 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 205:
+#line 804 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("option-def", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.OPTION_DEF);
+}
+#line 1565 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 206:
+#line 809 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1574 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 211:
+#line 826 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(m);
+ ctx.stack_.push_back(m);
+}
+#line 1584 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 212:
+#line 830 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+}
+#line 1592 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 213:
+#line 837 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Parse the option-def list entry map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 1602 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 214:
+#line 841 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // parsing completed
+}
+#line 1610 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 228:
+#line 867 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr code(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("code", code);
+}
+#line 1619 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 231:
+#line 876 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1627 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 232:
+#line 878 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr rtypes(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("record-types", rtypes);
+ ctx.leave();
+}
+#line 1637 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 233:
+#line 884 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1645 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 234:
+#line 886 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr space(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("space", space);
+ ctx.leave();
+}
+#line 1655 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 236:
+#line 894 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1663 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 237:
+#line 896 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr encap(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("encapsulate", encap);
+ ctx.leave();
+}
+#line 1673 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 238:
+#line 902 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr array(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("array", array);
+}
+#line 1682 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 239:
+#line 911 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("option-data", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.OPTION_DATA);
+}
+#line 1693 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 240:
+#line 916 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1702 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 245:
+#line 935 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(m);
+ ctx.stack_.push_back(m);
+}
+#line 1712 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 246:
+#line 939 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+}
+#line 1720 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 247:
+#line 946 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Parse the option-data list entry map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 1730 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 248:
+#line 950 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // parsing completed
+}
+#line 1738 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 260:
+#line 979 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1746 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 261:
+#line 981 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr data(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("data", data);
+ ctx.leave();
+}
+#line 1756 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 264:
+#line 991 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr space(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("csv-format", space);
+}
+#line 1765 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 265:
+#line 999 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("pools", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.POOLS);
+}
+#line 1776 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 266:
+#line 1004 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1785 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 271:
+#line 1019 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(m);
+ ctx.stack_.push_back(m);
+}
+#line 1795 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 272:
+#line 1023 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+}
+#line 1803 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 273:
+#line 1027 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Parse the pool list entry map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 1813 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 274:
+#line 1031 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // parsing completed
+}
+#line 1821 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 280:
+#line 1044 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1829 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 281:
+#line 1046 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr pool(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("pool", pool);
+ ctx.leave();
+}
+#line 1839 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 282:
+#line 1055 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("pd-pools", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.PD_POOLS);
+}
+#line 1850 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 283:
+#line 1060 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1859 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 288:
+#line 1075 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(m);
+ ctx.stack_.push_back(m);
+}
+#line 1869 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 289:
+#line 1079 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+}
+#line 1877 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 290:
+#line 1083 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Parse the pd-pool list entry map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 1887 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 291:
+#line 1087 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // parsing completed
+}
+#line 1895 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 301:
+#line 1104 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1903 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 302:
+#line 1106 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr prf(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("prefix", prf);
+ ctx.leave();
+}
+#line 1913 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 303:
+#line 1112 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("prefix-len", prf);
+}
+#line 1922 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 304:
+#line 1117 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 1930 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 305:
+#line 1119 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr prf(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("excluded-prefix", prf);
+ ctx.leave();
+}
+#line 1940 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 306:
+#line 1125 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("excluded-prefix-len", prf);
+}
+#line 1949 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 307:
+#line 1130 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr deleg(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("delegated-len", deleg);
+}
+#line 1958 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 308:
+#line 1138 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("reservations", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.RESERVATIONS);
+}
+#line 1969 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 309:
+#line 1143 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 1978 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 314:
+#line 1156 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(m);
+ ctx.stack_.push_back(m);
+}
+#line 1988 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 315:
+#line 1160 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+}
+#line 1996 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 316:
+#line 1164 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // Parse the reservations list entry map
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.push_back(m);
+}
+#line 2006 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 317:
+#line 1168 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ // parsing completed
+}
+#line 2014 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 330:
+#line 1191 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("ip-addresses", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2025 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 331:
+#line 1196 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2034 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 332:
+#line 1201 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("prefixes", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2045 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 333:
+#line 1206 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2054 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 334:
+#line 1211 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2062 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 335:
+#line 1213 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr d(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("duid", d);
+ ctx.leave();
+}
+#line 2072 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 336:
+#line 1219 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2080 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 337:
+#line 1221 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr hw(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("hw-address", hw);
+ ctx.leave();
+}
+#line 2090 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 338:
+#line 1227 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2098 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 339:
+#line 1229 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr host(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("hostname", host);
+ ctx.leave();
+}
+#line 2108 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 340:
+#line 1235 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr c(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("client-classes", c);
+ ctx.stack_.push_back(c);
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2119 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 341:
+#line 1240 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2128 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 342:
+#line 1248 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("relay", m);
+ ctx.stack_.push_back(m);
+ ctx.enter(ctx.RELAY);
+}
+#line 2139 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 343:
+#line 1253 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2148 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 344:
+#line 1258 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2156 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 345:
+#line 1260 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr ip(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("ip-address", ip);
+ ctx.leave();
+}
+#line 2166 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 346:
+#line 1269 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("client-classes", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.CLIENT_CLASSES);
+}
+#line 2177 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 347:
+#line 1274 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2186 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 350:
+#line 1283 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(m);
+ ctx.stack_.push_back(m);
+}
+#line 2196 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 351:
+#line 1287 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+}
+#line 2204 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 361:
+#line 1307 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2212 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 362:
+#line 1309 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr test(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("test", test);
+ ctx.leave();
+}
+#line 2222 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 363:
+#line 1318 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("server-id", m);
+ ctx.stack_.push_back(m);
+ ctx.enter(ctx.SERVER_ID);
+}
+#line 2233 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 364:
+#line 1323 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2242 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 374:
+#line 1341 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr htype(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("htype", htype);
+}
+#line 2251 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 375:
+#line 1346 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2259 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 376:
+#line 1348 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr id(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("identifier", id);
+ ctx.leave();
+}
+#line 2269 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 377:
+#line 1354 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr time(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("time", time);
+}
+#line 2278 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 378:
+#line 1359 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr time(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("enterprise-id", time);
+}
+#line 2287 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 379:
+#line 1366 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr time(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("dhcp4o6-port", time);
+}
+#line 2296 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 380:
+#line 1372 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2304 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 381:
+#line 1374 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.back()->set("version", yystack_[0].value.as< ElementPtr > ());
+ ctx.leave();
+}
+#line 2313 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 382:
+#line 1380 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); }
+#line 2319 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 383:
+#line 1381 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); }
+#line 2325 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 384:
+#line 1382 "dhcp6_parser.yy" // lalr1.cc:859
+ { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); }
+#line 2331 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 385:
+#line 1387 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("control-socket", m);
+ ctx.stack_.push_back(m);
+ ctx.enter(ctx.CONTROL_SOCKET);
+}
+#line 2342 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 386:
+#line 1392 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2351 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 391:
+#line 1405 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2359 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 392:
+#line 1407 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr stype(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("socket-type", stype);
+ ctx.leave();
+}
+#line 2369 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 393:
+#line 1413 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2377 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 394:
+#line 1415 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr name(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("socket-name", name);
+ ctx.leave();
+}
+#line 2387 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 395:
+#line 1423 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("dhcp-ddns", m);
+ ctx.stack_.push_back(m);
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2398 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 396:
+#line 1428 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2407 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 397:
+#line 1435 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2415 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 398:
+#line 1437 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.back()->set("Dhcp4", yystack_[0].value.as< ElementPtr > ());
+ ctx.leave();
+}
+#line 2424 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 399:
+#line 1442 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2432 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 400:
+#line 1444 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.back()->set("DhcpDdns", yystack_[0].value.as< ElementPtr > ());
+ ctx.leave();
+}
+#line 2441 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 401:
+#line 1454 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("Logging", m);
+ ctx.stack_.push_back(m);
+ ctx.enter(ctx.LOGGING);
+}
+#line 2452 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 402:
+#line 1459 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2461 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 406:
+#line 1476 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("loggers", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.LOGGERS);
+}
+#line 2472 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 407:
+#line 1481 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2481 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 410:
+#line 1493 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(l);
+ ctx.stack_.push_back(l);
+}
+#line 2491 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 411:
+#line 1497 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+}
+#line 2499 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 419:
+#line 1512 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr dl(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("debuglevel", dl);
+}
+#line 2508 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 420:
+#line 1516 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2516 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 421:
+#line 1518 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr sev(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("severity", sev);
+ ctx.leave();
+}
+#line 2526 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 422:
+#line 1524 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("output_options", l);
+ ctx.stack_.push_back(l);
+ ctx.enter(ctx.OUTPUT_OPTIONS);
+}
+#line 2537 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 423:
+#line 1529 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+ ctx.leave();
+}
+#line 2546 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 426:
+#line 1538 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->add(m);
+ ctx.stack_.push_back(m);
+}
+#line 2556 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 427:
+#line 1542 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.stack_.pop_back();
+}
+#line 2564 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 430:
+#line 1550 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ctx.enter(ctx.NO_KEYWORD);
+}
+#line 2572 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+ case 431:
+#line 1552 "dhcp6_parser.yy" // lalr1.cc:859
+ {
+ ElementPtr sev(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ctx.stack_.back()->set("output", sev);
+ ctx.leave();
+}
+#line 2582 "dhcp6_parser.cc" // lalr1.cc:859
+ break;
+
+
+#line 2586 "dhcp6_parser.cc" // lalr1.cc:859
+ default:
+ break;
+ }
+ }
+ catch (const syntax_error& yyexc)
+ {
+ error (yyexc);
+ YYERROR;
+ }
+ YY_SYMBOL_PRINT ("-> $$ =", yylhs);
+ yypop_ (yylen);
+ yylen = 0;
+ YY_STACK_PRINT ();
+
+ // Shift the result of the reduction.
+ yypush_ (YY_NULLPTR, yylhs);
+ }
+ goto yynewstate;
+
+ /*--------------------------------------.
+ | yyerrlab -- here on detecting error. |
+ `--------------------------------------*/
+ yyerrlab:
+ // If not already recovering from an error, report this error.
+ if (!yyerrstatus_)
+ {
+ ++yynerrs_;
+ error (yyla.location, yysyntax_error_ (yystack_[0].state, yyla));
+ }
+
+
+ yyerror_range[1].location = yyla.location;
+ if (yyerrstatus_ == 3)
+ {
+ /* If just tried and failed to reuse lookahead token after an
+ error, discard it. */
+
+ // Return failure if at end of input.
+ if (yyla.type_get () == yyeof_)
+ YYABORT;
+ else if (!yyla.empty ())
+ {
+ yy_destroy_ ("Error: discarding", yyla);
+ yyla.clear ();
+ }
+ }
+
+ // Else will try to reuse lookahead token after shifting the error token.
+ goto yyerrlab1;
+
+
+ /*---------------------------------------------------.
+ | yyerrorlab -- error raised explicitly by YYERROR. |
+ `---------------------------------------------------*/
+ yyerrorlab:
+
+ /* Pacify compilers like GCC when the user code never invokes
+ YYERROR and the label yyerrorlab therefore never appears in user
+ code. */
+ if (false)
+ goto yyerrorlab;
+ yyerror_range[1].location = yystack_[yylen - 1].location;
+ /* Do not reclaim the symbols of the rule whose action triggered
+ this YYERROR. */
+ yypop_ (yylen);
+ yylen = 0;
+ goto yyerrlab1;
+
+ /*-------------------------------------------------------------.
+ | yyerrlab1 -- common code for both syntax error and YYERROR. |
+ `-------------------------------------------------------------*/
+ yyerrlab1:
+ yyerrstatus_ = 3; // Each real token shifted decrements this.
+ {
+ stack_symbol_type error_token;
+ for (;;)
+ {
+ yyn = yypact_[yystack_[0].state];
+ if (!yy_pact_value_is_default_ (yyn))
+ {
+ yyn += yyterror_;
+ if (0 <= yyn && yyn <= yylast_ && yycheck_[yyn] == yyterror_)
+ {
+ yyn = yytable_[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ // Pop the current state because it cannot handle the error token.
+ if (yystack_.size () == 1)
+ YYABORT;
+
+ yyerror_range[1].location = yystack_[0].location;
+ yy_destroy_ ("Error: popping", yystack_[0]);
+ yypop_ ();
+ YY_STACK_PRINT ();
+ }
+
+ yyerror_range[2].location = yyla.location;
+ YYLLOC_DEFAULT (error_token.location, yyerror_range, 2);
+
+ // Shift the error token.
+ error_token.state = yyn;
+ yypush_ ("Shifting", error_token);
+ }
+ goto yynewstate;
+
+ // Accept.
+ yyacceptlab:
+ yyresult = 0;
+ goto yyreturn;
+
+ // Abort.
+ yyabortlab:
+ yyresult = 1;
+ goto yyreturn;
+
+ yyreturn:
+ if (!yyla.empty ())
+ yy_destroy_ ("Cleanup: discarding lookahead", yyla);
+
+ /* Do not reclaim the symbols of the rule whose action triggered
+ this YYABORT or YYACCEPT. */
+ yypop_ (yylen);
+ while (1 < yystack_.size ())
+ {
+ yy_destroy_ ("Cleanup: popping", yystack_[0]);
+ yypop_ ();
+ }
+
+ return yyresult;
+ }
+ catch (...)
+ {
+ YYCDEBUG << "Exception caught: cleaning lookahead and stack"
+ << std::endl;
+ // Do not try to display the values of the reclaimed symbols,
+ // as their printer might throw an exception.
+ if (!yyla.empty ())
+ yy_destroy_ (YY_NULLPTR, yyla);
+
+ while (1 < yystack_.size ())
+ {
+ yy_destroy_ (YY_NULLPTR, yystack_[0]);
+ yypop_ ();
+ }
+ throw;
+ }
+ }
+
+ void
+ Dhcp6Parser::error (const syntax_error& yyexc)
+ {
+ error (yyexc.location, yyexc.what());
+ }
+
+ // Generate an error message.
+ std::string
+ Dhcp6Parser::yysyntax_error_ (state_type yystate, const symbol_type& yyla) const
+ {
+ // Number of reported tokens (one for the "unexpected", one per
+ // "expected").
+ size_t yycount = 0;
+ // Its maximum.
+ enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
+ // Arguments of yyformat.
+ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+
+ /* There are many possibilities here to consider:
+ - If this state is a consistent state with a default action, then
+ the only way this function was invoked is if the default action
+ is an error action. In that case, don't check for expected
+ tokens because there are none.
+ - The only way there can be no lookahead present (in yyla) is
+ if this state is a consistent state with a default action.
+ Thus, detecting the absence of a lookahead is sufficient to
+ determine that there is no unexpected or expected token to
+ report. In that case, just report a simple "syntax error".
+ - Don't assume there isn't a lookahead just because this state is
+ a consistent state with a default action. There might have
+ been a previous inconsistent state, consistent state with a
+ non-default action, or user semantic action that manipulated
+ yyla. (However, yyla is currently not documented for users.)
+ - Of course, the expected token list depends on states to have
+ correct lookahead information, and it depends on the parser not
+ to perform extra reductions after fetching a lookahead from the
+ scanner and before detecting a syntax error. Thus, state
+ merging (from LALR or IELR) and default reductions corrupt the
+ expected token list. However, the list is correct for
+ canonical LR with one exception: it will still contain any
+ token that will not be accepted due to an error action in a
+ later state.
+ */
+ if (!yyla.empty ())
+ {
+ int yytoken = yyla.type_get ();
+ yyarg[yycount++] = yytname_[yytoken];
+ int yyn = yypact_[yystate];
+ if (!yy_pact_value_is_default_ (yyn))
+ {
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. In other words, skip the first -YYN actions for
+ this state because they are default actions. */
+ int yyxbegin = yyn < 0 ? -yyn : 0;
+ // Stay within bounds of both yycheck and yytname.
+ int yychecklim = yylast_ - yyn + 1;
+ int yyxend = yychecklim < yyntokens_ ? yychecklim : yyntokens_;
+ for (int yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck_[yyx + yyn] == yyx && yyx != yyterror_
+ && !yy_table_value_is_error_ (yytable_[yyx + yyn]))
+ {
+ if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
+ {
+ yycount = 1;
+ break;
+ }
+ else
+ yyarg[yycount++] = yytname_[yyx];
+ }
+ }
+ }
+
+ char const* yyformat = YY_NULLPTR;
+ switch (yycount)
+ {
+#define YYCASE_(N, S) \
+ case N: \
+ yyformat = S; \
+ break
+ YYCASE_(0, YY_("syntax error"));
+ YYCASE_(1, YY_("syntax error, unexpected %s"));
+ YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
+ YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
+ YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
+ YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
+#undef YYCASE_
+ }
+
+ std::string yyres;
+ // Argument number.
+ size_t yyi = 0;
+ for (char const* yyp = yyformat; *yyp; ++yyp)
+ if (yyp[0] == '%' && yyp[1] == 's' && yyi < yycount)
+ {
+ yyres += yytnamerr_ (yyarg[yyi++]);
+ ++yyp;
+ }
+ else
+ yyres += *yyp;
+ return yyres;
+ }
+
+
+ const short int Dhcp6Parser::yypact_ninf_ = -423;
+
+ const signed char Dhcp6Parser::yytable_ninf_ = -1;
+
+ const short int
+ Dhcp6Parser::yypact_[] =
+ {
+ 116, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, 44, 19, 39, 54, 63, 67, 81, 89,
+ 96, 117, 146, 167, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -423, 19, -16, 17, 86,
+ 123, 18, 6, 150, 87, 57, 138, 76, -423, 139,
+ 197, 225, 212, 227, -423, -423, -423, -423, 230, -423,
+ 31, -423, -423, -423, -423, -423, -423, -423, -423, 237,
+ 242, 245, 253, 254, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, 255, -423, -423, -423, -423, 52,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, 252, -423, -423, -423, -423, -423,
+ -423, 257, 259, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, 75, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, 77,
+ -423, -423, -423, 262, -423, 263, 264, -423, -423, 83,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, 265, 268, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, 270, -423, -423, -423, 271,
+ -423, -423, -423, 269, 275, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -423, 276, -423, -423, -423,
+ -423, 273, 279, -423, -423, -423, -423, -423, -423, -423,
+ -423, 99, -423, -423, -423, -423, 19, 19, -423, 172,
+ 280, 281, 282, 283, -423, 17, -423, 284, 285, 286,
+ 178, 182, 190, 191, 192, 290, 291, 292, 293, 294,
+ 295, 296, 297, 298, 299, 203, 301, 302, 303, 86,
+ -423, 304, -423, 1, 305, 306, 307, 308, 309, 215,
+ 211, 311, 313, 314, 315, 18, -423, 316, 6, -423,
+ 317, 221, 319, 228, 229, 150, -423, 320, 321, 324,
+ 327, 328, 329, -423, 87, 330, 331, 235, 333, 334,
+ 335, 238, -423, 57, 336, 239, -423, 138, 339, 340,
+ 76, -423, -423, -423, 341, 342, 343, 19, 19, -423,
+ 344, 345, 346, -423, -423, -423, -423, -423, 349, 352,
+ 353, 354, 355, 356, 359, 360, 361, 362, -423, -64,
+ 363, 364, -423, 355, -423, -423, -423, -423, 338, 369,
+ -423, -423, -423, 368, 370, 247, 248, 266, -423, -423,
+ 267, 278, 371, 372, -423, 287, -423, 288, -423, 289,
+ -423, -423, -423, 355, 355, 355, 300, 310, 312, -423,
+ 318, 322, -423, 323, 325, 326, -423, -423, 332, -423,
+ -423, 337, 19, -423, 19, 86, 347, -423, -423, 123,
+ 33, 33, 373, 374, 375, -29, -423, -423, 128, 22,
+ 376, 348, 58, -423, -423, -423, -423, 165, -16, -423,
+ 381, -423, 1, 379, 383, -423, -423, -423, -423, -423,
+ 384, 350, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ 120, -423, 151, -423, -423, 385, -423, -423, -423, 390,
+ 391, 392, -423, 157, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, 174, -423, 393, 394, -423, -423, 396,
+ 395, -423, -423, 398, 402, -423, -423, -423, 56, -423,
+ -423, -423, 19, -423, -423, 161, -423, -423, -423, 170,
+ -423, 400, 404, -423, 405, 177, -423, -423, 407, 409,
+ 410, -423, -423, -423, 180, -423, -423, -423, -423, -423,
+ -423, -423, 193, -423, -423, -423, 195, 351, -423, -423,
+ 411, 413, -423, -423, 414, 416, -423, -423, 415, 421,
+ -423, -423, 419, -423, 424, 347, -423, -423, 426, 427,
+ 429, 357, 358, 365, 33, -423, -423, 18, -423, 373,
+ 57, -423, 374, 138, -423, 375, -29, -423, 428, 128,
+ -423, 22, -423, 76, -423, 376, 366, 348, -423, 431,
+ 377, 378, 380, 58, -423, 432, 434, 165, -423, -423,
+ -423, 6, -423, 379, 150, -423, 383, 87, -423, 384,
+ 435, -423, 403, -423, 382, 386, 387, -423, -423, -423,
+ -423, 213, -423, 433, -423, 436, -423, -423, -423, -423,
+ -423, 214, -423, -423, -423, 388, -423, -423, -423, -423,
+ 389, 397, -423, 216, -423, 220, -423, 437, -423, 399,
+ 439, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -423, 196, -423, 51, 439,
+ -423, -423, 438, -423, -423, -423, 223, -423, -423, -423,
+ -423, -423, 443, 401, 445, 51, -423, 447, -423, 406,
+ -423, 446, -423, -423, 236, -423, 408, 446, -423, -423,
+ 224, -423, -423, 450, 408, -423, 412, -423, -423
+ };
+
+ const unsigned short int
+ Dhcp6Parser::yydefact_[] =
+ {
+ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18,
+ 20, 22, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1, 38, 32, 28, 27, 24,
+ 25, 26, 31, 3, 29, 30, 47, 5, 58, 7,
+ 92, 9, 172, 11, 273, 13, 290, 15, 316, 17,
+ 213, 19, 247, 21, 149, 23, 42, 34, 0, 0,
+ 0, 0, 0, 0, 318, 215, 249, 0, 44, 0,
+ 43, 0, 0, 35, 56, 401, 397, 399, 0, 55,
+ 0, 49, 51, 53, 54, 52, 90, 96, 98, 0,
+ 0, 0, 0, 0, 164, 205, 239, 124, 139, 132,
+ 346, 141, 159, 363, 0, 380, 385, 395, 84, 0,
+ 60, 62, 63, 64, 65, 66, 68, 69, 70, 71,
+ 73, 72, 77, 78, 67, 75, 76, 74, 79, 80,
+ 81, 82, 83, 94, 0, 350, 265, 282, 193, 195,
+ 197, 0, 0, 201, 199, 308, 342, 192, 176, 177,
+ 178, 179, 0, 174, 183, 184, 185, 188, 190, 186,
+ 187, 180, 181, 182, 189, 191, 280, 279, 278, 0,
+ 275, 277, 301, 0, 304, 0, 0, 300, 297, 0,
+ 292, 294, 295, 298, 299, 296, 340, 330, 332, 334,
+ 336, 338, 329, 328, 0, 319, 320, 324, 325, 322,
+ 326, 327, 323, 111, 119, 0, 233, 231, 236, 0,
+ 226, 230, 227, 0, 216, 217, 219, 229, 220, 221,
+ 222, 235, 223, 224, 225, 260, 0, 258, 259, 262,
+ 263, 0, 250, 251, 253, 254, 255, 256, 257, 155,
+ 157, 0, 151, 153, 154, 39, 0, 0, 33, 0,
+ 0, 0, 0, 0, 46, 0, 48, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 59, 0, 93, 352, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 173, 0, 0, 274,
+ 0, 0, 0, 0, 0, 0, 291, 0, 0, 0,
+ 0, 0, 0, 317, 0, 0, 0, 0, 0, 0,
+ 0, 0, 214, 0, 0, 0, 248, 0, 0, 0,
+ 0, 150, 45, 36, 0, 0, 0, 0, 0, 50,
+ 0, 0, 0, 85, 86, 87, 88, 89, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 379, 0,
+ 0, 0, 61, 0, 361, 359, 360, 358, 0, 353,
+ 354, 356, 357, 0, 0, 0, 0, 0, 203, 204,
+ 0, 0, 0, 0, 175, 0, 276, 0, 303, 0,
+ 306, 307, 293, 0, 0, 0, 0, 0, 0, 321,
+ 0, 0, 228, 0, 0, 0, 238, 218, 0, 264,
+ 252, 0, 0, 152, 0, 0, 0, 398, 400, 0,
+ 0, 0, 166, 207, 241, 0, 40, 140, 0, 0,
+ 143, 0, 0, 384, 382, 383, 381, 0, 0, 95,
+ 0, 351, 0, 267, 284, 194, 196, 198, 202, 200,
+ 310, 0, 281, 302, 305, 341, 331, 333, 335, 337,
+ 339, 112, 120, 234, 232, 237, 261, 156, 158, 37,
+ 0, 406, 0, 403, 405, 0, 113, 115, 117, 0,
+ 0, 0, 110, 0, 100, 102, 103, 104, 105, 106,
+ 107, 108, 109, 0, 170, 0, 167, 168, 211, 0,
+ 208, 209, 245, 0, 242, 243, 130, 131, 0, 126,
+ 128, 129, 42, 138, 136, 0, 134, 137, 348, 0,
+ 147, 0, 144, 145, 0, 0, 161, 375, 0, 0,
+ 0, 373, 367, 372, 0, 365, 370, 368, 369, 371,
+ 391, 393, 0, 387, 389, 390, 0, 0, 355, 271,
+ 0, 268, 269, 288, 0, 285, 286, 314, 0, 311,
+ 312, 344, 0, 57, 0, 0, 402, 91, 0, 0,
+ 0, 0, 0, 0, 0, 97, 99, 0, 165, 0,
+ 215, 206, 0, 249, 240, 0, 0, 125, 0, 0,
+ 133, 0, 347, 0, 142, 0, 0, 0, 160, 0,
+ 0, 0, 0, 0, 364, 0, 0, 0, 386, 396,
+ 362, 0, 266, 0, 0, 283, 0, 318, 309, 0,
+ 0, 343, 0, 404, 0, 0, 0, 121, 122, 123,
+ 101, 0, 169, 0, 210, 0, 244, 127, 41, 135,
+ 349, 0, 146, 163, 162, 0, 374, 377, 378, 366,
+ 0, 0, 388, 0, 270, 0, 287, 0, 313, 0,
+ 0, 114, 116, 118, 171, 212, 246, 148, 376, 392,
+ 394, 272, 289, 315, 345, 410, 0, 408, 0, 0,
+ 407, 422, 0, 420, 418, 414, 0, 412, 416, 417,
+ 415, 409, 0, 0, 0, 0, 411, 0, 419, 0,
+ 413, 0, 421, 426, 0, 424, 0, 0, 423, 430,
+ 0, 428, 425, 0, 0, 427, 0, 429, 431
+ };
+
+ const short int
+ Dhcp6Parser::yypgoto_[] =
+ {
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -11, -423, -423, -423, -423, 2, -423,
+ -423, -268, -423, -69, -423, -58, -423, -423, -423, 200,
+ -423, -423, -423, -423, 35, 179, -44, -43, -42, -41,
+ -423, -423, -423, -423, -423, 37, -423, -423, -423, -423,
+ -423, 36, -113, -399, -423, -423, -423, -423, -423, -423,
+ -423, -65, -423, -422, -423, -423, -423, -423, -423, -124,
+ -405, -423, -423, -423, -423, -126, -423, -423, -423, -423,
+ -423, -423, -423, -131, -423, -423, -423, -128, 136, -423,
+ -423, -423, -423, -423, -423, -423, -127, -423, -423, -423,
+ -423, -110, -423, -423, -423, -106, 181, -423, -423, -423,
+ -423, -423, -423, -413, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -109, -423, -423, -423, -108, -423, 152,
+ -423, -57, -423, -423, -423, -423, -51, -423, -423, -423,
+ -423, -423, -50, -423, -423, -423, -111, -423, -423, -423,
+ -103, -423, 156, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -136, -423, -423, -423, -121, 186, -423,
+ -423, -423, -423, -423, -423, -125, -423, -423, -423, -129,
+ 188, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -123, -423, -423, -423, -122, -423, 184, -423,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, 59, -423, -423, -423, -423, -423, -423, -100, -423,
+ -423, -423, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -107, -423, -423, -423, -423, -423, -423, -423, -423,
+ -423, -423, -423, -423, -423, -71, -423, -423, -423, -175,
+ -423, -423, -190, -423, -423, -423, -423, -423, -423, -200,
+ -423, -423, -206, -423
+ };
+
+ const short int
+ Dhcp6Parser::yydefgoto_[] =
+ {
+ -1, 12, 13, 14, 15, 16, 17, 18, 19, 20,
+ 21, 22, 23, 68, 33, 34, 57, 72, 73, 35,
+ 56, 427, 512, 69, 70, 108, 37, 58, 80, 81,
+ 82, 250, 39, 59, 109, 110, 111, 112, 113, 114,
+ 115, 116, 257, 41, 60, 134, 281, 117, 258, 118,
+ 259, 483, 484, 211, 315, 486, 568, 487, 569, 488,
+ 570, 212, 316, 490, 491, 492, 119, 268, 508, 509,
+ 510, 511, 120, 270, 515, 516, 517, 121, 269, 122,
+ 272, 521, 522, 523, 593, 55, 67, 241, 242, 243,
+ 328, 244, 329, 123, 273, 525, 526, 124, 265, 495,
+ 496, 497, 577, 43, 61, 152, 153, 154, 286, 155,
+ 287, 156, 288, 157, 292, 158, 291, 159, 160, 125,
+ 266, 499, 500, 501, 580, 51, 65, 213, 214, 215,
+ 216, 217, 218, 219, 220, 319, 221, 318, 222, 223,
+ 320, 224, 126, 267, 503, 504, 505, 583, 53, 66,
+ 231, 232, 233, 234, 235, 324, 236, 237, 238, 162,
+ 284, 550, 551, 552, 611, 45, 62, 169, 170, 171,
+ 297, 163, 285, 554, 555, 556, 614, 47, 63, 179,
+ 180, 181, 300, 182, 183, 302, 184, 185, 164, 293,
+ 558, 559, 560, 617, 49, 64, 194, 195, 196, 197,
+ 308, 198, 309, 199, 310, 200, 311, 201, 312, 202,
+ 307, 165, 294, 562, 620, 127, 271, 519, 283, 368,
+ 369, 370, 371, 372, 440, 128, 274, 534, 535, 536,
+ 537, 599, 538, 539, 129, 130, 276, 436, 131, 277,
+ 542, 543, 544, 605, 545, 606, 132, 278, 83, 252,
+ 84, 253, 85, 251, 472, 473, 474, 564, 676, 677,
+ 678, 686, 687, 688, 689, 694, 690, 692, 704, 705,
+ 706, 710, 711, 713
+ };
+
+ const unsigned short int
+ Dhcp6Parser::yytable_[] =
+ {
+ 79, 228, 32, 147, 167, 177, 192, 210, 227, 229,
+ 533, 161, 168, 178, 193, 230, 518, 148, 149, 150,
+ 151, 485, 485, 514, 25, 135, 26, 74, 27, 135,
+ 96, 204, 506, 532, 255, 96, 433, 434, 435, 256,
+ 89, 90, 91, 92, 24, 166, 36, 96, 203, 476,
+ 477, 478, 479, 480, 481, 279, 136, 364, 137, 586,
+ 280, 38, 587, 204, 138, 139, 140, 141, 142, 143,
+ 40, 507, 203, 203, 42, 144, 145, 479, 295, 144,
+ 298, 204, 146, 296, 71, 299, 305, 204, 44, 205,
+ 206, 306, 207, 208, 209, 439, 46, 86, 75, 87,
+ 88, 78, 330, 48, 76, 77, 78, 331, 89, 90,
+ 91, 92, 93, 94, 95, 96, 96, 78, 78, 28,
+ 29, 30, 31, 279, 50, 455, 456, 457, 563, 527,
+ 528, 529, 530, 78, 681, 133, 682, 683, 97, 98,
+ 99, 100, 186, 239, 240, 245, 187, 188, 189, 190,
+ 191, 78, 101, 52, 565, 102, 103, 78, 78, 566,
+ 574, 104, 105, 106, 589, 575, 107, 590, 204, 225,
+ 205, 206, 226, 591, 54, 485, 592, 574, 640, 96,
+ 597, 533, 576, 603, 514, 598, 78, 78, 604, 506,
+ 513, 172, 173, 174, 175, 176, 607, 79, 249, 679,
+ 246, 608, 680, 609, 532, 1, 2, 3, 4, 5,
+ 6, 7, 8, 9, 10, 11, 295, 330, 366, 298,
+ 248, 664, 667, 305, 671, 365, 695, 714, 672, 247,
+ 249, 696, 715, 367, 254, 332, 333, 147, 78, 707,
+ 167, 260, 708, 540, 541, 161, 261, 177, 168, 262,
+ 78, 148, 149, 150, 151, 178, 192, 263, 264, 275,
+ 282, 289, 228, 290, 193, 210, 301, 303, 304, 227,
+ 229, 314, 334, 313, 317, 321, 230, 322, 323, 343,
+ 325, 326, 327, 344, 335, 336, 337, 338, 340, 341,
+ 342, 345, 346, 347, 348, 349, 350, 351, 352, 353,
+ 354, 355, 356, 357, 358, 359, 360, 361, 363, 373,
+ 374, 375, 376, 377, 379, 380, 378, 381, 382, 383,
+ 385, 387, 388, 389, 393, 394, 417, 418, 395, 390,
+ 391, 396, 397, 398, 400, 401, 402, 403, 404, 405,
+ 408, 406, 409, 411, 412, 414, 441, 445, 446, 415,
+ 416, 419, 420, 421, 422, 489, 489, 423, 424, 425,
+ 426, 428, 482, 482, 429, 430, 447, 448, 431, 432,
+ 437, 438, 442, 443, 531, 444, 450, 366, 449, 451,
+ 494, 498, 502, 520, 365, 547, 549, 452, 453, 454,
+ 553, 557, 367, 567, 571, 572, 573, 579, 582, 578,
+ 458, 468, 581, 469, 584, 585, 594, 595, 660, 596,
+ 459, 600, 460, 601, 602, 561, 613, 612, 461, 616,
+ 615, 618, 462, 463, 619, 464, 465, 621, 622, 471,
+ 624, 625, 466, 626, 638, 645, 650, 467, 651, 659,
+ 546, 665, 693, 588, 666, 673, 675, 697, 524, 699,
+ 470, 610, 701, 703, 716, 339, 475, 493, 362, 628,
+ 627, 630, 637, 639, 642, 641, 413, 643, 629, 632,
+ 644, 631, 633, 634, 636, 407, 384, 654, 646, 647,
+ 635, 648, 661, 410, 386, 655, 662, 663, 668, 669,
+ 653, 656, 709, 392, 623, 657, 658, 670, 399, 674,
+ 652, 548, 698, 649, 691, 700, 702, 712, 717, 489,
+ 0, 0, 718, 0, 0, 0, 482, 0, 228, 147,
+ 0, 0, 210, 0, 0, 227, 229, 161, 0, 0,
+ 0, 0, 230, 148, 149, 150, 151, 0, 0, 0,
+ 0, 0, 0, 0, 0, 531, 0, 0, 0, 0,
+ 0, 0, 0, 167, 0, 0, 177, 0, 0, 192,
+ 0, 168, 0, 0, 178, 0, 0, 193, 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, 685, 0, 0, 0, 0, 0, 0,
+ 684, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 685, 0, 0, 0, 0, 0, 0, 684
+ };
+
+ const short int
+ Dhcp6Parser::yycheck_[] =
+ {
+ 58, 66, 13, 61, 62, 63, 64, 65, 66, 66,
+ 432, 61, 62, 63, 64, 66, 429, 61, 61, 61,
+ 61, 420, 421, 428, 5, 7, 7, 10, 9, 7,
+ 29, 30, 61, 432, 3, 29, 100, 101, 102, 8,
+ 22, 23, 24, 25, 0, 39, 7, 29, 15, 16,
+ 17, 18, 19, 20, 21, 3, 38, 56, 40, 3,
+ 8, 7, 6, 30, 46, 47, 48, 49, 50, 51,
+ 7, 100, 15, 15, 7, 57, 58, 19, 3, 57,
+ 3, 30, 64, 8, 100, 8, 3, 30, 7, 32,
+ 33, 8, 35, 36, 37, 363, 7, 11, 81, 13,
+ 14, 100, 3, 7, 87, 88, 100, 8, 22, 23,
+ 24, 25, 26, 27, 28, 29, 29, 100, 100, 100,
+ 101, 102, 103, 3, 7, 393, 394, 395, 8, 71,
+ 72, 73, 74, 100, 83, 12, 85, 86, 52, 53,
+ 54, 55, 55, 67, 68, 6, 59, 60, 61, 62,
+ 63, 100, 66, 7, 3, 69, 70, 100, 100, 8,
+ 3, 75, 76, 77, 3, 8, 80, 6, 30, 31,
+ 32, 33, 34, 3, 7, 574, 6, 3, 591, 29,
+ 3, 603, 8, 3, 589, 8, 100, 100, 8, 61,
+ 62, 41, 42, 43, 44, 45, 3, 255, 3, 3,
+ 3, 8, 6, 8, 603, 89, 90, 91, 92, 93,
+ 94, 95, 96, 97, 98, 99, 3, 3, 283, 3,
+ 8, 8, 8, 3, 8, 283, 3, 3, 8, 4,
+ 3, 8, 8, 283, 4, 246, 247, 295, 100, 3,
+ 298, 4, 6, 78, 79, 295, 4, 305, 298, 4,
+ 100, 295, 295, 295, 295, 305, 314, 4, 4, 4,
+ 8, 4, 327, 4, 314, 323, 4, 4, 4, 327,
+ 327, 3, 100, 8, 4, 4, 327, 8, 3, 101,
+ 4, 8, 3, 101, 4, 4, 4, 4, 4, 4,
+ 4, 101, 101, 101, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 101, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 103, 4, 101, 4, 4, 4,
+ 4, 4, 101, 4, 4, 4, 337, 338, 4, 101,
+ 101, 4, 4, 4, 4, 4, 101, 4, 4, 4,
+ 4, 103, 103, 4, 4, 4, 8, 100, 100, 7,
+ 7, 7, 7, 7, 5, 420, 421, 5, 5, 5,
+ 5, 5, 420, 421, 5, 5, 100, 100, 7, 7,
+ 7, 7, 3, 5, 432, 5, 5, 442, 100, 7,
+ 7, 7, 7, 7, 442, 4, 7, 100, 100, 100,
+ 7, 7, 442, 8, 4, 4, 4, 3, 3, 6,
+ 100, 412, 6, 414, 6, 3, 6, 3, 5, 4,
+ 100, 4, 100, 4, 4, 65, 3, 6, 100, 3,
+ 6, 6, 100, 100, 3, 100, 100, 8, 4, 82,
+ 4, 4, 100, 4, 6, 4, 4, 100, 4, 4,
+ 438, 8, 4, 512, 8, 8, 7, 4, 100, 4,
+ 415, 100, 5, 7, 4, 255, 419, 421, 279, 101,
+ 103, 574, 586, 589, 595, 593, 330, 101, 103, 579,
+ 597, 577, 580, 582, 585, 323, 295, 613, 101, 101,
+ 583, 101, 100, 327, 298, 614, 100, 100, 100, 100,
+ 611, 616, 84, 305, 565, 617, 619, 100, 314, 100,
+ 607, 442, 101, 603, 679, 695, 100, 707, 714, 574,
+ -1, -1, 100, -1, -1, -1, 574, -1, 583, 577,
+ -1, -1, 580, -1, -1, 583, 583, 577, -1, -1,
+ -1, -1, 583, 577, 577, 577, 577, -1, -1, -1,
+ -1, -1, -1, -1, -1, 603, -1, -1, -1, -1,
+ -1, -1, -1, 611, -1, -1, 614, -1, -1, 617,
+ -1, 611, -1, -1, 614, -1, -1, 617, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 678, -1, -1, -1, -1, -1, -1,
+ 678, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 695, -1, -1, -1, -1, -1, -1, 695
+ };
+
+ const unsigned short int
+ Dhcp6Parser::yystos_[] =
+ {
+ 0, 89, 90, 91, 92, 93, 94, 95, 96, 97,
+ 98, 99, 105, 106, 107, 108, 109, 110, 111, 112,
+ 113, 114, 115, 116, 0, 5, 7, 9, 100, 101,
+ 102, 103, 117, 118, 119, 123, 7, 130, 7, 136,
+ 7, 147, 7, 207, 7, 269, 7, 281, 7, 298,
+ 7, 229, 7, 252, 7, 189, 124, 120, 131, 137,
+ 148, 208, 270, 282, 299, 230, 253, 190, 117, 127,
+ 128, 100, 121, 122, 10, 81, 87, 88, 100, 129,
+ 132, 133, 134, 352, 354, 356, 11, 13, 14, 22,
+ 23, 24, 25, 26, 27, 28, 29, 52, 53, 54,
+ 55, 66, 69, 70, 75, 76, 77, 80, 129, 138,
+ 139, 140, 141, 142, 143, 144, 145, 151, 153, 170,
+ 176, 181, 183, 197, 201, 223, 246, 319, 329, 338,
+ 339, 342, 350, 12, 149, 7, 38, 40, 46, 47,
+ 48, 49, 50, 51, 57, 58, 64, 129, 140, 141,
+ 142, 143, 209, 210, 211, 213, 215, 217, 219, 221,
+ 222, 246, 263, 275, 292, 315, 39, 129, 246, 271,
+ 272, 273, 41, 42, 43, 44, 45, 129, 246, 283,
+ 284, 285, 287, 288, 290, 291, 55, 59, 60, 61,
+ 62, 63, 129, 246, 300, 301, 302, 303, 305, 307,
+ 309, 311, 313, 15, 30, 32, 33, 35, 36, 37,
+ 129, 157, 165, 231, 232, 233, 234, 235, 236, 237,
+ 238, 240, 242, 243, 245, 31, 34, 129, 165, 235,
+ 240, 254, 255, 256, 257, 258, 260, 261, 262, 67,
+ 68, 191, 192, 193, 195, 6, 3, 4, 8, 3,
+ 135, 357, 353, 355, 4, 3, 8, 146, 152, 154,
+ 4, 4, 4, 4, 4, 202, 224, 247, 171, 182,
+ 177, 320, 184, 198, 330, 4, 340, 343, 351, 3,
+ 8, 150, 8, 322, 264, 276, 212, 214, 216, 4,
+ 4, 220, 218, 293, 316, 3, 8, 274, 3, 8,
+ 286, 4, 289, 4, 4, 3, 8, 314, 304, 306,
+ 308, 310, 312, 8, 3, 158, 166, 4, 241, 239,
+ 244, 4, 8, 3, 259, 4, 8, 3, 194, 196,
+ 3, 8, 117, 117, 100, 4, 4, 4, 4, 133,
+ 4, 4, 4, 101, 101, 101, 101, 101, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4, 101, 4,
+ 4, 4, 139, 4, 56, 129, 165, 246, 323, 324,
+ 325, 326, 327, 4, 4, 4, 4, 4, 101, 103,
+ 4, 4, 4, 4, 210, 4, 272, 4, 101, 4,
+ 101, 101, 284, 4, 4, 4, 4, 4, 4, 302,
+ 4, 4, 101, 4, 4, 4, 103, 233, 4, 103,
+ 256, 4, 4, 192, 4, 7, 7, 117, 117, 7,
+ 7, 7, 5, 5, 5, 5, 5, 125, 5, 5,
+ 5, 7, 7, 100, 101, 102, 341, 7, 7, 125,
+ 328, 8, 3, 5, 5, 100, 100, 100, 100, 100,
+ 5, 7, 100, 100, 100, 125, 125, 125, 100, 100,
+ 100, 100, 100, 100, 100, 100, 100, 100, 117, 117,
+ 138, 82, 358, 359, 360, 149, 16, 17, 18, 19,
+ 20, 21, 129, 155, 156, 157, 159, 161, 163, 165,
+ 167, 168, 169, 155, 7, 203, 204, 205, 7, 225,
+ 226, 227, 7, 248, 249, 250, 61, 100, 172, 173,
+ 174, 175, 126, 62, 174, 178, 179, 180, 217, 321,
+ 7, 185, 186, 187, 100, 199, 200, 71, 72, 73,
+ 74, 129, 157, 167, 331, 332, 333, 334, 336, 337,
+ 78, 79, 344, 345, 346, 348, 122, 4, 325, 7,
+ 265, 266, 267, 7, 277, 278, 279, 7, 294, 295,
+ 296, 65, 317, 8, 361, 3, 8, 8, 160, 162,
+ 164, 4, 4, 4, 3, 8, 8, 206, 6, 3,
+ 228, 6, 3, 251, 6, 3, 3, 6, 127, 3,
+ 6, 3, 6, 188, 6, 3, 4, 3, 8, 335,
+ 4, 4, 4, 3, 8, 347, 349, 3, 8, 8,
+ 100, 268, 6, 3, 280, 6, 3, 297, 6, 3,
+ 318, 8, 4, 359, 4, 4, 4, 103, 101, 103,
+ 156, 209, 205, 231, 227, 254, 250, 173, 6, 179,
+ 217, 191, 187, 101, 200, 4, 101, 101, 101, 332,
+ 4, 4, 345, 271, 267, 283, 279, 300, 296, 4,
+ 5, 100, 100, 100, 8, 8, 8, 8, 100, 100,
+ 100, 8, 8, 8, 100, 7, 362, 363, 364, 3,
+ 6, 83, 85, 86, 129, 165, 365, 366, 367, 368,
+ 370, 363, 371, 4, 369, 3, 8, 4, 101, 4,
+ 366, 5, 100, 7, 372, 373, 374, 3, 6, 84,
+ 375, 376, 373, 377, 3, 8, 4, 376, 100
+ };
+
+ const unsigned short int
+ Dhcp6Parser::yyr1_[] =
+ {
+ 0, 104, 106, 105, 107, 105, 108, 105, 109, 105,
+ 110, 105, 111, 105, 112, 105, 113, 105, 114, 105,
+ 115, 105, 116, 105, 117, 117, 117, 117, 117, 117,
+ 117, 118, 120, 119, 121, 121, 122, 122, 124, 123,
+ 126, 125, 127, 127, 128, 128, 129, 131, 130, 132,
+ 132, 133, 133, 133, 133, 133, 135, 134, 137, 136,
+ 138, 138, 139, 139, 139, 139, 139, 139, 139, 139,
+ 139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
+ 139, 139, 139, 139, 139, 140, 141, 142, 143, 144,
+ 146, 145, 148, 147, 150, 149, 152, 151, 154, 153,
+ 155, 155, 156, 156, 156, 156, 156, 156, 156, 156,
+ 156, 158, 157, 160, 159, 162, 161, 164, 163, 166,
+ 165, 167, 168, 169, 171, 170, 172, 172, 173, 173,
+ 174, 175, 177, 176, 178, 178, 179, 179, 180, 182,
+ 181, 184, 183, 185, 185, 186, 186, 188, 187, 190,
+ 189, 191, 191, 192, 192, 194, 193, 196, 195, 198,
+ 197, 199, 199, 200, 202, 201, 203, 203, 204, 204,
+ 206, 205, 208, 207, 209, 209, 210, 210, 210, 210,
+ 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
+ 210, 210, 210, 212, 211, 214, 213, 216, 215, 218,
+ 217, 220, 219, 221, 222, 224, 223, 225, 225, 226,
+ 226, 228, 227, 230, 229, 231, 231, 232, 232, 233,
+ 233, 233, 233, 233, 233, 233, 233, 234, 235, 236,
+ 237, 239, 238, 241, 240, 242, 244, 243, 245, 247,
+ 246, 248, 248, 249, 249, 251, 250, 253, 252, 254,
+ 254, 255, 255, 256, 256, 256, 256, 256, 256, 257,
+ 259, 258, 260, 261, 262, 264, 263, 265, 265, 266,
+ 266, 268, 267, 270, 269, 271, 271, 272, 272, 272,
+ 274, 273, 276, 275, 277, 277, 278, 278, 280, 279,
+ 282, 281, 283, 283, 284, 284, 284, 284, 284, 284,
+ 284, 286, 285, 287, 289, 288, 290, 291, 293, 292,
+ 294, 294, 295, 295, 297, 296, 299, 298, 300, 300,
+ 301, 301, 302, 302, 302, 302, 302, 302, 302, 302,
+ 304, 303, 306, 305, 308, 307, 310, 309, 312, 311,
+ 314, 313, 316, 315, 318, 317, 320, 319, 321, 321,
+ 322, 217, 323, 323, 324, 324, 325, 325, 325, 325,
+ 326, 328, 327, 330, 329, 331, 331, 332, 332, 332,
+ 332, 332, 332, 332, 333, 335, 334, 336, 337, 338,
+ 340, 339, 341, 341, 341, 343, 342, 344, 344, 345,
+ 345, 347, 346, 349, 348, 351, 350, 353, 352, 355,
+ 354, 357, 356, 358, 358, 359, 361, 360, 362, 362,
+ 364, 363, 365, 365, 366, 366, 366, 366, 366, 367,
+ 369, 368, 371, 370, 372, 372, 374, 373, 375, 375,
+ 377, 376
+ };
+
+ const unsigned char
+ Dhcp6Parser::yyr2_[] =
+ {
+ 0, 2, 0, 3, 0, 3, 0, 3, 0, 3,
+ 0, 3, 0, 3, 0, 3, 0, 3, 0, 3,
+ 0, 3, 0, 3, 1, 1, 1, 1, 1, 1,
+ 1, 1, 0, 4, 0, 1, 3, 5, 0, 4,
+ 0, 4, 0, 1, 1, 3, 2, 0, 4, 1,
+ 3, 1, 1, 1, 1, 1, 0, 6, 0, 4,
+ 1, 3, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 3, 3, 3, 3, 3,
+ 0, 6, 0, 4, 0, 4, 0, 6, 0, 6,
+ 1, 3, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 0, 4, 0, 4, 0, 4, 0, 4, 0,
+ 4, 3, 3, 3, 0, 6, 1, 3, 1, 1,
+ 1, 1, 0, 6, 1, 3, 1, 1, 1, 0,
+ 4, 0, 6, 0, 1, 1, 3, 0, 4, 0,
+ 4, 1, 3, 1, 1, 0, 4, 0, 4, 0,
+ 6, 1, 3, 3, 0, 6, 0, 1, 1, 3,
+ 0, 4, 0, 4, 1, 3, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 0, 4, 0, 4, 0, 4, 0,
+ 4, 0, 4, 3, 3, 0, 6, 0, 1, 1,
+ 3, 0, 4, 0, 4, 0, 1, 1, 3, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 3, 1,
+ 1, 0, 4, 0, 4, 1, 0, 4, 3, 0,
+ 6, 0, 1, 1, 3, 0, 4, 0, 4, 0,
+ 1, 1, 3, 1, 1, 1, 1, 1, 1, 1,
+ 0, 4, 1, 1, 3, 0, 6, 0, 1, 1,
+ 3, 0, 4, 0, 4, 1, 3, 1, 1, 1,
+ 0, 4, 0, 6, 0, 1, 1, 3, 0, 4,
+ 0, 4, 1, 3, 1, 1, 1, 1, 1, 1,
+ 1, 0, 4, 3, 0, 4, 3, 3, 0, 6,
+ 0, 1, 1, 3, 0, 4, 0, 4, 0, 1,
+ 1, 3, 1, 1, 1, 1, 1, 1, 1, 1,
+ 0, 4, 0, 4, 0, 4, 0, 4, 0, 4,
+ 0, 4, 0, 6, 0, 4, 0, 6, 1, 3,
+ 0, 4, 0, 1, 1, 3, 1, 1, 1, 1,
+ 1, 0, 4, 0, 6, 1, 3, 1, 1, 1,
+ 1, 1, 1, 1, 3, 0, 4, 3, 3, 3,
+ 0, 4, 1, 1, 1, 0, 6, 1, 3, 1,
+ 1, 0, 4, 0, 4, 0, 6, 0, 4, 0,
+ 4, 0, 6, 1, 3, 1, 0, 6, 1, 3,
+ 0, 4, 1, 3, 1, 1, 1, 1, 1, 3,
+ 0, 4, 0, 6, 1, 3, 0, 4, 1, 3,
+ 0, 4
+ };
+
+
+
+ // YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
+ // First, the terminals, then, starting at \a yyntokens_, nonterminals.
+ const char*
+ const Dhcp6Parser::yytname_[] =
+ {
+ "\"end of file\"", "error", "$undefined", "\",\"", "\":\"", "\"[\"",
+ "\"]\"", "\"{\"", "\"}\"", "\"null\"", "\"Dhcp6\"",
+ "\"interfaces-config\"", "\"interfaces\"", "\"lease-database\"",
+ "\"hosts-database\"", "\"type\"", "\"user\"", "\"password\"", "\"host\"",
+ "\"persist\"", "\"lfc-interval\"", "\"readonly\"",
+ "\"preferred-lifetime\"", "\"valid-lifetime\"", "\"renew-timer\"",
+ "\"rebind-timer\"", "\"decline-probation-period\"", "\"subnet6\"",
+ "\"option-def\"", "\"option-data\"", "\"name\"", "\"data\"", "\"code\"",
+ "\"space\"", "\"csv-format\"", "\"record-types\"", "\"encapsulate\"",
+ "\"array\"", "\"pools\"", "\"pool\"", "\"pd-pools\"", "\"prefix\"",
+ "\"prefix-len\"", "\"excluded-prefix\"", "\"excluded-prefix-len\"",
+ "\"delegated-len\"", "\"subnet\"", "\"interface\"", "\"interface-id\"",
+ "\"id\"", "\"rapid-commit\"", "\"reservation-mode\"", "\"mac-sources\"",
+ "\"relay-supplied-options\"", "\"host-reservation-identifiers\"",
+ "\"client-classes\"", "\"test\"", "\"client-class\"", "\"reservations\"",
+ "\"ip-addresses\"", "\"prefixes\"", "\"duid\"", "\"hw-address\"",
+ "\"hostname\"", "\"relay\"", "\"ip-address\"", "\"hooks-libraries\"",
+ "\"library\"", "\"parameters\"", "\"expired-leases-processing\"",
+ "\"server-id\"", "\"identifier\"", "\"htype\"", "\"time\"",
+ "\"enterprise-id\"", "\"dhcp4o6-port\"", "\"version\"",
+ "\"control-socket\"", "\"socket-type\"", "\"socket-name\"",
+ "\"dhcp-ddns\"", "\"Logging\"", "\"loggers\"", "\"output_options\"",
+ "\"output\"", "\"debuglevel\"", "\"severity\"", "\"Dhcp4\"",
+ "\"DhcpDdns\"", "TOPLEVEL_JSON", "TOPLEVEL_DHCP6", "SUB_DHCP6",
+ "SUB_INTERFACES6", "SUB_SUBNET6", "SUB_POOL6", "SUB_PD_POOL",
+ "SUB_RESERVATION", "SUB_OPTION_DEF", "SUB_OPTION_DATA",
+ "SUB_HOOKS_LIBRARY", "\"constant string\"", "\"integer\"",
+ "\"floating point\"", "\"boolean\"", "$accept", "start", "$@1", "$@2",
+ "$@3", "$@4", "$@5", "$@6", "$@7", "$@8", "$@9", "$@10", "$@11", "value",
+ "sub_json", "map2", "$@12", "map_content", "not_empty_map",
+ "list_generic", "$@13", "list2", "$@14", "list_content",
+ "not_empty_list", "unknown_map_entry", "syntax_map", "$@15",
+ "global_objects", "global_object", "dhcp6_object", "$@16", "sub_dhcp6",
+ "$@17", "global_params", "global_param", "preferred_lifetime",
+ "valid_lifetime", "renew_timer", "rebind_timer",
+ "decline_probation_period", "interfaces_config", "$@18",
+ "sub_interfaces6", "$@19", "interface_config_map", "$@20",
+ "lease_database", "$@21", "hosts_database", "$@22",
+ "database_map_params", "database_map_param", "type", "$@23", "user",
+ "$@24", "password", "$@25", "host", "$@26", "name", "$@27", "persist",
+ "lfc_interval", "readonly", "mac_sources", "$@28", "mac_sources_list",
+ "mac_sources_value", "duid_id", "string_id",
+ "host_reservation_identifiers", "$@29",
+ "host_reservation_identifiers_list", "host_reservation_identifier",
+ "hw_address_id", "relay_supplied_options", "$@30", "hooks_libraries",
+ "$@31", "hooks_libraries_list", "not_empty_hooks_libraries_list",
+ "hooks_library", "$@32", "sub_hooks_library", "$@33", "hooks_params",
+ "hooks_param", "library", "$@34", "parameters", "$@35",
+ "expired_leases_processing", "$@36", "expired_leases_params",
+ "expired_leases_param", "subnet6_list", "$@37", "subnet6_list_content",
+ "not_empty_subnet6_list", "subnet6", "$@38", "sub_subnet6", "$@39",
+ "subnet6_params", "subnet6_param", "subnet", "$@40", "interface", "$@41",
+ "interface_id", "$@42", "client_class", "$@43", "reservation_mode",
+ "$@44", "id", "rapid_commit", "option_def_list", "$@45",
+ "option_def_list_content", "not_empty_option_def_list",
+ "option_def_entry", "$@46", "sub_option_def", "$@47",
+ "option_def_params", "not_empty_option_def_params", "option_def_param",
+ "option_def_name", "code", "option_def_code", "option_def_type",
+ "option_def_record_types", "$@48", "space", "$@49", "option_def_space",
+ "option_def_encapsulate", "$@50", "option_def_array", "option_data_list",
+ "$@51", "option_data_list_content", "not_empty_option_data_list",
+ "option_data_entry", "$@52", "sub_option_data", "$@53",
+ "option_data_params", "not_empty_option_data_params",
+ "option_data_param", "option_data_name", "option_data_data", "$@54",
+ "option_data_code", "option_data_space", "option_data_csv_format",
+ "pools_list", "$@55", "pools_list_content", "not_empty_pools_list",
+ "pool_list_entry", "$@56", "sub_pool6", "$@57", "pool_params",
+ "pool_param", "pool_entry", "$@58", "pd_pools_list", "$@59",
+ "pd_pools_list_content", "not_empty_pd_pools_list", "pd_pool_entry",
+ "$@60", "sub_pd_pool", "$@61", "pd_pool_params", "pd_pool_param",
+ "pd_prefix", "$@62", "pd_prefix_len", "excluded_prefix", "$@63",
+ "excluded_prefix_len", "pd_delegated_len", "reservations", "$@64",
+ "reservations_list", "not_empty_reservations_list", "reservation",
+ "$@65", "sub_reservation", "$@66", "reservation_params",
+ "not_empty_reservation_params", "reservation_param", "ip_addresses",
+ "$@67", "prefixes", "$@68", "duid", "$@69", "hw_address", "$@70",
+ "hostname", "$@71", "reservation_client_classes", "$@72", "relay",
+ "$@73", "relay_map", "$@74", "client_classes", "$@75",
+ "client_classes_list", "$@76", "client_class_params",
+ "not_empty_client_class_params", "client_class_param",
+ "client_class_name", "client_class_test", "$@77", "server_id", "$@78",
+ "server_id_params", "server_id_param", "htype", "identifier", "$@79",
+ "time", "enterprise_id", "dhcp4o6_port", "version", "$@80",
+ "version_value", "control_socket", "$@81", "control_socket_params",
+ "control_socket_param", "socket_type", "$@82", "socket_name", "$@83",
+ "dhcp_ddns", "$@84", "dhcp4_json_object", "$@85", "dhcpddns_json_object",
+ "$@86", "logging_object", "$@87", "logging_params", "logging_param",
+ "loggers", "$@88", "loggers_entries", "logger_entry", "$@89",
+ "logger_params", "logger_param", "debuglevel", "severity", "$@90",
+ "output_options_list", "$@91", "output_options_list_content",
+ "output_entry", "$@92", "output_params", "output_param", "$@93", YY_NULLPTR
+ };
+
+#if PARSER6_DEBUG
+ const unsigned short int
+ Dhcp6Parser::yyrline_[] =
+ {
+ 0, 200, 200, 200, 201, 201, 202, 202, 203, 203,
+ 204, 204, 205, 205, 206, 206, 207, 207, 208, 208,
+ 209, 209, 210, 210, 218, 219, 220, 221, 222, 223,
+ 224, 227, 232, 232, 244, 245, 248, 252, 259, 259,
+ 267, 267, 274, 275, 278, 282, 293, 303, 303, 315,
+ 316, 320, 321, 322, 323, 324, 327, 327, 344, 344,
+ 352, 353, 358, 359, 360, 361, 362, 363, 364, 365,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, 380, 383, 388, 393, 398, 403,
+ 408, 408, 418, 418, 426, 426, 436, 436, 446, 446,
+ 456, 457, 460, 461, 462, 463, 464, 465, 466, 467,
+ 468, 471, 471, 479, 479, 487, 487, 495, 495, 503,
+ 503, 511, 516, 521, 526, 526, 536, 537, 540, 541,
+ 544, 549, 554, 554, 564, 565, 568, 569, 572, 577,
+ 577, 587, 587, 597, 598, 601, 602, 605, 605, 613,
+ 613, 621, 622, 625, 626, 628, 628, 636, 636, 644,
+ 644, 654, 655, 661, 669, 669, 682, 683, 686, 687,
+ 694, 694, 717, 717, 726, 727, 731, 732, 733, 734,
+ 735, 736, 737, 738, 739, 740, 741, 742, 743, 744,
+ 745, 746, 747, 750, 750, 758, 758, 766, 766, 774,
+ 774, 782, 782, 790, 795, 804, 804, 816, 817, 820,
+ 821, 826, 826, 837, 837, 847, 848, 851, 852, 855,
+ 856, 857, 858, 859, 860, 861, 862, 865, 867, 872,
+ 874, 876, 876, 884, 884, 892, 894, 894, 902, 911,
+ 911, 923, 924, 929, 930, 935, 935, 946, 946, 957,
+ 958, 963, 964, 969, 970, 971, 972, 973, 974, 977,
+ 979, 979, 987, 989, 991, 999, 999, 1011, 1012, 1015,
+ 1016, 1019, 1019, 1027, 1027, 1035, 1036, 1039, 1040, 1041,
+ 1044, 1044, 1055, 1055, 1067, 1068, 1071, 1072, 1075, 1075,
+ 1083, 1083, 1091, 1092, 1095, 1096, 1097, 1098, 1099, 1100,
+ 1101, 1104, 1104, 1112, 1117, 1117, 1125, 1130, 1138, 1138,
+ 1148, 1149, 1152, 1153, 1156, 1156, 1164, 1164, 1172, 1173,
+ 1176, 1177, 1181, 1182, 1183, 1184, 1185, 1186, 1187, 1188,
+ 1191, 1191, 1201, 1201, 1211, 1211, 1219, 1219, 1227, 1227,
+ 1235, 1235, 1248, 1248, 1258, 1258, 1269, 1269, 1279, 1280,
+ 1283, 1283, 1291, 1292, 1295, 1296, 1299, 1300, 1301, 1302,
+ 1305, 1307, 1307, 1318, 1318, 1328, 1329, 1332, 1333, 1334,
+ 1335, 1336, 1337, 1338, 1341, 1346, 1346, 1354, 1359, 1366,
+ 1372, 1372, 1380, 1381, 1382, 1387, 1387, 1397, 1398, 1401,
+ 1402, 1405, 1405, 1413, 1413, 1423, 1423, 1435, 1435, 1442,
+ 1442, 1454, 1454, 1467, 1468, 1472, 1476, 1476, 1488, 1489,
+ 1493, 1493, 1501, 1502, 1505, 1506, 1507, 1508, 1509, 1512,
+ 1516, 1516, 1524, 1524, 1534, 1535, 1538, 1538, 1546, 1547,
+ 1550, 1550
+ };
+
+ // Print the state stack on the debug stream.
+ void
+ Dhcp6Parser::yystack_print_ ()
+ {
+ *yycdebug_ << "Stack now";
+ for (stack_type::const_iterator
+ i = yystack_.begin (),
+ i_end = yystack_.end ();
+ i != i_end; ++i)
+ *yycdebug_ << ' ' << i->state;
+ *yycdebug_ << std::endl;
+ }
+
+ // Report on the debug stream that the rule \a yyrule is going to be reduced.
+ void
+ Dhcp6Parser::yy_reduce_print_ (int yyrule)
+ {
+ unsigned int yylno = yyrline_[yyrule];
+ int yynrhs = yyr2_[yyrule];
+ // Print the symbols being reduced, and their result.
+ *yycdebug_ << "Reducing stack by rule " << yyrule - 1
+ << " (line " << yylno << "):" << std::endl;
+ // The symbols being reduced.
+ for (int yyi = 0; yyi < yynrhs; yyi++)
+ YY_SYMBOL_PRINT (" $" << yyi + 1 << " =",
+ yystack_[(yynrhs) - (yyi + 1)]);
+ }
+#endif // PARSER6_DEBUG
+
+
+#line 14 "dhcp6_parser.yy" // lalr1.cc:1167
+} } // isc::dhcp
+#line 3560 "dhcp6_parser.cc" // lalr1.cc:1167
+#line 1558 "dhcp6_parser.yy" // lalr1.cc:1168
+
+
+void
+isc::dhcp::Dhcp6Parser::error(const location_type& loc,
+ const std::string& what)
+{
+ ctx.error(loc, what);
+}
--- /dev/null
+// A Bison parser, made by GNU Bison 3.0.4.
+
+// Skeleton interface for Bison LALR(1) parsers in C++
+
+// Copyright (C) 2002-2015 Free Software Foundation, Inc.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+// As a special exception, you may create a larger work that contains
+// part or all of the Bison parser skeleton and distribute that work
+// under terms of your choice, so long as that work isn't itself a
+// parser generator using the skeleton or a modified version thereof
+// as a parser skeleton. Alternatively, if you modify or redistribute
+// the parser skeleton itself, you may (at your option) remove this
+// special exception, which will cause the skeleton and the resulting
+// Bison output files to be licensed under the GNU General Public
+// License without this special exception.
+
+// This special exception was added by the Free Software Foundation in
+// version 2.2 of Bison.
+
+/**
+ ** \file dhcp6_parser.h
+ ** Define the isc::dhcp::parser class.
+ */
+
+// C++ LALR(1) parser skeleton written by Akim Demaille.
+
+#ifndef YY_PARSER6_DHCP6_PARSER_H_INCLUDED
+# define YY_PARSER6_DHCP6_PARSER_H_INCLUDED
+// // "%code requires" blocks.
+#line 17 "dhcp6_parser.yy" // lalr1.cc:377
+
+#include <string>
+#include <cc/data.h>
+#include <dhcp/option.h>
+#include <boost/lexical_cast.hpp>
+#include <dhcp6/parser_context_decl.h>
+
+using namespace isc::dhcp;
+using namespace isc::data;
+using namespace std;
+
+#line 56 "dhcp6_parser.h" // lalr1.cc:377
+
+# include <cassert>
+# include <cstdlib> // std::abort
+# include <iostream>
+# include <stdexcept>
+# include <string>
+# include <vector>
+# include "stack.hh"
+# include "location.hh"
+#include <typeinfo>
+#ifndef YYASSERT
+# include <cassert>
+# define YYASSERT assert
+#endif
+
+
+#ifndef YY_ATTRIBUTE
+# if (defined __GNUC__ \
+ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
+ || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
+# define YY_ATTRIBUTE(Spec) __attribute__(Spec)
+# else
+# define YY_ATTRIBUTE(Spec) /* empty */
+# endif
+#endif
+
+#ifndef YY_ATTRIBUTE_PURE
+# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
+#endif
+
+#ifndef YY_ATTRIBUTE_UNUSED
+# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
+#endif
+
+#if !defined _Noreturn \
+ && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
+# if defined _MSC_VER && 1200 <= _MSC_VER
+# define _Noreturn __declspec (noreturn)
+# else
+# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
+# endif
+#endif
+
+/* Suppress unused-variable warnings by "using" E. */
+#if ! defined lint || defined __GNUC__
+# define YYUSE(E) ((void) (E))
+#else
+# define YYUSE(E) /* empty */
+#endif
+
+#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
+/* Suppress an incorrect diagnostic about yylval being uninitialized. */
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
+ _Pragma ("GCC diagnostic push") \
+ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
+ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
+# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
+ _Pragma ("GCC diagnostic pop")
+#else
+# define YY_INITIAL_VALUE(Value) Value
+#endif
+#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+# define YY_IGNORE_MAYBE_UNINITIALIZED_END
+#endif
+#ifndef YY_INITIAL_VALUE
+# define YY_INITIAL_VALUE(Value) /* Nothing. */
+#endif
+
+/* Debug traces. */
+#ifndef PARSER6_DEBUG
+# if defined YYDEBUG
+#if YYDEBUG
+# define PARSER6_DEBUG 1
+# else
+# define PARSER6_DEBUG 0
+# endif
+# else /* ! defined YYDEBUG */
+# define PARSER6_DEBUG 1
+# endif /* ! defined YYDEBUG */
+#endif /* ! defined PARSER6_DEBUG */
+
+#line 14 "dhcp6_parser.yy" // lalr1.cc:377
+namespace isc { namespace dhcp {
+#line 141 "dhcp6_parser.h" // lalr1.cc:377
+
+
+
+ /// A char[S] buffer to store and retrieve objects.
+ ///
+ /// Sort of a variant, but does not keep track of the nature
+ /// of the stored data, since that knowledge is available
+ /// via the current state.
+ template <size_t S>
+ struct variant
+ {
+ /// Type of *this.
+ typedef variant<S> self_type;
+
+ /// Empty construction.
+ variant ()
+ : yytypeid_ (YY_NULLPTR)
+ {}
+
+ /// Construct and fill.
+ template <typename T>
+ variant (const T& t)
+ : yytypeid_ (&typeid (T))
+ {
+ YYASSERT (sizeof (T) <= S);
+ new (yyas_<T> ()) T (t);
+ }
+
+ /// Destruction, allowed only if empty.
+ ~variant ()
+ {
+ YYASSERT (!yytypeid_);
+ }
+
+ /// Instantiate an empty \a T in here.
+ template <typename T>
+ T&
+ build ()
+ {
+ YYASSERT (!yytypeid_);
+ YYASSERT (sizeof (T) <= S);
+ yytypeid_ = & typeid (T);
+ return *new (yyas_<T> ()) T;
+ }
+
+ /// Instantiate a \a T in here from \a t.
+ template <typename T>
+ T&
+ build (const T& t)
+ {
+ YYASSERT (!yytypeid_);
+ YYASSERT (sizeof (T) <= S);
+ yytypeid_ = & typeid (T);
+ return *new (yyas_<T> ()) T (t);
+ }
+
+ /// Accessor to a built \a T.
+ template <typename T>
+ T&
+ as ()
+ {
+ YYASSERT (*yytypeid_ == typeid (T));
+ YYASSERT (sizeof (T) <= S);
+ return *yyas_<T> ();
+ }
+
+ /// Const accessor to a built \a T (for %printer).
+ template <typename T>
+ const T&
+ as () const
+ {
+ YYASSERT (*yytypeid_ == typeid (T));
+ YYASSERT (sizeof (T) <= S);
+ return *yyas_<T> ();
+ }
+
+ /// Swap the content with \a other, of same type.
+ ///
+ /// Both variants must be built beforehand, because swapping the actual
+ /// data requires reading it (with as()), and this is not possible on
+ /// unconstructed variants: it would require some dynamic testing, which
+ /// should not be the variant's responsability.
+ /// Swapping between built and (possibly) non-built is done with
+ /// variant::move ().
+ template <typename T>
+ void
+ swap (self_type& other)
+ {
+ YYASSERT (yytypeid_);
+ YYASSERT (*yytypeid_ == *other.yytypeid_);
+ std::swap (as<T> (), other.as<T> ());
+ }
+
+ /// Move the content of \a other to this.
+ ///
+ /// Destroys \a other.
+ template <typename T>
+ void
+ move (self_type& other)
+ {
+ build<T> ();
+ swap<T> (other);
+ other.destroy<T> ();
+ }
+
+ /// Copy the content of \a other to this.
+ template <typename T>
+ void
+ copy (const self_type& other)
+ {
+ build<T> (other.as<T> ());
+ }
+
+ /// Destroy the stored \a T.
+ template <typename T>
+ void
+ destroy ()
+ {
+ as<T> ().~T ();
+ yytypeid_ = YY_NULLPTR;
+ }
+
+ private:
+ /// Prohibit blind copies.
+ self_type& operator=(const self_type&);
+ variant (const self_type&);
+
+ /// Accessor to raw memory as \a T.
+ template <typename T>
+ T*
+ yyas_ ()
+ {
+ void *yyp = yybuffer_.yyraw;
+ return static_cast<T*> (yyp);
+ }
+
+ /// Const accessor to raw memory as \a T.
+ template <typename T>
+ const T*
+ yyas_ () const
+ {
+ const void *yyp = yybuffer_.yyraw;
+ return static_cast<const T*> (yyp);
+ }
+
+ union
+ {
+ /// Strongest alignment constraints.
+ long double yyalign_me;
+ /// A buffer large enough to store any of the semantic values.
+ char yyraw[S];
+ } yybuffer_;
+
+ /// Whether the content is built: if defined, the name of the stored type.
+ const std::type_info *yytypeid_;
+ };
+
+
+ /// A Bison parser.
+ class Dhcp6Parser
+ {
+ public:
+#ifndef PARSER6_STYPE
+ /// An auxiliary type to compute the largest semantic type.
+ union union_type
+ {
+ // value
+ // version_value
+ char dummy1[sizeof(ElementPtr)];
+
+ // "boolean"
+ char dummy2[sizeof(bool)];
+
+ // "floating point"
+ char dummy3[sizeof(double)];
+
+ // "integer"
+ char dummy4[sizeof(int64_t)];
+
+ // "constant string"
+ char dummy5[sizeof(std::string)];
+};
+
+ /// Symbol semantic values.
+ typedef variant<sizeof(union_type)> semantic_type;
+#else
+ typedef PARSER6_STYPE semantic_type;
+#endif
+ /// Symbol locations.
+ typedef location location_type;
+
+ /// Syntax errors thrown from user actions.
+ struct syntax_error : std::runtime_error
+ {
+ syntax_error (const location_type& l, const std::string& m);
+ location_type location;
+ };
+
+ /// Tokens.
+ struct token
+ {
+ enum yytokentype
+ {
+ TOKEN_END = 0,
+ TOKEN_COMMA = 258,
+ TOKEN_COLON = 259,
+ TOKEN_LSQUARE_BRACKET = 260,
+ TOKEN_RSQUARE_BRACKET = 261,
+ TOKEN_LCURLY_BRACKET = 262,
+ TOKEN_RCURLY_BRACKET = 263,
+ TOKEN_NULL_TYPE = 264,
+ TOKEN_DHCP6 = 265,
+ TOKEN_INTERFACES_CONFIG = 266,
+ TOKEN_INTERFACES = 267,
+ TOKEN_LEASE_DATABASE = 268,
+ TOKEN_HOSTS_DATABASE = 269,
+ TOKEN_TYPE = 270,
+ TOKEN_USER = 271,
+ TOKEN_PASSWORD = 272,
+ TOKEN_HOST = 273,
+ TOKEN_PERSIST = 274,
+ TOKEN_LFC_INTERVAL = 275,
+ TOKEN_READONLY = 276,
+ TOKEN_PREFERRED_LIFETIME = 277,
+ TOKEN_VALID_LIFETIME = 278,
+ TOKEN_RENEW_TIMER = 279,
+ TOKEN_REBIND_TIMER = 280,
+ TOKEN_DECLINE_PROBATION_PERIOD = 281,
+ TOKEN_SUBNET6 = 282,
+ TOKEN_OPTION_DEF = 283,
+ TOKEN_OPTION_DATA = 284,
+ TOKEN_NAME = 285,
+ TOKEN_DATA = 286,
+ TOKEN_CODE = 287,
+ TOKEN_SPACE = 288,
+ TOKEN_CSV_FORMAT = 289,
+ TOKEN_RECORD_TYPES = 290,
+ TOKEN_ENCAPSULATE = 291,
+ TOKEN_ARRAY = 292,
+ TOKEN_POOLS = 293,
+ TOKEN_POOL = 294,
+ TOKEN_PD_POOLS = 295,
+ TOKEN_PREFIX = 296,
+ TOKEN_PREFIX_LEN = 297,
+ TOKEN_EXCLUDED_PREFIX = 298,
+ TOKEN_EXCLUDED_PREFIX_LEN = 299,
+ TOKEN_DELEGATED_LEN = 300,
+ TOKEN_SUBNET = 301,
+ TOKEN_INTERFACE = 302,
+ TOKEN_INTERFACE_ID = 303,
+ TOKEN_ID = 304,
+ TOKEN_RAPID_COMMIT = 305,
+ TOKEN_RESERVATION_MODE = 306,
+ TOKEN_MAC_SOURCES = 307,
+ TOKEN_RELAY_SUPPLIED_OPTIONS = 308,
+ TOKEN_HOST_RESERVATION_IDENTIFIERS = 309,
+ TOKEN_CLIENT_CLASSES = 310,
+ TOKEN_TEST = 311,
+ TOKEN_CLIENT_CLASS = 312,
+ TOKEN_RESERVATIONS = 313,
+ TOKEN_IP_ADDRESSES = 314,
+ TOKEN_PREFIXES = 315,
+ TOKEN_DUID = 316,
+ TOKEN_HW_ADDRESS = 317,
+ TOKEN_HOSTNAME = 318,
+ TOKEN_RELAY = 319,
+ TOKEN_IP_ADDRESS = 320,
+ TOKEN_HOOKS_LIBRARIES = 321,
+ TOKEN_LIBRARY = 322,
+ TOKEN_PARAMETERS = 323,
+ TOKEN_EXPIRED_LEASES_PROCESSING = 324,
+ TOKEN_SERVER_ID = 325,
+ TOKEN_IDENTIFIER = 326,
+ TOKEN_HTYPE = 327,
+ TOKEN_TIME = 328,
+ TOKEN_ENTERPRISE_ID = 329,
+ TOKEN_DHCP4O6_PORT = 330,
+ TOKEN_VERSION = 331,
+ TOKEN_CONTROL_SOCKET = 332,
+ TOKEN_SOCKET_TYPE = 333,
+ TOKEN_SOCKET_NAME = 334,
+ TOKEN_DHCP_DDNS = 335,
+ TOKEN_LOGGING = 336,
+ TOKEN_LOGGERS = 337,
+ TOKEN_OUTPUT_OPTIONS = 338,
+ TOKEN_OUTPUT = 339,
+ TOKEN_DEBUGLEVEL = 340,
+ TOKEN_SEVERITY = 341,
+ TOKEN_DHCP4 = 342,
+ TOKEN_DHCPDDNS = 343,
+ TOKEN_TOPLEVEL_JSON = 344,
+ TOKEN_TOPLEVEL_DHCP6 = 345,
+ TOKEN_SUB_DHCP6 = 346,
+ TOKEN_SUB_INTERFACES6 = 347,
+ TOKEN_SUB_SUBNET6 = 348,
+ TOKEN_SUB_POOL6 = 349,
+ TOKEN_SUB_PD_POOL = 350,
+ TOKEN_SUB_RESERVATION = 351,
+ TOKEN_SUB_OPTION_DEF = 352,
+ TOKEN_SUB_OPTION_DATA = 353,
+ TOKEN_SUB_HOOKS_LIBRARY = 354,
+ TOKEN_STRING = 355,
+ TOKEN_INTEGER = 356,
+ TOKEN_FLOAT = 357,
+ TOKEN_BOOLEAN = 358
+ };
+ };
+
+ /// (External) token type, as returned by yylex.
+ typedef token::yytokentype token_type;
+
+ /// Symbol type: an internal symbol number.
+ typedef int symbol_number_type;
+
+ /// The symbol type number to denote an empty symbol.
+ enum { empty_symbol = -2 };
+
+ /// Internal symbol number for tokens (subsumed by symbol_number_type).
+ typedef unsigned char token_number_type;
+
+ /// A complete symbol.
+ ///
+ /// Expects its Base type to provide access to the symbol type
+ /// via type_get().
+ ///
+ /// Provide access to semantic value and location.
+ template <typename Base>
+ struct basic_symbol : Base
+ {
+ /// Alias to Base.
+ typedef Base super_type;
+
+ /// Default constructor.
+ basic_symbol ();
+
+ /// Copy constructor.
+ basic_symbol (const basic_symbol& other);
+
+ /// Constructor for valueless symbols, and symbols from each type.
+
+ basic_symbol (typename Base::kind_type t, const location_type& l);
+
+ basic_symbol (typename Base::kind_type t, const ElementPtr v, const location_type& l);
+
+ basic_symbol (typename Base::kind_type t, const bool v, const location_type& l);
+
+ basic_symbol (typename Base::kind_type t, const double v, const location_type& l);
+
+ basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l);
+
+ basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l);
+
+
+ /// Constructor for symbols with semantic value.
+ basic_symbol (typename Base::kind_type t,
+ const semantic_type& v,
+ const location_type& l);
+
+ /// Destroy the symbol.
+ ~basic_symbol ();
+
+ /// Destroy contents, and record that is empty.
+ void clear ();
+
+ /// Whether empty.
+ bool empty () const;
+
+ /// Destructive move, \a s is emptied into this.
+ void move (basic_symbol& s);
+
+ /// The semantic value.
+ semantic_type value;
+
+ /// The location.
+ location_type location;
+
+ private:
+ /// Assignment operator.
+ basic_symbol& operator= (const basic_symbol& other);
+ };
+
+ /// Type access provider for token (enum) based symbols.
+ struct by_type
+ {
+ /// Default constructor.
+ by_type ();
+
+ /// Copy constructor.
+ by_type (const by_type& other);
+
+ /// The symbol type as needed by the constructor.
+ typedef token_type kind_type;
+
+ /// Constructor from (external) token numbers.
+ by_type (kind_type t);
+
+ /// Record that this symbol is empty.
+ void clear ();
+
+ /// Steal the symbol type from \a that.
+ void move (by_type& that);
+
+ /// The (internal) type number (corresponding to \a type).
+ /// \a empty when empty.
+ symbol_number_type type_get () const;
+
+ /// The token.
+ token_type token () const;
+
+ /// The symbol type.
+ /// \a empty_symbol when empty.
+ /// An int, not token_number_type, to be able to store empty_symbol.
+ int type;
+ };
+
+ /// "External" symbols: returned by the scanner.
+ typedef basic_symbol<by_type> symbol_type;
+
+ // Symbol constructors declarations.
+ static inline
+ symbol_type
+ make_END (const location_type& l);
+
+ static inline
+ symbol_type
+ make_COMMA (const location_type& l);
+
+ static inline
+ symbol_type
+ make_COLON (const location_type& l);
+
+ static inline
+ symbol_type
+ make_LSQUARE_BRACKET (const location_type& l);
+
+ static inline
+ symbol_type
+ make_RSQUARE_BRACKET (const location_type& l);
+
+ static inline
+ symbol_type
+ make_LCURLY_BRACKET (const location_type& l);
+
+ static inline
+ symbol_type
+ make_RCURLY_BRACKET (const location_type& l);
+
+ static inline
+ symbol_type
+ make_NULL_TYPE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DHCP6 (const location_type& l);
+
+ static inline
+ symbol_type
+ make_INTERFACES_CONFIG (const location_type& l);
+
+ static inline
+ symbol_type
+ make_INTERFACES (const location_type& l);
+
+ static inline
+ symbol_type
+ make_LEASE_DATABASE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_HOSTS_DATABASE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_TYPE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_USER (const location_type& l);
+
+ static inline
+ symbol_type
+ make_PASSWORD (const location_type& l);
+
+ static inline
+ symbol_type
+ make_HOST (const location_type& l);
+
+ static inline
+ symbol_type
+ make_PERSIST (const location_type& l);
+
+ static inline
+ symbol_type
+ make_LFC_INTERVAL (const location_type& l);
+
+ static inline
+ symbol_type
+ make_READONLY (const location_type& l);
+
+ static inline
+ symbol_type
+ make_PREFERRED_LIFETIME (const location_type& l);
+
+ static inline
+ symbol_type
+ make_VALID_LIFETIME (const location_type& l);
+
+ static inline
+ symbol_type
+ make_RENEW_TIMER (const location_type& l);
+
+ static inline
+ symbol_type
+ make_REBIND_TIMER (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DECLINE_PROBATION_PERIOD (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUBNET6 (const location_type& l);
+
+ static inline
+ symbol_type
+ make_OPTION_DEF (const location_type& l);
+
+ static inline
+ symbol_type
+ make_OPTION_DATA (const location_type& l);
+
+ static inline
+ symbol_type
+ make_NAME (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DATA (const location_type& l);
+
+ static inline
+ symbol_type
+ make_CODE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SPACE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_CSV_FORMAT (const location_type& l);
+
+ static inline
+ symbol_type
+ make_RECORD_TYPES (const location_type& l);
+
+ static inline
+ symbol_type
+ make_ENCAPSULATE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_ARRAY (const location_type& l);
+
+ static inline
+ symbol_type
+ make_POOLS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_POOL (const location_type& l);
+
+ static inline
+ symbol_type
+ make_PD_POOLS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_PREFIX (const location_type& l);
+
+ static inline
+ symbol_type
+ make_PREFIX_LEN (const location_type& l);
+
+ static inline
+ symbol_type
+ make_EXCLUDED_PREFIX (const location_type& l);
+
+ static inline
+ symbol_type
+ make_EXCLUDED_PREFIX_LEN (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DELEGATED_LEN (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUBNET (const location_type& l);
+
+ static inline
+ symbol_type
+ make_INTERFACE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_INTERFACE_ID (const location_type& l);
+
+ static inline
+ symbol_type
+ make_ID (const location_type& l);
+
+ static inline
+ symbol_type
+ make_RAPID_COMMIT (const location_type& l);
+
+ static inline
+ symbol_type
+ make_RESERVATION_MODE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_MAC_SOURCES (const location_type& l);
+
+ static inline
+ symbol_type
+ make_RELAY_SUPPLIED_OPTIONS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_HOST_RESERVATION_IDENTIFIERS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_CLIENT_CLASSES (const location_type& l);
+
+ static inline
+ symbol_type
+ make_TEST (const location_type& l);
+
+ static inline
+ symbol_type
+ make_CLIENT_CLASS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_RESERVATIONS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_IP_ADDRESSES (const location_type& l);
+
+ static inline
+ symbol_type
+ make_PREFIXES (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DUID (const location_type& l);
+
+ static inline
+ symbol_type
+ make_HW_ADDRESS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_HOSTNAME (const location_type& l);
+
+ static inline
+ symbol_type
+ make_RELAY (const location_type& l);
+
+ static inline
+ symbol_type
+ make_IP_ADDRESS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_HOOKS_LIBRARIES (const location_type& l);
+
+ static inline
+ symbol_type
+ make_LIBRARY (const location_type& l);
+
+ static inline
+ symbol_type
+ make_PARAMETERS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_EXPIRED_LEASES_PROCESSING (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SERVER_ID (const location_type& l);
+
+ static inline
+ symbol_type
+ make_IDENTIFIER (const location_type& l);
+
+ static inline
+ symbol_type
+ make_HTYPE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_TIME (const location_type& l);
+
+ static inline
+ symbol_type
+ make_ENTERPRISE_ID (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DHCP4O6_PORT (const location_type& l);
+
+ static inline
+ symbol_type
+ make_VERSION (const location_type& l);
+
+ static inline
+ symbol_type
+ make_CONTROL_SOCKET (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SOCKET_TYPE (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SOCKET_NAME (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DHCP_DDNS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_LOGGING (const location_type& l);
+
+ static inline
+ symbol_type
+ make_LOGGERS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_OUTPUT_OPTIONS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_OUTPUT (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DEBUGLEVEL (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SEVERITY (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DHCP4 (const location_type& l);
+
+ static inline
+ symbol_type
+ make_DHCPDDNS (const location_type& l);
+
+ static inline
+ symbol_type
+ make_TOPLEVEL_JSON (const location_type& l);
+
+ static inline
+ symbol_type
+ make_TOPLEVEL_DHCP6 (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUB_DHCP6 (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUB_INTERFACES6 (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUB_SUBNET6 (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUB_POOL6 (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUB_PD_POOL (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUB_RESERVATION (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUB_OPTION_DEF (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUB_OPTION_DATA (const location_type& l);
+
+ static inline
+ symbol_type
+ make_SUB_HOOKS_LIBRARY (const location_type& l);
+
+ static inline
+ symbol_type
+ make_STRING (const std::string& v, const location_type& l);
+
+ static inline
+ symbol_type
+ make_INTEGER (const int64_t& v, const location_type& l);
+
+ static inline
+ symbol_type
+ make_FLOAT (const double& v, const location_type& l);
+
+ static inline
+ symbol_type
+ make_BOOLEAN (const bool& v, const location_type& l);
+
+
+ /// Build a parser object.
+ Dhcp6Parser (isc::dhcp::Parser6Context& ctx_yyarg);
+ virtual ~Dhcp6Parser ();
+
+ /// Parse.
+ /// \returns 0 iff parsing succeeded.
+ virtual int parse ();
+
+#if PARSER6_DEBUG
+ /// The current debugging stream.
+ std::ostream& debug_stream () const YY_ATTRIBUTE_PURE;
+ /// Set the current debugging stream.
+ void set_debug_stream (std::ostream &);
+
+ /// Type for debugging levels.
+ typedef int debug_level_type;
+ /// The current debugging level.
+ debug_level_type debug_level () const YY_ATTRIBUTE_PURE;
+ /// Set the current debugging level.
+ void set_debug_level (debug_level_type l);
+#endif
+
+ /// Report a syntax error.
+ /// \param loc where the syntax error is found.
+ /// \param msg a description of the syntax error.
+ virtual void error (const location_type& loc, const std::string& msg);
+
+ /// Report a syntax error.
+ void error (const syntax_error& err);
+
+ private:
+ /// This class is not copyable.
+ Dhcp6Parser (const Dhcp6Parser&);
+ Dhcp6Parser& operator= (const Dhcp6Parser&);
+
+ /// State numbers.
+ typedef int state_type;
+
+ /// Generate an error message.
+ /// \param yystate the state where the error occurred.
+ /// \param yyla the lookahead token.
+ virtual std::string yysyntax_error_ (state_type yystate,
+ const symbol_type& yyla) const;
+
+ /// Compute post-reduction state.
+ /// \param yystate the current state
+ /// \param yysym the nonterminal to push on the stack
+ state_type yy_lr_goto_state_ (state_type yystate, int yysym);
+
+ /// Whether the given \c yypact_ value indicates a defaulted state.
+ /// \param yyvalue the value to check
+ static bool yy_pact_value_is_default_ (int yyvalue);
+
+ /// Whether the given \c yytable_ value indicates a syntax error.
+ /// \param yyvalue the value to check
+ static bool yy_table_value_is_error_ (int yyvalue);
+
+ static const short int yypact_ninf_;
+ static const signed char yytable_ninf_;
+
+ /// Convert a scanner token number \a t to a symbol number.
+ static token_number_type yytranslate_ (token_type t);
+
+ // Tables.
+ // YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ // STATE-NUM.
+ static const short int yypact_[];
+
+ // YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
+ // Performed when YYTABLE does not specify something else to do. Zero
+ // means the default is an error.
+ static const unsigned short int yydefact_[];
+
+ // YYPGOTO[NTERM-NUM].
+ static const short int yypgoto_[];
+
+ // YYDEFGOTO[NTERM-NUM].
+ static const short int yydefgoto_[];
+
+ // YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
+ // positive, shift that token. If negative, reduce the rule whose
+ // number is the opposite. If YYTABLE_NINF, syntax error.
+ static const unsigned short int yytable_[];
+
+ static const short int yycheck_[];
+
+ // YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ // symbol of state STATE-NUM.
+ static const unsigned short int yystos_[];
+
+ // YYR1[YYN] -- Symbol number of symbol that rule YYN derives.
+ static const unsigned short int yyr1_[];
+
+ // YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.
+ static const unsigned char yyr2_[];
+
+
+ /// Convert the symbol name \a n to a form suitable for a diagnostic.
+ static std::string yytnamerr_ (const char *n);
+
+
+ /// For a symbol, its name in clear.
+ static const char* const yytname_[];
+#if PARSER6_DEBUG
+ // YYRLINE[YYN] -- Source line where rule number YYN was defined.
+ static const unsigned short int yyrline_[];
+ /// Report on the debug stream that the rule \a r is going to be reduced.
+ virtual void yy_reduce_print_ (int r);
+ /// Print the state stack on the debug stream.
+ virtual void yystack_print_ ();
+
+ // Debugging.
+ int yydebug_;
+ std::ostream* yycdebug_;
+
+ /// \brief Display a symbol type, value and location.
+ /// \param yyo The output stream.
+ /// \param yysym The symbol.
+ template <typename Base>
+ void yy_print_ (std::ostream& yyo, const basic_symbol<Base>& yysym) const;
+#endif
+
+ /// \brief Reclaim the memory associated to a symbol.
+ /// \param yymsg Why this token is reclaimed.
+ /// If null, print nothing.
+ /// \param yysym The symbol.
+ template <typename Base>
+ void yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const;
+
+ private:
+ /// Type access provider for state based symbols.
+ struct by_state
+ {
+ /// Default constructor.
+ by_state ();
+
+ /// The symbol type as needed by the constructor.
+ typedef state_type kind_type;
+
+ /// Constructor.
+ by_state (kind_type s);
+
+ /// Copy constructor.
+ by_state (const by_state& other);
+
+ /// Record that this symbol is empty.
+ void clear ();
+
+ /// Steal the symbol type from \a that.
+ void move (by_state& that);
+
+ /// The (internal) type number (corresponding to \a state).
+ /// \a empty_symbol when empty.
+ symbol_number_type type_get () const;
+
+ /// The state number used to denote an empty symbol.
+ enum { empty_state = -1 };
+
+ /// The state.
+ /// \a empty when empty.
+ state_type state;
+ };
+
+ /// "Internal" symbol: element of the stack.
+ struct stack_symbol_type : basic_symbol<by_state>
+ {
+ /// Superclass.
+ typedef basic_symbol<by_state> super_type;
+ /// Construct an empty symbol.
+ stack_symbol_type ();
+ /// Steal the contents from \a sym to build this.
+ stack_symbol_type (state_type s, symbol_type& sym);
+ /// Assignment, needed by push_back.
+ stack_symbol_type& operator= (const stack_symbol_type& that);
+ };
+
+ /// Stack type.
+ typedef stack<stack_symbol_type> stack_type;
+
+ /// The stack.
+ stack_type yystack_;
+
+ /// Push a new state on the stack.
+ /// \param m a debug message to display
+ /// if null, no trace is output.
+ /// \param s the symbol
+ /// \warning the contents of \a s.value is stolen.
+ void yypush_ (const char* m, stack_symbol_type& s);
+
+ /// Push a new look ahead token on the state on the stack.
+ /// \param m a debug message to display
+ /// if null, no trace is output.
+ /// \param s the state
+ /// \param sym the symbol (for its value and location).
+ /// \warning the contents of \a s.value is stolen.
+ void yypush_ (const char* m, state_type s, symbol_type& sym);
+
+ /// Pop \a n symbols the three stacks.
+ void yypop_ (unsigned int n = 1);
+
+ /// Constants.
+ enum
+ {
+ yyeof_ = 0,
+ yylast_ = 637, ///< Last index in yytable_.
+ yynnts_ = 274, ///< Number of nonterminal symbols.
+ yyfinal_ = 24, ///< Termination state number.
+ yyterror_ = 1,
+ yyerrcode_ = 256,
+ yyntokens_ = 104 ///< Number of tokens.
+ };
+
+
+ // User arguments.
+ isc::dhcp::Parser6Context& ctx;
+ };
+
+ // Symbol number corresponding to token number t.
+ inline
+ Dhcp6Parser::token_number_type
+ Dhcp6Parser::yytranslate_ (token_type t)
+ {
+ static
+ const token_number_type
+ translate_table[] =
+ {
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
+ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
+ 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
+ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
+ 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
+ 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
+ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
+ 95, 96, 97, 98, 99, 100, 101, 102, 103
+ };
+ const unsigned int user_token_number_max_ = 358;
+ const token_number_type undef_token_ = 2;
+
+ if (static_cast<int>(t) <= yyeof_)
+ return yyeof_;
+ else if (static_cast<unsigned int> (t) <= user_token_number_max_)
+ return translate_table[t];
+ else
+ return undef_token_;
+ }
+
+ inline
+ Dhcp6Parser::syntax_error::syntax_error (const location_type& l, const std::string& m)
+ : std::runtime_error (m)
+ , location (l)
+ {}
+
+ // basic_symbol.
+ template <typename Base>
+ inline
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol ()
+ : value ()
+ {}
+
+ template <typename Base>
+ inline
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (const basic_symbol& other)
+ : Base (other)
+ , value ()
+ , location (other.location)
+ {
+ switch (other.type_get ())
+ {
+ case 117: // value
+ case 341: // version_value
+ value.copy< ElementPtr > (other.value);
+ break;
+
+ case 103: // "boolean"
+ value.copy< bool > (other.value);
+ break;
+
+ case 102: // "floating point"
+ value.copy< double > (other.value);
+ break;
+
+ case 101: // "integer"
+ value.copy< int64_t > (other.value);
+ break;
+
+ case 100: // "constant string"
+ value.copy< std::string > (other.value);
+ break;
+
+ default:
+ break;
+ }
+
+ }
+
+
+ template <typename Base>
+ inline
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const semantic_type& v, const location_type& l)
+ : Base (t)
+ , value ()
+ , location (l)
+ {
+ (void) v;
+ switch (this->type_get ())
+ {
+ case 117: // value
+ case 341: // version_value
+ value.copy< ElementPtr > (v);
+ break;
+
+ case 103: // "boolean"
+ value.copy< bool > (v);
+ break;
+
+ case 102: // "floating point"
+ value.copy< double > (v);
+ break;
+
+ case 101: // "integer"
+ value.copy< int64_t > (v);
+ break;
+
+ case 100: // "constant string"
+ value.copy< std::string > (v);
+ break;
+
+ default:
+ break;
+ }
+}
+
+
+ // Implementation of basic_symbol constructor for each type.
+
+ template <typename Base>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
+ : Base (t)
+ , value ()
+ , location (l)
+ {}
+
+ template <typename Base>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+
+ template <typename Base>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+
+ template <typename Base>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const double v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+
+ template <typename Base>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+
+ template <typename Base>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+
+
+ template <typename Base>
+ inline
+ Dhcp6Parser::basic_symbol<Base>::~basic_symbol ()
+ {
+ clear ();
+ }
+
+ template <typename Base>
+ inline
+ void
+ Dhcp6Parser::basic_symbol<Base>::clear ()
+ {
+ // User destructor.
+ symbol_number_type yytype = this->type_get ();
+ basic_symbol<Base>& yysym = *this;
+ (void) yysym;
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+
+ // Type destructor.
+ switch (yytype)
+ {
+ case 117: // value
+ case 341: // version_value
+ value.template destroy< ElementPtr > ();
+ break;
+
+ case 103: // "boolean"
+ value.template destroy< bool > ();
+ break;
+
+ case 102: // "floating point"
+ value.template destroy< double > ();
+ break;
+
+ case 101: // "integer"
+ value.template destroy< int64_t > ();
+ break;
+
+ case 100: // "constant string"
+ value.template destroy< std::string > ();
+ break;
+
+ default:
+ break;
+ }
+
+ Base::clear ();
+ }
+
+ template <typename Base>
+ inline
+ bool
+ Dhcp6Parser::basic_symbol<Base>::empty () const
+ {
+ return Base::type_get () == empty_symbol;
+ }
+
+ template <typename Base>
+ inline
+ void
+ Dhcp6Parser::basic_symbol<Base>::move (basic_symbol& s)
+ {
+ super_type::move(s);
+ switch (this->type_get ())
+ {
+ case 117: // value
+ case 341: // version_value
+ value.move< ElementPtr > (s.value);
+ break;
+
+ case 103: // "boolean"
+ value.move< bool > (s.value);
+ break;
+
+ case 102: // "floating point"
+ value.move< double > (s.value);
+ break;
+
+ case 101: // "integer"
+ value.move< int64_t > (s.value);
+ break;
+
+ case 100: // "constant string"
+ value.move< std::string > (s.value);
+ break;
+
+ default:
+ break;
+ }
+
+ location = s.location;
+ }
+
+ // by_type.
+ inline
+ Dhcp6Parser::by_type::by_type ()
+ : type (empty_symbol)
+ {}
+
+ inline
+ Dhcp6Parser::by_type::by_type (const by_type& other)
+ : type (other.type)
+ {}
+
+ inline
+ Dhcp6Parser::by_type::by_type (token_type t)
+ : type (yytranslate_ (t))
+ {}
+
+ inline
+ void
+ Dhcp6Parser::by_type::clear ()
+ {
+ type = empty_symbol;
+ }
+
+ inline
+ void
+ Dhcp6Parser::by_type::move (by_type& that)
+ {
+ type = that.type;
+ that.clear ();
+ }
+
+ inline
+ int
+ Dhcp6Parser::by_type::type_get () const
+ {
+ return type;
+ }
+
+ inline
+ Dhcp6Parser::token_type
+ Dhcp6Parser::by_type::token () const
+ {
+ // YYTOKNUM[NUM] -- (External) token number corresponding to the
+ // (internal) symbol number NUM (which must be that of a token). */
+ static
+ const unsigned short int
+ yytoken_number_[] =
+ {
+ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
+ 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
+ 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
+ 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
+ 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
+ 355, 356, 357, 358
+ };
+ return static_cast<token_type> (yytoken_number_[type]);
+ }
+ // Implementation of make_symbol for each symbol type.
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_END (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_END, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_COMMA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_COMMA, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_COLON (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_COLON, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_LSQUARE_BRACKET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LSQUARE_BRACKET, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_RSQUARE_BRACKET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RSQUARE_BRACKET, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_LCURLY_BRACKET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LCURLY_BRACKET, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_RCURLY_BRACKET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RCURLY_BRACKET, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_NULL_TYPE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NULL_TYPE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DHCP6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP6, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_INTERFACES_CONFIG (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTERFACES_CONFIG, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_INTERFACES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTERFACES, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_LEASE_DATABASE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LEASE_DATABASE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_HOSTS_DATABASE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTS_DATABASE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_TYPE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TYPE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_USER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_USER, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_PASSWORD (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PASSWORD, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_HOST (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOST, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_PERSIST (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PERSIST, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_LFC_INTERVAL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LFC_INTERVAL, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_READONLY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_READONLY, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_PREFERRED_LIFETIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PREFERRED_LIFETIME, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_VALID_LIFETIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_VALID_LIFETIME, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_RENEW_TIMER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RENEW_TIMER, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_REBIND_TIMER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_REBIND_TIMER, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DECLINE_PROBATION_PERIOD (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUBNET6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBNET6, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_OPTION_DEF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DEF, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_OPTION_DATA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DATA, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_NAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NAME, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DATA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DATA, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_CODE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CODE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SPACE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SPACE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_CSV_FORMAT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CSV_FORMAT, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_RECORD_TYPES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RECORD_TYPES, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_ENCAPSULATE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ENCAPSULATE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_ARRAY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ARRAY, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_POOLS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_POOLS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_POOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_POOL, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_PD_POOLS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PD_POOLS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_PREFIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PREFIX, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_PREFIX_LEN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PREFIX_LEN, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_EXCLUDED_PREFIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EXCLUDED_PREFIX, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_EXCLUDED_PREFIX_LEN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EXCLUDED_PREFIX_LEN, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DELEGATED_LEN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DELEGATED_LEN, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUBNET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBNET, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_INTERFACE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTERFACE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_INTERFACE_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTERFACE_ID, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ID, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_RAPID_COMMIT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RAPID_COMMIT, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_RESERVATION_MODE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RESERVATION_MODE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_MAC_SOURCES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAC_SOURCES, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_RELAY_SUPPLIED_OPTIONS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RELAY_SUPPLIED_OPTIONS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_HOST_RESERVATION_IDENTIFIERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_CLIENT_CLASSES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASSES, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_TEST (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TEST, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_CLIENT_CLASS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_RESERVATIONS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RESERVATIONS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_IP_ADDRESSES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESSES, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_PREFIXES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PREFIXES, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DUID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DUID, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_HW_ADDRESS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HW_ADDRESS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_HOSTNAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_RELAY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RELAY, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_IP_ADDRESS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_HOOKS_LIBRARIES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOOKS_LIBRARIES, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_LIBRARY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LIBRARY, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_PARAMETERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PARAMETERS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_EXPIRED_LEASES_PROCESSING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SERVER_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SERVER_ID, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_IDENTIFIER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IDENTIFIER, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_HTYPE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HTYPE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TIME, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_ENTERPRISE_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ENTERPRISE_ID, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DHCP4O6_PORT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP4O6_PORT, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_VERSION (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_VERSION, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_CONTROL_SOCKET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_SOCKET, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SOCKET_TYPE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_TYPE, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SOCKET_NAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_NAME, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DHCP_DDNS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP_DDNS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_LOGGING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LOGGING, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_LOGGERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LOGGERS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_OUTPUT_OPTIONS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT_OPTIONS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_OUTPUT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DEBUGLEVEL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DEBUGLEVEL, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SEVERITY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SEVERITY, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DHCP4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP4, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_DHCPDDNS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCPDDNS, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_TOPLEVEL_JSON (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_JSON, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_TOPLEVEL_DHCP6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_DHCP6, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUB_DHCP6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_DHCP6, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUB_INTERFACES6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_INTERFACES6, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUB_SUBNET6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_SUBNET6, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUB_POOL6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_POOL6, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUB_PD_POOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_PD_POOL, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUB_RESERVATION (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_RESERVATION, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUB_OPTION_DEF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DEF, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUB_OPTION_DATA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DATA, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_SUB_HOOKS_LIBRARY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_STRING (const std::string& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_STRING, v, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_INTEGER (const int64_t& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTEGER, v, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_FLOAT (const double& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_FLOAT, v, l);
+ }
+
+ Dhcp6Parser::symbol_type
+ Dhcp6Parser::make_BOOLEAN (const bool& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_BOOLEAN, v, l);
+ }
+
+
+#line 14 "dhcp6_parser.yy" // lalr1.cc:377
+} } // isc::dhcp
+#line 2151 "dhcp6_parser.h" // lalr1.cc:377
+
+
+
+
+#endif // !YY_PARSER6_DHCP6_PARSER_H_INCLUDED
--- /dev/null
+// A Bison parser, made by GNU Bison 3.0.4.
+
+// Locations for Bison parsers in C++
+
+// Copyright (C) 2002-2015 Free Software Foundation, Inc.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+// As a special exception, you may create a larger work that contains
+// part or all of the Bison parser skeleton and distribute that work
+// under terms of your choice, so long as that work isn't itself a
+// parser generator using the skeleton or a modified version thereof
+// as a parser skeleton. Alternatively, if you modify or redistribute
+// the parser skeleton itself, you may (at your option) remove this
+// special exception, which will cause the skeleton and the resulting
+// Bison output files to be licensed under the GNU General Public
+// License without this special exception.
+
+// This special exception was added by the Free Software Foundation in
+// version 2.2 of Bison.
+
+/**
+ ** \file location.hh
+ ** Define the isc::dhcp::location class.
+ */
+
+#ifndef YY_PARSER6_LOCATION_HH_INCLUDED
+# define YY_PARSER6_LOCATION_HH_INCLUDED
+
+# include "position.hh"
+
+#line 14 "dhcp6_parser.yy" // location.cc:296
+namespace isc { namespace dhcp {
+#line 46 "location.hh" // location.cc:296
+ /// Abstract a location.
+ class location
+ {
+ public:
+
+ /// Construct a location from \a b to \a e.
+ location (const position& b, const position& e)
+ : begin (b)
+ , end (e)
+ {
+ }
+
+ /// Construct a 0-width location in \a p.
+ explicit location (const position& p = position ())
+ : begin (p)
+ , end (p)
+ {
+ }
+
+ /// Construct a 0-width location in \a f, \a l, \a c.
+ explicit location (std::string* f,
+ unsigned int l = 1u,
+ unsigned int c = 1u)
+ : begin (f, l, c)
+ , end (f, l, c)
+ {
+ }
+
+
+ /// Initialization.
+ void initialize (std::string* f = YY_NULLPTR,
+ unsigned int l = 1u,
+ unsigned int c = 1u)
+ {
+ begin.initialize (f, l, c);
+ end = begin;
+ }
+
+ /** \name Line and Column related manipulators
+ ** \{ */
+ public:
+ /// Reset initial location to final location.
+ void step ()
+ {
+ begin = end;
+ }
+
+ /// Extend the current location to the COUNT next columns.
+ void columns (int count = 1)
+ {
+ end += count;
+ }
+
+ /// Extend the current location to the COUNT next lines.
+ void lines (int count = 1)
+ {
+ end.lines (count);
+ }
+ /** \} */
+
+
+ public:
+ /// Beginning of the located region.
+ position begin;
+ /// End of the located region.
+ position end;
+ };
+
+ /// Join two locations, in place.
+ inline location& operator+= (location& res, const location& end)
+ {
+ res.end = end.end;
+ return res;
+ }
+
+ /// Join two locations.
+ inline location operator+ (location res, const location& end)
+ {
+ return res += end;
+ }
+
+ /// Add \a width columns to the end position, in place.
+ inline location& operator+= (location& res, int width)
+ {
+ res.columns (width);
+ return res;
+ }
+
+ /// Add \a width columns to the end position.
+ inline location operator+ (location res, int width)
+ {
+ return res += width;
+ }
+
+ /// Subtract \a width columns to the end position, in place.
+ inline location& operator-= (location& res, int width)
+ {
+ return res += -width;
+ }
+
+ /// Subtract \a width columns to the end position.
+ inline location operator- (location res, int width)
+ {
+ return res -= width;
+ }
+
+ /// Compare two location objects.
+ inline bool
+ operator== (const location& loc1, const location& loc2)
+ {
+ return loc1.begin == loc2.begin && loc1.end == loc2.end;
+ }
+
+ /// Compare two location objects.
+ inline bool
+ operator!= (const location& loc1, const location& loc2)
+ {
+ return !(loc1 == loc2);
+ }
+
+ /** \brief Intercept output stream redirection.
+ ** \param ostr the destination output stream
+ ** \param loc a reference to the location to redirect
+ **
+ ** Avoid duplicate information.
+ */
+ template <typename YYChar>
+ inline std::basic_ostream<YYChar>&
+ operator<< (std::basic_ostream<YYChar>& ostr, const location& loc)
+ {
+ unsigned int end_col = 0 < loc.end.column ? loc.end.column - 1 : 0;
+ ostr << loc.begin;
+ if (loc.end.filename
+ && (!loc.begin.filename
+ || *loc.begin.filename != *loc.end.filename))
+ ostr << '-' << loc.end.filename << ':' << loc.end.line << '.' << end_col;
+ else if (loc.begin.line < loc.end.line)
+ ostr << '-' << loc.end.line << '.' << end_col;
+ else if (loc.begin.column < end_col)
+ ostr << '-' << end_col;
+ return ostr;
+ }
+
+#line 14 "dhcp6_parser.yy" // location.cc:296
+} } // isc::dhcp
+#line 192 "location.hh" // location.cc:296
+#endif // !YY_PARSER6_LOCATION_HH_INCLUDED
--- /dev/null
+// A Bison parser, made by GNU Bison 3.0.4.
+
+// Positions for Bison parsers in C++
+
+// Copyright (C) 2002-2015 Free Software Foundation, Inc.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+// As a special exception, you may create a larger work that contains
+// part or all of the Bison parser skeleton and distribute that work
+// under terms of your choice, so long as that work isn't itself a
+// parser generator using the skeleton or a modified version thereof
+// as a parser skeleton. Alternatively, if you modify or redistribute
+// the parser skeleton itself, you may (at your option) remove this
+// special exception, which will cause the skeleton and the resulting
+// Bison output files to be licensed under the GNU General Public
+// License without this special exception.
+
+// This special exception was added by the Free Software Foundation in
+// version 2.2 of Bison.
+
+/**
+ ** \file position.hh
+ ** Define the isc::dhcp::position class.
+ */
+
+#ifndef YY_PARSER6_POSITION_HH_INCLUDED
+# define YY_PARSER6_POSITION_HH_INCLUDED
+
+# include <algorithm> // std::max
+# include <iostream>
+# include <string>
+
+# ifndef YY_NULLPTR
+# if defined __cplusplus && 201103L <= __cplusplus
+# define YY_NULLPTR nullptr
+# else
+# define YY_NULLPTR 0
+# endif
+# endif
+
+#line 14 "dhcp6_parser.yy" // location.cc:296
+namespace isc { namespace dhcp {
+#line 56 "position.hh" // location.cc:296
+ /// Abstract a position.
+ class position
+ {
+ public:
+ /// Construct a position.
+ explicit position (std::string* f = YY_NULLPTR,
+ unsigned int l = 1u,
+ unsigned int c = 1u)
+ : filename (f)
+ , line (l)
+ , column (c)
+ {
+ }
+
+
+ /// Initialization.
+ void initialize (std::string* fn = YY_NULLPTR,
+ unsigned int l = 1u,
+ unsigned int c = 1u)
+ {
+ filename = fn;
+ line = l;
+ column = c;
+ }
+
+ /** \name Line and Column related manipulators
+ ** \{ */
+ /// (line related) Advance to the COUNT next lines.
+ void lines (int count = 1)
+ {
+ if (count)
+ {
+ column = 1u;
+ line = add_ (line, count, 1);
+ }
+ }
+
+ /// (column related) Advance to the COUNT next columns.
+ void columns (int count = 1)
+ {
+ column = add_ (column, count, 1);
+ }
+ /** \} */
+
+ /// File name to which this position refers.
+ std::string* filename;
+ /// Current line number.
+ unsigned int line;
+ /// Current column number.
+ unsigned int column;
+
+ private:
+ /// Compute max(min, lhs+rhs) (provided min <= lhs).
+ static unsigned int add_ (unsigned int lhs, int rhs, unsigned int min)
+ {
+ return (0 < rhs || -static_cast<unsigned int>(rhs) < lhs
+ ? rhs + lhs
+ : min);
+ }
+ };
+
+ /// Add \a width columns, in place.
+ inline position&
+ operator+= (position& res, int width)
+ {
+ res.columns (width);
+ return res;
+ }
+
+ /// Add \a width columns.
+ inline position
+ operator+ (position res, int width)
+ {
+ return res += width;
+ }
+
+ /// Subtract \a width columns, in place.
+ inline position&
+ operator-= (position& res, int width)
+ {
+ return res += -width;
+ }
+
+ /// Subtract \a width columns.
+ inline position
+ operator- (position res, int width)
+ {
+ return res -= width;
+ }
+
+ /// Compare two position objects.
+ inline bool
+ operator== (const position& pos1, const position& pos2)
+ {
+ return (pos1.line == pos2.line
+ && pos1.column == pos2.column
+ && (pos1.filename == pos2.filename
+ || (pos1.filename && pos2.filename
+ && *pos1.filename == *pos2.filename)));
+ }
+
+ /// Compare two position objects.
+ inline bool
+ operator!= (const position& pos1, const position& pos2)
+ {
+ return !(pos1 == pos2);
+ }
+
+ /** \brief Intercept output stream redirection.
+ ** \param ostr the destination output stream
+ ** \param pos a reference to the position to redirect
+ */
+ template <typename YYChar>
+ inline std::basic_ostream<YYChar>&
+ operator<< (std::basic_ostream<YYChar>& ostr, const position& pos)
+ {
+ if (pos.filename)
+ ostr << *pos.filename << ':';
+ return ostr << pos.line << '.' << pos.column;
+ }
+
+#line 14 "dhcp6_parser.yy" // location.cc:296
+} } // isc::dhcp
+#line 180 "position.hh" // location.cc:296
+#endif // !YY_PARSER6_POSITION_HH_INCLUDED
--- /dev/null
+// A Bison parser, made by GNU Bison 3.0.4.
+
+// Stack handling for Bison parsers in C++
+
+// Copyright (C) 2002-2015 Free Software Foundation, Inc.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+// As a special exception, you may create a larger work that contains
+// part or all of the Bison parser skeleton and distribute that work
+// under terms of your choice, so long as that work isn't itself a
+// parser generator using the skeleton or a modified version thereof
+// as a parser skeleton. Alternatively, if you modify or redistribute
+// the parser skeleton itself, you may (at your option) remove this
+// special exception, which will cause the skeleton and the resulting
+// Bison output files to be licensed under the GNU General Public
+// License without this special exception.
+
+// This special exception was added by the Free Software Foundation in
+// version 2.2 of Bison.
+
+/**
+ ** \file stack.hh
+ ** Define the isc::dhcp::stack class.
+ */
+
+#ifndef YY_PARSER6_STACK_HH_INCLUDED
+# define YY_PARSER6_STACK_HH_INCLUDED
+
+# include <vector>
+
+#line 14 "dhcp6_parser.yy" // stack.hh:132
+namespace isc { namespace dhcp {
+#line 46 "stack.hh" // stack.hh:132
+ template <class T, class S = std::vector<T> >
+ class stack
+ {
+ public:
+ // Hide our reversed order.
+ typedef typename S::reverse_iterator iterator;
+ typedef typename S::const_reverse_iterator const_iterator;
+
+ stack ()
+ : seq_ ()
+ {
+ seq_.reserve (200);
+ }
+
+ stack (unsigned int n)
+ : seq_ (n)
+ {}
+
+ inline
+ T&
+ operator[] (unsigned int i)
+ {
+ return seq_[seq_.size () - 1 - i];
+ }
+
+ inline
+ const T&
+ operator[] (unsigned int i) const
+ {
+ return seq_[seq_.size () - 1 - i];
+ }
+
+ /// Steal the contents of \a t.
+ ///
+ /// Close to move-semantics.
+ inline
+ void
+ push (T& t)
+ {
+ seq_.push_back (T());
+ operator[](0).move (t);
+ }
+
+ inline
+ void
+ pop (unsigned int n = 1)
+ {
+ for (; n; --n)
+ seq_.pop_back ();
+ }
+
+ void
+ clear ()
+ {
+ seq_.clear ();
+ }
+
+ inline
+ typename S::size_type
+ size () const
+ {
+ return seq_.size ();
+ }
+
+ inline
+ const_iterator
+ begin () const
+ {
+ return seq_.rbegin ();
+ }
+
+ inline
+ const_iterator
+ end () const
+ {
+ return seq_.rend ();
+ }
+
+ private:
+ stack (const stack&);
+ stack& operator= (const stack&);
+ /// The wrapped container.
+ S seq_;
+ };
+
+ /// Present a slice of the top of a stack.
+ template <class T, class S = stack<T> >
+ class slice
+ {
+ public:
+ slice (const S& stack, unsigned int range)
+ : stack_ (stack)
+ , range_ (range)
+ {}
+
+ inline
+ const T&
+ operator [] (unsigned int i) const
+ {
+ return stack_[range_ - i];
+ }
+
+ private:
+ const S& stack_;
+ unsigned int range_;
+ };
+
+#line 14 "dhcp6_parser.yy" // stack.hh:132
+} } // isc::dhcp
+#line 156 "stack.hh" // stack.hh:132
+
+#endif // !YY_PARSER6_STACK_HH_INCLUDED