From: Francis Dupont Date: Sat, 23 Mar 2019 14:44:46 +0000 (+0000) Subject: [master] regen flex/bison X-Git-Tag: Kea-1.6.0-beta~336 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=319f7709edb40d6c01390a34942b9d4a200b333e;p=thirdparty%2Fkea.git [master] regen flex/bison --- diff --git a/src/bin/dhcp4/dhcp4_lexer.cc b/src/bin/dhcp4/dhcp4_lexer.cc index 6c8c87747c..e5cebb5944 100644 --- a/src/bin/dhcp4/dhcp4_lexer.cc +++ b/src/bin/dhcp4/dhcp4_lexer.cc @@ -1,6 +1,6 @@ -#line 2 "dhcp4_lexer.cc" +#line 1 "dhcp4_lexer.cc" -#line 4 "dhcp4_lexer.cc" +#line 3 "dhcp4_lexer.cc" #define YY_INT_ALIGNED short int @@ -1794,7 +1794,7 @@ using namespace isc::dhcp; /* To avoid the call to exit... oops! */ #define YY_FATAL_ERROR(msg) isc::dhcp::Parser4Context::fatal(msg) -#line 1798 "dhcp4_lexer.cc" +#line 1797 "dhcp4_lexer.cc" /* 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 yywrap requires linking with -lfl, which provides the default yywrap @@ -1820,8 +1820,8 @@ using namespace isc::dhcp; by moving it ahead by yyleng bytes. yyleng specifies the length of the currently matched token. */ #define YY_USER_ACTION driver.loc_.columns(yyleng); +#line 1823 "dhcp4_lexer.cc" #line 1824 "dhcp4_lexer.cc" -#line 1825 "dhcp4_lexer.cc" #define INITIAL 0 #define COMMENT 1 @@ -2151,7 +2151,7 @@ YY_DECL } -#line 2155 "dhcp4_lexer.cc" +#line 2154 "dhcp4_lexer.cc" while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { @@ -4503,7 +4503,7 @@ YY_RULE_SETUP #line 1865 "dhcp4_lexer.ll" ECHO; YY_BREAK -#line 4507 "dhcp4_lexer.cc" +#line 4506 "dhcp4_lexer.cc" case YY_END_OF_BUFFER: { diff --git a/src/bin/dhcp4/dhcp4_parser.cc b/src/bin/dhcp4/dhcp4_parser.cc index b3a20a7e97..9d37d5db4a 100644 --- a/src/bin/dhcp4/dhcp4_parser.cc +++ b/src/bin/dhcp4/dhcp4_parser.cc @@ -1,8 +1,8 @@ -// A Bison parser, made by GNU Bison 3.0.4. +// A Bison parser, made by GNU Bison 3.3.2. // Skeleton implementation for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015 Free Software Foundation, Inc. +// Copyright (C) 2002-2015, 2018-2019 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 @@ -30,32 +30,24 @@ // This special exception was added by the Free Software Foundation in // version 2.2 of Bison. +// Undocumented macros, especially those whose name start with YY_, +// are private implementation details. Do not rely on them. + + // Take the name prefix into account. #define yylex parser4_lex -// First part of user declarations. - -#line 39 "dhcp4_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 "dhcp4_parser.h" -// User implementation prologue. -#line 53 "dhcp4_parser.cc" // lalr1.cc:412 // Unqualified %code blocks. -#line 34 "dhcp4_parser.yy" // lalr1.cc:413 +#line 34 "dhcp4_parser.yy" // lalr1.cc:435 #include -#line 59 "dhcp4_parser.cc" // lalr1.cc:413 +#line 51 "dhcp4_parser.cc" // lalr1.cc:435 #ifndef YY_ @@ -70,6 +62,15 @@ # endif #endif +// Whether we are compiled with exception support. +#ifndef YY_EXCEPTIONS +# if defined __GNUC__ && !defined __EXCEPTIONS +# define YY_EXCEPTIONS 0 +# else +# define YY_EXCEPTIONS 1 +# 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 @@ -87,7 +88,7 @@ { \ (Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \ } \ - while (/*CONSTCOND*/ false) + while (false) # endif @@ -106,7 +107,7 @@ { \ *yycdebug_ << Title << ' '; \ yy_print_ (*yycdebug_, Symbol); \ - *yycdebug_ << std::endl; \ + *yycdebug_ << '\n'; \ } \ } while (false) @@ -125,9 +126,9 @@ #else // !PARSER4_DEBUG # define YYCDEBUG if (false) std::cerr -# define YY_SYMBOL_PRINT(Title, Symbol) YYUSE(Symbol) -# define YY_REDUCE_PRINT(Rule) static_cast(0) -# define YY_STACK_PRINT() static_cast(0) +# define YY_SYMBOL_PRINT(Title, Symbol) YYUSE (Symbol) +# define YY_REDUCE_PRINT(Rule) static_cast (0) +# define YY_STACK_PRINT() static_cast (0) #endif // !PARSER4_DEBUG @@ -139,9 +140,9 @@ #define YYERROR goto yyerrorlab #define YYRECOVERING() (!!yyerrstatus_) -#line 14 "dhcp4_parser.yy" // lalr1.cc:479 +#line 14 "dhcp4_parser.yy" // lalr1.cc:510 namespace isc { namespace dhcp { -#line 145 "dhcp4_parser.cc" // lalr1.cc:479 +#line 146 "dhcp4_parser.cc" // lalr1.cc:510 /* Return YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is @@ -153,7 +154,7 @@ namespace isc { namespace dhcp { { if (*yystr == '"') { - std::string yyr = ""; + std::string yyr; char const *yyp = yystr; for (;;) @@ -166,7 +167,10 @@ namespace isc { namespace dhcp { case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; - // Fall through. + else + goto append; + + append: default: yyr += *yyp; break; @@ -194,6 +198,8 @@ namespace isc { namespace dhcp { Dhcp4Parser::~Dhcp4Parser () {} + Dhcp4Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW + {} /*---------------. | Symbol types. | @@ -202,24 +208,20 @@ namespace isc { namespace dhcp { // by_state. - inline - Dhcp4Parser::by_state::by_state () + Dhcp4Parser::by_state::by_state () YY_NOEXCEPT : state (empty_state) {} - inline - Dhcp4Parser::by_state::by_state (const by_state& other) - : state (other.state) + Dhcp4Parser::by_state::by_state (const by_state& that) YY_NOEXCEPT + : state (that.state) {} - inline void - Dhcp4Parser::by_state::clear () + Dhcp4Parser::by_state::clear () YY_NOEXCEPT { state = empty_state; } - inline void Dhcp4Parser::by_state::move (by_state& that) { @@ -227,14 +229,12 @@ namespace isc { namespace dhcp { that.clear (); } - inline - Dhcp4Parser::by_state::by_state (state_type s) + Dhcp4Parser::by_state::by_state (state_type s) YY_NOEXCEPT : state (s) {} - inline Dhcp4Parser::symbol_number_type - Dhcp4Parser::by_state::type_get () const + Dhcp4Parser::by_state::type_get () const YY_NOEXCEPT { if (state == empty_state) return empty_symbol; @@ -242,16 +242,55 @@ namespace isc { namespace dhcp { return yystos_[state]; } - inline Dhcp4Parser::stack_symbol_type::stack_symbol_type () {} + Dhcp4Parser::stack_symbol_type::stack_symbol_type (YY_RVREF (stack_symbol_type) that) + : super_type (YY_MOVE (that.state), YY_MOVE (that.location)) + { + switch (that.type_get ()) + { + case 190: // value + case 194: // map_value + case 238: // socket_type + case 241: // outbound_interface_value + case 263: // db_type + case 349: // hr_mode + case 498: // ncr_protocol_value + case 505: // replace_client_name_value + value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (that.value)); + break; + + case 173: // "boolean" + value.YY_MOVE_OR_COPY< bool > (YY_MOVE (that.value)); + break; + + case 172: // "floating point" + value.YY_MOVE_OR_COPY< double > (YY_MOVE (that.value)); + break; + + case 171: // "integer" + value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (that.value)); + break; + + case 170: // "constant string" + value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (that.value)); + break; - inline - Dhcp4Parser::stack_symbol_type::stack_symbol_type (state_type s, symbol_type& that) - : super_type (s, that.location) + default: + break; + } + +#if 201103L <= YY_CPLUSPLUS + // that is emptied. + that.state = empty_state; +#endif + } + + Dhcp4Parser::stack_symbol_type::stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) that) + : super_type (s, YY_MOVE (that.location)) { - switch (that.type_get ()) + switch (that.type_get ()) { case 190: // value case 194: // map_value @@ -261,23 +300,23 @@ namespace isc { namespace dhcp { case 349: // hr_mode case 498: // ncr_protocol_value case 505: // replace_client_name_value - value.move< ElementPtr > (that.value); + value.move< ElementPtr > (YY_MOVE (that.value)); break; case 173: // "boolean" - value.move< bool > (that.value); + value.move< bool > (YY_MOVE (that.value)); break; case 172: // "floating point" - value.move< double > (that.value); + value.move< double > (YY_MOVE (that.value)); break; case 171: // "integer" - value.move< int64_t > (that.value); + value.move< int64_t > (YY_MOVE (that.value)); break; case 170: // "constant string" - value.move< std::string > (that.value); + value.move< std::string > (YY_MOVE (that.value)); break; default: @@ -288,12 +327,12 @@ namespace isc { namespace dhcp { that.type = empty_symbol; } - inline +#if YY_CPLUSPLUS < 201103L Dhcp4Parser::stack_symbol_type& - Dhcp4Parser::stack_symbol_type::operator= (const stack_symbol_type& that) + Dhcp4Parser::stack_symbol_type::operator= (stack_symbol_type& that) { state = that.state; - switch (that.type_get ()) + switch (that.type_get ()) { case 190: // value case 194: // map_value @@ -303,23 +342,23 @@ namespace isc { namespace dhcp { case 349: // hr_mode case 498: // ncr_protocol_value case 505: // replace_client_name_value - value.copy< ElementPtr > (that.value); + value.move< ElementPtr > (that.value); break; case 173: // "boolean" - value.copy< bool > (that.value); + value.move< bool > (that.value); break; case 172: // "floating point" - value.copy< double > (that.value); + value.move< double > (that.value); break; case 171: // "integer" - value.copy< int64_t > (that.value); + value.move< int64_t > (that.value); break; case 170: // "constant string" - value.copy< std::string > (that.value); + value.move< std::string > (that.value); break; default: @@ -327,12 +366,13 @@ namespace isc { namespace dhcp { } location = that.location; + // that is emptied. + that.state = empty_state; return *this; } - +#endif template - inline void Dhcp4Parser::yy_destroy_ (const char* yymsg, basic_symbol& yysym) const { @@ -349,100 +389,89 @@ namespace isc { namespace dhcp { std::ostream& yyoutput = yyo; YYUSE (yyoutput); symbol_number_type yytype = yysym.type_get (); +#if defined __GNUC__ && ! defined __clang__ && ! defined __ICC && __GNUC__ * 100 + __GNUC_MINOR__ <= 408 // Avoid a (spurious) G++ 4.8 warning about "array subscript is // below array bounds". if (yysym.empty ()) std::abort (); +#endif yyo << (yytype < yyntokens_ ? "token" : "nterm") << ' ' << yytname_[yytype] << " (" << yysym.location << ": "; switch (yytype) { - case 170: // "constant string" - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< std::string > (); } -#line 366 "dhcp4_parser.cc" // lalr1.cc:636 + case 170: // "constant string" +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < std::string > (); } +#line 407 "dhcp4_parser.cc" // lalr1.cc:676 break; case 171: // "integer" - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< int64_t > (); } -#line 373 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < int64_t > (); } +#line 413 "dhcp4_parser.cc" // lalr1.cc:676 break; case 172: // "floating point" - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< double > (); } -#line 380 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < double > (); } +#line 419 "dhcp4_parser.cc" // lalr1.cc:676 break; case 173: // "boolean" - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< bool > (); } -#line 387 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < bool > (); } +#line 425 "dhcp4_parser.cc" // lalr1.cc:676 break; case 190: // value - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 394 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 431 "dhcp4_parser.cc" // lalr1.cc:676 break; case 194: // map_value - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 401 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 437 "dhcp4_parser.cc" // lalr1.cc:676 break; case 238: // socket_type - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 408 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 443 "dhcp4_parser.cc" // lalr1.cc:676 break; case 241: // outbound_interface_value - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 415 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 449 "dhcp4_parser.cc" // lalr1.cc:676 break; case 263: // db_type - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 422 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 455 "dhcp4_parser.cc" // lalr1.cc:676 break; case 349: // hr_mode - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 429 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 461 "dhcp4_parser.cc" // lalr1.cc:676 break; case 498: // ncr_protocol_value - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 436 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 467 "dhcp4_parser.cc" // lalr1.cc:676 break; case 505: // replace_client_name_value - -#line 250 "dhcp4_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 443 "dhcp4_parser.cc" // lalr1.cc:636 +#line 250 "dhcp4_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 473 "dhcp4_parser.cc" // lalr1.cc:676 break; - default: break; } @@ -450,26 +479,27 @@ namespace isc { namespace dhcp { } #endif - inline void - Dhcp4Parser::yypush_ (const char* m, state_type s, symbol_type& sym) + Dhcp4Parser::yypush_ (const char* m, YY_MOVE_REF (stack_symbol_type) sym) { - stack_symbol_type t (s, sym); - yypush_ (m, t); + if (m) + YY_SYMBOL_PRINT (m, sym); + yystack_.push (YY_MOVE (sym)); } - inline void - Dhcp4Parser::yypush_ (const char* m, stack_symbol_type& s) + Dhcp4Parser::yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym) { - if (m) - YY_SYMBOL_PRINT (m, s); - yystack_.push (s); +#if 201103L <= YY_CPLUSPLUS + yypush_ (m, stack_symbol_type (s, std::move (sym))); +#else + stack_symbol_type ss (s, sym); + yypush_ (m, ss); +#endif } - inline void - Dhcp4Parser::yypop_ (unsigned int n) + Dhcp4Parser::yypop_ (int n) { yystack_.pop (n); } @@ -501,7 +531,7 @@ namespace isc { namespace dhcp { } #endif // PARSER4_DEBUG - inline Dhcp4Parser::state_type + Dhcp4Parser::state_type Dhcp4Parser::yy_lr_goto_state_ (state_type yystate, int yysym) { int yyr = yypgoto_[yysym - yyntokens_] + yystate; @@ -511,18 +541,24 @@ namespace isc { namespace dhcp { return yydefgoto_[yysym - yyntokens_]; } - inline bool + bool Dhcp4Parser::yy_pact_value_is_default_ (int yyvalue) { return yyvalue == yypact_ninf_; } - inline bool + bool Dhcp4Parser::yy_table_value_is_error_ (int yyvalue) { return yyvalue == yytable_ninf_; } + int + Dhcp4Parser::operator() () + { + return parse (); + } + int Dhcp4Parser::parse () { @@ -544,11 +580,11 @@ namespace isc { namespace dhcp { /// 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. +#if YY_EXCEPTIONS try +#endif // YY_EXCEPTIONS { - YYCDEBUG << "Starting parse" << std::endl; + YYCDEBUG << "Starting parse\n"; /* Initialize the stack. The initial state will be set in @@ -556,21 +592,25 @@ namespace isc { namespace dhcp { location values to have been already stored, initialize these stacks with a primary value. */ yystack_.clear (); - yypush_ (YY_NULLPTR, 0, yyla); + yypush_ (YY_NULLPTR, 0, YY_MOVE (yyla)); - // A new symbol was pushed on the stack. + /*-----------------------------------------------. + | yynewstate -- push a new symbol on the stack. | + `-----------------------------------------------*/ yynewstate: - YYCDEBUG << "Entering state " << yystack_[0].state << std::endl; + YYCDEBUG << "Entering state " << yystack_[0].state << '\n'; // Accept? if (yystack_[0].state == yyfinal_) - goto yyacceptlab; + YYACCEPT; goto yybackup; - // Backup. - yybackup: + /*-----------. + | yybackup. | + `-----------*/ + yybackup: // Try to take a decision without lookahead. yyn = yypact_[yystack_[0].state]; if (yy_pact_value_is_default_ (yyn)) @@ -580,16 +620,21 @@ namespace isc { namespace dhcp { if (yyla.empty ()) { YYCDEBUG << "Reading a token: "; +#if YY_EXCEPTIONS try +#endif // YY_EXCEPTIONS { symbol_type yylookahead (yylex (ctx)); yyla.move (yylookahead); } +#if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); goto yyerrlab1; } +#endif // YY_EXCEPTIONS } YY_SYMBOL_PRINT ("Next token is", yyla); @@ -614,9 +659,10 @@ namespace isc { namespace dhcp { --yyerrstatus_; // Shift the lookahead token. - yypush_ ("Shifting", yyn, yyla); + yypush_ ("Shifting", yyn, YY_MOVE (yyla)); goto yynewstate; + /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ @@ -626,18 +672,19 @@ namespace isc { namespace dhcp { goto yyerrlab; goto yyreduce; + /*-----------------------------. - | yyreduce -- Do a reduction. | + | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: yylen = yyr2_[yyn]; { stack_symbol_type yylhs; - yylhs.state = yy_lr_goto_state_(yystack_[yylen].state, yyr1_[yyn]); + 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]) + switch (yyr1_[yyn]) { case 190: // value case 194: // map_value @@ -647,23 +694,23 @@ namespace isc { namespace dhcp { case 349: // hr_mode case 498: // ncr_protocol_value case 505: // replace_client_name_value - yylhs.value.build< ElementPtr > (); + yylhs.value.emplace< ElementPtr > (); break; case 173: // "boolean" - yylhs.value.build< bool > (); + yylhs.value.emplace< bool > (); break; case 172: // "floating point" - yylhs.value.build< double > (); + yylhs.value.emplace< double > (); break; case 171: // "integer" - yylhs.value.build< int64_t > (); + yylhs.value.emplace< int64_t > (); break; case 170: // "constant string" - yylhs.value.build< std::string > (); + yylhs.value.emplace< std::string > (); break; default: @@ -671,293 +718,296 @@ namespace isc { namespace dhcp { } - // Compute the default @$. + // Default location. { - slice slice (yystack_, yylen); - YYLLOC_DEFAULT (yylhs.location, slice, yylen); + stack_type::slice range (yystack_, yylen); + YYLLOC_DEFAULT (yylhs.location, range, yylen); + yyerror_range[1].location = yylhs.location; } // Perform the reduction. YY_REDUCE_PRINT (yyn); +#if YY_EXCEPTIONS try +#endif // YY_EXCEPTIONS { switch (yyn) { case 2: -#line 259 "dhcp4_parser.yy" // lalr1.cc:859 +#line 259 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.NO_KEYWORD; } -#line 690 "dhcp4_parser.cc" // lalr1.cc:859 +#line 740 "dhcp4_parser.cc" // lalr1.cc:919 break; case 4: -#line 260 "dhcp4_parser.yy" // lalr1.cc:859 +#line 260 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.CONFIG; } -#line 696 "dhcp4_parser.cc" // lalr1.cc:859 +#line 746 "dhcp4_parser.cc" // lalr1.cc:919 break; case 6: -#line 261 "dhcp4_parser.yy" // lalr1.cc:859 +#line 261 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.DHCP4; } -#line 702 "dhcp4_parser.cc" // lalr1.cc:859 +#line 752 "dhcp4_parser.cc" // lalr1.cc:919 break; case 8: -#line 262 "dhcp4_parser.yy" // lalr1.cc:859 +#line 262 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.INTERFACES_CONFIG; } -#line 708 "dhcp4_parser.cc" // lalr1.cc:859 +#line 758 "dhcp4_parser.cc" // lalr1.cc:919 break; case 10: -#line 263 "dhcp4_parser.yy" // lalr1.cc:859 +#line 263 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.SUBNET4; } -#line 714 "dhcp4_parser.cc" // lalr1.cc:859 +#line 764 "dhcp4_parser.cc" // lalr1.cc:919 break; case 12: -#line 264 "dhcp4_parser.yy" // lalr1.cc:859 +#line 264 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.POOLS; } -#line 720 "dhcp4_parser.cc" // lalr1.cc:859 +#line 770 "dhcp4_parser.cc" // lalr1.cc:919 break; case 14: -#line 265 "dhcp4_parser.yy" // lalr1.cc:859 +#line 265 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.RESERVATIONS; } -#line 726 "dhcp4_parser.cc" // lalr1.cc:859 +#line 776 "dhcp4_parser.cc" // lalr1.cc:919 break; case 16: -#line 266 "dhcp4_parser.yy" // lalr1.cc:859 +#line 266 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.DHCP4; } -#line 732 "dhcp4_parser.cc" // lalr1.cc:859 +#line 782 "dhcp4_parser.cc" // lalr1.cc:919 break; case 18: -#line 267 "dhcp4_parser.yy" // lalr1.cc:859 +#line 267 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.OPTION_DEF; } -#line 738 "dhcp4_parser.cc" // lalr1.cc:859 +#line 788 "dhcp4_parser.cc" // lalr1.cc:919 break; case 20: -#line 268 "dhcp4_parser.yy" // lalr1.cc:859 +#line 268 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.OPTION_DATA; } -#line 744 "dhcp4_parser.cc" // lalr1.cc:859 +#line 794 "dhcp4_parser.cc" // lalr1.cc:919 break; case 22: -#line 269 "dhcp4_parser.yy" // lalr1.cc:859 +#line 269 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.HOOKS_LIBRARIES; } -#line 750 "dhcp4_parser.cc" // lalr1.cc:859 +#line 800 "dhcp4_parser.cc" // lalr1.cc:919 break; case 24: -#line 270 "dhcp4_parser.yy" // lalr1.cc:859 +#line 270 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.DHCP_DDNS; } -#line 756 "dhcp4_parser.cc" // lalr1.cc:859 +#line 806 "dhcp4_parser.cc" // lalr1.cc:919 break; case 26: -#line 271 "dhcp4_parser.yy" // lalr1.cc:859 +#line 271 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.LOGGING; } -#line 762 "dhcp4_parser.cc" // lalr1.cc:859 +#line 812 "dhcp4_parser.cc" // lalr1.cc:919 break; case 28: -#line 272 "dhcp4_parser.yy" // lalr1.cc:859 +#line 272 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.CONFIG_CONTROL; } -#line 768 "dhcp4_parser.cc" // lalr1.cc:859 +#line 818 "dhcp4_parser.cc" // lalr1.cc:919 break; case 30: -#line 280 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); } -#line 774 "dhcp4_parser.cc" // lalr1.cc:859 +#line 280 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); } +#line 824 "dhcp4_parser.cc" // lalr1.cc:919 break; case 31: -#line 281 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); } -#line 780 "dhcp4_parser.cc" // lalr1.cc:859 +#line 281 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); } +#line 830 "dhcp4_parser.cc" // lalr1.cc:919 break; case 32: -#line 282 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); } -#line 786 "dhcp4_parser.cc" // lalr1.cc:859 +#line 282 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); } +#line 836 "dhcp4_parser.cc" // lalr1.cc:919 break; case 33: -#line 283 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); } -#line 792 "dhcp4_parser.cc" // lalr1.cc:859 +#line 283 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); } +#line 842 "dhcp4_parser.cc" // lalr1.cc:919 break; case 34: -#line 284 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } -#line 798 "dhcp4_parser.cc" // lalr1.cc:859 +#line 284 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } +#line 848 "dhcp4_parser.cc" // lalr1.cc:919 break; case 35: -#line 285 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 804 "dhcp4_parser.cc" // lalr1.cc:859 +#line 285 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 854 "dhcp4_parser.cc" // lalr1.cc:919 break; case 36: -#line 286 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 810 "dhcp4_parser.cc" // lalr1.cc:859 +#line 286 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 860 "dhcp4_parser.cc" // lalr1.cc:919 break; case 37: -#line 289 "dhcp4_parser.yy" // lalr1.cc:859 +#line 289 "dhcp4_parser.yy" // lalr1.cc:919 { // Push back the JSON value on the stack - ctx.stack_.push_back(yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.push_back(yystack_[0].value.as < ElementPtr > ()); } -#line 819 "dhcp4_parser.cc" // lalr1.cc:859 +#line 869 "dhcp4_parser.cc" // lalr1.cc:919 break; case 38: -#line 294 "dhcp4_parser.yy" // lalr1.cc:859 +#line 294 "dhcp4_parser.yy" // lalr1.cc:919 { // 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 830 "dhcp4_parser.cc" // lalr1.cc:859 +#line 880 "dhcp4_parser.cc" // lalr1.cc:919 break; case 39: -#line 299 "dhcp4_parser.yy" // lalr1.cc:859 +#line 299 "dhcp4_parser.yy" // lalr1.cc:919 { // 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 840 "dhcp4_parser.cc" // lalr1.cc:859 +#line 890 "dhcp4_parser.cc" // lalr1.cc:919 break; case 40: -#line 305 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 846 "dhcp4_parser.cc" // lalr1.cc:859 +#line 305 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 896 "dhcp4_parser.cc" // lalr1.cc:919 break; case 43: -#line 312 "dhcp4_parser.yy" // lalr1.cc:859 +#line 312 "dhcp4_parser.yy" // lalr1.cc:919 { // map containing a single entry - ctx.stack_.back()->set(yystack_[2].value.as< std::string > (), yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set(yystack_[2].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ()); } -#line 855 "dhcp4_parser.cc" // lalr1.cc:859 +#line 905 "dhcp4_parser.cc" // lalr1.cc:919 break; case 44: -#line 316 "dhcp4_parser.yy" // lalr1.cc:859 +#line 316 "dhcp4_parser.yy" // lalr1.cc:919 { // 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 > ()); + ctx.stack_.back()->set(yystack_[2].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ()); } -#line 865 "dhcp4_parser.cc" // lalr1.cc:859 +#line 915 "dhcp4_parser.cc" // lalr1.cc:919 break; case 45: -#line 323 "dhcp4_parser.yy" // lalr1.cc:859 +#line 323 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(l); } -#line 874 "dhcp4_parser.cc" // lalr1.cc:859 +#line 924 "dhcp4_parser.cc" // lalr1.cc:919 break; case 46: -#line 326 "dhcp4_parser.yy" // lalr1.cc:859 +#line 326 "dhcp4_parser.yy" // lalr1.cc:919 { // list parsing complete. Put any sanity checking here } -#line 882 "dhcp4_parser.cc" // lalr1.cc:859 +#line 932 "dhcp4_parser.cc" // lalr1.cc:919 break; case 49: -#line 334 "dhcp4_parser.yy" // lalr1.cc:859 +#line 334 "dhcp4_parser.yy" // lalr1.cc:919 { // List consisting of a single element. - ctx.stack_.back()->add(yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->add(yystack_[0].value.as < ElementPtr > ()); } -#line 891 "dhcp4_parser.cc" // lalr1.cc:859 +#line 941 "dhcp4_parser.cc" // lalr1.cc:919 break; case 50: -#line 338 "dhcp4_parser.yy" // lalr1.cc:859 +#line 338 "dhcp4_parser.yy" // lalr1.cc:919 { // List ending with , and a value. - ctx.stack_.back()->add(yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->add(yystack_[0].value.as < ElementPtr > ()); } -#line 900 "dhcp4_parser.cc" // lalr1.cc:859 +#line 950 "dhcp4_parser.cc" // lalr1.cc:919 break; case 51: -#line 345 "dhcp4_parser.yy" // lalr1.cc:859 +#line 345 "dhcp4_parser.yy" // lalr1.cc:919 { // List parsing about to start } -#line 908 "dhcp4_parser.cc" // lalr1.cc:859 +#line 958 "dhcp4_parser.cc" // lalr1.cc:919 break; case 52: -#line 347 "dhcp4_parser.yy" // lalr1.cc:859 +#line 347 "dhcp4_parser.yy" // lalr1.cc:919 { // list parsing complete. Put any sanity checking here //ctx.stack_.pop_back(); } -#line 917 "dhcp4_parser.cc" // lalr1.cc:859 +#line 967 "dhcp4_parser.cc" // lalr1.cc:919 break; case 55: -#line 356 "dhcp4_parser.yy" // lalr1.cc:859 +#line 356 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(s); } -#line 926 "dhcp4_parser.cc" // lalr1.cc:859 +#line 976 "dhcp4_parser.cc" // lalr1.cc:919 break; case 56: -#line 360 "dhcp4_parser.yy" // lalr1.cc:859 +#line 360 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(s); } -#line 935 "dhcp4_parser.cc" // lalr1.cc:859 +#line 985 "dhcp4_parser.cc" // lalr1.cc:919 break; case 57: -#line 371 "dhcp4_parser.yy" // lalr1.cc:859 +#line 371 "dhcp4_parser.yy" // lalr1.cc:919 { const std::string& where = ctx.contextName(); - const std::string& keyword = yystack_[1].value.as< std::string > (); + const std::string& keyword = yystack_[1].value.as < std::string > (); error(yystack_[1].location, "got unexpected keyword \"" + keyword + "\" in " + where + " map."); } -#line 946 "dhcp4_parser.cc" // lalr1.cc:859 +#line 996 "dhcp4_parser.cc" // lalr1.cc:919 break; case 58: -#line 381 "dhcp4_parser.yy" // lalr1.cc:859 +#line 381 "dhcp4_parser.yy" // lalr1.cc:919 { // 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 957 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1007 "dhcp4_parser.cc" // lalr1.cc:919 break; case 59: -#line 386 "dhcp4_parser.yy" // lalr1.cc:859 +#line 386 "dhcp4_parser.yy" // lalr1.cc:919 { // map parsing completed. If we ever want to do any wrap up // (maybe some sanity checking), this would be the best place @@ -966,11 +1016,11 @@ namespace isc { namespace dhcp { // Dhcp4 is required ctx.require("Dhcp4", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); } -#line 970 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1020 "dhcp4_parser.cc" // lalr1.cc:919 break; case 68: -#line 410 "dhcp4_parser.yy" // lalr1.cc:859 +#line 410 "dhcp4_parser.yy" // lalr1.cc:919 { // This code is executed when we're about to start parsing // the content of the map @@ -979,951 +1029,951 @@ namespace isc { namespace dhcp { ctx.stack_.push_back(m); ctx.enter(ctx.DHCP4); } -#line 983 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1033 "dhcp4_parser.cc" // lalr1.cc:919 break; case 69: -#line 417 "dhcp4_parser.yy" // lalr1.cc:859 +#line 417 "dhcp4_parser.yy" // lalr1.cc:919 { // No global parameter is required ctx.stack_.pop_back(); ctx.leave(); } -#line 993 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1043 "dhcp4_parser.cc" // lalr1.cc:919 break; case 70: -#line 425 "dhcp4_parser.yy" // lalr1.cc:859 +#line 425 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the Dhcp4 map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1003 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1053 "dhcp4_parser.cc" // lalr1.cc:919 break; case 71: -#line 429 "dhcp4_parser.yy" // lalr1.cc:859 +#line 429 "dhcp4_parser.yy" // lalr1.cc:919 { // No global parameter is required // parsing completed } -#line 1012 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1062 "dhcp4_parser.cc" // lalr1.cc:919 break; case 111: -#line 479 "dhcp4_parser.yy" // lalr1.cc:859 +#line 479 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("valid-lifetime", prf); } -#line 1021 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1071 "dhcp4_parser.cc" // lalr1.cc:919 break; case 112: -#line 484 "dhcp4_parser.yy" // lalr1.cc:859 +#line 484 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("renew-timer", prf); } -#line 1030 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1080 "dhcp4_parser.cc" // lalr1.cc:919 break; case 113: -#line 489 "dhcp4_parser.yy" // lalr1.cc:859 +#line 489 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("rebind-timer", prf); } -#line 1039 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1089 "dhcp4_parser.cc" // lalr1.cc:919 break; case 114: -#line 494 "dhcp4_parser.yy" // lalr1.cc:859 +#line 494 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr ctt(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr ctt(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("calculate-tee-times", ctt); } -#line 1048 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1098 "dhcp4_parser.cc" // lalr1.cc:919 break; case 115: -#line 499 "dhcp4_parser.yy" // lalr1.cc:859 +#line 499 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr t1(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr t1(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("t1-percent", t1); } -#line 1057 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1107 "dhcp4_parser.cc" // lalr1.cc:919 break; case 116: -#line 504 "dhcp4_parser.yy" // lalr1.cc:859 +#line 504 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr t2(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr t2(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("t2-percent", t2); } -#line 1066 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1116 "dhcp4_parser.cc" // lalr1.cc:919 break; case 117: -#line 509 "dhcp4_parser.yy" // lalr1.cc:859 +#line 509 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr dpp(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr dpp(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("decline-probation-period", dpp); } -#line 1075 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1125 "dhcp4_parser.cc" // lalr1.cc:919 break; case 118: -#line 514 "dhcp4_parser.yy" // lalr1.cc:859 +#line 514 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1083 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1133 "dhcp4_parser.cc" // lalr1.cc:919 break; case 119: -#line 516 "dhcp4_parser.yy" // lalr1.cc:859 +#line 516 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr stag(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr stag(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("server-tag", stag); ctx.leave(); } -#line 1093 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1143 "dhcp4_parser.cc" // lalr1.cc:919 break; case 120: -#line 522 "dhcp4_parser.yy" // lalr1.cc:859 +#line 522 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr echo(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr echo(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("echo-client-id", echo); } -#line 1102 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1152 "dhcp4_parser.cc" // lalr1.cc:919 break; case 121: -#line 527 "dhcp4_parser.yy" // lalr1.cc:859 +#line 527 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr match(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr match(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("match-client-id", match); } -#line 1111 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1161 "dhcp4_parser.cc" // lalr1.cc:919 break; case 122: -#line 532 "dhcp4_parser.yy" // lalr1.cc:859 +#line 532 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("authoritative", prf); } -#line 1120 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1170 "dhcp4_parser.cc" // lalr1.cc:919 break; case 123: -#line 538 "dhcp4_parser.yy" // lalr1.cc:859 +#line 538 "dhcp4_parser.yy" // lalr1.cc:919 { 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 1131 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1181 "dhcp4_parser.cc" // lalr1.cc:919 break; case 124: -#line 543 "dhcp4_parser.yy" // lalr1.cc:859 +#line 543 "dhcp4_parser.yy" // lalr1.cc:919 { // No interfaces config param is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1141 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1191 "dhcp4_parser.cc" // lalr1.cc:919 break; case 134: -#line 562 "dhcp4_parser.yy" // lalr1.cc:859 +#line 562 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the interfaces-config map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1151 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1201 "dhcp4_parser.cc" // lalr1.cc:919 break; case 135: -#line 566 "dhcp4_parser.yy" // lalr1.cc:859 +#line 566 "dhcp4_parser.yy" // lalr1.cc:919 { // No interfaces config param is required // parsing completed } -#line 1160 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1210 "dhcp4_parser.cc" // lalr1.cc:919 break; case 136: -#line 571 "dhcp4_parser.yy" // lalr1.cc:859 +#line 571 "dhcp4_parser.yy" // lalr1.cc:919 { 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 1171 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1221 "dhcp4_parser.cc" // lalr1.cc:919 break; case 137: -#line 576 "dhcp4_parser.yy" // lalr1.cc:859 +#line 576 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1180 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1230 "dhcp4_parser.cc" // lalr1.cc:919 break; case 138: -#line 581 "dhcp4_parser.yy" // lalr1.cc:859 +#line 581 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.DHCP_SOCKET_TYPE); } -#line 1188 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1238 "dhcp4_parser.cc" // lalr1.cc:919 break; case 139: -#line 583 "dhcp4_parser.yy" // lalr1.cc:859 +#line 583 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("dhcp-socket-type", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("dhcp-socket-type", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1197 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1247 "dhcp4_parser.cc" // lalr1.cc:919 break; case 140: -#line 588 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("raw", ctx.loc2pos(yystack_[0].location))); } -#line 1203 "dhcp4_parser.cc" // lalr1.cc:859 +#line 588 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("raw", ctx.loc2pos(yystack_[0].location))); } +#line 1253 "dhcp4_parser.cc" // lalr1.cc:919 break; case 141: -#line 589 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("udp", ctx.loc2pos(yystack_[0].location))); } -#line 1209 "dhcp4_parser.cc" // lalr1.cc:859 +#line 589 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("udp", ctx.loc2pos(yystack_[0].location))); } +#line 1259 "dhcp4_parser.cc" // lalr1.cc:919 break; case 142: -#line 592 "dhcp4_parser.yy" // lalr1.cc:859 +#line 592 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.OUTBOUND_INTERFACE); } -#line 1217 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1267 "dhcp4_parser.cc" // lalr1.cc:919 break; case 143: -#line 594 "dhcp4_parser.yy" // lalr1.cc:859 +#line 594 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("outbound-interface", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("outbound-interface", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1226 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1276 "dhcp4_parser.cc" // lalr1.cc:919 break; case 144: -#line 599 "dhcp4_parser.yy" // lalr1.cc:859 +#line 599 "dhcp4_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("same-as-inbound", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("same-as-inbound", ctx.loc2pos(yystack_[0].location))); } -#line 1234 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1284 "dhcp4_parser.cc" // lalr1.cc:919 break; case 145: -#line 601 "dhcp4_parser.yy" // lalr1.cc:859 +#line 601 "dhcp4_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("use-routing", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("use-routing", ctx.loc2pos(yystack_[0].location))); } -#line 1242 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1292 "dhcp4_parser.cc" // lalr1.cc:919 break; case 146: -#line 605 "dhcp4_parser.yy" // lalr1.cc:859 +#line 605 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("re-detect", b); } -#line 1251 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1301 "dhcp4_parser.cc" // lalr1.cc:919 break; case 147: -#line 611 "dhcp4_parser.yy" // lalr1.cc:859 +#line 611 "dhcp4_parser.yy" // lalr1.cc:919 { 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 1262 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1312 "dhcp4_parser.cc" // lalr1.cc:919 break; case 148: -#line 616 "dhcp4_parser.yy" // lalr1.cc:859 +#line 616 "dhcp4_parser.yy" // lalr1.cc:919 { // The type parameter is required ctx.require("type", ctx.loc2pos(yystack_[2].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); ctx.leave(); } -#line 1273 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1323 "dhcp4_parser.cc" // lalr1.cc:919 break; case 149: -#line 623 "dhcp4_parser.yy" // lalr1.cc:859 +#line 623 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("sanity-checks", m); ctx.stack_.push_back(m); ctx.enter(ctx.SANITY_CHECKS); } -#line 1284 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1334 "dhcp4_parser.cc" // lalr1.cc:919 break; case 150: -#line 628 "dhcp4_parser.yy" // lalr1.cc:859 +#line 628 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1293 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1343 "dhcp4_parser.cc" // lalr1.cc:919 break; case 154: -#line 638 "dhcp4_parser.yy" // lalr1.cc:859 +#line 638 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1301 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1351 "dhcp4_parser.cc" // lalr1.cc:919 break; case 155: -#line 640 "dhcp4_parser.yy" // lalr1.cc:859 +#line 640 "dhcp4_parser.yy" // lalr1.cc:919 { - if ( (string(yystack_[0].value.as< std::string > ()) == "none") || - (string(yystack_[0].value.as< std::string > ()) == "warn") || - (string(yystack_[0].value.as< std::string > ()) == "fix") || - (string(yystack_[0].value.as< std::string > ()) == "fix-del") || - (string(yystack_[0].value.as< std::string > ()) == "del")) { - ElementPtr user(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + if ( (string(yystack_[0].value.as < std::string > ()) == "none") || + (string(yystack_[0].value.as < std::string > ()) == "warn") || + (string(yystack_[0].value.as < std::string > ()) == "fix") || + (string(yystack_[0].value.as < std::string > ()) == "fix-del") || + (string(yystack_[0].value.as < std::string > ()) == "del")) { + ElementPtr user(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("lease-checks", user); ctx.leave(); } else { - error(yystack_[0].location, "Unsupported 'lease-checks value: " + string(yystack_[0].value.as< std::string > ()) + + error(yystack_[0].location, "Unsupported 'lease-checks value: " + string(yystack_[0].value.as < std::string > ()) + ", supported values are: none, warn, fix, fix-del, del"); } } -#line 1321 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1371 "dhcp4_parser.cc" // lalr1.cc:919 break; case 156: -#line 656 "dhcp4_parser.yy" // lalr1.cc:859 +#line 656 "dhcp4_parser.yy" // lalr1.cc:919 { 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 1332 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1382 "dhcp4_parser.cc" // lalr1.cc:919 break; case 157: -#line 661 "dhcp4_parser.yy" // lalr1.cc:859 +#line 661 "dhcp4_parser.yy" // lalr1.cc:919 { // The type parameter is required ctx.require("type", ctx.loc2pos(yystack_[2].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); ctx.leave(); } -#line 1343 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1393 "dhcp4_parser.cc" // lalr1.cc:919 break; case 158: -#line 668 "dhcp4_parser.yy" // lalr1.cc:859 +#line 668 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hosts-databases", l); ctx.stack_.push_back(l); ctx.enter(ctx.HOSTS_DATABASE); } -#line 1354 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1404 "dhcp4_parser.cc" // lalr1.cc:919 break; case 159: -#line 673 "dhcp4_parser.yy" // lalr1.cc:859 +#line 673 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1363 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1413 "dhcp4_parser.cc" // lalr1.cc:919 break; case 164: -#line 686 "dhcp4_parser.yy" // lalr1.cc:859 +#line 686 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1373 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1423 "dhcp4_parser.cc" // lalr1.cc:919 break; case 165: -#line 690 "dhcp4_parser.yy" // lalr1.cc:859 +#line 690 "dhcp4_parser.yy" // lalr1.cc:919 { // The type parameter is required ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1383 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1433 "dhcp4_parser.cc" // lalr1.cc:919 break; case 188: -#line 722 "dhcp4_parser.yy" // lalr1.cc:859 +#line 722 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.DATABASE_TYPE); } -#line 1391 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1441 "dhcp4_parser.cc" // lalr1.cc:919 break; case 189: -#line 724 "dhcp4_parser.yy" // lalr1.cc:859 +#line 724 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("type", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("type", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1400 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1450 "dhcp4_parser.cc" // lalr1.cc:919 break; case 190: -#line 729 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); } -#line 1406 "dhcp4_parser.cc" // lalr1.cc:859 +#line 729 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); } +#line 1456 "dhcp4_parser.cc" // lalr1.cc:919 break; case 191: -#line 730 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); } -#line 1412 "dhcp4_parser.cc" // lalr1.cc:859 +#line 730 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); } +#line 1462 "dhcp4_parser.cc" // lalr1.cc:919 break; case 192: -#line 731 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); } -#line 1418 "dhcp4_parser.cc" // lalr1.cc:859 +#line 731 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); } +#line 1468 "dhcp4_parser.cc" // lalr1.cc:919 break; case 193: -#line 732 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); } -#line 1424 "dhcp4_parser.cc" // lalr1.cc:859 +#line 732 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); } +#line 1474 "dhcp4_parser.cc" // lalr1.cc:919 break; case 194: -#line 735 "dhcp4_parser.yy" // lalr1.cc:859 +#line 735 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1432 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1482 "dhcp4_parser.cc" // lalr1.cc:919 break; case 195: -#line 737 "dhcp4_parser.yy" // lalr1.cc:859 +#line 737 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr user(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr user(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("user", user); ctx.leave(); } -#line 1442 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1492 "dhcp4_parser.cc" // lalr1.cc:919 break; case 196: -#line 743 "dhcp4_parser.yy" // lalr1.cc:859 +#line 743 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1450 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1500 "dhcp4_parser.cc" // lalr1.cc:919 break; case 197: -#line 745 "dhcp4_parser.yy" // lalr1.cc:859 +#line 745 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr pwd(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr pwd(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("password", pwd); ctx.leave(); } -#line 1460 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1510 "dhcp4_parser.cc" // lalr1.cc:919 break; case 198: -#line 751 "dhcp4_parser.yy" // lalr1.cc:859 +#line 751 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1468 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1518 "dhcp4_parser.cc" // lalr1.cc:919 break; case 199: -#line 753 "dhcp4_parser.yy" // lalr1.cc:859 +#line 753 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr h(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr h(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("host", h); ctx.leave(); } -#line 1478 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1528 "dhcp4_parser.cc" // lalr1.cc:919 break; case 200: -#line 759 "dhcp4_parser.yy" // lalr1.cc:859 +#line 759 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr p(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr p(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("port", p); } -#line 1487 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1537 "dhcp4_parser.cc" // lalr1.cc:919 break; case 201: -#line 764 "dhcp4_parser.yy" // lalr1.cc:859 +#line 764 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1495 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1545 "dhcp4_parser.cc" // lalr1.cc:919 break; case 202: -#line 766 "dhcp4_parser.yy" // lalr1.cc:859 +#line 766 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr name(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr name(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("name", name); ctx.leave(); } -#line 1505 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1555 "dhcp4_parser.cc" // lalr1.cc:919 break; case 203: -#line 772 "dhcp4_parser.yy" // lalr1.cc:859 +#line 772 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr n(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("persist", n); } -#line 1514 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1564 "dhcp4_parser.cc" // lalr1.cc:919 break; case 204: -#line 777 "dhcp4_parser.yy" // lalr1.cc:859 +#line 777 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("lfc-interval", n); } -#line 1523 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1573 "dhcp4_parser.cc" // lalr1.cc:919 break; case 205: -#line 782 "dhcp4_parser.yy" // lalr1.cc:859 +#line 782 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr n(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("readonly", n); } -#line 1532 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1582 "dhcp4_parser.cc" // lalr1.cc:919 break; case 206: -#line 787 "dhcp4_parser.yy" // lalr1.cc:859 +#line 787 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("connect-timeout", n); } -#line 1541 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1591 "dhcp4_parser.cc" // lalr1.cc:919 break; case 207: -#line 792 "dhcp4_parser.yy" // lalr1.cc:859 +#line 792 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("request-timeout", n); } -#line 1550 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1600 "dhcp4_parser.cc" // lalr1.cc:919 break; case 208: -#line 797 "dhcp4_parser.yy" // lalr1.cc:859 +#line 797 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("tcp-keepalive", n); } -#line 1559 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1609 "dhcp4_parser.cc" // lalr1.cc:919 break; case 209: -#line 802 "dhcp4_parser.yy" // lalr1.cc:859 +#line 802 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr n(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("tcp-nodelay", n); } -#line 1568 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1618 "dhcp4_parser.cc" // lalr1.cc:919 break; case 210: -#line 807 "dhcp4_parser.yy" // lalr1.cc:859 +#line 807 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1576 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1626 "dhcp4_parser.cc" // lalr1.cc:919 break; case 211: -#line 809 "dhcp4_parser.yy" // lalr1.cc:859 +#line 809 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr cp(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr cp(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("contact-points", cp); ctx.leave(); } -#line 1586 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1636 "dhcp4_parser.cc" // lalr1.cc:919 break; case 212: -#line 815 "dhcp4_parser.yy" // lalr1.cc:859 +#line 815 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1594 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1644 "dhcp4_parser.cc" // lalr1.cc:919 break; case 213: -#line 817 "dhcp4_parser.yy" // lalr1.cc:859 +#line 817 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr ks(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr ks(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("keyspace", ks); ctx.leave(); } -#line 1604 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1654 "dhcp4_parser.cc" // lalr1.cc:919 break; case 214: -#line 823 "dhcp4_parser.yy" // lalr1.cc:859 +#line 823 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1612 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1662 "dhcp4_parser.cc" // lalr1.cc:919 break; case 215: -#line 825 "dhcp4_parser.yy" // lalr1.cc:859 +#line 825 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr c(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr c(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("consistency", c); ctx.leave(); } -#line 1622 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1672 "dhcp4_parser.cc" // lalr1.cc:919 break; case 216: -#line 831 "dhcp4_parser.yy" // lalr1.cc:859 +#line 831 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1630 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1680 "dhcp4_parser.cc" // lalr1.cc:919 break; case 217: -#line 833 "dhcp4_parser.yy" // lalr1.cc:859 +#line 833 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr c(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr c(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("serial-consistency", c); ctx.leave(); } -#line 1640 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1690 "dhcp4_parser.cc" // lalr1.cc:919 break; case 218: -#line 839 "dhcp4_parser.yy" // lalr1.cc:859 +#line 839 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("max-reconnect-tries", n); } -#line 1649 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1699 "dhcp4_parser.cc" // lalr1.cc:919 break; case 219: -#line 844 "dhcp4_parser.yy" // lalr1.cc:859 +#line 844 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("reconnect-wait-time", n); } -#line 1658 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1708 "dhcp4_parser.cc" // lalr1.cc:919 break; case 220: -#line 849 "dhcp4_parser.yy" // lalr1.cc:859 +#line 849 "dhcp4_parser.yy" // lalr1.cc:919 { 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 1669 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1719 "dhcp4_parser.cc" // lalr1.cc:919 break; case 221: -#line 854 "dhcp4_parser.yy" // lalr1.cc:859 +#line 854 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1678 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1728 "dhcp4_parser.cc" // lalr1.cc:919 break; case 229: -#line 870 "dhcp4_parser.yy" // lalr1.cc:859 +#line 870 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr duid(new StringElement("duid", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(duid); } -#line 1687 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1737 "dhcp4_parser.cc" // lalr1.cc:919 break; case 230: -#line 875 "dhcp4_parser.yy" // lalr1.cc:859 +#line 875 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr hwaddr(new StringElement("hw-address", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(hwaddr); } -#line 1696 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1746 "dhcp4_parser.cc" // lalr1.cc:919 break; case 231: -#line 880 "dhcp4_parser.yy" // lalr1.cc:859 +#line 880 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr circuit(new StringElement("circuit-id", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(circuit); } -#line 1705 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1755 "dhcp4_parser.cc" // lalr1.cc:919 break; case 232: -#line 885 "dhcp4_parser.yy" // lalr1.cc:859 +#line 885 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr client(new StringElement("client-id", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(client); } -#line 1714 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1764 "dhcp4_parser.cc" // lalr1.cc:919 break; case 233: -#line 890 "dhcp4_parser.yy" // lalr1.cc:859 +#line 890 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr flex_id(new StringElement("flex-id", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(flex_id); } -#line 1723 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1773 "dhcp4_parser.cc" // lalr1.cc:919 break; case 234: -#line 895 "dhcp4_parser.yy" // lalr1.cc:859 +#line 895 "dhcp4_parser.yy" // lalr1.cc:919 { 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 1734 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1784 "dhcp4_parser.cc" // lalr1.cc:919 break; case 235: -#line 900 "dhcp4_parser.yy" // lalr1.cc:859 +#line 900 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1743 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1793 "dhcp4_parser.cc" // lalr1.cc:919 break; case 240: -#line 913 "dhcp4_parser.yy" // lalr1.cc:859 +#line 913 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1753 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1803 "dhcp4_parser.cc" // lalr1.cc:919 break; case 241: -#line 917 "dhcp4_parser.yy" // lalr1.cc:859 +#line 917 "dhcp4_parser.yy" // lalr1.cc:919 { // The library hooks parameter is required ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1763 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1813 "dhcp4_parser.cc" // lalr1.cc:919 break; case 242: -#line 923 "dhcp4_parser.yy" // lalr1.cc:859 +#line 923 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the hooks-libraries list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1773 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1823 "dhcp4_parser.cc" // lalr1.cc:919 break; case 243: -#line 927 "dhcp4_parser.yy" // lalr1.cc:859 +#line 927 "dhcp4_parser.yy" // lalr1.cc:919 { // The library hooks parameter is required ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 1783 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1833 "dhcp4_parser.cc" // lalr1.cc:919 break; case 249: -#line 942 "dhcp4_parser.yy" // lalr1.cc:859 +#line 942 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1791 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1841 "dhcp4_parser.cc" // lalr1.cc:919 break; case 250: -#line 944 "dhcp4_parser.yy" // lalr1.cc:859 +#line 944 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr lib(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr lib(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("library", lib); ctx.leave(); } -#line 1801 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1851 "dhcp4_parser.cc" // lalr1.cc:919 break; case 251: -#line 950 "dhcp4_parser.yy" // lalr1.cc:859 +#line 950 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1809 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1859 "dhcp4_parser.cc" // lalr1.cc:919 break; case 252: -#line 952 "dhcp4_parser.yy" // lalr1.cc:859 +#line 952 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("parameters", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("parameters", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1818 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1868 "dhcp4_parser.cc" // lalr1.cc:919 break; case 253: -#line 958 "dhcp4_parser.yy" // lalr1.cc:859 +#line 958 "dhcp4_parser.yy" // lalr1.cc:919 { 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.EXPIRED_LEASES_PROCESSING); } -#line 1829 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1879 "dhcp4_parser.cc" // lalr1.cc:919 break; case 254: -#line 963 "dhcp4_parser.yy" // lalr1.cc:859 +#line 963 "dhcp4_parser.yy" // lalr1.cc:919 { // No expired lease parameter is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1839 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1889 "dhcp4_parser.cc" // lalr1.cc:919 break; case 263: -#line 981 "dhcp4_parser.yy" // lalr1.cc:859 +#line 981 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("reclaim-timer-wait-time", value); } -#line 1848 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1898 "dhcp4_parser.cc" // lalr1.cc:919 break; case 264: -#line 986 "dhcp4_parser.yy" // lalr1.cc:859 +#line 986 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("flush-reclaimed-timer-wait-time", value); } -#line 1857 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1907 "dhcp4_parser.cc" // lalr1.cc:919 break; case 265: -#line 991 "dhcp4_parser.yy" // lalr1.cc:859 +#line 991 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hold-reclaimed-time", value); } -#line 1866 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1916 "dhcp4_parser.cc" // lalr1.cc:919 break; case 266: -#line 996 "dhcp4_parser.yy" // lalr1.cc:859 +#line 996 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("max-reclaim-leases", value); } -#line 1875 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1925 "dhcp4_parser.cc" // lalr1.cc:919 break; case 267: -#line 1001 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1001 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("max-reclaim-time", value); } -#line 1884 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1934 "dhcp4_parser.cc" // lalr1.cc:919 break; case 268: -#line 1006 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1006 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("unwarned-reclaim-cycles", value); } -#line 1893 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1943 "dhcp4_parser.cc" // lalr1.cc:919 break; case 269: -#line 1014 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1014 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("subnet4", l); ctx.stack_.push_back(l); ctx.enter(ctx.SUBNET4); } -#line 1904 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1954 "dhcp4_parser.cc" // lalr1.cc:919 break; case 270: -#line 1019 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1019 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1913 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1963 "dhcp4_parser.cc" // lalr1.cc:919 break; case 275: -#line 1039 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1039 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1923 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1973 "dhcp4_parser.cc" // lalr1.cc:919 break; case 276: -#line 1043 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1043 "dhcp4_parser.yy" // lalr1.cc:919 { // Once we reached this place, the subnet parsing is now complete. // If we want to, we can implement default values here. @@ -1945,294 +1995,294 @@ namespace isc { namespace dhcp { ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1949 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1999 "dhcp4_parser.cc" // lalr1.cc:919 break; case 277: -#line 1065 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1065 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the subnet4 list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1959 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2009 "dhcp4_parser.cc" // lalr1.cc:919 break; case 278: -#line 1069 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1069 "dhcp4_parser.yy" // lalr1.cc:919 { // The subnet subnet4 parameter is required ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 1969 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2019 "dhcp4_parser.cc" // lalr1.cc:919 break; case 308: -#line 1110 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1110 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1977 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2027 "dhcp4_parser.cc" // lalr1.cc:919 break; case 309: -#line 1112 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1112 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr subnet(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr subnet(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("subnet", subnet); ctx.leave(); } -#line 1987 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2037 "dhcp4_parser.cc" // lalr1.cc:919 break; case 310: -#line 1118 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1118 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1995 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2045 "dhcp4_parser.cc" // lalr1.cc:919 break; case 311: -#line 1120 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1120 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr iface(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("4o6-interface", iface); ctx.leave(); } -#line 2005 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2055 "dhcp4_parser.cc" // lalr1.cc:919 break; case 312: -#line 1126 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1126 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2013 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2063 "dhcp4_parser.cc" // lalr1.cc:919 break; case 313: -#line 1128 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1128 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr iface(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("4o6-interface-id", iface); ctx.leave(); } -#line 2023 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2073 "dhcp4_parser.cc" // lalr1.cc:919 break; case 314: -#line 1134 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1134 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2031 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2081 "dhcp4_parser.cc" // lalr1.cc:919 break; case 315: -#line 1136 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1136 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr iface(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("4o6-subnet", iface); ctx.leave(); } -#line 2041 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2091 "dhcp4_parser.cc" // lalr1.cc:919 break; case 316: -#line 1142 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1142 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2049 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2099 "dhcp4_parser.cc" // lalr1.cc:919 break; case 317: -#line 1144 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1144 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr iface(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("interface", iface); ctx.leave(); } -#line 2059 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2109 "dhcp4_parser.cc" // lalr1.cc:919 break; case 318: -#line 1150 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1150 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2067 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2117 "dhcp4_parser.cc" // lalr1.cc:919 break; case 319: -#line 1152 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1152 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr cls(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 2077 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2127 "dhcp4_parser.cc" // lalr1.cc:919 break; case 320: -#line 1158 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1158 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr c(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("require-client-classes", c); ctx.stack_.push_back(c); ctx.enter(ctx.NO_KEYWORD); } -#line 2088 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2138 "dhcp4_parser.cc" // lalr1.cc:919 break; case 321: -#line 1163 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1163 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2097 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2147 "dhcp4_parser.cc" // lalr1.cc:919 break; case 322: -#line 1168 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1168 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.RESERVATION_MODE); } -#line 2105 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2155 "dhcp4_parser.cc" // lalr1.cc:919 break; case 323: -#line 1170 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1170 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("reservation-mode", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("reservation-mode", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 2114 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2164 "dhcp4_parser.cc" // lalr1.cc:919 break; case 324: -#line 1175 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); } -#line 2120 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1175 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); } +#line 2170 "dhcp4_parser.cc" // lalr1.cc:919 break; case 325: -#line 1176 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); } -#line 2126 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1176 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); } +#line 2176 "dhcp4_parser.cc" // lalr1.cc:919 break; case 326: -#line 1177 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); } -#line 2132 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1177 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); } +#line 2182 "dhcp4_parser.cc" // lalr1.cc:919 break; case 327: -#line 1178 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); } -#line 2138 "dhcp4_parser.cc" // lalr1.cc:859 +#line 1178 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); } +#line 2188 "dhcp4_parser.cc" // lalr1.cc:919 break; case 328: -#line 1181 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1181 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr id(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr id(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("id", id); } -#line 2147 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2197 "dhcp4_parser.cc" // lalr1.cc:919 break; case 329: -#line 1188 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1188 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("shared-networks", l); ctx.stack_.push_back(l); ctx.enter(ctx.SHARED_NETWORK); } -#line 2158 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2208 "dhcp4_parser.cc" // lalr1.cc:919 break; case 330: -#line 1193 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1193 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2167 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2217 "dhcp4_parser.cc" // lalr1.cc:919 break; case 335: -#line 1208 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1208 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2177 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2227 "dhcp4_parser.cc" // lalr1.cc:919 break; case 336: -#line 1212 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1212 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); } -#line 2185 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2235 "dhcp4_parser.cc" // lalr1.cc:919 break; case 361: -#line 1248 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1248 "dhcp4_parser.yy" // lalr1.cc:919 { 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 2196 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2246 "dhcp4_parser.cc" // lalr1.cc:919 break; case 362: -#line 1253 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1253 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2205 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2255 "dhcp4_parser.cc" // lalr1.cc:919 break; case 363: -#line 1261 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1261 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2214 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2264 "dhcp4_parser.cc" // lalr1.cc:919 break; case 364: -#line 1264 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1264 "dhcp4_parser.yy" // lalr1.cc:919 { // parsing completed } -#line 2222 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2272 "dhcp4_parser.cc" // lalr1.cc:919 break; case 369: -#line 1280 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1280 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2232 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2282 "dhcp4_parser.cc" // lalr1.cc:919 break; case 370: -#line 1284 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1284 "dhcp4_parser.yy" // lalr1.cc:919 { // The name, code and type option def parameters are required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2240,21 +2290,21 @@ namespace isc { namespace dhcp { ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2244 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2294 "dhcp4_parser.cc" // lalr1.cc:919 break; case 371: -#line 1295 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1295 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the option-def list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2254 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2304 "dhcp4_parser.cc" // lalr1.cc:919 break; case 372: -#line 1299 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1299 "dhcp4_parser.yy" // lalr1.cc:919 { // The name, code and type option def parameters are required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2262,284 +2312,284 @@ namespace isc { namespace dhcp { ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2266 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2316 "dhcp4_parser.cc" // lalr1.cc:919 break; case 388: -#line 1331 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1331 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr code(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr code(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("code", code); } -#line 2275 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2325 "dhcp4_parser.cc" // lalr1.cc:919 break; case 390: -#line 1338 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1338 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2283 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2333 "dhcp4_parser.cc" // lalr1.cc:919 break; case 391: -#line 1340 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1340 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("type", prf); ctx.leave(); } -#line 2293 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2343 "dhcp4_parser.cc" // lalr1.cc:919 break; case 392: -#line 1346 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1346 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2301 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2351 "dhcp4_parser.cc" // lalr1.cc:919 break; case 393: -#line 1348 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1348 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr rtypes(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 2311 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2361 "dhcp4_parser.cc" // lalr1.cc:919 break; case 394: -#line 1354 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1354 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2319 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2369 "dhcp4_parser.cc" // lalr1.cc:919 break; case 395: -#line 1356 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1356 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr space(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr space(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("space", space); ctx.leave(); } -#line 2329 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2379 "dhcp4_parser.cc" // lalr1.cc:919 break; case 397: -#line 1364 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1364 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2337 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2387 "dhcp4_parser.cc" // lalr1.cc:919 break; case 398: -#line 1366 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1366 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr encap(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr encap(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("encapsulate", encap); ctx.leave(); } -#line 2347 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2397 "dhcp4_parser.cc" // lalr1.cc:919 break; case 399: -#line 1372 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1372 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr array(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr array(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("array", array); } -#line 2356 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2406 "dhcp4_parser.cc" // lalr1.cc:919 break; case 400: -#line 1381 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1381 "dhcp4_parser.yy" // lalr1.cc:919 { 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 2367 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2417 "dhcp4_parser.cc" // lalr1.cc:919 break; case 401: -#line 1386 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1386 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2376 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2426 "dhcp4_parser.cc" // lalr1.cc:919 break; case 406: -#line 1405 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1405 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2386 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2436 "dhcp4_parser.cc" // lalr1.cc:919 break; case 407: -#line 1409 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1409 "dhcp4_parser.yy" // lalr1.cc:919 { /// @todo: the code or name parameters are required. ctx.stack_.pop_back(); } -#line 2395 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2445 "dhcp4_parser.cc" // lalr1.cc:919 break; case 408: -#line 1417 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1417 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the option-data list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2405 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2455 "dhcp4_parser.cc" // lalr1.cc:919 break; case 409: -#line 1421 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1421 "dhcp4_parser.yy" // lalr1.cc:919 { /// @todo: the code or name parameters are required. // parsing completed } -#line 2414 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2464 "dhcp4_parser.cc" // lalr1.cc:919 break; case 424: -#line 1454 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1454 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2422 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2472 "dhcp4_parser.cc" // lalr1.cc:919 break; case 425: -#line 1456 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1456 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr data(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr data(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("data", data); ctx.leave(); } -#line 2432 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2482 "dhcp4_parser.cc" // lalr1.cc:919 break; case 428: -#line 1466 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1466 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr space(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr space(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("csv-format", space); } -#line 2441 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2491 "dhcp4_parser.cc" // lalr1.cc:919 break; case 429: -#line 1471 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1471 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr persist(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr persist(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("always-send", persist); } -#line 2450 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2500 "dhcp4_parser.cc" // lalr1.cc:919 break; case 430: -#line 1479 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1479 "dhcp4_parser.yy" // lalr1.cc:919 { 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 2461 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2511 "dhcp4_parser.cc" // lalr1.cc:919 break; case 431: -#line 1484 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1484 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2470 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2520 "dhcp4_parser.cc" // lalr1.cc:919 break; case 436: -#line 1499 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1499 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2480 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2530 "dhcp4_parser.cc" // lalr1.cc:919 break; case 437: -#line 1503 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1503 "dhcp4_parser.yy" // lalr1.cc:919 { // The pool parameter is required. ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2490 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2540 "dhcp4_parser.cc" // lalr1.cc:919 break; case 438: -#line 1509 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1509 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the pool list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2500 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2550 "dhcp4_parser.cc" // lalr1.cc:919 break; case 439: -#line 1513 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1513 "dhcp4_parser.yy" // lalr1.cc:919 { // The pool parameter is required. ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2510 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2560 "dhcp4_parser.cc" // lalr1.cc:919 break; case 449: -#line 1532 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1532 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2518 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2568 "dhcp4_parser.cc" // lalr1.cc:919 break; case 450: -#line 1534 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1534 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr pool(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr pool(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("pool", pool); ctx.leave(); } -#line 2528 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2578 "dhcp4_parser.cc" // lalr1.cc:919 break; case 451: -#line 1540 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1540 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2536 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2586 "dhcp4_parser.cc" // lalr1.cc:919 break; case 452: -#line 1542 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1542 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr parent = ctx.stack_.back(); - ElementPtr user_context = yystack_[0].value.as< ElementPtr > (); + ElementPtr user_context = yystack_[0].value.as < ElementPtr > (); ConstElementPtr old = parent->get("user-context"); // Handle already existing user context @@ -2559,23 +2609,23 @@ namespace isc { namespace dhcp { parent->set("user-context", user_context); ctx.leave(); } -#line 2563 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2613 "dhcp4_parser.cc" // lalr1.cc:919 break; case 453: -#line 1565 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1565 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2571 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2621 "dhcp4_parser.cc" // lalr1.cc:919 break; case 454: -#line 1567 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1567 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr parent = ctx.stack_.back(); ElementPtr user_context(new MapElement(ctx.loc2pos(yystack_[3].location))); - ElementPtr comment(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr comment(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); user_context->set("comment", comment); // Handle already existing user context @@ -2596,451 +2646,451 @@ namespace isc { namespace dhcp { parent->set("user-context", user_context); ctx.leave(); } -#line 2600 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2650 "dhcp4_parser.cc" // lalr1.cc:919 break; case 455: -#line 1595 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1595 "dhcp4_parser.yy" // lalr1.cc:919 { 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 2611 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2661 "dhcp4_parser.cc" // lalr1.cc:919 break; case 456: -#line 1600 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1600 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2620 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2670 "dhcp4_parser.cc" // lalr1.cc:919 break; case 461: -#line 1613 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1613 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2630 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2680 "dhcp4_parser.cc" // lalr1.cc:919 break; case 462: -#line 1617 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1617 "dhcp4_parser.yy" // lalr1.cc:919 { /// @todo: an identifier parameter is required. ctx.stack_.pop_back(); } -#line 2639 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2689 "dhcp4_parser.cc" // lalr1.cc:919 break; case 463: -#line 1622 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1622 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the reservations list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2649 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2699 "dhcp4_parser.cc" // lalr1.cc:919 break; case 464: -#line 1626 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1626 "dhcp4_parser.yy" // lalr1.cc:919 { /// @todo: an identifier parameter is required. // parsing completed } -#line 2658 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2708 "dhcp4_parser.cc" // lalr1.cc:919 break; case 484: -#line 1657 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1657 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2666 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2716 "dhcp4_parser.cc" // lalr1.cc:919 break; case 485: -#line 1659 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1659 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr next_server(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr next_server(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("next-server", next_server); ctx.leave(); } -#line 2676 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2726 "dhcp4_parser.cc" // lalr1.cc:919 break; case 486: -#line 1665 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1665 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2684 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2734 "dhcp4_parser.cc" // lalr1.cc:919 break; case 487: -#line 1667 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1667 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr srv(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr srv(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("server-hostname", srv); ctx.leave(); } -#line 2694 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2744 "dhcp4_parser.cc" // lalr1.cc:919 break; case 488: -#line 1673 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1673 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2702 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2752 "dhcp4_parser.cc" // lalr1.cc:919 break; case 489: -#line 1675 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1675 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr bootfile(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr bootfile(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("boot-file-name", bootfile); ctx.leave(); } -#line 2712 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2762 "dhcp4_parser.cc" // lalr1.cc:919 break; case 490: -#line 1681 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1681 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2720 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2770 "dhcp4_parser.cc" // lalr1.cc:919 break; case 491: -#line 1683 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1683 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr addr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr addr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("ip-address", addr); ctx.leave(); } -#line 2730 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2780 "dhcp4_parser.cc" // lalr1.cc:919 break; case 492: -#line 1689 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1689 "dhcp4_parser.yy" // lalr1.cc:919 { 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 2741 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2791 "dhcp4_parser.cc" // lalr1.cc:919 break; case 493: -#line 1694 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1694 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2750 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2800 "dhcp4_parser.cc" // lalr1.cc:919 break; case 494: -#line 1699 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1699 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2758 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2808 "dhcp4_parser.cc" // lalr1.cc:919 break; case 495: -#line 1701 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1701 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr d(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr d(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("duid", d); ctx.leave(); } -#line 2768 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2818 "dhcp4_parser.cc" // lalr1.cc:919 break; case 496: -#line 1707 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1707 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2776 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2826 "dhcp4_parser.cc" // lalr1.cc:919 break; case 497: -#line 1709 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1709 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr hw(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 2786 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2836 "dhcp4_parser.cc" // lalr1.cc:919 break; case 498: -#line 1715 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1715 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2794 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2844 "dhcp4_parser.cc" // lalr1.cc:919 break; case 499: -#line 1717 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1717 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr hw(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("client-id", hw); ctx.leave(); } -#line 2804 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2854 "dhcp4_parser.cc" // lalr1.cc:919 break; case 500: -#line 1723 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1723 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2812 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2862 "dhcp4_parser.cc" // lalr1.cc:919 break; case 501: -#line 1725 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1725 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr hw(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("circuit-id", hw); ctx.leave(); } -#line 2822 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2872 "dhcp4_parser.cc" // lalr1.cc:919 break; case 502: -#line 1731 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1731 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2830 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2880 "dhcp4_parser.cc" // lalr1.cc:919 break; case 503: -#line 1733 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1733 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr hw(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("flex-id", hw); ctx.leave(); } -#line 2840 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2890 "dhcp4_parser.cc" // lalr1.cc:919 break; case 504: -#line 1739 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1739 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2848 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2898 "dhcp4_parser.cc" // lalr1.cc:919 break; case 505: -#line 1741 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1741 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr host(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr host(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hostname", host); ctx.leave(); } -#line 2858 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2908 "dhcp4_parser.cc" // lalr1.cc:919 break; case 506: -#line 1747 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1747 "dhcp4_parser.yy" // lalr1.cc:919 { 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 2869 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2919 "dhcp4_parser.cc" // lalr1.cc:919 break; case 507: -#line 1752 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1752 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2878 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2928 "dhcp4_parser.cc" // lalr1.cc:919 break; case 508: -#line 1760 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1760 "dhcp4_parser.yy" // lalr1.cc:919 { 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 2889 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2939 "dhcp4_parser.cc" // lalr1.cc:919 break; case 509: -#line 1765 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1765 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2898 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2948 "dhcp4_parser.cc" // lalr1.cc:919 break; case 512: -#line 1777 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1777 "dhcp4_parser.yy" // lalr1.cc:919 { 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 2909 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2959 "dhcp4_parser.cc" // lalr1.cc:919 break; case 513: -#line 1782 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1782 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2918 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2968 "dhcp4_parser.cc" // lalr1.cc:919 break; case 516: -#line 1791 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1791 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2928 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2978 "dhcp4_parser.cc" // lalr1.cc:919 break; case 517: -#line 1795 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1795 "dhcp4_parser.yy" // lalr1.cc:919 { // The name client class parameter is required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2938 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2988 "dhcp4_parser.cc" // lalr1.cc:919 break; case 534: -#line 1824 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1824 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2946 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2996 "dhcp4_parser.cc" // lalr1.cc:919 break; case 535: -#line 1826 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1826 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr test(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr test(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("test", test); ctx.leave(); } -#line 2956 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3006 "dhcp4_parser.cc" // lalr1.cc:919 break; case 536: -#line 1832 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1832 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("only-if-required", b); } -#line 2965 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3015 "dhcp4_parser.cc" // lalr1.cc:919 break; case 537: -#line 1841 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1841 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr time(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr time(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("dhcp4o6-port", time); } -#line 2974 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3024 "dhcp4_parser.cc" // lalr1.cc:919 break; case 538: -#line 1848 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1848 "dhcp4_parser.yy" // lalr1.cc:919 { 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 2985 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3035 "dhcp4_parser.cc" // lalr1.cc:919 break; case 539: -#line 1853 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1853 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2994 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3044 "dhcp4_parser.cc" // lalr1.cc:919 break; case 547: -#line 1869 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1869 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3002 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3052 "dhcp4_parser.cc" // lalr1.cc:919 break; case 548: -#line 1871 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1871 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr stype(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 3012 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3062 "dhcp4_parser.cc" // lalr1.cc:919 break; case 549: -#line 1877 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1877 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3020 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3070 "dhcp4_parser.cc" // lalr1.cc:919 break; case 550: -#line 1879 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1879 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr name(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 3030 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3080 "dhcp4_parser.cc" // lalr1.cc:919 break; case 551: -#line 1888 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1888 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3038 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3088 "dhcp4_parser.cc" // lalr1.cc:919 break; case 552: -#line 1890 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1890 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr qc = yystack_[0].value.as< ElementPtr > (); + ElementPtr qc = yystack_[0].value.as < ElementPtr > (); ctx.stack_.back()->set("dhcp-queue-control", qc); // Doing this manually, because dhcp-queue-control @@ -3072,636 +3122,640 @@ namespace isc { namespace dhcp { ctx.leave(); } -#line 3076 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3126 "dhcp4_parser.cc" // lalr1.cc:919 break; case 553: -#line 1926 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1926 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("dhcp-ddns", m); ctx.stack_.push_back(m); ctx.enter(ctx.DHCP_DDNS); } -#line 3087 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3137 "dhcp4_parser.cc" // lalr1.cc:919 break; case 554: -#line 1931 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1931 "dhcp4_parser.yy" // lalr1.cc:919 { // The enable updates DHCP DDNS parameter is required. ctx.require("enable-updates", ctx.loc2pos(yystack_[2].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); ctx.leave(); } -#line 3098 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3148 "dhcp4_parser.cc" // lalr1.cc:919 break; case 555: -#line 1938 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1938 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the dhcp-ddns map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3108 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3158 "dhcp4_parser.cc" // lalr1.cc:919 break; case 556: -#line 1942 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1942 "dhcp4_parser.yy" // lalr1.cc:919 { // The enable updates DHCP DDNS parameter is required. ctx.require("enable-updates", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 3118 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3168 "dhcp4_parser.cc" // lalr1.cc:919 break; case 577: -#line 1972 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1972 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("enable-updates", b); } -#line 3127 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3177 "dhcp4_parser.cc" // lalr1.cc:919 break; case 578: -#line 1977 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1977 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3135 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3185 "dhcp4_parser.cc" // lalr1.cc:919 break; case 579: -#line 1979 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1979 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("qualifying-suffix", s); ctx.leave(); } -#line 3145 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3195 "dhcp4_parser.cc" // lalr1.cc:919 break; case 580: -#line 1985 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1985 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3153 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3203 "dhcp4_parser.cc" // lalr1.cc:919 break; case 581: -#line 1987 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1987 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("server-ip", s); ctx.leave(); } -#line 3163 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3213 "dhcp4_parser.cc" // lalr1.cc:919 break; case 582: -#line 1993 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1993 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("server-port", i); } -#line 3172 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3222 "dhcp4_parser.cc" // lalr1.cc:919 break; case 583: -#line 1998 "dhcp4_parser.yy" // lalr1.cc:859 +#line 1998 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3180 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3230 "dhcp4_parser.cc" // lalr1.cc:919 break; case 584: -#line 2000 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2000 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("sender-ip", s); ctx.leave(); } -#line 3190 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3240 "dhcp4_parser.cc" // lalr1.cc:919 break; case 585: -#line 2006 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2006 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("sender-port", i); } -#line 3199 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3249 "dhcp4_parser.cc" // lalr1.cc:919 break; case 586: -#line 2011 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2011 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("max-queue-size", i); } -#line 3208 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3258 "dhcp4_parser.cc" // lalr1.cc:919 break; case 587: -#line 2016 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2016 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NCR_PROTOCOL); } -#line 3216 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3266 "dhcp4_parser.cc" // lalr1.cc:919 break; case 588: -#line 2018 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2018 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("ncr-protocol", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("ncr-protocol", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3225 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3275 "dhcp4_parser.cc" // lalr1.cc:919 break; case 589: -#line 2024 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } -#line 3231 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2024 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } +#line 3281 "dhcp4_parser.cc" // lalr1.cc:919 break; case 590: -#line 2025 "dhcp4_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } -#line 3237 "dhcp4_parser.cc" // lalr1.cc:859 +#line 2025 "dhcp4_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } +#line 3287 "dhcp4_parser.cc" // lalr1.cc:919 break; case 591: -#line 2028 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2028 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NCR_FORMAT); } -#line 3245 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3295 "dhcp4_parser.cc" // lalr1.cc:919 break; case 592: -#line 2030 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2030 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr json(new StringElement("JSON", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("ncr-format", json); ctx.leave(); } -#line 3255 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3305 "dhcp4_parser.cc" // lalr1.cc:919 break; case 593: -#line 2036 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2036 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("override-no-update", b); } -#line 3264 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3314 "dhcp4_parser.cc" // lalr1.cc:919 break; case 594: -#line 2041 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2041 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("override-client-update", b); } -#line 3273 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3323 "dhcp4_parser.cc" // lalr1.cc:919 break; case 595: -#line 2046 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2046 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.REPLACE_CLIENT_NAME); } -#line 3281 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3331 "dhcp4_parser.cc" // lalr1.cc:919 break; case 596: -#line 2048 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2048 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("replace-client-name", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("replace-client-name", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3290 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3340 "dhcp4_parser.cc" // lalr1.cc:919 break; case 597: -#line 2054 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2054 "dhcp4_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("when-present", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("when-present", ctx.loc2pos(yystack_[0].location))); } -#line 3298 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3348 "dhcp4_parser.cc" // lalr1.cc:919 break; case 598: -#line 2057 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2057 "dhcp4_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("never", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("never", ctx.loc2pos(yystack_[0].location))); } -#line 3306 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3356 "dhcp4_parser.cc" // lalr1.cc:919 break; case 599: -#line 2060 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2060 "dhcp4_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("always", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("always", ctx.loc2pos(yystack_[0].location))); } -#line 3314 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3364 "dhcp4_parser.cc" // lalr1.cc:919 break; case 600: -#line 2063 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2063 "dhcp4_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("when-not-present", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("when-not-present", ctx.loc2pos(yystack_[0].location))); } -#line 3322 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3372 "dhcp4_parser.cc" // lalr1.cc:919 break; case 601: -#line 2066 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2066 "dhcp4_parser.yy" // lalr1.cc:919 { error(yystack_[0].location, "boolean values for the replace-client-name are " "no longer supported"); } -#line 3331 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3381 "dhcp4_parser.cc" // lalr1.cc:919 break; case 602: -#line 2072 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2072 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3339 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3389 "dhcp4_parser.cc" // lalr1.cc:919 break; case 603: -#line 2074 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2074 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("generated-prefix", s); ctx.leave(); } -#line 3349 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3399 "dhcp4_parser.cc" // lalr1.cc:919 break; case 604: -#line 2080 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2080 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3357 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3407 "dhcp4_parser.cc" // lalr1.cc:919 break; case 605: -#line 2082 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2082 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hostname-char-set", s); ctx.leave(); } -#line 3367 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3417 "dhcp4_parser.cc" // lalr1.cc:919 break; case 606: -#line 2088 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2088 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3375 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3425 "dhcp4_parser.cc" // lalr1.cc:919 break; case 607: -#line 2090 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2090 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hostname-char-replacement", s); ctx.leave(); } -#line 3385 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3435 "dhcp4_parser.cc" // lalr1.cc:919 break; case 608: -#line 2099 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2099 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3393 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3443 "dhcp4_parser.cc" // lalr1.cc:919 break; case 609: -#line 2101 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2101 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("Dhcp6", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("Dhcp6", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3402 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3452 "dhcp4_parser.cc" // lalr1.cc:919 break; case 610: -#line 2106 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2106 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3410 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3460 "dhcp4_parser.cc" // lalr1.cc:919 break; case 611: -#line 2108 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2108 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("DhcpDdns", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("DhcpDdns", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3419 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3469 "dhcp4_parser.cc" // lalr1.cc:919 break; case 612: -#line 2113 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2113 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3427 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3477 "dhcp4_parser.cc" // lalr1.cc:919 break; case 613: -#line 2115 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2115 "dhcp4_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("Control-agent", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("Control-agent", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3436 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3486 "dhcp4_parser.cc" // lalr1.cc:919 break; case 614: -#line 2120 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2120 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr i(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("config-control", i); ctx.stack_.push_back(i); ctx.enter(ctx.CONFIG_CONTROL); } -#line 3447 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3497 "dhcp4_parser.cc" // lalr1.cc:919 break; case 615: -#line 2125 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2125 "dhcp4_parser.yy" // lalr1.cc:919 { // No config control params are required ctx.stack_.pop_back(); ctx.leave(); } -#line 3457 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3507 "dhcp4_parser.cc" // lalr1.cc:919 break; case 616: -#line 2131 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2131 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the config-control map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3467 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3517 "dhcp4_parser.cc" // lalr1.cc:919 break; case 617: -#line 2135 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2135 "dhcp4_parser.yy" // lalr1.cc:919 { // No config_control params are required // parsing completed } -#line 3476 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3526 "dhcp4_parser.cc" // lalr1.cc:919 break; case 621: -#line 2149 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2149 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("config-databases", l); ctx.stack_.push_back(l); ctx.enter(ctx.CONFIG_DATABASE); } -#line 3487 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3537 "dhcp4_parser.cc" // lalr1.cc:919 break; case 622: -#line 2154 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2154 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 3496 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3546 "dhcp4_parser.cc" // lalr1.cc:919 break; case 623: -#line 2164 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2164 "dhcp4_parser.yy" // lalr1.cc:919 { 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 3507 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3557 "dhcp4_parser.cc" // lalr1.cc:919 break; case 624: -#line 2169 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2169 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 3516 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3566 "dhcp4_parser.cc" // lalr1.cc:919 break; case 625: -#line 2174 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2174 "dhcp4_parser.yy" // lalr1.cc:919 { // Parse the Logging map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3526 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3576 "dhcp4_parser.cc" // lalr1.cc:919 break; case 626: -#line 2178 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2178 "dhcp4_parser.yy" // lalr1.cc:919 { // parsing completed } -#line 3534 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3584 "dhcp4_parser.cc" // lalr1.cc:919 break; case 630: -#line 2194 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2194 "dhcp4_parser.yy" // lalr1.cc:919 { 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 3545 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3595 "dhcp4_parser.cc" // lalr1.cc:919 break; case 631: -#line 2199 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2199 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 3554 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3604 "dhcp4_parser.cc" // lalr1.cc:919 break; case 634: -#line 2211 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2211 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(l); ctx.stack_.push_back(l); } -#line 3564 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3614 "dhcp4_parser.cc" // lalr1.cc:919 break; case 635: -#line 2215 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2215 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); } -#line 3572 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3622 "dhcp4_parser.cc" // lalr1.cc:919 break; case 645: -#line 2232 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2232 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr dl(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr dl(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("debuglevel", dl); } -#line 3581 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3631 "dhcp4_parser.cc" // lalr1.cc:919 break; case 646: -#line 2237 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2237 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3589 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3639 "dhcp4_parser.cc" // lalr1.cc:919 break; case 647: -#line 2239 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2239 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr sev(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("severity", sev); ctx.leave(); } -#line 3599 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3649 "dhcp4_parser.cc" // lalr1.cc:919 break; case 648: -#line 2245 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2245 "dhcp4_parser.yy" // lalr1.cc:919 { 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 3610 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3660 "dhcp4_parser.cc" // lalr1.cc:919 break; case 649: -#line 2250 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2250 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 3619 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3669 "dhcp4_parser.cc" // lalr1.cc:919 break; case 652: -#line 2259 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2259 "dhcp4_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 3629 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3679 "dhcp4_parser.cc" // lalr1.cc:919 break; case 653: -#line 2263 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2263 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); } -#line 3637 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3687 "dhcp4_parser.cc" // lalr1.cc:919 break; case 660: -#line 2277 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2277 "dhcp4_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3645 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3695 "dhcp4_parser.cc" // lalr1.cc:919 break; case 661: -#line 2279 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2279 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr sev(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("output", sev); ctx.leave(); } -#line 3655 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3705 "dhcp4_parser.cc" // lalr1.cc:919 break; case 662: -#line 2285 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2285 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr flush(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr flush(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("flush", flush); } -#line 3664 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3714 "dhcp4_parser.cc" // lalr1.cc:919 break; case 663: -#line 2290 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2290 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr maxsize(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr maxsize(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("maxsize", maxsize); } -#line 3673 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3723 "dhcp4_parser.cc" // lalr1.cc:919 break; case 664: -#line 2295 "dhcp4_parser.yy" // lalr1.cc:859 +#line 2295 "dhcp4_parser.yy" // lalr1.cc:919 { - ElementPtr maxver(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr maxver(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("maxver", maxver); } -#line 3682 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3732 "dhcp4_parser.cc" // lalr1.cc:919 break; -#line 3686 "dhcp4_parser.cc" // lalr1.cc:859 +#line 3736 "dhcp4_parser.cc" // lalr1.cc:919 default: break; } } +#if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); YYERROR; } +#endif // YY_EXCEPTIONS YY_SYMBOL_PRINT ("-> $$ =", yylhs); yypop_ (yylen); yylen = 0; YY_STACK_PRINT (); // Shift the result of the reduction. - yypush_ (YY_NULLPTR, yylhs); + yypush_ (YY_NULLPTR, YY_MOVE (yylhs)); } goto yynewstate; + /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ @@ -3738,19 +3792,18 @@ namespace isc { namespace dhcp { | 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. */ + /* Pacify compilers 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; + YYERROR; + /* 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. | `-------------------------------------------------------------*/ @@ -3787,20 +3840,30 @@ namespace isc { namespace dhcp { // Shift the error token. error_token.state = yyn; - yypush_ ("Shifting", error_token); + yypush_ ("Shifting", YY_MOVE (error_token)); } goto yynewstate; - // Accept. + + /*-------------------------------------. + | yyacceptlab -- YYACCEPT comes here. | + `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; - // Abort. + + /*-----------------------------------. + | yyabortlab -- YYABORT comes here. | + `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; + + /*-----------------------------------------------------. + | yyreturn -- parsing is finished, return the result. | + `-----------------------------------------------------*/ yyreturn: if (!yyla.empty ()) yy_destroy_ ("Cleanup: discarding lookahead", yyla); @@ -3816,12 +3879,12 @@ namespace isc { namespace dhcp { return yyresult; } +#if YY_EXCEPTIONS catch (...) { - YYCDEBUG << "Exception caught: cleaning lookahead and stack" - << std::endl; + YYCDEBUG << "Exception caught: cleaning lookahead and stack\n"; // Do not try to display the values of the reclaimed symbols, - // as their printer might throw an exception. + // as their printers might throw an exception. if (!yyla.empty ()) yy_destroy_ (YY_NULLPTR, yyla); @@ -3832,12 +3895,13 @@ namespace isc { namespace dhcp { } throw; } +#endif // YY_EXCEPTIONS } void Dhcp4Parser::error (const syntax_error& yyexc) { - error (yyexc.location, yyexc.what()); + error (yyexc.location, yyexc.what ()); } // Generate an error message. @@ -3913,12 +3977,13 @@ namespace isc { namespace dhcp { 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")); + default: // Avoid compiler warnings. + 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_ } @@ -3937,11 +4002,11 @@ namespace isc { namespace dhcp { } - const short int Dhcp4Parser::yypact_ninf_ = -822; + const short Dhcp4Parser::yypact_ninf_ = -822; const signed char Dhcp4Parser::yytable_ninf_ = -1; - const short int + const short Dhcp4Parser::yypact_[] = { 413, -822, -822, -822, -822, -822, -822, -822, -822, -822, @@ -4053,7 +4118,7 @@ namespace isc { namespace dhcp { -822, 604, -822, -822, -822, -822, -822 }; - const unsigned short int + const unsigned short Dhcp4Parser::yydefact_[] = { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, @@ -4165,7 +4230,7 @@ namespace isc { namespace dhcp { 653, 0, 662, 663, 664, 655, 661 }; - const short int + const short Dhcp4Parser::yypgoto_[] = { -822, -822, -822, -822, -822, -822, -822, -822, -822, -822, @@ -4208,7 +4273,7 @@ namespace isc { namespace dhcp { -822, -152, -822, -822, -168, -822, -822, -822, -822, -822 }; - const short int + const short Dhcp4Parser::yydefgoto_[] = { -1, 15, 16, 17, 18, 19, 20, 21, 22, 23, @@ -4251,7 +4316,7 @@ namespace isc { namespace dhcp { 1039, 1040, 1041, 1048, 1049, 1050, 1055, 1051, 1052, 1053 }; - const unsigned short int + const unsigned short Dhcp4Parser::yytable_[] = { 95, 139, 182, 201, 231, 248, 232, 274, 293, 310, @@ -4360,7 +4425,7 @@ namespace isc { namespace dhcp { 0, 0, 923, 0, 0, 924, 930 }; - const short int + const short Dhcp4Parser::yycheck_[] = { 70, 71, 72, 73, 74, 75, 74, 77, 78, 79, @@ -4469,7 +4534,7 @@ namespace isc { namespace dhcp { -1, -1, 1009, -1, -1, 1009, 1009 }; - const unsigned short int + const unsigned short Dhcp4Parser::yystos_[] = { 0, 156, 157, 158, 159, 160, 161, 162, 163, 164, @@ -4581,7 +4646,7 @@ namespace isc { namespace dhcp { 8, 4, 173, 171, 171, 548, 170 }; - const unsigned short int + const unsigned short Dhcp4Parser::yyr1_[] = { 0, 174, 176, 175, 177, 175, 178, 175, 179, 175, @@ -4875,7 +4940,7 @@ namespace isc { namespace dhcp { }; #if PARSER4_DEBUG - const unsigned short int + const unsigned short Dhcp4Parser::yyrline_[] = { 0, 259, 259, 259, 260, 260, 261, 261, 262, 262, @@ -4957,18 +5022,18 @@ namespace isc { namespace dhcp { i_end = yystack_.end (); i != i_end; ++i) *yycdebug_ << ' ' << i->state; - *yycdebug_ << std::endl; + *yycdebug_ << '\n'; } // Report on the debug stream that the rule \a yyrule is going to be reduced. void Dhcp4Parser::yy_reduce_print_ (int yyrule) { - unsigned int yylno = yyrline_[yyrule]; + unsigned 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; + << " (line " << yylno << "):\n"; // The symbols being reduced. for (int yyi = 0; yyi < yynrhs; yyi++) YY_SYMBOL_PRINT (" $" << yyi + 1 << " =", @@ -4977,10 +5042,10 @@ namespace isc { namespace dhcp { #endif // PARSER4_DEBUG -#line 14 "dhcp4_parser.yy" // lalr1.cc:1167 +#line 14 "dhcp4_parser.yy" // lalr1.cc:1242 } } // isc::dhcp -#line 4983 "dhcp4_parser.cc" // lalr1.cc:1167 -#line 2300 "dhcp4_parser.yy" // lalr1.cc:1168 +#line 5048 "dhcp4_parser.cc" // lalr1.cc:1242 +#line 2300 "dhcp4_parser.yy" // lalr1.cc:1243 void diff --git a/src/bin/dhcp4/dhcp4_parser.h b/src/bin/dhcp4/dhcp4_parser.h index 31f472d1de..7c24acc20e 100644 --- a/src/bin/dhcp4/dhcp4_parser.h +++ b/src/bin/dhcp4/dhcp4_parser.h @@ -1,8 +1,8 @@ -// A Bison parser, made by GNU Bison 3.0.4. +// A Bison parser, made by GNU Bison 3.3.2. // Skeleton interface for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015 Free Software Foundation, Inc. +// Copyright (C) 2002-2015, 2018-2019 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 @@ -30,6 +30,7 @@ // This special exception was added by the Free Software Foundation in // version 2.2 of Bison. + /** ** \file dhcp4_parser.h ** Define the isc::dhcp::parser class. @@ -37,10 +38,13 @@ // C++ LALR(1) parser skeleton written by Akim Demaille. +// Undocumented macros, especially those whose name start with YY_, +// are private implementation details. Do not rely on them. + #ifndef YY_PARSER4_DHCP4_PARSER_H_INCLUDED # define YY_PARSER4_DHCP4_PARSER_H_INCLUDED // // "%code requires" blocks. -#line 17 "dhcp4_parser.yy" // lalr1.cc:377 +#line 17 "dhcp4_parser.yy" // lalr1.cc:401 #include #include @@ -52,7 +56,7 @@ using namespace isc::dhcp; using namespace isc::data; using namespace std; -#line 56 "dhcp4_parser.h" // lalr1.cc:377 +#line 60 "dhcp4_parser.h" // lalr1.cc:401 # include # include // std::abort @@ -60,7 +64,43 @@ using namespace std; # include # include # include -# include "stack.hh" + +#if defined __cplusplus +# define YY_CPLUSPLUS __cplusplus +#else +# define YY_CPLUSPLUS 199711L +#endif + +// Support move semantics when possible. +#if 201103L <= YY_CPLUSPLUS +# define YY_MOVE std::move +# define YY_MOVE_OR_COPY move +# define YY_MOVE_REF(Type) Type&& +# define YY_RVREF(Type) Type&& +# define YY_COPY(Type) Type +#else +# define YY_MOVE +# define YY_MOVE_OR_COPY copy +# define YY_MOVE_REF(Type) Type& +# define YY_RVREF(Type) const Type& +# define YY_COPY(Type) const Type& +#endif + +// Support noexcept when possible. +#if 201103L <= YY_CPLUSPLUS +# define YY_NOEXCEPT noexcept +# define YY_NOTHROW +#else +# define YY_NOEXCEPT +# define YY_NOTHROW throw () +#endif + +// Support constexpr when possible. +#if 201703 <= YY_CPLUSPLUS +# define YY_CONSTEXPR constexpr +#else +# define YY_CONSTEXPR +#endif # include "location.hh" #include #ifndef YYASSERT @@ -87,15 +127,6 @@ using namespace std; # 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)) @@ -103,7 +134,7 @@ using namespace std; # define YYUSE(E) /* empty */ #endif -#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ +#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \ @@ -122,6 +153,18 @@ using namespace std; # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif +# ifndef YY_NULLPTR +# if defined __cplusplus +# if 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# else +# define YY_NULLPTR ((void*)0) +# endif +# endif + /* Debug traces. */ #ifndef PARSER4_DEBUG # if defined YYDEBUG @@ -135,120 +178,174 @@ using namespace std; # endif /* ! defined YYDEBUG */ #endif /* ! defined PARSER4_DEBUG */ -#line 14 "dhcp4_parser.yy" // lalr1.cc:377 +#line 14 "dhcp4_parser.yy" // lalr1.cc:401 namespace isc { namespace dhcp { -#line 141 "dhcp4_parser.h" // lalr1.cc:377 +#line 184 "dhcp4_parser.h" // lalr1.cc:401 - /// A char[S] buffer to store and retrieve objects. + /// A Bison parser. + class Dhcp4Parser + { + public: +#ifndef PARSER4_STYPE + /// A 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 - struct variant + /// via the current parser state. + class semantic_type { + public: /// Type of *this. - typedef variant self_type; + typedef semantic_type self_type; /// Empty construction. - variant () - : yytypeid_ (YY_NULLPTR) + semantic_type () YY_NOEXCEPT + : yybuffer_ () + , yytypeid_ (YY_NULLPTR) {} /// Construct and fill. template - variant (const T& t) + semantic_type (YY_RVREF (T) t) : yytypeid_ (&typeid (T)) { - YYASSERT (sizeof (T) <= S); - new (yyas_ ()) T (t); + YYASSERT (sizeof (T) <= size); + new (yyas_ ()) T (YY_MOVE (t)); } /// Destruction, allowed only if empty. - ~variant () + ~semantic_type () YY_NOEXCEPT { YYASSERT (!yytypeid_); } +# if 201103L <= YY_CPLUSPLUS + /// Instantiate a \a T in here from \a t. + template + T& + emplace (U&&... u) + { + YYASSERT (!yytypeid_); + YYASSERT (sizeof (T) <= size); + yytypeid_ = & typeid (T); + return *new (yyas_ ()) T (std::forward (u)...); + } +# else /// Instantiate an empty \a T in here. template T& - build () + emplace () { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); - return *new (yyas_ ()) T; + return *new (yyas_ ()) T (); } /// Instantiate a \a T in here from \a t. template T& - build (const T& t) + emplace (const T& t) { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); return *new (yyas_ ()) T (t); } +# endif + + /// Instantiate an empty \a T in here. + /// Obsolete, use emplace. + template + T& + build () + { + return emplace (); + } + + /// Instantiate a \a T in here from \a t. + /// Obsolete, use emplace. + template + T& + build (const T& t) + { + return emplace (t); + } /// Accessor to a built \a T. template T& - as () + as () YY_NOEXCEPT { + YYASSERT (yytypeid_); YYASSERT (*yytypeid_ == typeid (T)); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); return *yyas_ (); } /// Const accessor to a built \a T (for %printer). template const T& - as () const + as () const YY_NOEXCEPT { + YYASSERT (yytypeid_); YYASSERT (*yytypeid_ == typeid (T)); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); return *yyas_ (); } - /// Swap the content with \a other, of same type. + /// Swap the content with \a that, 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. + /// should not be the variant's responsibility. /// Swapping between built and (possibly) non-built is done with - /// variant::move (). + /// self_type::move (). template void - swap (self_type& other) + swap (self_type& that) YY_NOEXCEPT { YYASSERT (yytypeid_); - YYASSERT (*yytypeid_ == *other.yytypeid_); - std::swap (as (), other.as ()); + YYASSERT (*yytypeid_ == *that.yytypeid_); + std::swap (as (), that.as ()); } - /// Move the content of \a other to this. + /// Move the content of \a that to this. /// - /// Destroys \a other. + /// Destroys \a that. + template + void + move (self_type& that) + { +# if 201103L <= YY_CPLUSPLUS + emplace (std::move (that.as ())); +# else + emplace (); + swap (that); +# endif + that.destroy (); + } + +# if 201103L <= YY_CPLUSPLUS + /// Move the content of \a that to this. template void - move (self_type& other) + move (self_type&& that) { - build (); - swap (other); - other.destroy (); + emplace (std::move (that.as ())); + that.destroy (); } +#endif - /// Copy the content of \a other to this. + /// Copy the content of \a that to this. template void - copy (const self_type& other) + copy (const self_type& that) { - build (other.as ()); + emplace (that.as ()); } /// Destroy the stored \a T. @@ -262,13 +359,13 @@ namespace isc { namespace dhcp { private: /// Prohibit blind copies. - self_type& operator=(const self_type&); - variant (const self_type&); + self_type& operator= (const self_type&); + semantic_type (const self_type&); /// Accessor to raw memory as \a T. template T* - yyas_ () + yyas_ () YY_NOEXCEPT { void *yyp = yybuffer_.yyraw; return static_cast (yyp); @@ -277,30 +374,12 @@ namespace isc { namespace dhcp { /// Const accessor to raw memory as \a T. template const T* - yyas_ () const + yyas_ () const YY_NOEXCEPT { const void *yyp = yybuffer_.yyraw; return static_cast (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 Dhcp4Parser - { - public: -#ifndef PARSER4_STYPE /// An auxiliary type to compute the largest semantic type. union union_type { @@ -312,23 +391,37 @@ namespace isc { namespace dhcp { // hr_mode // ncr_protocol_value // replace_client_name_value - char dummy1[sizeof(ElementPtr)]; + char dummy1[sizeof (ElementPtr)]; // "boolean" - char dummy2[sizeof(bool)]; + char dummy2[sizeof (bool)]; // "floating point" - char dummy3[sizeof(double)]; + char dummy3[sizeof (double)]; // "integer" - char dummy4[sizeof(int64_t)]; + char dummy4[sizeof (int64_t)]; // "constant string" - char dummy5[sizeof(std::string)]; -}; + char dummy5[sizeof (std::string)]; + }; + + /// The size of the largest semantic type. + enum { size = sizeof (union_type) }; + + /// A buffer to store semantic values. + union + { + /// Strongest alignment constraints. + long double yyalign_me; + /// A buffer large enough to store any of the semantic values. + char yyraw[size]; + } yybuffer_; + + /// Whether the content is built: if defined, the name of the stored type. + const std::type_info *yytypeid_; + }; - /// Symbol semantic values. - typedef variant semantic_type; #else typedef PARSER4_STYPE semantic_type; #endif @@ -338,7 +431,18 @@ namespace isc { namespace dhcp { /// Syntax errors thrown from user actions. struct syntax_error : std::runtime_error { - syntax_error (const location_type& l, const std::string& m); + syntax_error (const location_type& l, const std::string& m) + : std::runtime_error (m) + , location (l) + {} + + syntax_error (const syntax_error& s) + : std::runtime_error (s.what ()) + , location (s.location) + {} + + ~syntax_error () YY_NOEXCEPT YY_NOTHROW; + location_type location; }; @@ -537,7 +641,7 @@ namespace isc { namespace dhcp { /// A complete symbol. /// /// Expects its Base type to provide access to the symbol type - /// via type_get(). + /// via type_get (). /// /// Provide access to semantic value and location. template @@ -547,39 +651,155 @@ namespace isc { namespace dhcp { typedef Base super_type; /// Default constructor. - basic_symbol (); + basic_symbol () + : value () + , location () + {} + +#if 201103L <= YY_CPLUSPLUS + /// Move constructor. + basic_symbol (basic_symbol&& that); +#endif /// Copy constructor. - basic_symbol (const basic_symbol& other); + basic_symbol (const basic_symbol& that); /// Constructor for valueless symbols, and symbols from each type. +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, location_type&& l) + : Base (t) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const location_type& l) + : Base (t) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, double&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const double& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif - 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); + /// Destroy the symbol. + ~basic_symbol () + { + clear (); + } - basic_symbol (typename Base::kind_type t, const double v, const location_type& l); + /// Destroy contents, and record that is empty. + void clear () + { + // User destructor. + symbol_number_type yytype = this->type_get (); + basic_symbol& yysym = *this; + (void) yysym; + switch (yytype) + { + default: + break; + } + + // Type destructor. +switch (yytype) + { + case 190: // value + case 194: // map_value + case 238: // socket_type + case 241: // outbound_interface_value + case 263: // db_type + case 349: // hr_mode + case 498: // ncr_protocol_value + case 505: // replace_client_name_value + value.template destroy< ElementPtr > (); + break; - basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l); + case 173: // "boolean" + value.template destroy< bool > (); + break; - basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l); + case 172: // "floating point" + value.template destroy< double > (); + break; + case 171: // "integer" + value.template destroy< int64_t > (); + break; - /// Constructor for symbols with semantic value. - basic_symbol (typename Base::kind_type t, - const semantic_type& v, - const location_type& l); + case 170: // "constant string" + value.template destroy< std::string > (); + break; - /// Destroy the symbol. - ~basic_symbol (); + default: + break; + } - /// Destroy contents, and record that is empty. - void clear (); + Base::clear (); + } /// Whether empty. - bool empty () const; + bool empty () const YY_NOEXCEPT; /// Destructive move, \a s is emptied into this. void move (basic_symbol& s); @@ -591,8 +811,10 @@ namespace isc { namespace dhcp { location_type location; private: +#if YY_CPLUSPLUS < 201103L /// Assignment operator. - basic_symbol& operator= (const basic_symbol& other); + basic_symbol& operator= (const basic_symbol& that); +#endif }; /// Type access provider for token (enum) based symbols. @@ -601,8 +823,13 @@ namespace isc { namespace dhcp { /// Default constructor. by_type (); +#if 201103L <= YY_CPLUSPLUS + /// Move constructor. + by_type (by_type&& that); +#endif + /// Copy constructor. - by_type (const by_type& other); + by_type (const by_type& that); /// The symbol type as needed by the constructor. typedef token_type kind_type; @@ -618,10 +845,10 @@ namespace isc { namespace dhcp { /// The (internal) type number (corresponding to \a type). /// \a empty when empty. - symbol_number_type type_get () const; + symbol_number_type type_get () const YY_NOEXCEPT; /// The token. - token_type token () const; + token_type token () const YY_NOEXCEPT; /// The symbol type. /// \a empty_symbol when empty. @@ -630,2338 +857,3298 @@ namespace isc { namespace dhcp { }; /// "External" symbols: returned by the scanner. - typedef basic_symbol 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_DHCP4 (const location_type& l); - - static inline - symbol_type - make_CONFIG_CONTROL (const location_type& l); - - static inline - symbol_type - make_CONFIG_DATABASES (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_DHCP_SOCKET_TYPE (const location_type& l); - - static inline - symbol_type - make_RAW (const location_type& l); - - static inline - symbol_type - make_UDP (const location_type& l); - - static inline - symbol_type - make_OUTBOUND_INTERFACE (const location_type& l); - - static inline - symbol_type - make_SAME_AS_INBOUND (const location_type& l); - - static inline - symbol_type - make_USE_ROUTING (const location_type& l); - - static inline - symbol_type - make_RE_DETECT (const location_type& l); - - static inline - symbol_type - make_SANITY_CHECKS (const location_type& l); - - static inline - symbol_type - make_LEASE_CHECKS (const location_type& l); - - static inline - symbol_type - make_ECHO_CLIENT_ID (const location_type& l); - - static inline - symbol_type - make_MATCH_CLIENT_ID (const location_type& l); - - static inline - symbol_type - make_AUTHORITATIVE (const location_type& l); - - static inline - symbol_type - make_NEXT_SERVER (const location_type& l); - - static inline - symbol_type - make_SERVER_HOSTNAME (const location_type& l); - - static inline - symbol_type - make_BOOT_FILE_NAME (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_HOSTS_DATABASES (const location_type& l); - - static inline - symbol_type - make_TYPE (const location_type& l); - - static inline - symbol_type - make_MEMFILE (const location_type& l); - - static inline - symbol_type - make_MYSQL (const location_type& l); - - static inline - symbol_type - make_POSTGRESQL (const location_type& l); - - static inline - symbol_type - make_CQL (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_PORT (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_CONNECT_TIMEOUT (const location_type& l); - - static inline - symbol_type - make_CONTACT_POINTS (const location_type& l); - - static inline - symbol_type - make_KEYSPACE (const location_type& l); - - static inline - symbol_type - make_CONSISTENCY (const location_type& l); - - static inline - symbol_type - make_SERIAL_CONSISTENCY (const location_type& l); - - static inline - symbol_type - make_MAX_RECONNECT_TRIES (const location_type& l); - - static inline - symbol_type - make_RECONNECT_WAIT_TIME (const location_type& l); - - static inline - symbol_type - make_REQUEST_TIMEOUT (const location_type& l); - - static inline - symbol_type - make_TCP_KEEPALIVE (const location_type& l); - - static inline - symbol_type - make_TCP_NODELAY (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_CALCULATE_TEE_TIMES (const location_type& l); - - static inline - symbol_type - make_T1_PERCENT (const location_type& l); - - static inline - symbol_type - make_T2_PERCENT (const location_type& l); - - static inline - symbol_type - make_DECLINE_PROBATION_PERIOD (const location_type& l); - - static inline - symbol_type - make_SERVER_TAG (const location_type& l); + struct symbol_type : basic_symbol + { + /// Superclass. + typedef basic_symbol super_type; - static inline - symbol_type - make_SUBNET4 (const location_type& l); + /// Empty symbol. + symbol_type () {} - static inline - symbol_type - make_SUBNET_4O6_INTERFACE (const location_type& l); + /// Constructor for valueless symbols, and symbols from each type. +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, location_type l) + : super_type(token_type (tok), std::move (l)) + { + YYASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP4 || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_DHCP_SOCKET_TYPE || tok == token::TOKEN_RAW || tok == token::TOKEN_UDP || tok == token::TOKEN_OUTBOUND_INTERFACE || tok == token::TOKEN_SAME_AS_INBOUND || tok == token::TOKEN_USE_ROUTING || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_ECHO_CLIENT_ID || tok == token::TOKEN_MATCH_CLIENT_ID || tok == token::TOKEN_AUTHORITATIVE || tok == token::TOKEN_NEXT_SERVER || tok == token::TOKEN_SERVER_HOSTNAME || tok == token::TOKEN_BOOT_FILE_NAME || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_CQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_CONTACT_POINTS || tok == token::TOKEN_KEYSPACE || tok == token::TOKEN_CONSISTENCY || tok == token::TOKEN_SERIAL_CONSISTENCY || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_REQUEST_TIMEOUT || tok == token::TOKEN_TCP_KEEPALIVE || tok == token::TOKEN_TCP_NODELAY || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_CALCULATE_TEE_TIMES || tok == token::TOKEN_T1_PERCENT || tok == token::TOKEN_T2_PERCENT || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_SUBNET4 || tok == token::TOKEN_SUBNET_4O6_INTERFACE || tok == token::TOKEN_SUBNET_4O6_INTERFACE_ID || tok == token::TOKEN_SUBNET_4O6_SUBNET || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_ID || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_CIRCUIT_ID || tok == token::TOKEN_CLIENT_ID || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP4 || tok == token::TOKEN_SUB_DHCP4 || tok == token::TOKEN_SUB_INTERFACES4 || tok == token::TOKEN_SUB_SUBNET4 || tok == token::TOKEN_SUB_POOL4 || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_LOGGING || tok == token::TOKEN_SUB_CONFIG_CONTROL); + } +#else + symbol_type (int tok, const location_type& l) + : super_type(token_type (tok), l) + { + YYASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP4 || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_DHCP_SOCKET_TYPE || tok == token::TOKEN_RAW || tok == token::TOKEN_UDP || tok == token::TOKEN_OUTBOUND_INTERFACE || tok == token::TOKEN_SAME_AS_INBOUND || tok == token::TOKEN_USE_ROUTING || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_ECHO_CLIENT_ID || tok == token::TOKEN_MATCH_CLIENT_ID || tok == token::TOKEN_AUTHORITATIVE || tok == token::TOKEN_NEXT_SERVER || tok == token::TOKEN_SERVER_HOSTNAME || tok == token::TOKEN_BOOT_FILE_NAME || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_CQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_CONTACT_POINTS || tok == token::TOKEN_KEYSPACE || tok == token::TOKEN_CONSISTENCY || tok == token::TOKEN_SERIAL_CONSISTENCY || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_REQUEST_TIMEOUT || tok == token::TOKEN_TCP_KEEPALIVE || tok == token::TOKEN_TCP_NODELAY || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_CALCULATE_TEE_TIMES || tok == token::TOKEN_T1_PERCENT || tok == token::TOKEN_T2_PERCENT || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_SUBNET4 || tok == token::TOKEN_SUBNET_4O6_INTERFACE || tok == token::TOKEN_SUBNET_4O6_INTERFACE_ID || tok == token::TOKEN_SUBNET_4O6_SUBNET || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_ID || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_CIRCUIT_ID || tok == token::TOKEN_CLIENT_ID || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP4 || tok == token::TOKEN_SUB_DHCP4 || tok == token::TOKEN_SUB_INTERFACES4 || tok == token::TOKEN_SUB_SUBNET4 || tok == token::TOKEN_SUB_POOL4 || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_LOGGING || tok == token::TOKEN_SUB_CONFIG_CONTROL); + } +#endif +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, bool v, location_type l) + : super_type(token_type (tok), std::move (v), std::move (l)) + { + YYASSERT (tok == token::TOKEN_BOOLEAN); + } +#else + symbol_type (int tok, const bool& v, const location_type& l) + : super_type(token_type (tok), v, l) + { + YYASSERT (tok == token::TOKEN_BOOLEAN); + } +#endif +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, double v, location_type l) + : super_type(token_type (tok), std::move (v), std::move (l)) + { + YYASSERT (tok == token::TOKEN_FLOAT); + } +#else + symbol_type (int tok, const double& v, const location_type& l) + : super_type(token_type (tok), v, l) + { + YYASSERT (tok == token::TOKEN_FLOAT); + } +#endif +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, int64_t v, location_type l) + : super_type(token_type (tok), std::move (v), std::move (l)) + { + YYASSERT (tok == token::TOKEN_INTEGER); + } +#else + symbol_type (int tok, const int64_t& v, const location_type& l) + : super_type(token_type (tok), v, l) + { + YYASSERT (tok == token::TOKEN_INTEGER); + } +#endif +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, std::string v, location_type l) + : super_type(token_type (tok), std::move (v), std::move (l)) + { + YYASSERT (tok == token::TOKEN_STRING); + } +#else + symbol_type (int tok, const std::string& v, const location_type& l) + : super_type(token_type (tok), v, l) + { + YYASSERT (tok == token::TOKEN_STRING); + } +#endif + }; - static inline - symbol_type - make_SUBNET_4O6_INTERFACE_ID (const location_type& l); + /// Build a parser object. + Dhcp4Parser (isc::dhcp::Parser4Context& ctx_yyarg); + virtual ~Dhcp4Parser (); - static inline - symbol_type - make_SUBNET_4O6_SUBNET (const location_type& l); + /// Parse. An alias for parse (). + /// \returns 0 iff parsing succeeded. + int operator() (); - static inline - symbol_type - make_OPTION_DEF (const location_type& l); + /// Parse. + /// \returns 0 iff parsing succeeded. + virtual int parse (); - static inline - symbol_type - make_OPTION_DATA (const location_type& l); +#if PARSER4_DEBUG + /// The current debugging stream. + std::ostream& debug_stream () const YY_ATTRIBUTE_PURE; + /// Set the current debugging stream. + void set_debug_stream (std::ostream &); - static inline - symbol_type - make_NAME (const location_type& l); + /// 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 - static inline - symbol_type - make_DATA (const location_type& l); + /// 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); - static inline - symbol_type - make_CODE (const location_type& l); + /// Report a syntax error. + void error (const syntax_error& err); - 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_ALWAYS_SEND (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_SHARED_NETWORKS (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_USER_CONTEXT (const location_type& l); - - static inline - symbol_type - make_COMMENT (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_ID (const location_type& l); - - static inline - symbol_type - make_RESERVATION_MODE (const location_type& l); - - static inline - symbol_type - make_DISABLED (const location_type& l); - - static inline - symbol_type - make_OUT_OF_POOL (const location_type& l); - - static inline - symbol_type - make_GLOBAL (const location_type& l); - - static inline - symbol_type - make_ALL (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_REQUIRE_CLIENT_CLASSES (const location_type& l); - - static inline - symbol_type - make_TEST (const location_type& l); - - static inline - symbol_type - make_ONLY_IF_REQUIRED (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_DUID (const location_type& l); - - static inline - symbol_type - make_HW_ADDRESS (const location_type& l); - - static inline - symbol_type - make_CIRCUIT_ID (const location_type& l); - - static inline - symbol_type - make_CLIENT_ID (const location_type& l); - - static inline - symbol_type - make_HOSTNAME (const location_type& l); - - static inline - symbol_type - make_FLEX_ID (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_IP_ADDRESSES (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_RECLAIM_TIMER_WAIT_TIME (const location_type& l); - - static inline - symbol_type - make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l); - - static inline - symbol_type - make_HOLD_RECLAIMED_TIME (const location_type& l); - - static inline - symbol_type - make_MAX_RECLAIM_LEASES (const location_type& l); - - static inline - symbol_type - make_MAX_RECLAIM_TIME (const location_type& l); - - static inline - symbol_type - make_UNWARNED_RECLAIM_CYCLES (const location_type& l); - - static inline - symbol_type - make_DHCP4O6_PORT (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_QUEUE_CONTROL (const location_type& l); - - static inline - symbol_type - make_DHCP_DDNS (const location_type& l); - - static inline - symbol_type - make_ENABLE_UPDATES (const location_type& l); - - static inline - symbol_type - make_QUALIFYING_SUFFIX (const location_type& l); - - static inline - symbol_type - make_SERVER_IP (const location_type& l); - - static inline - symbol_type - make_SERVER_PORT (const location_type& l); - - static inline - symbol_type - make_SENDER_IP (const location_type& l); - - static inline - symbol_type - make_SENDER_PORT (const location_type& l); - - static inline - symbol_type - make_MAX_QUEUE_SIZE (const location_type& l); - - static inline - symbol_type - make_NCR_PROTOCOL (const location_type& l); - - static inline - symbol_type - make_NCR_FORMAT (const location_type& l); - - static inline - symbol_type - make_OVERRIDE_NO_UPDATE (const location_type& l); - - static inline - symbol_type - make_OVERRIDE_CLIENT_UPDATE (const location_type& l); - - static inline - symbol_type - make_REPLACE_CLIENT_NAME (const location_type& l); - - static inline - symbol_type - make_GENERATED_PREFIX (const location_type& l); - - static inline - symbol_type - make_TCP (const location_type& l); - - static inline - symbol_type - make_JSON (const location_type& l); - - static inline - symbol_type - make_WHEN_PRESENT (const location_type& l); - - static inline - symbol_type - make_NEVER (const location_type& l); - - static inline - symbol_type - make_ALWAYS (const location_type& l); - - static inline - symbol_type - make_WHEN_NOT_PRESENT (const location_type& l); - - static inline - symbol_type - make_HOSTNAME_CHAR_SET (const location_type& l); - - static inline - symbol_type - make_HOSTNAME_CHAR_REPLACEMENT (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_FLUSH (const location_type& l); - - static inline - symbol_type - make_MAXSIZE (const location_type& l); - - static inline - symbol_type - make_MAXVER (const location_type& l); - - static inline - symbol_type - make_DHCP6 (const location_type& l); - - static inline - symbol_type - make_DHCPDDNS (const location_type& l); - - static inline - symbol_type - make_CONTROL_AGENT (const location_type& l); - - static inline - symbol_type - make_TOPLEVEL_JSON (const location_type& l); - - static inline - symbol_type - make_TOPLEVEL_DHCP4 (const location_type& l); - - static inline - symbol_type - make_SUB_DHCP4 (const location_type& l); - - static inline - symbol_type - make_SUB_INTERFACES4 (const location_type& l); - - static inline - symbol_type - make_SUB_SUBNET4 (const location_type& l); - - static inline - symbol_type - make_SUB_POOL4 (const location_type& l); - - static inline - symbol_type - make_SUB_RESERVATION (const location_type& l); - - static inline - symbol_type - make_SUB_OPTION_DEFS (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_SUB_DHCP_DDNS (const location_type& l); - - static inline - symbol_type - make_SUB_LOGGING (const location_type& l); - - static inline - symbol_type - make_SUB_CONFIG_CONTROL (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. - Dhcp4Parser (isc::dhcp::Parser4Context& ctx_yyarg); - virtual ~Dhcp4Parser (); - - /// Parse. - /// \returns 0 iff parsing succeeded. - virtual int parse (); - -#if PARSER4_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); + // Implementation of make_symbol for each symbol type. +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_END (location_type l) + { + return symbol_type (token::TOKEN_END, std::move (l)); + } +#else + static + symbol_type + make_END (const location_type& l) + { + return symbol_type (token::TOKEN_END, 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. - Dhcp4Parser (const Dhcp4Parser&); - Dhcp4Parser& operator= (const Dhcp4Parser&); - - /// 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 PARSER4_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 - void yy_print_ (std::ostream& yyo, const basic_symbol& yysym) const; +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_COMMA (location_type l) + { + return symbol_type (token::TOKEN_COMMA, std::move (l)); + } +#else + static + symbol_type + make_COMMA (const location_type& l) + { + return symbol_type (token::TOKEN_COMMA, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_COLON (location_type l) + { + return symbol_type (token::TOKEN_COLON, std::move (l)); + } +#else + static + symbol_type + make_COLON (const location_type& l) + { + return symbol_type (token::TOKEN_COLON, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LSQUARE_BRACKET (location_type l) + { + return symbol_type (token::TOKEN_LSQUARE_BRACKET, std::move (l)); + } +#else + static + symbol_type + make_LSQUARE_BRACKET (const location_type& l) + { + return symbol_type (token::TOKEN_LSQUARE_BRACKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RSQUARE_BRACKET (location_type l) + { + return symbol_type (token::TOKEN_RSQUARE_BRACKET, std::move (l)); + } +#else + static + symbol_type + make_RSQUARE_BRACKET (const location_type& l) + { + return symbol_type (token::TOKEN_RSQUARE_BRACKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LCURLY_BRACKET (location_type l) + { + return symbol_type (token::TOKEN_LCURLY_BRACKET, std::move (l)); + } +#else + static + symbol_type + make_LCURLY_BRACKET (const location_type& l) + { + return symbol_type (token::TOKEN_LCURLY_BRACKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RCURLY_BRACKET (location_type l) + { + return symbol_type (token::TOKEN_RCURLY_BRACKET, std::move (l)); + } +#else + static + symbol_type + make_RCURLY_BRACKET (const location_type& l) + { + return symbol_type (token::TOKEN_RCURLY_BRACKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NULL_TYPE (location_type l) + { + return symbol_type (token::TOKEN_NULL_TYPE, std::move (l)); + } +#else + static + symbol_type + make_NULL_TYPE (const location_type& l) + { + return symbol_type (token::TOKEN_NULL_TYPE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP4 (location_type l) + { + return symbol_type (token::TOKEN_DHCP4, std::move (l)); + } +#else + static + symbol_type + make_DHCP4 (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP4, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONFIG_CONTROL (location_type l) + { + return symbol_type (token::TOKEN_CONFIG_CONTROL, std::move (l)); + } +#else + static + symbol_type + make_CONFIG_CONTROL (const location_type& l) + { + return symbol_type (token::TOKEN_CONFIG_CONTROL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONFIG_DATABASES (location_type l) + { + return symbol_type (token::TOKEN_CONFIG_DATABASES, std::move (l)); + } +#else + static + symbol_type + make_CONFIG_DATABASES (const location_type& l) + { + return symbol_type (token::TOKEN_CONFIG_DATABASES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_INTERFACES_CONFIG (location_type l) + { + return symbol_type (token::TOKEN_INTERFACES_CONFIG, std::move (l)); + } +#else + static + symbol_type + make_INTERFACES_CONFIG (const location_type& l) + { + return symbol_type (token::TOKEN_INTERFACES_CONFIG, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_INTERFACES (location_type l) + { + return symbol_type (token::TOKEN_INTERFACES, std::move (l)); + } +#else + static + symbol_type + make_INTERFACES (const location_type& l) + { + return symbol_type (token::TOKEN_INTERFACES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP_SOCKET_TYPE (location_type l) + { + return symbol_type (token::TOKEN_DHCP_SOCKET_TYPE, std::move (l)); + } +#else + static + symbol_type + make_DHCP_SOCKET_TYPE (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP_SOCKET_TYPE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RAW (location_type l) + { + return symbol_type (token::TOKEN_RAW, std::move (l)); + } +#else + static + symbol_type + make_RAW (const location_type& l) + { + return symbol_type (token::TOKEN_RAW, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_UDP (location_type l) + { + return symbol_type (token::TOKEN_UDP, std::move (l)); + } +#else + static + symbol_type + make_UDP (const location_type& l) + { + return symbol_type (token::TOKEN_UDP, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OUTBOUND_INTERFACE (location_type l) + { + return symbol_type (token::TOKEN_OUTBOUND_INTERFACE, std::move (l)); + } +#else + static + symbol_type + make_OUTBOUND_INTERFACE (const location_type& l) + { + return symbol_type (token::TOKEN_OUTBOUND_INTERFACE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SAME_AS_INBOUND (location_type l) + { + return symbol_type (token::TOKEN_SAME_AS_INBOUND, std::move (l)); + } +#else + static + symbol_type + make_SAME_AS_INBOUND (const location_type& l) + { + return symbol_type (token::TOKEN_SAME_AS_INBOUND, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_USE_ROUTING (location_type l) + { + return symbol_type (token::TOKEN_USE_ROUTING, std::move (l)); + } +#else + static + symbol_type + make_USE_ROUTING (const location_type& l) + { + return symbol_type (token::TOKEN_USE_ROUTING, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RE_DETECT (location_type l) + { + return symbol_type (token::TOKEN_RE_DETECT, std::move (l)); + } +#else + static + symbol_type + make_RE_DETECT (const location_type& l) + { + return symbol_type (token::TOKEN_RE_DETECT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SANITY_CHECKS (location_type l) + { + return symbol_type (token::TOKEN_SANITY_CHECKS, std::move (l)); + } +#else + static + symbol_type + make_SANITY_CHECKS (const location_type& l) + { + return symbol_type (token::TOKEN_SANITY_CHECKS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LEASE_CHECKS (location_type l) + { + return symbol_type (token::TOKEN_LEASE_CHECKS, std::move (l)); + } +#else + static + symbol_type + make_LEASE_CHECKS (const location_type& l) + { + return symbol_type (token::TOKEN_LEASE_CHECKS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ECHO_CLIENT_ID (location_type l) + { + return symbol_type (token::TOKEN_ECHO_CLIENT_ID, std::move (l)); + } +#else + static + symbol_type + make_ECHO_CLIENT_ID (const location_type& l) + { + return symbol_type (token::TOKEN_ECHO_CLIENT_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MATCH_CLIENT_ID (location_type l) + { + return symbol_type (token::TOKEN_MATCH_CLIENT_ID, std::move (l)); + } +#else + static + symbol_type + make_MATCH_CLIENT_ID (const location_type& l) + { + return symbol_type (token::TOKEN_MATCH_CLIENT_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_AUTHORITATIVE (location_type l) + { + return symbol_type (token::TOKEN_AUTHORITATIVE, std::move (l)); + } +#else + static + symbol_type + make_AUTHORITATIVE (const location_type& l) + { + return symbol_type (token::TOKEN_AUTHORITATIVE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NEXT_SERVER (location_type l) + { + return symbol_type (token::TOKEN_NEXT_SERVER, std::move (l)); + } +#else + static + symbol_type + make_NEXT_SERVER (const location_type& l) + { + return symbol_type (token::TOKEN_NEXT_SERVER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERVER_HOSTNAME (location_type l) + { + return symbol_type (token::TOKEN_SERVER_HOSTNAME, std::move (l)); + } +#else + static + symbol_type + make_SERVER_HOSTNAME (const location_type& l) + { + return symbol_type (token::TOKEN_SERVER_HOSTNAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_BOOT_FILE_NAME (location_type l) + { + return symbol_type (token::TOKEN_BOOT_FILE_NAME, std::move (l)); + } +#else + static + symbol_type + make_BOOT_FILE_NAME (const location_type& l) + { + return symbol_type (token::TOKEN_BOOT_FILE_NAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LEASE_DATABASE (location_type l) + { + return symbol_type (token::TOKEN_LEASE_DATABASE, std::move (l)); + } +#else + static + symbol_type + make_LEASE_DATABASE (const location_type& l) + { + return symbol_type (token::TOKEN_LEASE_DATABASE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTS_DATABASE (location_type l) + { + return symbol_type (token::TOKEN_HOSTS_DATABASE, std::move (l)); + } +#else + static + symbol_type + make_HOSTS_DATABASE (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTS_DATABASE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTS_DATABASES (location_type l) + { + return symbol_type (token::TOKEN_HOSTS_DATABASES, std::move (l)); + } +#else + static + symbol_type + make_HOSTS_DATABASES (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTS_DATABASES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TYPE (location_type l) + { + return symbol_type (token::TOKEN_TYPE, std::move (l)); + } +#else + static + symbol_type + make_TYPE (const location_type& l) + { + return symbol_type (token::TOKEN_TYPE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MEMFILE (location_type l) + { + return symbol_type (token::TOKEN_MEMFILE, std::move (l)); + } +#else + static + symbol_type + make_MEMFILE (const location_type& l) + { + return symbol_type (token::TOKEN_MEMFILE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MYSQL (location_type l) + { + return symbol_type (token::TOKEN_MYSQL, std::move (l)); + } +#else + static + symbol_type + make_MYSQL (const location_type& l) + { + return symbol_type (token::TOKEN_MYSQL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_POSTGRESQL (location_type l) + { + return symbol_type (token::TOKEN_POSTGRESQL, std::move (l)); + } +#else + static + symbol_type + make_POSTGRESQL (const location_type& l) + { + return symbol_type (token::TOKEN_POSTGRESQL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CQL (location_type l) + { + return symbol_type (token::TOKEN_CQL, std::move (l)); + } +#else + static + symbol_type + make_CQL (const location_type& l) + { + return symbol_type (token::TOKEN_CQL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_USER (location_type l) + { + return symbol_type (token::TOKEN_USER, std::move (l)); + } +#else + static + symbol_type + make_USER (const location_type& l) + { + return symbol_type (token::TOKEN_USER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PASSWORD (location_type l) + { + return symbol_type (token::TOKEN_PASSWORD, std::move (l)); + } +#else + static + symbol_type + make_PASSWORD (const location_type& l) + { + return symbol_type (token::TOKEN_PASSWORD, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOST (location_type l) + { + return symbol_type (token::TOKEN_HOST, std::move (l)); + } +#else + static + symbol_type + make_HOST (const location_type& l) + { + return symbol_type (token::TOKEN_HOST, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PORT (location_type l) + { + return symbol_type (token::TOKEN_PORT, std::move (l)); + } +#else + static + symbol_type + make_PORT (const location_type& l) + { + return symbol_type (token::TOKEN_PORT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PERSIST (location_type l) + { + return symbol_type (token::TOKEN_PERSIST, std::move (l)); + } +#else + static + symbol_type + make_PERSIST (const location_type& l) + { + return symbol_type (token::TOKEN_PERSIST, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LFC_INTERVAL (location_type l) + { + return symbol_type (token::TOKEN_LFC_INTERVAL, std::move (l)); + } +#else + static + symbol_type + make_LFC_INTERVAL (const location_type& l) + { + return symbol_type (token::TOKEN_LFC_INTERVAL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_READONLY (location_type l) + { + return symbol_type (token::TOKEN_READONLY, std::move (l)); + } +#else + static + symbol_type + make_READONLY (const location_type& l) + { + return symbol_type (token::TOKEN_READONLY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONNECT_TIMEOUT (location_type l) + { + return symbol_type (token::TOKEN_CONNECT_TIMEOUT, std::move (l)); + } +#else + static + symbol_type + make_CONNECT_TIMEOUT (const location_type& l) + { + return symbol_type (token::TOKEN_CONNECT_TIMEOUT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONTACT_POINTS (location_type l) + { + return symbol_type (token::TOKEN_CONTACT_POINTS, std::move (l)); + } +#else + static + symbol_type + make_CONTACT_POINTS (const location_type& l) + { + return symbol_type (token::TOKEN_CONTACT_POINTS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_KEYSPACE (location_type l) + { + return symbol_type (token::TOKEN_KEYSPACE, std::move (l)); + } +#else + static + symbol_type + make_KEYSPACE (const location_type& l) + { + return symbol_type (token::TOKEN_KEYSPACE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONSISTENCY (location_type l) + { + return symbol_type (token::TOKEN_CONSISTENCY, std::move (l)); + } +#else + static + symbol_type + make_CONSISTENCY (const location_type& l) + { + return symbol_type (token::TOKEN_CONSISTENCY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERIAL_CONSISTENCY (location_type l) + { + return symbol_type (token::TOKEN_SERIAL_CONSISTENCY, std::move (l)); + } +#else + static + symbol_type + make_SERIAL_CONSISTENCY (const location_type& l) + { + return symbol_type (token::TOKEN_SERIAL_CONSISTENCY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_RECONNECT_TRIES (location_type l) + { + return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, std::move (l)); + } +#else + static + symbol_type + make_MAX_RECONNECT_TRIES (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RECONNECT_WAIT_TIME (location_type l) + { + return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, std::move (l)); + } +#else + static + symbol_type + make_RECONNECT_WAIT_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_REQUEST_TIMEOUT (location_type l) + { + return symbol_type (token::TOKEN_REQUEST_TIMEOUT, std::move (l)); + } +#else + static + symbol_type + make_REQUEST_TIMEOUT (const location_type& l) + { + return symbol_type (token::TOKEN_REQUEST_TIMEOUT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TCP_KEEPALIVE (location_type l) + { + return symbol_type (token::TOKEN_TCP_KEEPALIVE, std::move (l)); + } +#else + static + symbol_type + make_TCP_KEEPALIVE (const location_type& l) + { + return symbol_type (token::TOKEN_TCP_KEEPALIVE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TCP_NODELAY (location_type l) + { + return symbol_type (token::TOKEN_TCP_NODELAY, std::move (l)); + } +#else + static + symbol_type + make_TCP_NODELAY (const location_type& l) + { + return symbol_type (token::TOKEN_TCP_NODELAY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_VALID_LIFETIME (location_type l) + { + return symbol_type (token::TOKEN_VALID_LIFETIME, std::move (l)); + } +#else + static + symbol_type + make_VALID_LIFETIME (const location_type& l) + { + return symbol_type (token::TOKEN_VALID_LIFETIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RENEW_TIMER (location_type l) + { + return symbol_type (token::TOKEN_RENEW_TIMER, std::move (l)); + } +#else + static + symbol_type + make_RENEW_TIMER (const location_type& l) + { + return symbol_type (token::TOKEN_RENEW_TIMER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_REBIND_TIMER (location_type l) + { + return symbol_type (token::TOKEN_REBIND_TIMER, std::move (l)); + } +#else + static + symbol_type + make_REBIND_TIMER (const location_type& l) + { + return symbol_type (token::TOKEN_REBIND_TIMER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CALCULATE_TEE_TIMES (location_type l) + { + return symbol_type (token::TOKEN_CALCULATE_TEE_TIMES, std::move (l)); + } +#else + static + symbol_type + make_CALCULATE_TEE_TIMES (const location_type& l) + { + return symbol_type (token::TOKEN_CALCULATE_TEE_TIMES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_T1_PERCENT (location_type l) + { + return symbol_type (token::TOKEN_T1_PERCENT, std::move (l)); + } +#else + static + symbol_type + make_T1_PERCENT (const location_type& l) + { + return symbol_type (token::TOKEN_T1_PERCENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_T2_PERCENT (location_type l) + { + return symbol_type (token::TOKEN_T2_PERCENT, std::move (l)); + } +#else + static + symbol_type + make_T2_PERCENT (const location_type& l) + { + return symbol_type (token::TOKEN_T2_PERCENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DECLINE_PROBATION_PERIOD (location_type l) + { + return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, std::move (l)); + } +#else + static + symbol_type + make_DECLINE_PROBATION_PERIOD (const location_type& l) + { + return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERVER_TAG (location_type l) + { + return symbol_type (token::TOKEN_SERVER_TAG, std::move (l)); + } +#else + static + symbol_type + make_SERVER_TAG (const location_type& l) + { + return symbol_type (token::TOKEN_SERVER_TAG, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUBNET4 (location_type l) + { + return symbol_type (token::TOKEN_SUBNET4, std::move (l)); + } +#else + static + symbol_type + make_SUBNET4 (const location_type& l) + { + return symbol_type (token::TOKEN_SUBNET4, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUBNET_4O6_INTERFACE (location_type l) + { + return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE, std::move (l)); + } +#else + static + symbol_type + make_SUBNET_4O6_INTERFACE (const location_type& l) + { + return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUBNET_4O6_INTERFACE_ID (location_type l) + { + return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE_ID, std::move (l)); + } +#else + static + symbol_type + make_SUBNET_4O6_INTERFACE_ID (const location_type& l) + { + return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUBNET_4O6_SUBNET (location_type l) + { + return symbol_type (token::TOKEN_SUBNET_4O6_SUBNET, std::move (l)); + } +#else + static + symbol_type + make_SUBNET_4O6_SUBNET (const location_type& l) + { + return symbol_type (token::TOKEN_SUBNET_4O6_SUBNET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OPTION_DEF (location_type l) + { + return symbol_type (token::TOKEN_OPTION_DEF, std::move (l)); + } +#else + static + symbol_type + make_OPTION_DEF (const location_type& l) + { + return symbol_type (token::TOKEN_OPTION_DEF, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OPTION_DATA (location_type l) + { + return symbol_type (token::TOKEN_OPTION_DATA, std::move (l)); + } +#else + static + symbol_type + make_OPTION_DATA (const location_type& l) + { + return symbol_type (token::TOKEN_OPTION_DATA, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NAME (location_type l) + { + return symbol_type (token::TOKEN_NAME, std::move (l)); + } +#else + static + symbol_type + make_NAME (const location_type& l) + { + return symbol_type (token::TOKEN_NAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DATA (location_type l) + { + return symbol_type (token::TOKEN_DATA, std::move (l)); + } +#else + static + symbol_type + make_DATA (const location_type& l) + { + return symbol_type (token::TOKEN_DATA, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CODE (location_type l) + { + return symbol_type (token::TOKEN_CODE, std::move (l)); + } +#else + static + symbol_type + make_CODE (const location_type& l) + { + return symbol_type (token::TOKEN_CODE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SPACE (location_type l) + { + return symbol_type (token::TOKEN_SPACE, std::move (l)); + } +#else + static + symbol_type + make_SPACE (const location_type& l) + { + return symbol_type (token::TOKEN_SPACE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CSV_FORMAT (location_type l) + { + return symbol_type (token::TOKEN_CSV_FORMAT, std::move (l)); + } +#else + static + symbol_type + make_CSV_FORMAT (const location_type& l) + { + return symbol_type (token::TOKEN_CSV_FORMAT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ALWAYS_SEND (location_type l) + { + return symbol_type (token::TOKEN_ALWAYS_SEND, std::move (l)); + } +#else + static + symbol_type + make_ALWAYS_SEND (const location_type& l) + { + return symbol_type (token::TOKEN_ALWAYS_SEND, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RECORD_TYPES (location_type l) + { + return symbol_type (token::TOKEN_RECORD_TYPES, std::move (l)); + } +#else + static + symbol_type + make_RECORD_TYPES (const location_type& l) + { + return symbol_type (token::TOKEN_RECORD_TYPES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ENCAPSULATE (location_type l) + { + return symbol_type (token::TOKEN_ENCAPSULATE, std::move (l)); + } +#else + static + symbol_type + make_ENCAPSULATE (const location_type& l) + { + return symbol_type (token::TOKEN_ENCAPSULATE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ARRAY (location_type l) + { + return symbol_type (token::TOKEN_ARRAY, std::move (l)); + } +#else + static + symbol_type + make_ARRAY (const location_type& l) + { + return symbol_type (token::TOKEN_ARRAY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SHARED_NETWORKS (location_type l) + { + return symbol_type (token::TOKEN_SHARED_NETWORKS, std::move (l)); + } +#else + static + symbol_type + make_SHARED_NETWORKS (const location_type& l) + { + return symbol_type (token::TOKEN_SHARED_NETWORKS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_POOLS (location_type l) + { + return symbol_type (token::TOKEN_POOLS, std::move (l)); + } +#else + static + symbol_type + make_POOLS (const location_type& l) + { + return symbol_type (token::TOKEN_POOLS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_POOL (location_type l) + { + return symbol_type (token::TOKEN_POOL, std::move (l)); + } +#else + static + symbol_type + make_POOL (const location_type& l) + { + return symbol_type (token::TOKEN_POOL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_USER_CONTEXT (location_type l) + { + return symbol_type (token::TOKEN_USER_CONTEXT, std::move (l)); + } +#else + static + symbol_type + make_USER_CONTEXT (const location_type& l) + { + return symbol_type (token::TOKEN_USER_CONTEXT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_COMMENT (location_type l) + { + return symbol_type (token::TOKEN_COMMENT, std::move (l)); + } +#else + static + symbol_type + make_COMMENT (const location_type& l) + { + return symbol_type (token::TOKEN_COMMENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUBNET (location_type l) + { + return symbol_type (token::TOKEN_SUBNET, std::move (l)); + } +#else + static + symbol_type + make_SUBNET (const location_type& l) + { + return symbol_type (token::TOKEN_SUBNET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_INTERFACE (location_type l) + { + return symbol_type (token::TOKEN_INTERFACE, std::move (l)); + } +#else + static + symbol_type + make_INTERFACE (const location_type& l) + { + return symbol_type (token::TOKEN_INTERFACE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ID (location_type l) + { + return symbol_type (token::TOKEN_ID, std::move (l)); + } +#else + static + symbol_type + make_ID (const location_type& l) + { + return symbol_type (token::TOKEN_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RESERVATION_MODE (location_type l) + { + return symbol_type (token::TOKEN_RESERVATION_MODE, std::move (l)); + } +#else + static + symbol_type + make_RESERVATION_MODE (const location_type& l) + { + return symbol_type (token::TOKEN_RESERVATION_MODE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DISABLED (location_type l) + { + return symbol_type (token::TOKEN_DISABLED, std::move (l)); + } +#else + static + symbol_type + make_DISABLED (const location_type& l) + { + return symbol_type (token::TOKEN_DISABLED, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OUT_OF_POOL (location_type l) + { + return symbol_type (token::TOKEN_OUT_OF_POOL, std::move (l)); + } +#else + static + symbol_type + make_OUT_OF_POOL (const location_type& l) + { + return symbol_type (token::TOKEN_OUT_OF_POOL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_GLOBAL (location_type l) + { + return symbol_type (token::TOKEN_GLOBAL, std::move (l)); + } +#else + static + symbol_type + make_GLOBAL (const location_type& l) + { + return symbol_type (token::TOKEN_GLOBAL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ALL (location_type l) + { + return symbol_type (token::TOKEN_ALL, std::move (l)); + } +#else + static + symbol_type + make_ALL (const location_type& l) + { + return symbol_type (token::TOKEN_ALL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOST_RESERVATION_IDENTIFIERS (location_type l) + { + return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, std::move (l)); + } +#else + static + symbol_type + make_HOST_RESERVATION_IDENTIFIERS (const location_type& l) + { + return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CLIENT_CLASSES (location_type l) + { + return symbol_type (token::TOKEN_CLIENT_CLASSES, std::move (l)); + } +#else + static + symbol_type + make_CLIENT_CLASSES (const location_type& l) + { + return symbol_type (token::TOKEN_CLIENT_CLASSES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_REQUIRE_CLIENT_CLASSES (location_type l) + { + return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, std::move (l)); + } +#else + static + symbol_type + make_REQUIRE_CLIENT_CLASSES (const location_type& l) + { + return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TEST (location_type l) + { + return symbol_type (token::TOKEN_TEST, std::move (l)); + } +#else + static + symbol_type + make_TEST (const location_type& l) + { + return symbol_type (token::TOKEN_TEST, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ONLY_IF_REQUIRED (location_type l) + { + return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, std::move (l)); + } +#else + static + symbol_type + make_ONLY_IF_REQUIRED (const location_type& l) + { + return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CLIENT_CLASS (location_type l) + { + return symbol_type (token::TOKEN_CLIENT_CLASS, std::move (l)); + } +#else + static + symbol_type + make_CLIENT_CLASS (const location_type& l) + { + return symbol_type (token::TOKEN_CLIENT_CLASS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RESERVATIONS (location_type l) + { + return symbol_type (token::TOKEN_RESERVATIONS, std::move (l)); + } +#else + static + symbol_type + make_RESERVATIONS (const location_type& l) + { + return symbol_type (token::TOKEN_RESERVATIONS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DUID (location_type l) + { + return symbol_type (token::TOKEN_DUID, std::move (l)); + } +#else + static + symbol_type + make_DUID (const location_type& l) + { + return symbol_type (token::TOKEN_DUID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HW_ADDRESS (location_type l) + { + return symbol_type (token::TOKEN_HW_ADDRESS, std::move (l)); + } +#else + static + symbol_type + make_HW_ADDRESS (const location_type& l) + { + return symbol_type (token::TOKEN_HW_ADDRESS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CIRCUIT_ID (location_type l) + { + return symbol_type (token::TOKEN_CIRCUIT_ID, std::move (l)); + } +#else + static + symbol_type + make_CIRCUIT_ID (const location_type& l) + { + return symbol_type (token::TOKEN_CIRCUIT_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CLIENT_ID (location_type l) + { + return symbol_type (token::TOKEN_CLIENT_ID, std::move (l)); + } +#else + static + symbol_type + make_CLIENT_ID (const location_type& l) + { + return symbol_type (token::TOKEN_CLIENT_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTNAME (location_type l) + { + return symbol_type (token::TOKEN_HOSTNAME, std::move (l)); + } +#else + static + symbol_type + make_HOSTNAME (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTNAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_FLEX_ID (location_type l) + { + return symbol_type (token::TOKEN_FLEX_ID, std::move (l)); + } +#else + static + symbol_type + make_FLEX_ID (const location_type& l) + { + return symbol_type (token::TOKEN_FLEX_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RELAY (location_type l) + { + return symbol_type (token::TOKEN_RELAY, std::move (l)); + } +#else + static + symbol_type + make_RELAY (const location_type& l) + { + return symbol_type (token::TOKEN_RELAY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_IP_ADDRESS (location_type l) + { + return symbol_type (token::TOKEN_IP_ADDRESS, std::move (l)); + } +#else + static + symbol_type + make_IP_ADDRESS (const location_type& l) + { + return symbol_type (token::TOKEN_IP_ADDRESS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_IP_ADDRESSES (location_type l) + { + return symbol_type (token::TOKEN_IP_ADDRESSES, std::move (l)); + } +#else + static + symbol_type + make_IP_ADDRESSES (const location_type& l) + { + return symbol_type (token::TOKEN_IP_ADDRESSES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOOKS_LIBRARIES (location_type l) + { + return symbol_type (token::TOKEN_HOOKS_LIBRARIES, std::move (l)); + } +#else + static + symbol_type + make_HOOKS_LIBRARIES (const location_type& l) + { + return symbol_type (token::TOKEN_HOOKS_LIBRARIES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LIBRARY (location_type l) + { + return symbol_type (token::TOKEN_LIBRARY, std::move (l)); + } +#else + static + symbol_type + make_LIBRARY (const location_type& l) + { + return symbol_type (token::TOKEN_LIBRARY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PARAMETERS (location_type l) + { + return symbol_type (token::TOKEN_PARAMETERS, std::move (l)); + } +#else + static + symbol_type + make_PARAMETERS (const location_type& l) + { + return symbol_type (token::TOKEN_PARAMETERS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_EXPIRED_LEASES_PROCESSING (location_type l) + { + return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, std::move (l)); + } +#else + static + symbol_type + make_EXPIRED_LEASES_PROCESSING (const location_type& l) + { + return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RECLAIM_TIMER_WAIT_TIME (location_type l) + { + return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, std::move (l)); + } +#else + static + symbol_type + make_RECLAIM_TIMER_WAIT_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (location_type l) + { + return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, std::move (l)); + } +#else + static + symbol_type + make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOLD_RECLAIMED_TIME (location_type l) + { + return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, std::move (l)); + } +#else + static + symbol_type + make_HOLD_RECLAIMED_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_RECLAIM_LEASES (location_type l) + { + return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, std::move (l)); + } +#else + static + symbol_type + make_MAX_RECLAIM_LEASES (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_RECLAIM_TIME (location_type l) + { + return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, std::move (l)); + } +#else + static + symbol_type + make_MAX_RECLAIM_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_UNWARNED_RECLAIM_CYCLES (location_type l) + { + return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, std::move (l)); + } +#else + static + symbol_type + make_UNWARNED_RECLAIM_CYCLES (const location_type& l) + { + return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP4O6_PORT (location_type l) + { + return symbol_type (token::TOKEN_DHCP4O6_PORT, std::move (l)); + } +#else + static + symbol_type + make_DHCP4O6_PORT (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP4O6_PORT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONTROL_SOCKET (location_type l) + { + return symbol_type (token::TOKEN_CONTROL_SOCKET, std::move (l)); + } +#else + static + symbol_type + make_CONTROL_SOCKET (const location_type& l) + { + return symbol_type (token::TOKEN_CONTROL_SOCKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SOCKET_TYPE (location_type l) + { + return symbol_type (token::TOKEN_SOCKET_TYPE, std::move (l)); + } +#else + static + symbol_type + make_SOCKET_TYPE (const location_type& l) + { + return symbol_type (token::TOKEN_SOCKET_TYPE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SOCKET_NAME (location_type l) + { + return symbol_type (token::TOKEN_SOCKET_NAME, std::move (l)); + } +#else + static + symbol_type + make_SOCKET_NAME (const location_type& l) + { + return symbol_type (token::TOKEN_SOCKET_NAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP_QUEUE_CONTROL (location_type l) + { + return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, std::move (l)); + } +#else + static + symbol_type + make_DHCP_QUEUE_CONTROL (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP_DDNS (location_type l) + { + return symbol_type (token::TOKEN_DHCP_DDNS, std::move (l)); + } +#else + static + symbol_type + make_DHCP_DDNS (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP_DDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ENABLE_UPDATES (location_type l) + { + return symbol_type (token::TOKEN_ENABLE_UPDATES, std::move (l)); + } +#else + static + symbol_type + make_ENABLE_UPDATES (const location_type& l) + { + return symbol_type (token::TOKEN_ENABLE_UPDATES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_QUALIFYING_SUFFIX (location_type l) + { + return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, std::move (l)); + } +#else + static + symbol_type + make_QUALIFYING_SUFFIX (const location_type& l) + { + return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERVER_IP (location_type l) + { + return symbol_type (token::TOKEN_SERVER_IP, std::move (l)); + } +#else + static + symbol_type + make_SERVER_IP (const location_type& l) + { + return symbol_type (token::TOKEN_SERVER_IP, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERVER_PORT (location_type l) + { + return symbol_type (token::TOKEN_SERVER_PORT, std::move (l)); + } +#else + static + symbol_type + make_SERVER_PORT (const location_type& l) + { + return symbol_type (token::TOKEN_SERVER_PORT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SENDER_IP (location_type l) + { + return symbol_type (token::TOKEN_SENDER_IP, std::move (l)); + } +#else + static + symbol_type + make_SENDER_IP (const location_type& l) + { + return symbol_type (token::TOKEN_SENDER_IP, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SENDER_PORT (location_type l) + { + return symbol_type (token::TOKEN_SENDER_PORT, std::move (l)); + } +#else + static + symbol_type + make_SENDER_PORT (const location_type& l) + { + return symbol_type (token::TOKEN_SENDER_PORT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_QUEUE_SIZE (location_type l) + { + return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, std::move (l)); + } +#else + static + symbol_type + make_MAX_QUEUE_SIZE (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NCR_PROTOCOL (location_type l) + { + return symbol_type (token::TOKEN_NCR_PROTOCOL, std::move (l)); + } +#else + static + symbol_type + make_NCR_PROTOCOL (const location_type& l) + { + return symbol_type (token::TOKEN_NCR_PROTOCOL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NCR_FORMAT (location_type l) + { + return symbol_type (token::TOKEN_NCR_FORMAT, std::move (l)); + } +#else + static + symbol_type + make_NCR_FORMAT (const location_type& l) + { + return symbol_type (token::TOKEN_NCR_FORMAT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OVERRIDE_NO_UPDATE (location_type l) + { + return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, std::move (l)); + } +#else + static + symbol_type + make_OVERRIDE_NO_UPDATE (const location_type& l) + { + return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OVERRIDE_CLIENT_UPDATE (location_type l) + { + return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, std::move (l)); + } +#else + static + symbol_type + make_OVERRIDE_CLIENT_UPDATE (const location_type& l) + { + return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_REPLACE_CLIENT_NAME (location_type l) + { + return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, std::move (l)); + } +#else + static + symbol_type + make_REPLACE_CLIENT_NAME (const location_type& l) + { + return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_GENERATED_PREFIX (location_type l) + { + return symbol_type (token::TOKEN_GENERATED_PREFIX, std::move (l)); + } +#else + static + symbol_type + make_GENERATED_PREFIX (const location_type& l) + { + return symbol_type (token::TOKEN_GENERATED_PREFIX, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TCP (location_type l) + { + return symbol_type (token::TOKEN_TCP, std::move (l)); + } +#else + static + symbol_type + make_TCP (const location_type& l) + { + return symbol_type (token::TOKEN_TCP, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_JSON (location_type l) + { + return symbol_type (token::TOKEN_JSON, std::move (l)); + } +#else + static + symbol_type + make_JSON (const location_type& l) + { + return symbol_type (token::TOKEN_JSON, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_WHEN_PRESENT (location_type l) + { + return symbol_type (token::TOKEN_WHEN_PRESENT, std::move (l)); + } +#else + static + symbol_type + make_WHEN_PRESENT (const location_type& l) + { + return symbol_type (token::TOKEN_WHEN_PRESENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NEVER (location_type l) + { + return symbol_type (token::TOKEN_NEVER, std::move (l)); + } +#else + static + symbol_type + make_NEVER (const location_type& l) + { + return symbol_type (token::TOKEN_NEVER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ALWAYS (location_type l) + { + return symbol_type (token::TOKEN_ALWAYS, std::move (l)); + } +#else + static + symbol_type + make_ALWAYS (const location_type& l) + { + return symbol_type (token::TOKEN_ALWAYS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_WHEN_NOT_PRESENT (location_type l) + { + return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, std::move (l)); + } +#else + static + symbol_type + make_WHEN_NOT_PRESENT (const location_type& l) + { + return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTNAME_CHAR_SET (location_type l) + { + return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, std::move (l)); + } +#else + static + symbol_type + make_HOSTNAME_CHAR_SET (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTNAME_CHAR_REPLACEMENT (location_type l) + { + return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, std::move (l)); + } +#else + static + symbol_type + make_HOSTNAME_CHAR_REPLACEMENT (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LOGGING (location_type l) + { + return symbol_type (token::TOKEN_LOGGING, std::move (l)); + } +#else + static + symbol_type + make_LOGGING (const location_type& l) + { + return symbol_type (token::TOKEN_LOGGING, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LOGGERS (location_type l) + { + return symbol_type (token::TOKEN_LOGGERS, std::move (l)); + } +#else + static + symbol_type + make_LOGGERS (const location_type& l) + { + return symbol_type (token::TOKEN_LOGGERS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OUTPUT_OPTIONS (location_type l) + { + return symbol_type (token::TOKEN_OUTPUT_OPTIONS, std::move (l)); + } +#else + static + symbol_type + make_OUTPUT_OPTIONS (const location_type& l) + { + return symbol_type (token::TOKEN_OUTPUT_OPTIONS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OUTPUT (location_type l) + { + return symbol_type (token::TOKEN_OUTPUT, std::move (l)); + } +#else + static + symbol_type + make_OUTPUT (const location_type& l) + { + return symbol_type (token::TOKEN_OUTPUT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DEBUGLEVEL (location_type l) + { + return symbol_type (token::TOKEN_DEBUGLEVEL, std::move (l)); + } +#else + static + symbol_type + make_DEBUGLEVEL (const location_type& l) + { + return symbol_type (token::TOKEN_DEBUGLEVEL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SEVERITY (location_type l) + { + return symbol_type (token::TOKEN_SEVERITY, std::move (l)); + } +#else + static + symbol_type + make_SEVERITY (const location_type& l) + { + return symbol_type (token::TOKEN_SEVERITY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_FLUSH (location_type l) + { + return symbol_type (token::TOKEN_FLUSH, std::move (l)); + } +#else + static + symbol_type + make_FLUSH (const location_type& l) + { + return symbol_type (token::TOKEN_FLUSH, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAXSIZE (location_type l) + { + return symbol_type (token::TOKEN_MAXSIZE, std::move (l)); + } +#else + static + symbol_type + make_MAXSIZE (const location_type& l) + { + return symbol_type (token::TOKEN_MAXSIZE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAXVER (location_type l) + { + return symbol_type (token::TOKEN_MAXVER, std::move (l)); + } +#else + static + symbol_type + make_MAXVER (const location_type& l) + { + return symbol_type (token::TOKEN_MAXVER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP6 (location_type l) + { + return symbol_type (token::TOKEN_DHCP6, std::move (l)); + } +#else + static + symbol_type + make_DHCP6 (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP6, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCPDDNS (location_type l) + { + return symbol_type (token::TOKEN_DHCPDDNS, std::move (l)); + } +#else + static + symbol_type + make_DHCPDDNS (const location_type& l) + { + return symbol_type (token::TOKEN_DHCPDDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONTROL_AGENT (location_type l) + { + return symbol_type (token::TOKEN_CONTROL_AGENT, std::move (l)); + } +#else + static + symbol_type + make_CONTROL_AGENT (const location_type& l) + { + return symbol_type (token::TOKEN_CONTROL_AGENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TOPLEVEL_JSON (location_type l) + { + return symbol_type (token::TOKEN_TOPLEVEL_JSON, std::move (l)); + } +#else + static + symbol_type + make_TOPLEVEL_JSON (const location_type& l) + { + return symbol_type (token::TOKEN_TOPLEVEL_JSON, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TOPLEVEL_DHCP4 (location_type l) + { + return symbol_type (token::TOKEN_TOPLEVEL_DHCP4, std::move (l)); + } +#else + static + symbol_type + make_TOPLEVEL_DHCP4 (const location_type& l) + { + return symbol_type (token::TOKEN_TOPLEVEL_DHCP4, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_DHCP4 (location_type l) + { + return symbol_type (token::TOKEN_SUB_DHCP4, std::move (l)); + } +#else + static + symbol_type + make_SUB_DHCP4 (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_DHCP4, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_INTERFACES4 (location_type l) + { + return symbol_type (token::TOKEN_SUB_INTERFACES4, std::move (l)); + } +#else + static + symbol_type + make_SUB_INTERFACES4 (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_INTERFACES4, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_SUBNET4 (location_type l) + { + return symbol_type (token::TOKEN_SUB_SUBNET4, std::move (l)); + } +#else + static + symbol_type + make_SUB_SUBNET4 (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_SUBNET4, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_POOL4 (location_type l) + { + return symbol_type (token::TOKEN_SUB_POOL4, std::move (l)); + } +#else + static + symbol_type + make_SUB_POOL4 (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_POOL4, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_RESERVATION (location_type l) + { + return symbol_type (token::TOKEN_SUB_RESERVATION, std::move (l)); + } +#else + static + symbol_type + make_SUB_RESERVATION (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_RESERVATION, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_OPTION_DEFS (location_type l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DEFS, std::move (l)); + } +#else + static + symbol_type + make_SUB_OPTION_DEFS (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DEFS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_OPTION_DEF (location_type l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DEF, std::move (l)); + } +#else + static + symbol_type + make_SUB_OPTION_DEF (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DEF, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_OPTION_DATA (location_type l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DATA, std::move (l)); + } +#else + static + symbol_type + make_SUB_OPTION_DATA (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DATA, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_HOOKS_LIBRARY (location_type l) + { + return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, std::move (l)); + } +#else + static + symbol_type + make_SUB_HOOKS_LIBRARY (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_DHCP_DDNS (location_type l) + { + return symbol_type (token::TOKEN_SUB_DHCP_DDNS, std::move (l)); + } +#else + static + symbol_type + make_SUB_DHCP_DDNS (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_LOGGING (location_type l) + { + return symbol_type (token::TOKEN_SUB_LOGGING, std::move (l)); + } +#else + static + symbol_type + make_SUB_LOGGING (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_LOGGING, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_CONFIG_CONTROL (location_type l) + { + return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, std::move (l)); + } +#else + static + symbol_type + make_SUB_CONFIG_CONTROL (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_STRING (std::string v, location_type l) + { + return symbol_type (token::TOKEN_STRING, std::move (v), std::move (l)); + } +#else + static + symbol_type + make_STRING (const std::string& v, const location_type& l) + { + return symbol_type (token::TOKEN_STRING, v, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_INTEGER (int64_t v, location_type l) + { + return symbol_type (token::TOKEN_INTEGER, std::move (v), std::move (l)); + } +#else + static + symbol_type + make_INTEGER (const int64_t& v, const location_type& l) + { + return symbol_type (token::TOKEN_INTEGER, v, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_FLOAT (double v, location_type l) + { + return symbol_type (token::TOKEN_FLOAT, std::move (v), std::move (l)); + } +#else + static + symbol_type + make_FLOAT (const double& v, const location_type& l) + { + return symbol_type (token::TOKEN_FLOAT, v, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_BOOLEAN (bool v, location_type l) + { + return symbol_type (token::TOKEN_BOOLEAN, std::move (v), std::move (l)); + } +#else + static + symbol_type + make_BOOLEAN (const bool& v, const location_type& l) + { + return symbol_type (token::TOKEN_BOOLEAN, v, l); + } #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 - void yy_destroy_ (const char* yymsg, basic_symbol& 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 - { - /// Superclass. - typedef basic_symbol 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_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_ = 1036, ///< Last index in yytable_. - yynnts_ = 380, ///< Number of nonterminal symbols. - yyfinal_ = 30, ///< Termination state number. - yyterror_ = 1, - yyerrcode_ = 256, - yyntokens_ = 174 ///< Number of tokens. - }; - - - // User arguments. - isc::dhcp::Parser4Context& ctx; - }; - - // Symbol number corresponding to token number t. - inline - Dhcp4Parser::token_number_type - Dhcp4Parser::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, 104, - 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, - 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, - 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, - 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, - 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, - 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, - 165, 166, 167, 168, 169, 170, 171, 172, 173 - }; - const unsigned int user_token_number_max_ = 428; - const token_number_type undef_token_ = 2; - - if (static_cast(t) <= yyeof_) - return yyeof_; - else if (static_cast (t) <= user_token_number_max_) - return translate_table[t]; - else - return undef_token_; - } - - inline - Dhcp4Parser::syntax_error::syntax_error (const location_type& l, const std::string& m) - : std::runtime_error (m) - , location (l) - {} - - // basic_symbol. - template - inline - Dhcp4Parser::basic_symbol::basic_symbol () - : value () - {} - - template - inline - Dhcp4Parser::basic_symbol::basic_symbol (const basic_symbol& other) - : Base (other) - , value () - , location (other.location) - { - switch (other.type_get ()) - { - case 190: // value - case 194: // map_value - case 238: // socket_type - case 241: // outbound_interface_value - case 263: // db_type - case 349: // hr_mode - case 498: // ncr_protocol_value - case 505: // replace_client_name_value - value.copy< ElementPtr > (other.value); - break; - - case 173: // "boolean" - value.copy< bool > (other.value); - break; - - case 172: // "floating point" - value.copy< double > (other.value); - break; - - case 171: // "integer" - value.copy< int64_t > (other.value); - break; - - case 170: // "constant string" - value.copy< std::string > (other.value); - break; - - default: - break; - } - - } - - - template - inline - Dhcp4Parser::basic_symbol::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 190: // value - case 194: // map_value - case 238: // socket_type - case 241: // outbound_interface_value - case 263: // db_type - case 349: // hr_mode - case 498: // ncr_protocol_value - case 505: // replace_client_name_value - value.copy< ElementPtr > (v); - break; - - case 173: // "boolean" - value.copy< bool > (v); - break; - - case 172: // "floating point" - value.copy< double > (v); - break; - - case 171: // "integer" - value.copy< int64_t > (v); - break; - - case 170: // "constant string" - value.copy< std::string > (v); - break; - - default: - break; - } -} - - - // Implementation of basic_symbol constructor for each type. - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const location_type& l) - : Base (t) - , value () - , location (l) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const ElementPtr v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const bool v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const double v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - - template - inline - Dhcp4Parser::basic_symbol::~basic_symbol () - { - clear (); - } - - template - inline - void - Dhcp4Parser::basic_symbol::clear () - { - // User destructor. - symbol_number_type yytype = this->type_get (); - basic_symbol& yysym = *this; - (void) yysym; - switch (yytype) - { - default: - break; - } - - // Type destructor. - switch (yytype) - { - case 190: // value - case 194: // map_value - case 238: // socket_type - case 241: // outbound_interface_value - case 263: // db_type - case 349: // hr_mode - case 498: // ncr_protocol_value - case 505: // replace_client_name_value - value.template destroy< ElementPtr > (); - break; - - case 173: // "boolean" - value.template destroy< bool > (); - break; - - case 172: // "floating point" - value.template destroy< double > (); - break; - - case 171: // "integer" - value.template destroy< int64_t > (); - break; - - case 170: // "constant string" - value.template destroy< std::string > (); - break; - - default: - break; - } - - Base::clear (); - } - - template - inline - bool - Dhcp4Parser::basic_symbol::empty () const - { - return Base::type_get () == empty_symbol; - } - - template - inline - void - Dhcp4Parser::basic_symbol::move (basic_symbol& s) - { - super_type::move(s); - switch (this->type_get ()) - { - case 190: // value - case 194: // map_value - case 238: // socket_type - case 241: // outbound_interface_value - case 263: // db_type - case 349: // hr_mode - case 498: // ncr_protocol_value - case 505: // replace_client_name_value - value.move< ElementPtr > (s.value); - break; - - case 173: // "boolean" - value.move< bool > (s.value); - break; - - case 172: // "floating point" - value.move< double > (s.value); - break; - - case 171: // "integer" - value.move< int64_t > (s.value); - break; - - case 170: // "constant string" - value.move< std::string > (s.value); - break; - - default: - break; - } - - location = s.location; - } - - // by_type. - inline - Dhcp4Parser::by_type::by_type () - : type (empty_symbol) - {} - - inline - Dhcp4Parser::by_type::by_type (const by_type& other) - : type (other.type) - {} - - inline - Dhcp4Parser::by_type::by_type (token_type t) - : type (yytranslate_ (t)) - {} - - inline - void - Dhcp4Parser::by_type::clear () - { - type = empty_symbol; - } - - inline - void - Dhcp4Parser::by_type::move (by_type& that) - { - type = that.type; - that.clear (); - } - - inline - int - Dhcp4Parser::by_type::type_get () const - { - return type; - } - - inline - Dhcp4Parser::token_type - Dhcp4Parser::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, 359, 360, 361, 362, 363, 364, - 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, - 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, - 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, - 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, - 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, - 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, - 425, 426, 427, 428 - }; - return static_cast (yytoken_number_[type]); - } - // Implementation of make_symbol for each symbol type. - Dhcp4Parser::symbol_type - Dhcp4Parser::make_END (const location_type& l) - { - return symbol_type (token::TOKEN_END, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_COMMA (const location_type& l) - { - return symbol_type (token::TOKEN_COMMA, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_COLON (const location_type& l) - { - return symbol_type (token::TOKEN_COLON, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LSQUARE_BRACKET (const location_type& l) - { - return symbol_type (token::TOKEN_LSQUARE_BRACKET, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RSQUARE_BRACKET (const location_type& l) - { - return symbol_type (token::TOKEN_RSQUARE_BRACKET, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LCURLY_BRACKET (const location_type& l) - { - return symbol_type (token::TOKEN_LCURLY_BRACKET, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RCURLY_BRACKET (const location_type& l) - { - return symbol_type (token::TOKEN_RCURLY_BRACKET, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NULL_TYPE (const location_type& l) - { - return symbol_type (token::TOKEN_NULL_TYPE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP4 (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP4, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONFIG_CONTROL (const location_type& l) - { - return symbol_type (token::TOKEN_CONFIG_CONTROL, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONFIG_DATABASES (const location_type& l) - { - return symbol_type (token::TOKEN_CONFIG_DATABASES, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_INTERFACES_CONFIG (const location_type& l) - { - return symbol_type (token::TOKEN_INTERFACES_CONFIG, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_INTERFACES (const location_type& l) - { - return symbol_type (token::TOKEN_INTERFACES, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP_SOCKET_TYPE (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP_SOCKET_TYPE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RAW (const location_type& l) - { - return symbol_type (token::TOKEN_RAW, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_UDP (const location_type& l) - { - return symbol_type (token::TOKEN_UDP, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OUTBOUND_INTERFACE (const location_type& l) - { - return symbol_type (token::TOKEN_OUTBOUND_INTERFACE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SAME_AS_INBOUND (const location_type& l) - { - return symbol_type (token::TOKEN_SAME_AS_INBOUND, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_USE_ROUTING (const location_type& l) - { - return symbol_type (token::TOKEN_USE_ROUTING, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RE_DETECT (const location_type& l) - { - return symbol_type (token::TOKEN_RE_DETECT, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SANITY_CHECKS (const location_type& l) - { - return symbol_type (token::TOKEN_SANITY_CHECKS, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LEASE_CHECKS (const location_type& l) - { - return symbol_type (token::TOKEN_LEASE_CHECKS, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ECHO_CLIENT_ID (const location_type& l) - { - return symbol_type (token::TOKEN_ECHO_CLIENT_ID, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MATCH_CLIENT_ID (const location_type& l) - { - return symbol_type (token::TOKEN_MATCH_CLIENT_ID, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_AUTHORITATIVE (const location_type& l) - { - return symbol_type (token::TOKEN_AUTHORITATIVE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NEXT_SERVER (const location_type& l) - { - return symbol_type (token::TOKEN_NEXT_SERVER, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERVER_HOSTNAME (const location_type& l) - { - return symbol_type (token::TOKEN_SERVER_HOSTNAME, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_BOOT_FILE_NAME (const location_type& l) - { - return symbol_type (token::TOKEN_BOOT_FILE_NAME, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LEASE_DATABASE (const location_type& l) - { - return symbol_type (token::TOKEN_LEASE_DATABASE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTS_DATABASE (const location_type& l) - { - return symbol_type (token::TOKEN_HOSTS_DATABASE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTS_DATABASES (const location_type& l) - { - return symbol_type (token::TOKEN_HOSTS_DATABASES, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TYPE (const location_type& l) - { - return symbol_type (token::TOKEN_TYPE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MEMFILE (const location_type& l) - { - return symbol_type (token::TOKEN_MEMFILE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MYSQL (const location_type& l) - { - return symbol_type (token::TOKEN_MYSQL, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_POSTGRESQL (const location_type& l) - { - return symbol_type (token::TOKEN_POSTGRESQL, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CQL (const location_type& l) - { - return symbol_type (token::TOKEN_CQL, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_USER (const location_type& l) - { - return symbol_type (token::TOKEN_USER, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_PASSWORD (const location_type& l) - { - return symbol_type (token::TOKEN_PASSWORD, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOST (const location_type& l) - { - return symbol_type (token::TOKEN_HOST, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_PORT (const location_type& l) - { - return symbol_type (token::TOKEN_PORT, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_PERSIST (const location_type& l) - { - return symbol_type (token::TOKEN_PERSIST, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LFC_INTERVAL (const location_type& l) - { - return symbol_type (token::TOKEN_LFC_INTERVAL, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_READONLY (const location_type& l) - { - return symbol_type (token::TOKEN_READONLY, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONNECT_TIMEOUT (const location_type& l) - { - return symbol_type (token::TOKEN_CONNECT_TIMEOUT, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONTACT_POINTS (const location_type& l) - { - return symbol_type (token::TOKEN_CONTACT_POINTS, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_KEYSPACE (const location_type& l) - { - return symbol_type (token::TOKEN_KEYSPACE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONSISTENCY (const location_type& l) - { - return symbol_type (token::TOKEN_CONSISTENCY, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERIAL_CONSISTENCY (const location_type& l) - { - return symbol_type (token::TOKEN_SERIAL_CONSISTENCY, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_RECONNECT_TRIES (const location_type& l) - { - return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RECONNECT_WAIT_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_REQUEST_TIMEOUT (const location_type& l) - { - return symbol_type (token::TOKEN_REQUEST_TIMEOUT, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TCP_KEEPALIVE (const location_type& l) - { - return symbol_type (token::TOKEN_TCP_KEEPALIVE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TCP_NODELAY (const location_type& l) - { - return symbol_type (token::TOKEN_TCP_NODELAY, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_VALID_LIFETIME (const location_type& l) - { - return symbol_type (token::TOKEN_VALID_LIFETIME, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RENEW_TIMER (const location_type& l) - { - return symbol_type (token::TOKEN_RENEW_TIMER, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_REBIND_TIMER (const location_type& l) - { - return symbol_type (token::TOKEN_REBIND_TIMER, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CALCULATE_TEE_TIMES (const location_type& l) - { - return symbol_type (token::TOKEN_CALCULATE_TEE_TIMES, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_T1_PERCENT (const location_type& l) - { - return symbol_type (token::TOKEN_T1_PERCENT, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_T2_PERCENT (const location_type& l) - { - return symbol_type (token::TOKEN_T2_PERCENT, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DECLINE_PROBATION_PERIOD (const location_type& l) - { - return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERVER_TAG (const location_type& l) - { - return symbol_type (token::TOKEN_SERVER_TAG, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET4 (const location_type& l) - { - return symbol_type (token::TOKEN_SUBNET4, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET_4O6_INTERFACE (const location_type& l) - { - return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET_4O6_INTERFACE_ID (const location_type& l) - { - return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE_ID, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET_4O6_SUBNET (const location_type& l) - { - return symbol_type (token::TOKEN_SUBNET_4O6_SUBNET, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OPTION_DEF (const location_type& l) - { - return symbol_type (token::TOKEN_OPTION_DEF, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OPTION_DATA (const location_type& l) - { - return symbol_type (token::TOKEN_OPTION_DATA, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NAME (const location_type& l) - { - return symbol_type (token::TOKEN_NAME, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DATA (const location_type& l) - { - return symbol_type (token::TOKEN_DATA, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CODE (const location_type& l) - { - return symbol_type (token::TOKEN_CODE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SPACE (const location_type& l) - { - return symbol_type (token::TOKEN_SPACE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CSV_FORMAT (const location_type& l) - { - return symbol_type (token::TOKEN_CSV_FORMAT, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ALWAYS_SEND (const location_type& l) - { - return symbol_type (token::TOKEN_ALWAYS_SEND, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RECORD_TYPES (const location_type& l) - { - return symbol_type (token::TOKEN_RECORD_TYPES, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ENCAPSULATE (const location_type& l) - { - return symbol_type (token::TOKEN_ENCAPSULATE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ARRAY (const location_type& l) - { - return symbol_type (token::TOKEN_ARRAY, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SHARED_NETWORKS (const location_type& l) - { - return symbol_type (token::TOKEN_SHARED_NETWORKS, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_POOLS (const location_type& l) - { - return symbol_type (token::TOKEN_POOLS, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_POOL (const location_type& l) - { - return symbol_type (token::TOKEN_POOL, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_USER_CONTEXT (const location_type& l) - { - return symbol_type (token::TOKEN_USER_CONTEXT, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_COMMENT (const location_type& l) - { - return symbol_type (token::TOKEN_COMMENT, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET (const location_type& l) - { - return symbol_type (token::TOKEN_SUBNET, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_INTERFACE (const location_type& l) - { - return symbol_type (token::TOKEN_INTERFACE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ID (const location_type& l) - { - return symbol_type (token::TOKEN_ID, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RESERVATION_MODE (const location_type& l) - { - return symbol_type (token::TOKEN_RESERVATION_MODE, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DISABLED (const location_type& l) - { - return symbol_type (token::TOKEN_DISABLED, l); - } - - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OUT_OF_POOL (const location_type& l) - { - return symbol_type (token::TOKEN_OUT_OF_POOL, l); - } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_GLOBAL (const location_type& l) - { - return symbol_type (token::TOKEN_GLOBAL, l); - } + private: + /// This class is not copyable. + Dhcp4Parser (const Dhcp4Parser&); + Dhcp4Parser& operator= (const Dhcp4Parser&); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ALL (const location_type& l) - { - return symbol_type (token::TOKEN_ALL, l); - } + /// State numbers. + typedef int state_type; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOST_RESERVATION_IDENTIFIERS (const location_type& l) - { - return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, l); - } + /// 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; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CLIENT_CLASSES (const location_type& l) - { - return symbol_type (token::TOKEN_CLIENT_CLASSES, l); - } + /// 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); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_REQUIRE_CLIENT_CLASSES (const location_type& l) - { - return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, l); - } + /// 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); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TEST (const location_type& l) - { - return symbol_type (token::TOKEN_TEST, l); - } + /// 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); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ONLY_IF_REQUIRED (const location_type& l) - { - return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, l); - } + static const short yypact_ninf_; + static const signed char yytable_ninf_; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CLIENT_CLASS (const location_type& l) - { - return symbol_type (token::TOKEN_CLIENT_CLASS, l); - } + /// Convert a scanner token number \a t to a symbol number. + static token_number_type yytranslate_ (token_type t); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RESERVATIONS (const location_type& l) - { - return symbol_type (token::TOKEN_RESERVATIONS, l); - } + // Tables. + // YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + // STATE-NUM. + static const short yypact_[]; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DUID (const location_type& l) - { - return symbol_type (token::TOKEN_DUID, l); - } + // 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 yydefact_[]; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HW_ADDRESS (const location_type& l) - { - return symbol_type (token::TOKEN_HW_ADDRESS, l); - } + // YYPGOTO[NTERM-NUM]. + static const short yypgoto_[]; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CIRCUIT_ID (const location_type& l) - { - return symbol_type (token::TOKEN_CIRCUIT_ID, l); - } + // YYDEFGOTO[NTERM-NUM]. + static const short yydefgoto_[]; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CLIENT_ID (const location_type& l) - { - return symbol_type (token::TOKEN_CLIENT_ID, l); - } + // 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 yytable_[]; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTNAME (const location_type& l) - { - return symbol_type (token::TOKEN_HOSTNAME, l); - } + static const short yycheck_[]; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_FLEX_ID (const location_type& l) - { - return symbol_type (token::TOKEN_FLEX_ID, l); - } + // YYSTOS[STATE-NUM] -- The (internal number of the) accessing + // symbol of state STATE-NUM. + static const unsigned short yystos_[]; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RELAY (const location_type& l) - { - return symbol_type (token::TOKEN_RELAY, l); - } + // YYR1[YYN] -- Symbol number of symbol that rule YYN derives. + static const unsigned short yyr1_[]; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_IP_ADDRESS (const location_type& l) - { - return symbol_type (token::TOKEN_IP_ADDRESS, l); - } + // YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. + static const unsigned char yyr2_[]; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_IP_ADDRESSES (const location_type& l) - { - return symbol_type (token::TOKEN_IP_ADDRESSES, l); - } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOOKS_LIBRARIES (const location_type& l) - { - return symbol_type (token::TOKEN_HOOKS_LIBRARIES, l); - } + /// Convert the symbol name \a n to a form suitable for a diagnostic. + static std::string yytnamerr_ (const char *n); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LIBRARY (const location_type& l) - { - return symbol_type (token::TOKEN_LIBRARY, l); - } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_PARAMETERS (const location_type& l) - { - return symbol_type (token::TOKEN_PARAMETERS, l); - } + /// For a symbol, its name in clear. + static const char* const yytname_[]; +#if PARSER4_DEBUG + // YYRLINE[YYN] -- Source line where rule number YYN was defined. + static const unsigned short 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_ (); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_EXPIRED_LEASES_PROCESSING (const location_type& l) - { - return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, l); - } + /// Debugging level. + int yydebug_; + /// Debug stream. + std::ostream* yycdebug_; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RECLAIM_TIMER_WAIT_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, l); - } + /// \brief Display a symbol type, value and location. + /// \param yyo The output stream. + /// \param yysym The symbol. + template + void yy_print_ (std::ostream& yyo, const basic_symbol& yysym) const; +#endif - Dhcp4Parser::symbol_type - Dhcp4Parser::make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, l); - } + /// \brief Reclaim the memory associated to a symbol. + /// \param yymsg Why this token is reclaimed. + /// If null, print nothing. + /// \param yysym The symbol. + template + void yy_destroy_ (const char* yymsg, basic_symbol& yysym) const; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOLD_RECLAIMED_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, l); - } + private: + /// Type access provider for state based symbols. + struct by_state + { + /// Default constructor. + by_state () YY_NOEXCEPT; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_RECLAIM_LEASES (const location_type& l) - { - return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, l); - } + /// The symbol type as needed by the constructor. + typedef state_type kind_type; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_RECLAIM_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, l); - } + /// Constructor. + by_state (kind_type s) YY_NOEXCEPT; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_UNWARNED_RECLAIM_CYCLES (const location_type& l) - { - return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, l); - } + /// Copy constructor. + by_state (const by_state& that) YY_NOEXCEPT; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP4O6_PORT (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP4O6_PORT, l); - } + /// Record that this symbol is empty. + void clear () YY_NOEXCEPT; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONTROL_SOCKET (const location_type& l) - { - return symbol_type (token::TOKEN_CONTROL_SOCKET, l); - } + /// Steal the symbol type from \a that. + void move (by_state& that); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SOCKET_TYPE (const location_type& l) - { - return symbol_type (token::TOKEN_SOCKET_TYPE, l); - } + /// The (internal) type number (corresponding to \a state). + /// \a empty_symbol when empty. + symbol_number_type type_get () const YY_NOEXCEPT; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SOCKET_NAME (const location_type& l) - { - return symbol_type (token::TOKEN_SOCKET_NAME, l); - } + /// The state number used to denote an empty symbol. + enum { empty_state = -1 }; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP_QUEUE_CONTROL (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, l); - } + /// The state. + /// \a empty when empty. + state_type state; + }; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP_DDNS (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP_DDNS, l); - } + /// "Internal" symbol: element of the stack. + struct stack_symbol_type : basic_symbol + { + /// Superclass. + typedef basic_symbol super_type; + /// Construct an empty symbol. + stack_symbol_type (); + /// Move or copy construction. + stack_symbol_type (YY_RVREF (stack_symbol_type) that); + /// Steal the contents from \a sym to build this. + stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym); +#if YY_CPLUSPLUS < 201103L + /// Assignment, needed by push_back by some old implementations. + /// Moves the contents of that. + stack_symbol_type& operator= (stack_symbol_type& that); +#endif + }; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ENABLE_UPDATES (const location_type& l) - { - return symbol_type (token::TOKEN_ENABLE_UPDATES, l); - } + /// A stack with random access from its top. + template > + class stack + { + public: + // Hide our reversed order. + typedef typename S::reverse_iterator iterator; + typedef typename S::const_reverse_iterator const_iterator; + typedef typename S::size_type size_type; + + stack (size_type n = 200) + : seq_ (n) + {} + + /// Random access. + /// + /// Index 0 returns the topmost element. + T& + operator[] (size_type i) + { + return seq_[size () - 1 - i]; + } + + /// Random access. + /// + /// Index 0 returns the topmost element. + T& + operator[] (int i) + { + return operator[] (size_type (i)); + } + + /// Random access. + /// + /// Index 0 returns the topmost element. + const T& + operator[] (size_type i) const + { + return seq_[size () - 1 - i]; + } + + /// Random access. + /// + /// Index 0 returns the topmost element. + const T& + operator[] (int i) const + { + return operator[] (size_type (i)); + } + + /// Steal the contents of \a t. + /// + /// Close to move-semantics. + void + push (YY_MOVE_REF (T) t) + { + seq_.push_back (T ()); + operator[] (0).move (t); + } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_QUALIFYING_SUFFIX (const location_type& l) - { - return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, l); - } + /// Pop elements from the stack. + void + pop (int n = 1) YY_NOEXCEPT + { + for (; 0 < n; --n) + seq_.pop_back (); + } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERVER_IP (const location_type& l) - { - return symbol_type (token::TOKEN_SERVER_IP, l); - } + /// Pop all elements from the stack. + void + clear () YY_NOEXCEPT + { + seq_.clear (); + } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERVER_PORT (const location_type& l) - { - return symbol_type (token::TOKEN_SERVER_PORT, l); - } + /// Number of elements on the stack. + size_type + size () const YY_NOEXCEPT + { + return seq_.size (); + } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SENDER_IP (const location_type& l) - { - return symbol_type (token::TOKEN_SENDER_IP, l); - } + /// Iterator on top of the stack (going downwards). + const_iterator + begin () const YY_NOEXCEPT + { + return seq_.rbegin (); + } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SENDER_PORT (const location_type& l) - { - return symbol_type (token::TOKEN_SENDER_PORT, l); - } + /// Bottom of the stack. + const_iterator + end () const YY_NOEXCEPT + { + return seq_.rend (); + } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_QUEUE_SIZE (const location_type& l) - { - return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, l); - } + /// Present a slice of the top of a stack. + class slice + { + public: + slice (const stack& stack, int range) + : stack_ (stack) + , range_ (range) + {} + + const T& + operator[] (int i) const + { + return stack_[range_ - i]; + } + + private: + const stack& stack_; + int range_; + }; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NCR_PROTOCOL (const location_type& l) - { - return symbol_type (token::TOKEN_NCR_PROTOCOL, l); - } + private: + stack (const stack&); + stack& operator= (const stack&); + /// The wrapped container. + S seq_; + }; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NCR_FORMAT (const location_type& l) - { - return symbol_type (token::TOKEN_NCR_FORMAT, l); - } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OVERRIDE_NO_UPDATE (const location_type& l) - { - return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, l); - } + /// Stack type. + typedef stack stack_type; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OVERRIDE_CLIENT_UPDATE (const location_type& l) - { - return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, l); - } + /// The stack. + stack_type yystack_; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_REPLACE_CLIENT_NAME (const location_type& l) - { - return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, l); - } + /// Push a new state on the stack. + /// \param m a debug message to display + /// if null, no trace is output. + /// \param sym the symbol + /// \warning the contents of \a s.value is stolen. + void yypush_ (const char* m, YY_MOVE_REF (stack_symbol_type) sym); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_GENERATED_PREFIX (const location_type& l) - { - return symbol_type (token::TOKEN_GENERATED_PREFIX, l); - } + /// 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 sym.value is stolen. + void yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TCP (const location_type& l) - { - return symbol_type (token::TOKEN_TCP, l); - } + /// Pop \a n symbols from the stack. + void yypop_ (int n = 1); - Dhcp4Parser::symbol_type - Dhcp4Parser::make_JSON (const location_type& l) - { - return symbol_type (token::TOKEN_JSON, l); - } + /// Constants. + enum + { + yyeof_ = 0, + yylast_ = 1036, ///< Last index in yytable_. + yynnts_ = 380, ///< Number of nonterminal symbols. + yyfinal_ = 30, ///< Termination state number. + yyterror_ = 1, + yyerrcode_ = 256, + yyntokens_ = 174 ///< Number of tokens. + }; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_WHEN_PRESENT (const location_type& l) - { - return symbol_type (token::TOKEN_WHEN_PRESENT, l); - } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NEVER (const location_type& l) - { - return symbol_type (token::TOKEN_NEVER, l); - } + // User arguments. + isc::dhcp::Parser4Context& ctx; + }; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ALWAYS (const location_type& l) + inline + Dhcp4Parser::token_number_type + Dhcp4Parser::yytranslate_ (token_type t) { - return symbol_type (token::TOKEN_ALWAYS, l); - } + // YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to + // TOKEN-NUM as returned by yylex. + 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, 104, + 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, + 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, + 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, + 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, + 165, 166, 167, 168, 169, 170, 171, 172, 173 + }; + const unsigned user_token_number_max_ = 428; + const token_number_type undef_token_ = 2; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_WHEN_NOT_PRESENT (const location_type& l) - { - return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, l); + if (static_cast (t) <= yyeof_) + return yyeof_; + else if (static_cast (t) <= user_token_number_max_) + return translate_table[t]; + else + return undef_token_; } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTNAME_CHAR_SET (const location_type& l) + // basic_symbol. +#if 201103L <= YY_CPLUSPLUS + template + Dhcp4Parser::basic_symbol::basic_symbol (basic_symbol&& that) + : Base (std::move (that)) + , value () + , location (std::move (that.location)) { - return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, l); - } + switch (this->type_get ()) + { + case 190: // value + case 194: // map_value + case 238: // socket_type + case 241: // outbound_interface_value + case 263: // db_type + case 349: // hr_mode + case 498: // ncr_protocol_value + case 505: // replace_client_name_value + value.move< ElementPtr > (std::move (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTNAME_CHAR_REPLACEMENT (const location_type& l) - { - return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, l); - } + case 173: // "boolean" + value.move< bool > (std::move (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LOGGING (const location_type& l) - { - return symbol_type (token::TOKEN_LOGGING, l); - } + case 172: // "floating point" + value.move< double > (std::move (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LOGGERS (const location_type& l) - { - return symbol_type (token::TOKEN_LOGGERS, l); - } + case 171: // "integer" + value.move< int64_t > (std::move (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OUTPUT_OPTIONS (const location_type& l) - { - return symbol_type (token::TOKEN_OUTPUT_OPTIONS, l); - } + case 170: // "constant string" + value.move< std::string > (std::move (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OUTPUT (const location_type& l) - { - return symbol_type (token::TOKEN_OUTPUT, l); - } + default: + break; + } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DEBUGLEVEL (const location_type& l) - { - return symbol_type (token::TOKEN_DEBUGLEVEL, l); } +#endif - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SEVERITY (const location_type& l) + template + Dhcp4Parser::basic_symbol::basic_symbol (const basic_symbol& that) + : Base (that) + , value () + , location (that.location) { - return symbol_type (token::TOKEN_SEVERITY, l); - } + switch (this->type_get ()) + { + case 190: // value + case 194: // map_value + case 238: // socket_type + case 241: // outbound_interface_value + case 263: // db_type + case 349: // hr_mode + case 498: // ncr_protocol_value + case 505: // replace_client_name_value + value.copy< ElementPtr > (YY_MOVE (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_FLUSH (const location_type& l) - { - return symbol_type (token::TOKEN_FLUSH, l); - } + case 173: // "boolean" + value.copy< bool > (YY_MOVE (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAXSIZE (const location_type& l) - { - return symbol_type (token::TOKEN_MAXSIZE, l); - } + case 172: // "floating point" + value.copy< double > (YY_MOVE (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAXVER (const location_type& l) - { - return symbol_type (token::TOKEN_MAXVER, l); - } + case 171: // "integer" + value.copy< int64_t > (YY_MOVE (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP6 (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP6, l); - } + case 170: // "constant string" + value.copy< std::string > (YY_MOVE (that.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCPDDNS (const location_type& l) - { - return symbol_type (token::TOKEN_DHCPDDNS, l); - } + default: + break; + } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONTROL_AGENT (const location_type& l) - { - return symbol_type (token::TOKEN_CONTROL_AGENT, l); } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TOPLEVEL_JSON (const location_type& l) - { - return symbol_type (token::TOKEN_TOPLEVEL_JSON, l); - } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TOPLEVEL_DHCP4 (const location_type& l) - { - return symbol_type (token::TOKEN_TOPLEVEL_DHCP4, l); - } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_DHCP4 (const location_type& l) + template + bool + Dhcp4Parser::basic_symbol::empty () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_SUB_DHCP4, l); + return Base::type_get () == empty_symbol; } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_INTERFACES4 (const location_type& l) + template + void + Dhcp4Parser::basic_symbol::move (basic_symbol& s) { - return symbol_type (token::TOKEN_SUB_INTERFACES4, l); - } + super_type::move (s); + switch (this->type_get ()) + { + case 190: // value + case 194: // map_value + case 238: // socket_type + case 241: // outbound_interface_value + case 263: // db_type + case 349: // hr_mode + case 498: // ncr_protocol_value + case 505: // replace_client_name_value + value.move< ElementPtr > (YY_MOVE (s.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_SUBNET4 (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_SUBNET4, l); - } + case 173: // "boolean" + value.move< bool > (YY_MOVE (s.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_POOL4 (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_POOL4, l); - } + case 172: // "floating point" + value.move< double > (YY_MOVE (s.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_RESERVATION (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_RESERVATION, l); - } + case 171: // "integer" + value.move< int64_t > (YY_MOVE (s.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_OPTION_DEFS (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DEFS, l); - } + case 170: // "constant string" + value.move< std::string > (YY_MOVE (s.value)); + break; - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_OPTION_DEF (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DEF, l); - } + default: + break; + } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_OPTION_DATA (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DATA, l); + location = YY_MOVE (s.location); } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_HOOKS_LIBRARY (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, l); - } + // by_type. + inline + Dhcp4Parser::by_type::by_type () + : type (empty_symbol) + {} - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_DHCP_DDNS (const location_type& l) +#if 201103L <= YY_CPLUSPLUS + inline + Dhcp4Parser::by_type::by_type (by_type&& that) + : type (that.type) { - return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l); + that.clear (); } +#endif - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_LOGGING (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_LOGGING, l); - } + inline + Dhcp4Parser::by_type::by_type (const by_type& that) + : type (that.type) + {} - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_CONFIG_CONTROL (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, l); - } + inline + Dhcp4Parser::by_type::by_type (token_type t) + : type (yytranslate_ (t)) + {} - Dhcp4Parser::symbol_type - Dhcp4Parser::make_STRING (const std::string& v, const location_type& l) + inline + void + Dhcp4Parser::by_type::clear () { - return symbol_type (token::TOKEN_STRING, v, l); + type = empty_symbol; } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_INTEGER (const int64_t& v, const location_type& l) + inline + void + Dhcp4Parser::by_type::move (by_type& that) { - return symbol_type (token::TOKEN_INTEGER, v, l); + type = that.type; + that.clear (); } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_FLOAT (const double& v, const location_type& l) + inline + int + Dhcp4Parser::by_type::type_get () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_FLOAT, v, l); + return type; } - Dhcp4Parser::symbol_type - Dhcp4Parser::make_BOOLEAN (const bool& v, const location_type& l) + inline + Dhcp4Parser::token_type + Dhcp4Parser::by_type::token () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_BOOLEAN, v, l); + // YYTOKNUM[NUM] -- (External) token number corresponding to the + // (internal) symbol number NUM (which must be that of a token). */ + static + const unsigned short + 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, 359, 360, 361, 362, 363, 364, + 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, + 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, + 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, + 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, + 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, + 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, + 425, 426, 427, 428 + }; + return token_type (yytoken_number_[type]); } - -#line 14 "dhcp4_parser.yy" // lalr1.cc:377 +#line 14 "dhcp4_parser.yy" // lalr1.cc:401 } } // isc::dhcp -#line 2965 "dhcp4_parser.h" // lalr1.cc:377 +#line 4152 "dhcp4_parser.h" // lalr1.cc:401 diff --git a/src/bin/dhcp4/location.hh b/src/bin/dhcp4/location.hh index 86928ee82b..d235c14926 100644 --- a/src/bin/dhcp4/location.hh +++ b/src/bin/dhcp4/location.hh @@ -1,9 +1,9 @@ -// Generated 201903221555 -// A Bison parser, made by GNU Bison 3.0.4. +// Generated 201903231444 +// A Bison parser, made by GNU Bison 3.3.2. // Locations for Bison parsers in C++ -// Copyright (C) 2002-2015 Free Software Foundation, Inc. +// Copyright (C) 2002-2015, 2018-2019 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 @@ -39,12 +39,145 @@ #ifndef YY_PARSER4_LOCATION_HH_INCLUDED # define YY_PARSER4_LOCATION_HH_INCLUDED -# include "position.hh" +# include // std::max +# include +# include -#line 14 "dhcp4_parser.yy" // location.cc:296 +# ifndef YY_NULLPTR +# if defined __cplusplus +# if 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# else +# define YY_NULLPTR ((void*)0) +# endif +# endif + +#line 14 "dhcp4_parser.yy" // location.cc:339 namespace isc { namespace dhcp { -#line 46 "location.hh" // location.cc:296 - /// Abstract a location. +#line 60 "location.hh" // location.cc:339 + /// A point in a source file. + class position + { + public: + /// Construct a position. + explicit position (std::string* f = YY_NULLPTR, + unsigned l = 1u, + unsigned c = 1u) + : filename (f) + , line (l) + , column (c) + {} + + + /// Initialization. + void initialize (std::string* fn = YY_NULLPTR, + unsigned l = 1u, + unsigned 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 line; + /// Current column number. + unsigned column; + + private: + /// Compute max (min, lhs+rhs). + static unsigned add_ (unsigned lhs, int rhs, int min) + { + return static_cast (std::max (min, + static_cast (lhs) + rhs)); + } + }; + + /// 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 + std::basic_ostream& + operator<< (std::basic_ostream& ostr, const position& pos) + { + if (pos.filename) + ostr << *pos.filename << ':'; + return ostr << pos.line << '.' << pos.column; + } + + /// Two points in a source file. class location { public: @@ -53,30 +186,27 @@ namespace isc { namespace dhcp { 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) + unsigned l = 1u, + unsigned 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) + unsigned l = 1u, + unsigned c = 1u) { begin.initialize (f, l, c); end = begin; @@ -171,10 +301,10 @@ namespace isc { namespace dhcp { ** Avoid duplicate information. */ template - inline std::basic_ostream& + std::basic_ostream& operator<< (std::basic_ostream& ostr, const location& loc) { - unsigned int end_col = 0 < loc.end.column ? loc.end.column - 1 : 0; + unsigned end_col = 0 < loc.end.column ? loc.end.column - 1 : 0; ostr << loc.begin; if (loc.end.filename && (!loc.begin.filename @@ -187,7 +317,7 @@ namespace isc { namespace dhcp { return ostr; } -#line 14 "dhcp4_parser.yy" // location.cc:296 +#line 14 "dhcp4_parser.yy" // location.cc:339 } } // isc::dhcp -#line 192 "location.hh" // location.cc:296 +#line 322 "location.hh" // location.cc:339 #endif // !YY_PARSER4_LOCATION_HH_INCLUDED diff --git a/src/bin/dhcp4/position.hh b/src/bin/dhcp4/position.hh index f2b7fe764f..bc115ead3e 100644 --- a/src/bin/dhcp4/position.hh +++ b/src/bin/dhcp4/position.hh @@ -1,181 +1,12 @@ -// Generated 201903221555 -// 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 . - -// 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_PARSER4_POSITION_HH_INCLUDED -# define YY_PARSER4_POSITION_HH_INCLUDED - -# include // std::max -# include -# include - -# ifndef YY_NULLPTR -# if defined __cplusplus && 201103L <= __cplusplus -# define YY_NULLPTR nullptr -# else -# define YY_NULLPTR 0 -# endif -# endif - -#line 14 "dhcp4_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(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 - inline std::basic_ostream& - operator<< (std::basic_ostream& ostr, const position& pos) - { - if (pos.filename) - ostr << *pos.filename << ':'; - return ostr << pos.line << '.' << pos.column; - } - -#line 14 "dhcp4_parser.yy" // location.cc:296 -} } // isc::dhcp -#line 180 "position.hh" // location.cc:296 -#endif // !YY_PARSER4_POSITION_HH_INCLUDED +// Generated 201903231444 +// A Bison parser, made by GNU Bison 3.3.2. + +// Starting with Bison 3.2, this file is useless: the structure it +// used to define is now defined in "location.hh". +// +// To get rid of this file: +// 1. add 'require "3.2"' (or newer) to your grammar file +// 2. remove references to this file from your build system +// 3. if you used to include it, include "location.hh" instead. + +#include "location.hh" diff --git a/src/bin/dhcp4/stack.hh b/src/bin/dhcp4/stack.hh index 7a9b5c6503..6701827115 100644 --- a/src/bin/dhcp4/stack.hh +++ b/src/bin/dhcp4/stack.hh @@ -1,158 +1,9 @@ -// Generated 201903221555 -// 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 . - -// 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_PARSER4_STACK_HH_INCLUDED -# define YY_PARSER4_STACK_HH_INCLUDED - -# include - -#line 14 "dhcp4_parser.yy" // stack.hh:132 -namespace isc { namespace dhcp { -#line 46 "stack.hh" // stack.hh:132 - template > - 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 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 "dhcp4_parser.yy" // stack.hh:132 -} } // isc::dhcp -#line 156 "stack.hh" // stack.hh:132 - -#endif // !YY_PARSER4_STACK_HH_INCLUDED +// Generated 201903231444 +// A Bison parser, made by GNU Bison 3.3.2. + +// Starting with Bison 3.2, this file is useless: the structure it +// used to define is now defined with the parser itself. +// +// To get rid of this file: +// 1. add 'require "3.2"' (or newer) to your grammar file +// 2. remove references to this file from your build system. diff --git a/src/bin/dhcp6/dhcp6_lexer.cc b/src/bin/dhcp6/dhcp6_lexer.cc index 3193df3fb9..c18c9b4ff1 100644 --- a/src/bin/dhcp6/dhcp6_lexer.cc +++ b/src/bin/dhcp6/dhcp6_lexer.cc @@ -1,6 +1,6 @@ -#line 2 "dhcp6_lexer.cc" +#line 1 "dhcp6_lexer.cc" -#line 4 "dhcp6_lexer.cc" +#line 3 "dhcp6_lexer.cc" #define YY_INT_ALIGNED short int @@ -1761,7 +1761,7 @@ using namespace isc::dhcp; /* To avoid the call to exit... oops! */ #define YY_FATAL_ERROR(msg) isc::dhcp::Parser6Context::fatal(msg) -#line 1765 "dhcp6_lexer.cc" +#line 1764 "dhcp6_lexer.cc" /* 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 yywrap requires linking with -lfl, which provides the default yywrap @@ -1787,8 +1787,8 @@ using namespace isc::dhcp; by moving it ahead by yyleng bytes. yyleng specifies the length of the currently matched token. */ #define YY_USER_ACTION driver.loc_.columns(yyleng); +#line 1790 "dhcp6_lexer.cc" #line 1791 "dhcp6_lexer.cc" -#line 1792 "dhcp6_lexer.cc" #define INITIAL 0 #define COMMENT 1 @@ -2120,7 +2120,7 @@ YY_DECL } -#line 2124 "dhcp6_lexer.cc" +#line 2123 "dhcp6_lexer.cc" while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { @@ -4484,7 +4484,7 @@ YY_RULE_SETUP #line 1873 "dhcp6_lexer.ll" ECHO; YY_BREAK -#line 4488 "dhcp6_lexer.cc" +#line 4487 "dhcp6_lexer.cc" case YY_END_OF_BUFFER: { diff --git a/src/bin/dhcp6/dhcp6_parser.cc b/src/bin/dhcp6/dhcp6_parser.cc index 5b73cf16cd..5a0f7ace10 100644 --- a/src/bin/dhcp6/dhcp6_parser.cc +++ b/src/bin/dhcp6/dhcp6_parser.cc @@ -1,8 +1,8 @@ -// A Bison parser, made by GNU Bison 3.0.4. +// A Bison parser, made by GNU Bison 3.3.2. // Skeleton implementation for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015 Free Software Foundation, Inc. +// Copyright (C) 2002-2015, 2018-2019 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 @@ -30,32 +30,24 @@ // This special exception was added by the Free Software Foundation in // version 2.2 of Bison. +// Undocumented macros, especially those whose name start with YY_, +// are private implementation details. Do not rely on them. + + // 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 +#line 34 "dhcp6_parser.yy" // lalr1.cc:435 #include -#line 59 "dhcp6_parser.cc" // lalr1.cc:413 +#line 51 "dhcp6_parser.cc" // lalr1.cc:435 #ifndef YY_ @@ -70,6 +62,15 @@ # endif #endif +// Whether we are compiled with exception support. +#ifndef YY_EXCEPTIONS +# if defined __GNUC__ && !defined __EXCEPTIONS +# define YY_EXCEPTIONS 0 +# else +# define YY_EXCEPTIONS 1 +# 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 @@ -87,7 +88,7 @@ { \ (Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \ } \ - while (/*CONSTCOND*/ false) + while (false) # endif @@ -106,7 +107,7 @@ { \ *yycdebug_ << Title << ' '; \ yy_print_ (*yycdebug_, Symbol); \ - *yycdebug_ << std::endl; \ + *yycdebug_ << '\n'; \ } \ } while (false) @@ -125,9 +126,9 @@ #else // !PARSER6_DEBUG # define YYCDEBUG if (false) std::cerr -# define YY_SYMBOL_PRINT(Title, Symbol) YYUSE(Symbol) -# define YY_REDUCE_PRINT(Rule) static_cast(0) -# define YY_STACK_PRINT() static_cast(0) +# define YY_SYMBOL_PRINT(Title, Symbol) YYUSE (Symbol) +# define YY_REDUCE_PRINT(Rule) static_cast (0) +# define YY_STACK_PRINT() static_cast (0) #endif // !PARSER6_DEBUG @@ -139,9 +140,9 @@ #define YYERROR goto yyerrorlab #define YYRECOVERING() (!!yyerrstatus_) -#line 14 "dhcp6_parser.yy" // lalr1.cc:479 +#line 14 "dhcp6_parser.yy" // lalr1.cc:510 namespace isc { namespace dhcp { -#line 145 "dhcp6_parser.cc" // lalr1.cc:479 +#line 146 "dhcp6_parser.cc" // lalr1.cc:510 /* Return YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is @@ -153,7 +154,7 @@ namespace isc { namespace dhcp { { if (*yystr == '"') { - std::string yyr = ""; + std::string yyr; char const *yyp = yystr; for (;;) @@ -166,7 +167,10 @@ namespace isc { namespace dhcp { case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; - // Fall through. + else + goto append; + + append: default: yyr += *yyp; break; @@ -194,6 +198,8 @@ namespace isc { namespace dhcp { Dhcp6Parser::~Dhcp6Parser () {} + Dhcp6Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW + {} /*---------------. | Symbol types. | @@ -202,24 +208,20 @@ namespace isc { namespace dhcp { // by_state. - inline - Dhcp6Parser::by_state::by_state () + Dhcp6Parser::by_state::by_state () YY_NOEXCEPT : state (empty_state) {} - inline - Dhcp6Parser::by_state::by_state (const by_state& other) - : state (other.state) + Dhcp6Parser::by_state::by_state (const by_state& that) YY_NOEXCEPT + : state (that.state) {} - inline void - Dhcp6Parser::by_state::clear () + Dhcp6Parser::by_state::clear () YY_NOEXCEPT { state = empty_state; } - inline void Dhcp6Parser::by_state::move (by_state& that) { @@ -227,14 +229,12 @@ namespace isc { namespace dhcp { that.clear (); } - inline - Dhcp6Parser::by_state::by_state (state_type s) + Dhcp6Parser::by_state::by_state (state_type s) YY_NOEXCEPT : state (s) {} - inline Dhcp6Parser::symbol_number_type - Dhcp6Parser::by_state::type_get () const + Dhcp6Parser::by_state::type_get () const YY_NOEXCEPT { if (state == empty_state) return empty_symbol; @@ -242,16 +242,54 @@ namespace isc { namespace dhcp { return yystos_[state]; } - inline Dhcp6Parser::stack_symbol_type::stack_symbol_type () {} + Dhcp6Parser::stack_symbol_type::stack_symbol_type (YY_RVREF (stack_symbol_type) that) + : super_type (YY_MOVE (that.state), YY_MOVE (that.location)) + { + switch (that.type_get ()) + { + case 194: // value + case 198: // map_value + case 252: // db_type + case 345: // hr_mode + case 481: // duid_type + case 516: // ncr_protocol_value + case 523: // replace_client_name_value + value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (that.value)); + break; - inline - Dhcp6Parser::stack_symbol_type::stack_symbol_type (state_type s, symbol_type& that) - : super_type (s, that.location) + case 176: // "boolean" + value.YY_MOVE_OR_COPY< bool > (YY_MOVE (that.value)); + break; + + case 175: // "floating point" + value.YY_MOVE_OR_COPY< double > (YY_MOVE (that.value)); + break; + + case 174: // "integer" + value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (that.value)); + break; + + case 173: // "constant string" + value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (that.value)); + break; + + default: + break; + } + +#if 201103L <= YY_CPLUSPLUS + // that is emptied. + that.state = empty_state; +#endif + } + + Dhcp6Parser::stack_symbol_type::stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) that) + : super_type (s, YY_MOVE (that.location)) { - switch (that.type_get ()) + switch (that.type_get ()) { case 194: // value case 198: // map_value @@ -260,23 +298,23 @@ namespace isc { namespace dhcp { case 481: // duid_type case 516: // ncr_protocol_value case 523: // replace_client_name_value - value.move< ElementPtr > (that.value); + value.move< ElementPtr > (YY_MOVE (that.value)); break; case 176: // "boolean" - value.move< bool > (that.value); + value.move< bool > (YY_MOVE (that.value)); break; case 175: // "floating point" - value.move< double > (that.value); + value.move< double > (YY_MOVE (that.value)); break; case 174: // "integer" - value.move< int64_t > (that.value); + value.move< int64_t > (YY_MOVE (that.value)); break; case 173: // "constant string" - value.move< std::string > (that.value); + value.move< std::string > (YY_MOVE (that.value)); break; default: @@ -287,12 +325,12 @@ namespace isc { namespace dhcp { that.type = empty_symbol; } - inline +#if YY_CPLUSPLUS < 201103L Dhcp6Parser::stack_symbol_type& - Dhcp6Parser::stack_symbol_type::operator= (const stack_symbol_type& that) + Dhcp6Parser::stack_symbol_type::operator= (stack_symbol_type& that) { state = that.state; - switch (that.type_get ()) + switch (that.type_get ()) { case 194: // value case 198: // map_value @@ -301,23 +339,23 @@ namespace isc { namespace dhcp { case 481: // duid_type case 516: // ncr_protocol_value case 523: // replace_client_name_value - value.copy< ElementPtr > (that.value); + value.move< ElementPtr > (that.value); break; case 176: // "boolean" - value.copy< bool > (that.value); + value.move< bool > (that.value); break; case 175: // "floating point" - value.copy< double > (that.value); + value.move< double > (that.value); break; case 174: // "integer" - value.copy< int64_t > (that.value); + value.move< int64_t > (that.value); break; case 173: // "constant string" - value.copy< std::string > (that.value); + value.move< std::string > (that.value); break; default: @@ -325,12 +363,13 @@ namespace isc { namespace dhcp { } location = that.location; + // that is emptied. + that.state = empty_state; return *this; } - +#endif template - inline void Dhcp6Parser::yy_destroy_ (const char* yymsg, basic_symbol& yysym) const { @@ -347,93 +386,83 @@ namespace isc { namespace dhcp { std::ostream& yyoutput = yyo; YYUSE (yyoutput); symbol_number_type yytype = yysym.type_get (); +#if defined __GNUC__ && ! defined __clang__ && ! defined __ICC && __GNUC__ * 100 + __GNUC_MINOR__ <= 408 // Avoid a (spurious) G++ 4.8 warning about "array subscript is // below array bounds". if (yysym.empty ()) std::abort (); +#endif yyo << (yytype < yyntokens_ ? "token" : "nterm") << ' ' << yytname_[yytype] << " (" << yysym.location << ": "; switch (yytype) { - case 173: // "constant string" - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< std::string > (); } -#line 364 "dhcp6_parser.cc" // lalr1.cc:636 + case 173: // "constant string" +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < std::string > (); } +#line 404 "dhcp6_parser.cc" // lalr1.cc:676 break; case 174: // "integer" - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< int64_t > (); } -#line 371 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < int64_t > (); } +#line 410 "dhcp6_parser.cc" // lalr1.cc:676 break; case 175: // "floating point" - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< double > (); } -#line 378 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < double > (); } +#line 416 "dhcp6_parser.cc" // lalr1.cc:676 break; case 176: // "boolean" - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< bool > (); } -#line 385 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < bool > (); } +#line 422 "dhcp6_parser.cc" // lalr1.cc:676 break; case 194: // value - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 392 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 428 "dhcp6_parser.cc" // lalr1.cc:676 break; case 198: // map_value - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 399 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 434 "dhcp6_parser.cc" // lalr1.cc:676 break; case 252: // db_type - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 406 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 440 "dhcp6_parser.cc" // lalr1.cc:676 break; case 345: // hr_mode - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 413 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 446 "dhcp6_parser.cc" // lalr1.cc:676 break; case 481: // duid_type - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 420 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 452 "dhcp6_parser.cc" // lalr1.cc:676 break; case 516: // ncr_protocol_value - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 427 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 458 "dhcp6_parser.cc" // lalr1.cc:676 break; case 523: // replace_client_name_value - -#line 251 "dhcp6_parser.yy" // lalr1.cc:636 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 434 "dhcp6_parser.cc" // lalr1.cc:636 +#line 251 "dhcp6_parser.yy" // lalr1.cc:676 + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 464 "dhcp6_parser.cc" // lalr1.cc:676 break; - default: break; } @@ -441,26 +470,27 @@ namespace isc { namespace dhcp { } #endif - inline void - Dhcp6Parser::yypush_ (const char* m, state_type s, symbol_type& sym) + Dhcp6Parser::yypush_ (const char* m, YY_MOVE_REF (stack_symbol_type) sym) { - stack_symbol_type t (s, sym); - yypush_ (m, t); + if (m) + YY_SYMBOL_PRINT (m, sym); + yystack_.push (YY_MOVE (sym)); } - inline void - Dhcp6Parser::yypush_ (const char* m, stack_symbol_type& s) + Dhcp6Parser::yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym) { - if (m) - YY_SYMBOL_PRINT (m, s); - yystack_.push (s); +#if 201103L <= YY_CPLUSPLUS + yypush_ (m, stack_symbol_type (s, std::move (sym))); +#else + stack_symbol_type ss (s, sym); + yypush_ (m, ss); +#endif } - inline void - Dhcp6Parser::yypop_ (unsigned int n) + Dhcp6Parser::yypop_ (int n) { yystack_.pop (n); } @@ -492,7 +522,7 @@ namespace isc { namespace dhcp { } #endif // PARSER6_DEBUG - inline Dhcp6Parser::state_type + Dhcp6Parser::state_type Dhcp6Parser::yy_lr_goto_state_ (state_type yystate, int yysym) { int yyr = yypgoto_[yysym - yyntokens_] + yystate; @@ -502,18 +532,24 @@ namespace isc { namespace dhcp { return yydefgoto_[yysym - yyntokens_]; } - inline bool + bool Dhcp6Parser::yy_pact_value_is_default_ (int yyvalue) { return yyvalue == yypact_ninf_; } - inline bool + bool Dhcp6Parser::yy_table_value_is_error_ (int yyvalue) { return yyvalue == yytable_ninf_; } + int + Dhcp6Parser::operator() () + { + return parse (); + } + int Dhcp6Parser::parse () { @@ -535,11 +571,11 @@ namespace isc { namespace dhcp { /// 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. +#if YY_EXCEPTIONS try +#endif // YY_EXCEPTIONS { - YYCDEBUG << "Starting parse" << std::endl; + YYCDEBUG << "Starting parse\n"; /* Initialize the stack. The initial state will be set in @@ -547,21 +583,25 @@ namespace isc { namespace dhcp { location values to have been already stored, initialize these stacks with a primary value. */ yystack_.clear (); - yypush_ (YY_NULLPTR, 0, yyla); + yypush_ (YY_NULLPTR, 0, YY_MOVE (yyla)); - // A new symbol was pushed on the stack. + /*-----------------------------------------------. + | yynewstate -- push a new symbol on the stack. | + `-----------------------------------------------*/ yynewstate: - YYCDEBUG << "Entering state " << yystack_[0].state << std::endl; + YYCDEBUG << "Entering state " << yystack_[0].state << '\n'; // Accept? if (yystack_[0].state == yyfinal_) - goto yyacceptlab; + YYACCEPT; goto yybackup; - // Backup. - yybackup: + /*-----------. + | yybackup. | + `-----------*/ + yybackup: // Try to take a decision without lookahead. yyn = yypact_[yystack_[0].state]; if (yy_pact_value_is_default_ (yyn)) @@ -571,16 +611,21 @@ namespace isc { namespace dhcp { if (yyla.empty ()) { YYCDEBUG << "Reading a token: "; +#if YY_EXCEPTIONS try +#endif // YY_EXCEPTIONS { symbol_type yylookahead (yylex (ctx)); yyla.move (yylookahead); } +#if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); goto yyerrlab1; } +#endif // YY_EXCEPTIONS } YY_SYMBOL_PRINT ("Next token is", yyla); @@ -605,9 +650,10 @@ namespace isc { namespace dhcp { --yyerrstatus_; // Shift the lookahead token. - yypush_ ("Shifting", yyn, yyla); + yypush_ ("Shifting", yyn, YY_MOVE (yyla)); goto yynewstate; + /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ @@ -617,18 +663,19 @@ namespace isc { namespace dhcp { goto yyerrlab; goto yyreduce; + /*-----------------------------. - | yyreduce -- Do a reduction. | + | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: yylen = yyr2_[yyn]; { stack_symbol_type yylhs; - yylhs.state = yy_lr_goto_state_(yystack_[yylen].state, yyr1_[yyn]); + 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]) + switch (yyr1_[yyn]) { case 194: // value case 198: // map_value @@ -637,23 +684,23 @@ namespace isc { namespace dhcp { case 481: // duid_type case 516: // ncr_protocol_value case 523: // replace_client_name_value - yylhs.value.build< ElementPtr > (); + yylhs.value.emplace< ElementPtr > (); break; case 176: // "boolean" - yylhs.value.build< bool > (); + yylhs.value.emplace< bool > (); break; case 175: // "floating point" - yylhs.value.build< double > (); + yylhs.value.emplace< double > (); break; case 174: // "integer" - yylhs.value.build< int64_t > (); + yylhs.value.emplace< int64_t > (); break; case 173: // "constant string" - yylhs.value.build< std::string > (); + yylhs.value.emplace< std::string > (); break; default: @@ -661,299 +708,302 @@ namespace isc { namespace dhcp { } - // Compute the default @$. + // Default location. { - slice slice (yystack_, yylen); - YYLLOC_DEFAULT (yylhs.location, slice, yylen); + stack_type::slice range (yystack_, yylen); + YYLLOC_DEFAULT (yylhs.location, range, yylen); + yyerror_range[1].location = yylhs.location; } // Perform the reduction. YY_REDUCE_PRINT (yyn); +#if YY_EXCEPTIONS try +#endif // YY_EXCEPTIONS { switch (yyn) { case 2: -#line 260 "dhcp6_parser.yy" // lalr1.cc:859 +#line 260 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.NO_KEYWORD; } -#line 680 "dhcp6_parser.cc" // lalr1.cc:859 +#line 730 "dhcp6_parser.cc" // lalr1.cc:919 break; case 4: -#line 261 "dhcp6_parser.yy" // lalr1.cc:859 +#line 261 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.CONFIG; } -#line 686 "dhcp6_parser.cc" // lalr1.cc:859 +#line 736 "dhcp6_parser.cc" // lalr1.cc:919 break; case 6: -#line 262 "dhcp6_parser.yy" // lalr1.cc:859 +#line 262 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.DHCP6; } -#line 692 "dhcp6_parser.cc" // lalr1.cc:859 +#line 742 "dhcp6_parser.cc" // lalr1.cc:919 break; case 8: -#line 263 "dhcp6_parser.yy" // lalr1.cc:859 +#line 263 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.INTERFACES_CONFIG; } -#line 698 "dhcp6_parser.cc" // lalr1.cc:859 +#line 748 "dhcp6_parser.cc" // lalr1.cc:919 break; case 10: -#line 264 "dhcp6_parser.yy" // lalr1.cc:859 +#line 264 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.SUBNET6; } -#line 704 "dhcp6_parser.cc" // lalr1.cc:859 +#line 754 "dhcp6_parser.cc" // lalr1.cc:919 break; case 12: -#line 265 "dhcp6_parser.yy" // lalr1.cc:859 +#line 265 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.POOLS; } -#line 710 "dhcp6_parser.cc" // lalr1.cc:859 +#line 760 "dhcp6_parser.cc" // lalr1.cc:919 break; case 14: -#line 266 "dhcp6_parser.yy" // lalr1.cc:859 +#line 266 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.PD_POOLS; } -#line 716 "dhcp6_parser.cc" // lalr1.cc:859 +#line 766 "dhcp6_parser.cc" // lalr1.cc:919 break; case 16: -#line 267 "dhcp6_parser.yy" // lalr1.cc:859 +#line 267 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.RESERVATIONS; } -#line 722 "dhcp6_parser.cc" // lalr1.cc:859 +#line 772 "dhcp6_parser.cc" // lalr1.cc:919 break; case 18: -#line 268 "dhcp6_parser.yy" // lalr1.cc:859 +#line 268 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.DHCP6; } -#line 728 "dhcp6_parser.cc" // lalr1.cc:859 +#line 778 "dhcp6_parser.cc" // lalr1.cc:919 break; case 20: -#line 269 "dhcp6_parser.yy" // lalr1.cc:859 +#line 269 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.OPTION_DEF; } -#line 734 "dhcp6_parser.cc" // lalr1.cc:859 +#line 784 "dhcp6_parser.cc" // lalr1.cc:919 break; case 22: -#line 270 "dhcp6_parser.yy" // lalr1.cc:859 +#line 270 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.OPTION_DATA; } -#line 740 "dhcp6_parser.cc" // lalr1.cc:859 +#line 790 "dhcp6_parser.cc" // lalr1.cc:919 break; case 24: -#line 271 "dhcp6_parser.yy" // lalr1.cc:859 +#line 271 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.HOOKS_LIBRARIES; } -#line 746 "dhcp6_parser.cc" // lalr1.cc:859 +#line 796 "dhcp6_parser.cc" // lalr1.cc:919 break; case 26: -#line 272 "dhcp6_parser.yy" // lalr1.cc:859 +#line 272 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.DHCP_DDNS; } -#line 752 "dhcp6_parser.cc" // lalr1.cc:859 +#line 802 "dhcp6_parser.cc" // lalr1.cc:919 break; case 28: -#line 273 "dhcp6_parser.yy" // lalr1.cc:859 +#line 273 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.LOGGING; } -#line 758 "dhcp6_parser.cc" // lalr1.cc:859 +#line 808 "dhcp6_parser.cc" // lalr1.cc:919 break; case 30: -#line 274 "dhcp6_parser.yy" // lalr1.cc:859 +#line 274 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.ctx_ = ctx.CONFIG_CONTROL; } -#line 764 "dhcp6_parser.cc" // lalr1.cc:859 +#line 814 "dhcp6_parser.cc" // lalr1.cc:919 break; case 32: -#line 282 "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 770 "dhcp6_parser.cc" // lalr1.cc:859 +#line 282 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); } +#line 820 "dhcp6_parser.cc" // lalr1.cc:919 break; case 33: -#line 283 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); } -#line 776 "dhcp6_parser.cc" // lalr1.cc:859 +#line 283 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); } +#line 826 "dhcp6_parser.cc" // lalr1.cc:919 break; case 34: -#line 284 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); } -#line 782 "dhcp6_parser.cc" // lalr1.cc:859 +#line 284 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); } +#line 832 "dhcp6_parser.cc" // lalr1.cc:919 break; case 35: -#line 285 "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 788 "dhcp6_parser.cc" // lalr1.cc:859 +#line 285 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); } +#line 838 "dhcp6_parser.cc" // lalr1.cc:919 break; case 36: -#line 286 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } -#line 794 "dhcp6_parser.cc" // lalr1.cc:859 +#line 286 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } +#line 844 "dhcp6_parser.cc" // lalr1.cc:919 break; case 37: -#line 287 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 800 "dhcp6_parser.cc" // lalr1.cc:859 +#line 287 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 850 "dhcp6_parser.cc" // lalr1.cc:919 break; case 38: -#line 288 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 806 "dhcp6_parser.cc" // lalr1.cc:859 +#line 288 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 856 "dhcp6_parser.cc" // lalr1.cc:919 break; case 39: -#line 291 "dhcp6_parser.yy" // lalr1.cc:859 +#line 291 "dhcp6_parser.yy" // lalr1.cc:919 { // Push back the JSON value on the stack - ctx.stack_.push_back(yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.push_back(yystack_[0].value.as < ElementPtr > ()); } -#line 815 "dhcp6_parser.cc" // lalr1.cc:859 +#line 865 "dhcp6_parser.cc" // lalr1.cc:919 break; case 40: -#line 296 "dhcp6_parser.yy" // lalr1.cc:859 +#line 296 "dhcp6_parser.yy" // lalr1.cc:919 { // 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 826 "dhcp6_parser.cc" // lalr1.cc:859 +#line 876 "dhcp6_parser.cc" // lalr1.cc:919 break; case 41: -#line 301 "dhcp6_parser.yy" // lalr1.cc:859 +#line 301 "dhcp6_parser.yy" // lalr1.cc:919 { // 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 836 "dhcp6_parser.cc" // lalr1.cc:859 +#line 886 "dhcp6_parser.cc" // lalr1.cc:919 break; case 42: -#line 307 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 842 "dhcp6_parser.cc" // lalr1.cc:859 +#line 307 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 892 "dhcp6_parser.cc" // lalr1.cc:919 break; case 45: -#line 314 "dhcp6_parser.yy" // lalr1.cc:859 +#line 314 "dhcp6_parser.yy" // lalr1.cc:919 { // map containing a single entry - ctx.stack_.back()->set(yystack_[2].value.as< std::string > (), yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set(yystack_[2].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ()); } -#line 851 "dhcp6_parser.cc" // lalr1.cc:859 +#line 901 "dhcp6_parser.cc" // lalr1.cc:919 break; case 46: -#line 318 "dhcp6_parser.yy" // lalr1.cc:859 +#line 318 "dhcp6_parser.yy" // lalr1.cc:919 { // 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 > ()); + ctx.stack_.back()->set(yystack_[2].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ()); } -#line 861 "dhcp6_parser.cc" // lalr1.cc:859 +#line 911 "dhcp6_parser.cc" // lalr1.cc:919 break; case 47: -#line 325 "dhcp6_parser.yy" // lalr1.cc:859 +#line 325 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(l); } -#line 870 "dhcp6_parser.cc" // lalr1.cc:859 +#line 920 "dhcp6_parser.cc" // lalr1.cc:919 break; case 48: -#line 328 "dhcp6_parser.yy" // lalr1.cc:859 +#line 328 "dhcp6_parser.yy" // lalr1.cc:919 { // list parsing complete. Put any sanity checking here } -#line 878 "dhcp6_parser.cc" // lalr1.cc:859 +#line 928 "dhcp6_parser.cc" // lalr1.cc:919 break; case 51: -#line 336 "dhcp6_parser.yy" // lalr1.cc:859 +#line 336 "dhcp6_parser.yy" // lalr1.cc:919 { // List consisting of a single element. - ctx.stack_.back()->add(yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->add(yystack_[0].value.as < ElementPtr > ()); } -#line 887 "dhcp6_parser.cc" // lalr1.cc:859 +#line 937 "dhcp6_parser.cc" // lalr1.cc:919 break; case 52: -#line 340 "dhcp6_parser.yy" // lalr1.cc:859 +#line 340 "dhcp6_parser.yy" // lalr1.cc:919 { // List ending with , and a value. - ctx.stack_.back()->add(yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->add(yystack_[0].value.as < ElementPtr > ()); } -#line 896 "dhcp6_parser.cc" // lalr1.cc:859 +#line 946 "dhcp6_parser.cc" // lalr1.cc:919 break; case 53: -#line 347 "dhcp6_parser.yy" // lalr1.cc:859 +#line 347 "dhcp6_parser.yy" // lalr1.cc:919 { // List parsing about to start } -#line 904 "dhcp6_parser.cc" // lalr1.cc:859 +#line 954 "dhcp6_parser.cc" // lalr1.cc:919 break; case 54: -#line 349 "dhcp6_parser.yy" // lalr1.cc:859 +#line 349 "dhcp6_parser.yy" // lalr1.cc:919 { // list parsing complete. Put any sanity checking here //ctx.stack_.pop_back(); } -#line 913 "dhcp6_parser.cc" // lalr1.cc:859 +#line 963 "dhcp6_parser.cc" // lalr1.cc:919 break; case 57: -#line 358 "dhcp6_parser.yy" // lalr1.cc:859 +#line 358 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(s); } -#line 922 "dhcp6_parser.cc" // lalr1.cc:859 +#line 972 "dhcp6_parser.cc" // lalr1.cc:919 break; case 58: -#line 362 "dhcp6_parser.yy" // lalr1.cc:859 +#line 362 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(s); } -#line 931 "dhcp6_parser.cc" // lalr1.cc:859 +#line 981 "dhcp6_parser.cc" // lalr1.cc:919 break; case 59: -#line 373 "dhcp6_parser.yy" // lalr1.cc:859 +#line 373 "dhcp6_parser.yy" // lalr1.cc:919 { const std::string& where = ctx.contextName(); - const std::string& keyword = yystack_[1].value.as< std::string > (); + const std::string& keyword = yystack_[1].value.as < std::string > (); error(yystack_[1].location, "got unexpected keyword \"" + keyword + "\" in " + where + " map."); } -#line 942 "dhcp6_parser.cc" // lalr1.cc:859 +#line 992 "dhcp6_parser.cc" // lalr1.cc:919 break; case 60: -#line 383 "dhcp6_parser.yy" // lalr1.cc:859 +#line 383 "dhcp6_parser.yy" // lalr1.cc:919 { // 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 953 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1003 "dhcp6_parser.cc" // lalr1.cc:919 break; case 61: -#line 388 "dhcp6_parser.yy" // lalr1.cc:859 +#line 388 "dhcp6_parser.yy" // lalr1.cc:919 { // map parsing completed. If we ever want to do any wrap up // (maybe some sanity checking), this would be the best place @@ -962,11 +1012,11 @@ namespace isc { namespace dhcp { // Dhcp6 is required ctx.require("Dhcp6", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); } -#line 966 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1016 "dhcp6_parser.cc" // lalr1.cc:919 break; case 70: -#line 411 "dhcp6_parser.yy" // lalr1.cc:859 +#line 411 "dhcp6_parser.yy" // lalr1.cc:919 { // This code is executed when we're about to start parsing // the content of the map @@ -975,893 +1025,893 @@ namespace isc { namespace dhcp { ctx.stack_.push_back(m); ctx.enter(ctx.DHCP6); } -#line 979 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1029 "dhcp6_parser.cc" // lalr1.cc:919 break; case 71: -#line 418 "dhcp6_parser.yy" // lalr1.cc:859 +#line 418 "dhcp6_parser.yy" // lalr1.cc:919 { // No global parameter is required ctx.stack_.pop_back(); ctx.leave(); } -#line 989 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1039 "dhcp6_parser.cc" // lalr1.cc:919 break; case 72: -#line 426 "dhcp6_parser.yy" // lalr1.cc:859 +#line 426 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the Dhcp6 map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 999 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1049 "dhcp6_parser.cc" // lalr1.cc:919 break; case 73: -#line 430 "dhcp6_parser.yy" // lalr1.cc:859 +#line 430 "dhcp6_parser.yy" // lalr1.cc:919 { // No global parameter is required // parsing completed } -#line 1008 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1058 "dhcp6_parser.cc" // lalr1.cc:919 break; case 109: -#line 476 "dhcp6_parser.yy" // lalr1.cc:859 +#line 476 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1016 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1066 "dhcp6_parser.cc" // lalr1.cc:919 break; case 110: -#line 478 "dhcp6_parser.yy" // lalr1.cc:859 +#line 478 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr datadir(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr datadir(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("data-directory", datadir); ctx.leave(); } -#line 1026 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1076 "dhcp6_parser.cc" // lalr1.cc:919 break; case 111: -#line 484 "dhcp6_parser.yy" // lalr1.cc:859 +#line 484 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("preferred-lifetime", prf); } -#line 1035 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1085 "dhcp6_parser.cc" // lalr1.cc:919 break; case 112: -#line 489 "dhcp6_parser.yy" // lalr1.cc:859 +#line 489 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("valid-lifetime", prf); } -#line 1044 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1094 "dhcp6_parser.cc" // lalr1.cc:919 break; case 113: -#line 494 "dhcp6_parser.yy" // lalr1.cc:859 +#line 494 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("renew-timer", prf); } -#line 1053 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1103 "dhcp6_parser.cc" // lalr1.cc:919 break; case 114: -#line 499 "dhcp6_parser.yy" // lalr1.cc:859 +#line 499 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("rebind-timer", prf); } -#line 1062 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1112 "dhcp6_parser.cc" // lalr1.cc:919 break; case 115: -#line 504 "dhcp6_parser.yy" // lalr1.cc:859 +#line 504 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr dpp(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr dpp(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("decline-probation-period", dpp); } -#line 1071 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1121 "dhcp6_parser.cc" // lalr1.cc:919 break; case 116: -#line 509 "dhcp6_parser.yy" // lalr1.cc:859 +#line 509 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1079 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1129 "dhcp6_parser.cc" // lalr1.cc:919 break; case 117: -#line 511 "dhcp6_parser.yy" // lalr1.cc:859 +#line 511 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr stag(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr stag(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("server-tag", stag); ctx.leave(); } -#line 1089 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1139 "dhcp6_parser.cc" // lalr1.cc:919 break; case 118: -#line 517 "dhcp6_parser.yy" // lalr1.cc:859 +#line 517 "dhcp6_parser.yy" // lalr1.cc:919 { 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 1100 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1150 "dhcp6_parser.cc" // lalr1.cc:919 break; case 119: -#line 522 "dhcp6_parser.yy" // lalr1.cc:859 +#line 522 "dhcp6_parser.yy" // lalr1.cc:919 { // No interfaces config param is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1110 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1160 "dhcp6_parser.cc" // lalr1.cc:919 break; case 120: -#line 528 "dhcp6_parser.yy" // lalr1.cc:859 +#line 528 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the interfaces-config map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1120 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1170 "dhcp6_parser.cc" // lalr1.cc:919 break; case 121: -#line 532 "dhcp6_parser.yy" // lalr1.cc:859 +#line 532 "dhcp6_parser.yy" // lalr1.cc:919 { // No interfaces config param is required // parsing completed } -#line 1129 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1179 "dhcp6_parser.cc" // lalr1.cc:919 break; case 129: -#line 548 "dhcp6_parser.yy" // lalr1.cc:859 +#line 548 "dhcp6_parser.yy" // lalr1.cc:919 { 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 1140 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1190 "dhcp6_parser.cc" // lalr1.cc:919 break; case 130: -#line 553 "dhcp6_parser.yy" // lalr1.cc:859 +#line 553 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1149 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1199 "dhcp6_parser.cc" // lalr1.cc:919 break; case 131: -#line 558 "dhcp6_parser.yy" // lalr1.cc:859 +#line 558 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("re-detect", b); } -#line 1158 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1208 "dhcp6_parser.cc" // lalr1.cc:919 break; case 132: -#line 564 "dhcp6_parser.yy" // lalr1.cc:859 +#line 564 "dhcp6_parser.yy" // lalr1.cc:919 { 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 1169 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1219 "dhcp6_parser.cc" // lalr1.cc:919 break; case 133: -#line 569 "dhcp6_parser.yy" // lalr1.cc:859 +#line 569 "dhcp6_parser.yy" // lalr1.cc:919 { // The type parameter is required ctx.require("type", ctx.loc2pos(yystack_[2].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); ctx.leave(); } -#line 1180 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1230 "dhcp6_parser.cc" // lalr1.cc:919 break; case 134: -#line 576 "dhcp6_parser.yy" // lalr1.cc:859 +#line 576 "dhcp6_parser.yy" // lalr1.cc:919 { 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 1191 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1241 "dhcp6_parser.cc" // lalr1.cc:919 break; case 135: -#line 581 "dhcp6_parser.yy" // lalr1.cc:859 +#line 581 "dhcp6_parser.yy" // lalr1.cc:919 { // The type parameter is required ctx.require("type", ctx.loc2pos(yystack_[2].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); ctx.leave(); } -#line 1202 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1252 "dhcp6_parser.cc" // lalr1.cc:919 break; case 136: -#line 588 "dhcp6_parser.yy" // lalr1.cc:859 +#line 588 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hosts-databases", l); ctx.stack_.push_back(l); ctx.enter(ctx.HOSTS_DATABASE); } -#line 1213 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1263 "dhcp6_parser.cc" // lalr1.cc:919 break; case 137: -#line 593 "dhcp6_parser.yy" // lalr1.cc:859 +#line 593 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1222 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1272 "dhcp6_parser.cc" // lalr1.cc:919 break; case 142: -#line 606 "dhcp6_parser.yy" // lalr1.cc:859 +#line 606 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1232 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1282 "dhcp6_parser.cc" // lalr1.cc:919 break; case 143: -#line 610 "dhcp6_parser.yy" // lalr1.cc:859 +#line 610 "dhcp6_parser.yy" // lalr1.cc:919 { // The type parameter is required ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1242 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1292 "dhcp6_parser.cc" // lalr1.cc:919 break; case 166: -#line 642 "dhcp6_parser.yy" // lalr1.cc:859 +#line 642 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.DATABASE_TYPE); } -#line 1250 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1300 "dhcp6_parser.cc" // lalr1.cc:919 break; case 167: -#line 644 "dhcp6_parser.yy" // lalr1.cc:859 +#line 644 "dhcp6_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("type", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("type", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1259 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1309 "dhcp6_parser.cc" // lalr1.cc:919 break; case 168: -#line 649 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); } -#line 1265 "dhcp6_parser.cc" // lalr1.cc:859 +#line 649 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); } +#line 1315 "dhcp6_parser.cc" // lalr1.cc:919 break; case 169: -#line 650 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); } -#line 1271 "dhcp6_parser.cc" // lalr1.cc:859 +#line 650 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); } +#line 1321 "dhcp6_parser.cc" // lalr1.cc:919 break; case 170: -#line 651 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); } -#line 1277 "dhcp6_parser.cc" // lalr1.cc:859 +#line 651 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); } +#line 1327 "dhcp6_parser.cc" // lalr1.cc:919 break; case 171: -#line 652 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); } -#line 1283 "dhcp6_parser.cc" // lalr1.cc:859 +#line 652 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); } +#line 1333 "dhcp6_parser.cc" // lalr1.cc:919 break; case 172: -#line 655 "dhcp6_parser.yy" // lalr1.cc:859 +#line 655 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1291 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1341 "dhcp6_parser.cc" // lalr1.cc:919 break; case 173: -#line 657 "dhcp6_parser.yy" // lalr1.cc:859 +#line 657 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr user(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr user(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("user", user); ctx.leave(); } -#line 1301 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1351 "dhcp6_parser.cc" // lalr1.cc:919 break; case 174: -#line 663 "dhcp6_parser.yy" // lalr1.cc:859 +#line 663 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1309 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1359 "dhcp6_parser.cc" // lalr1.cc:919 break; case 175: -#line 665 "dhcp6_parser.yy" // lalr1.cc:859 +#line 665 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr pwd(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr pwd(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("password", pwd); ctx.leave(); } -#line 1319 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1369 "dhcp6_parser.cc" // lalr1.cc:919 break; case 176: -#line 671 "dhcp6_parser.yy" // lalr1.cc:859 +#line 671 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1327 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1377 "dhcp6_parser.cc" // lalr1.cc:919 break; case 177: -#line 673 "dhcp6_parser.yy" // lalr1.cc:859 +#line 673 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr h(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr h(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("host", h); ctx.leave(); } -#line 1337 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1387 "dhcp6_parser.cc" // lalr1.cc:919 break; case 178: -#line 679 "dhcp6_parser.yy" // lalr1.cc:859 +#line 679 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr p(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr p(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("port", p); } -#line 1346 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1396 "dhcp6_parser.cc" // lalr1.cc:919 break; case 179: -#line 684 "dhcp6_parser.yy" // lalr1.cc:859 +#line 684 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1354 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1404 "dhcp6_parser.cc" // lalr1.cc:919 break; case 180: -#line 686 "dhcp6_parser.yy" // lalr1.cc:859 +#line 686 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr name(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr name(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("name", name); ctx.leave(); } -#line 1364 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1414 "dhcp6_parser.cc" // lalr1.cc:919 break; case 181: -#line 692 "dhcp6_parser.yy" // lalr1.cc:859 +#line 692 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr n(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("persist", n); } -#line 1373 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1423 "dhcp6_parser.cc" // lalr1.cc:919 break; case 182: -#line 697 "dhcp6_parser.yy" // lalr1.cc:859 +#line 697 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("lfc-interval", n); } -#line 1382 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1432 "dhcp6_parser.cc" // lalr1.cc:919 break; case 183: -#line 702 "dhcp6_parser.yy" // lalr1.cc:859 +#line 702 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr n(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("readonly", n); } -#line 1391 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1441 "dhcp6_parser.cc" // lalr1.cc:919 break; case 184: -#line 707 "dhcp6_parser.yy" // lalr1.cc:859 +#line 707 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("connect-timeout", n); } -#line 1400 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1450 "dhcp6_parser.cc" // lalr1.cc:919 break; case 185: -#line 712 "dhcp6_parser.yy" // lalr1.cc:859 +#line 712 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("reconnect-wait-time", n); } -#line 1409 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1459 "dhcp6_parser.cc" // lalr1.cc:919 break; case 186: -#line 717 "dhcp6_parser.yy" // lalr1.cc:859 +#line 717 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("request-timeout", n); } -#line 1418 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1468 "dhcp6_parser.cc" // lalr1.cc:919 break; case 187: -#line 722 "dhcp6_parser.yy" // lalr1.cc:859 +#line 722 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("tcp-keepalive", n); } -#line 1427 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1477 "dhcp6_parser.cc" // lalr1.cc:919 break; case 188: -#line 727 "dhcp6_parser.yy" // lalr1.cc:859 +#line 727 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr n(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("tcp-nodelay", n); } -#line 1436 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1486 "dhcp6_parser.cc" // lalr1.cc:919 break; case 189: -#line 732 "dhcp6_parser.yy" // lalr1.cc:859 +#line 732 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1444 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1494 "dhcp6_parser.cc" // lalr1.cc:919 break; case 190: -#line 734 "dhcp6_parser.yy" // lalr1.cc:859 +#line 734 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr cp(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr cp(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("contact-points", cp); ctx.leave(); } -#line 1454 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1504 "dhcp6_parser.cc" // lalr1.cc:919 break; case 191: -#line 740 "dhcp6_parser.yy" // lalr1.cc:859 +#line 740 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr n(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("max-reconnect-tries", n); } -#line 1463 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1513 "dhcp6_parser.cc" // lalr1.cc:919 break; case 192: -#line 745 "dhcp6_parser.yy" // lalr1.cc:859 +#line 745 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1471 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1521 "dhcp6_parser.cc" // lalr1.cc:919 break; case 193: -#line 747 "dhcp6_parser.yy" // lalr1.cc:859 +#line 747 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr ks(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr ks(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("keyspace", ks); ctx.leave(); } -#line 1481 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1531 "dhcp6_parser.cc" // lalr1.cc:919 break; case 194: -#line 753 "dhcp6_parser.yy" // lalr1.cc:859 +#line 753 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1489 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1539 "dhcp6_parser.cc" // lalr1.cc:919 break; case 195: -#line 755 "dhcp6_parser.yy" // lalr1.cc:859 +#line 755 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr c(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr c(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("consistency", c); ctx.leave(); } -#line 1499 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1549 "dhcp6_parser.cc" // lalr1.cc:919 break; case 196: -#line 761 "dhcp6_parser.yy" // lalr1.cc:859 +#line 761 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1507 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1557 "dhcp6_parser.cc" // lalr1.cc:919 break; case 197: -#line 763 "dhcp6_parser.yy" // lalr1.cc:859 +#line 763 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr c(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr c(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("serial-consistency", c); ctx.leave(); } -#line 1517 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1567 "dhcp6_parser.cc" // lalr1.cc:919 break; case 198: -#line 769 "dhcp6_parser.yy" // lalr1.cc:859 +#line 769 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("sanity-checks", m); ctx.stack_.push_back(m); ctx.enter(ctx.SANITY_CHECKS); } -#line 1528 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1578 "dhcp6_parser.cc" // lalr1.cc:919 break; case 199: -#line 774 "dhcp6_parser.yy" // lalr1.cc:859 +#line 774 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1537 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1587 "dhcp6_parser.cc" // lalr1.cc:919 break; case 203: -#line 784 "dhcp6_parser.yy" // lalr1.cc:859 +#line 784 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1545 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1595 "dhcp6_parser.cc" // lalr1.cc:919 break; case 204: -#line 786 "dhcp6_parser.yy" // lalr1.cc:859 +#line 786 "dhcp6_parser.yy" // lalr1.cc:919 { - if ( (string(yystack_[0].value.as< std::string > ()) == "none") || - (string(yystack_[0].value.as< std::string > ()) == "warn") || - (string(yystack_[0].value.as< std::string > ()) == "fix") || - (string(yystack_[0].value.as< std::string > ()) == "fix-del") || - (string(yystack_[0].value.as< std::string > ()) == "del")) { - ElementPtr user(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + if ( (string(yystack_[0].value.as < std::string > ()) == "none") || + (string(yystack_[0].value.as < std::string > ()) == "warn") || + (string(yystack_[0].value.as < std::string > ()) == "fix") || + (string(yystack_[0].value.as < std::string > ()) == "fix-del") || + (string(yystack_[0].value.as < std::string > ()) == "del")) { + ElementPtr user(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("lease-checks", user); ctx.leave(); } else { - error(yystack_[0].location, "Unsupported 'lease-checks value: " + string(yystack_[0].value.as< std::string > ()) + + error(yystack_[0].location, "Unsupported 'lease-checks value: " + string(yystack_[0].value.as < std::string > ()) + ", supported values are: none, warn, fix, fix-del, del"); } } -#line 1565 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1615 "dhcp6_parser.cc" // lalr1.cc:919 break; case 205: -#line 802 "dhcp6_parser.yy" // lalr1.cc:859 +#line 802 "dhcp6_parser.yy" // lalr1.cc:919 { 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 1576 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1626 "dhcp6_parser.cc" // lalr1.cc:919 break; case 206: -#line 807 "dhcp6_parser.yy" // lalr1.cc:859 +#line 807 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1585 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1635 "dhcp6_parser.cc" // lalr1.cc:919 break; case 211: -#line 820 "dhcp6_parser.yy" // lalr1.cc:859 +#line 820 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr duid(new StringElement("duid", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(duid); } -#line 1594 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1644 "dhcp6_parser.cc" // lalr1.cc:919 break; case 212: -#line 825 "dhcp6_parser.yy" // lalr1.cc:859 +#line 825 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr duid(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr duid(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(duid); } -#line 1603 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1653 "dhcp6_parser.cc" // lalr1.cc:919 break; case 213: -#line 830 "dhcp6_parser.yy" // lalr1.cc:859 +#line 830 "dhcp6_parser.yy" // lalr1.cc:919 { 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 1614 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1664 "dhcp6_parser.cc" // lalr1.cc:919 break; case 214: -#line 835 "dhcp6_parser.yy" // lalr1.cc:859 +#line 835 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1623 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1673 "dhcp6_parser.cc" // lalr1.cc:919 break; case 220: -#line 849 "dhcp6_parser.yy" // lalr1.cc:859 +#line 849 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr hwaddr(new StringElement("hw-address", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(hwaddr); } -#line 1632 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1682 "dhcp6_parser.cc" // lalr1.cc:919 break; case 221: -#line 854 "dhcp6_parser.yy" // lalr1.cc:859 +#line 854 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr flex_id(new StringElement("flex-id", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(flex_id); } -#line 1641 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1691 "dhcp6_parser.cc" // lalr1.cc:919 break; case 222: -#line 861 "dhcp6_parser.yy" // lalr1.cc:859 +#line 861 "dhcp6_parser.yy" // lalr1.cc:919 { 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 1652 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1702 "dhcp6_parser.cc" // lalr1.cc:919 break; case 223: -#line 866 "dhcp6_parser.yy" // lalr1.cc:859 +#line 866 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1661 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1711 "dhcp6_parser.cc" // lalr1.cc:919 break; case 224: -#line 871 "dhcp6_parser.yy" // lalr1.cc:859 +#line 871 "dhcp6_parser.yy" // lalr1.cc:919 { 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 1672 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1722 "dhcp6_parser.cc" // lalr1.cc:919 break; case 225: -#line 876 "dhcp6_parser.yy" // lalr1.cc:859 +#line 876 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1681 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1731 "dhcp6_parser.cc" // lalr1.cc:919 break; case 230: -#line 889 "dhcp6_parser.yy" // lalr1.cc:859 +#line 889 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1691 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1741 "dhcp6_parser.cc" // lalr1.cc:919 break; case 231: -#line 893 "dhcp6_parser.yy" // lalr1.cc:859 +#line 893 "dhcp6_parser.yy" // lalr1.cc:919 { // The library hooks parameter is required ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1701 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1751 "dhcp6_parser.cc" // lalr1.cc:919 break; case 232: -#line 899 "dhcp6_parser.yy" // lalr1.cc:859 +#line 899 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the hooks-libraries list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1711 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1761 "dhcp6_parser.cc" // lalr1.cc:919 break; case 233: -#line 903 "dhcp6_parser.yy" // lalr1.cc:859 +#line 903 "dhcp6_parser.yy" // lalr1.cc:919 { // The library hooks parameter is required ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 1721 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1771 "dhcp6_parser.cc" // lalr1.cc:919 break; case 239: -#line 918 "dhcp6_parser.yy" // lalr1.cc:859 +#line 918 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1729 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1779 "dhcp6_parser.cc" // lalr1.cc:919 break; case 240: -#line 920 "dhcp6_parser.yy" // lalr1.cc:859 +#line 920 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr lib(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr lib(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("library", lib); ctx.leave(); } -#line 1739 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1789 "dhcp6_parser.cc" // lalr1.cc:919 break; case 241: -#line 926 "dhcp6_parser.yy" // lalr1.cc:859 +#line 926 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1747 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1797 "dhcp6_parser.cc" // lalr1.cc:919 break; case 242: -#line 928 "dhcp6_parser.yy" // lalr1.cc:859 +#line 928 "dhcp6_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("parameters", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("parameters", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1756 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1806 "dhcp6_parser.cc" // lalr1.cc:919 break; case 243: -#line 934 "dhcp6_parser.yy" // lalr1.cc:859 +#line 934 "dhcp6_parser.yy" // lalr1.cc:919 { 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.EXPIRED_LEASES_PROCESSING); } -#line 1767 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1817 "dhcp6_parser.cc" // lalr1.cc:919 break; case 244: -#line 939 "dhcp6_parser.yy" // lalr1.cc:859 +#line 939 "dhcp6_parser.yy" // lalr1.cc:919 { // No expired lease parameter is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1777 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1827 "dhcp6_parser.cc" // lalr1.cc:919 break; case 253: -#line 957 "dhcp6_parser.yy" // lalr1.cc:859 +#line 957 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("reclaim-timer-wait-time", value); } -#line 1786 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1836 "dhcp6_parser.cc" // lalr1.cc:919 break; case 254: -#line 962 "dhcp6_parser.yy" // lalr1.cc:859 +#line 962 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("flush-reclaimed-timer-wait-time", value); } -#line 1795 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1845 "dhcp6_parser.cc" // lalr1.cc:919 break; case 255: -#line 967 "dhcp6_parser.yy" // lalr1.cc:859 +#line 967 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hold-reclaimed-time", value); } -#line 1804 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1854 "dhcp6_parser.cc" // lalr1.cc:919 break; case 256: -#line 972 "dhcp6_parser.yy" // lalr1.cc:859 +#line 972 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("max-reclaim-leases", value); } -#line 1813 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1863 "dhcp6_parser.cc" // lalr1.cc:919 break; case 257: -#line 977 "dhcp6_parser.yy" // lalr1.cc:859 +#line 977 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("max-reclaim-time", value); } -#line 1822 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1872 "dhcp6_parser.cc" // lalr1.cc:919 break; case 258: -#line 982 "dhcp6_parser.yy" // lalr1.cc:859 +#line 982 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr value(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("unwarned-reclaim-cycles", value); } -#line 1831 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1881 "dhcp6_parser.cc" // lalr1.cc:919 break; case 259: -#line 990 "dhcp6_parser.yy" // lalr1.cc:859 +#line 990 "dhcp6_parser.yy" // lalr1.cc:919 { 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 1842 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1892 "dhcp6_parser.cc" // lalr1.cc:919 break; case 260: -#line 995 "dhcp6_parser.yy" // lalr1.cc:859 +#line 995 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1851 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1901 "dhcp6_parser.cc" // lalr1.cc:919 break; case 265: -#line 1015 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1015 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1861 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1911 "dhcp6_parser.cc" // lalr1.cc:919 break; case 266: -#line 1019 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1019 "dhcp6_parser.yy" // lalr1.cc:919 { // Once we reached this place, the subnet parsing is now complete. // If we want to, we can implement default values here. @@ -1883,267 +1933,267 @@ namespace isc { namespace dhcp { ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1887 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1937 "dhcp6_parser.cc" // lalr1.cc:919 break; case 267: -#line 1041 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1041 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the subnet6 list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1897 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1947 "dhcp6_parser.cc" // lalr1.cc:919 break; case 268: -#line 1045 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1045 "dhcp6_parser.yy" // lalr1.cc:919 { // The subnet subnet6 parameter is required ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 1907 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1957 "dhcp6_parser.cc" // lalr1.cc:919 break; case 291: -#line 1079 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1079 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1915 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1965 "dhcp6_parser.cc" // lalr1.cc:919 break; case 292: -#line 1081 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1081 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr subnet(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr subnet(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("subnet", subnet); ctx.leave(); } -#line 1925 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1975 "dhcp6_parser.cc" // lalr1.cc:919 break; case 293: -#line 1087 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1087 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1933 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1983 "dhcp6_parser.cc" // lalr1.cc:919 break; case 294: -#line 1089 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1089 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr iface(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("interface", iface); ctx.leave(); } -#line 1943 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1993 "dhcp6_parser.cc" // lalr1.cc:919 break; case 295: -#line 1095 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1095 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1951 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2001 "dhcp6_parser.cc" // lalr1.cc:919 break; case 296: -#line 1097 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1097 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr iface(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 1961 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2011 "dhcp6_parser.cc" // lalr1.cc:919 break; case 297: -#line 1103 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1103 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 1969 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2019 "dhcp6_parser.cc" // lalr1.cc:919 break; case 298: -#line 1105 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1105 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr cls(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 1979 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2029 "dhcp6_parser.cc" // lalr1.cc:919 break; case 299: -#line 1111 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1111 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr c(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("require-client-classes", c); ctx.stack_.push_back(c); ctx.enter(ctx.NO_KEYWORD); } -#line 1990 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2040 "dhcp6_parser.cc" // lalr1.cc:919 break; case 300: -#line 1116 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1116 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 1999 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2049 "dhcp6_parser.cc" // lalr1.cc:919 break; case 301: -#line 1121 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1121 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.RESERVATION_MODE); } -#line 2007 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2057 "dhcp6_parser.cc" // lalr1.cc:919 break; case 302: -#line 1123 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1123 "dhcp6_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("reservation-mode", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("reservation-mode", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 2016 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2066 "dhcp6_parser.cc" // lalr1.cc:919 break; case 303: -#line 1128 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); } -#line 2022 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1128 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); } +#line 2072 "dhcp6_parser.cc" // lalr1.cc:919 break; case 304: -#line 1129 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); } -#line 2028 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1129 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); } +#line 2078 "dhcp6_parser.cc" // lalr1.cc:919 break; case 305: -#line 1130 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); } -#line 2034 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1130 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); } +#line 2084 "dhcp6_parser.cc" // lalr1.cc:919 break; case 306: -#line 1131 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); } -#line 2040 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1131 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); } +#line 2090 "dhcp6_parser.cc" // lalr1.cc:919 break; case 307: -#line 1134 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1134 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr id(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr id(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("id", id); } -#line 2049 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2099 "dhcp6_parser.cc" // lalr1.cc:919 break; case 308: -#line 1139 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1139 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr rc(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr rc(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("rapid-commit", rc); } -#line 2058 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2108 "dhcp6_parser.cc" // lalr1.cc:919 break; case 309: -#line 1147 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1147 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("shared-networks", l); ctx.stack_.push_back(l); ctx.enter(ctx.SHARED_NETWORK); } -#line 2069 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2119 "dhcp6_parser.cc" // lalr1.cc:919 break; case 310: -#line 1152 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1152 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2078 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2128 "dhcp6_parser.cc" // lalr1.cc:919 break; case 315: -#line 1167 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1167 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2088 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2138 "dhcp6_parser.cc" // lalr1.cc:919 break; case 316: -#line 1171 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1171 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); } -#line 2096 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2146 "dhcp6_parser.cc" // lalr1.cc:919 break; case 336: -#line 1202 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1202 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2107 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2157 "dhcp6_parser.cc" // lalr1.cc:919 break; case 337: -#line 1207 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1207 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2116 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2166 "dhcp6_parser.cc" // lalr1.cc:919 break; case 338: -#line 1215 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1215 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2125 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2175 "dhcp6_parser.cc" // lalr1.cc:919 break; case 339: -#line 1218 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1218 "dhcp6_parser.yy" // lalr1.cc:919 { // parsing completed } -#line 2133 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2183 "dhcp6_parser.cc" // lalr1.cc:919 break; case 344: -#line 1234 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1234 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2143 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2193 "dhcp6_parser.cc" // lalr1.cc:919 break; case 345: -#line 1238 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1238 "dhcp6_parser.yy" // lalr1.cc:919 { // The name, code and type option def parameters are required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2151,21 +2201,21 @@ namespace isc { namespace dhcp { ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2155 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2205 "dhcp6_parser.cc" // lalr1.cc:919 break; case 346: -#line 1249 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1249 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the option-def list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2165 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2215 "dhcp6_parser.cc" // lalr1.cc:919 break; case 347: -#line 1253 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1253 "dhcp6_parser.yy" // lalr1.cc:919 { // The name, code and type option def parameters are required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2173,283 +2223,283 @@ namespace isc { namespace dhcp { ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2177 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2227 "dhcp6_parser.cc" // lalr1.cc:919 break; case 363: -#line 1285 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1285 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr code(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr code(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("code", code); } -#line 2186 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2236 "dhcp6_parser.cc" // lalr1.cc:919 break; case 365: -#line 1292 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1292 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2194 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2244 "dhcp6_parser.cc" // lalr1.cc:919 break; case 366: -#line 1294 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1294 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("type", prf); ctx.leave(); } -#line 2204 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2254 "dhcp6_parser.cc" // lalr1.cc:919 break; case 367: -#line 1300 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1300 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2212 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2262 "dhcp6_parser.cc" // lalr1.cc:919 break; case 368: -#line 1302 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1302 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr rtypes(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 2222 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2272 "dhcp6_parser.cc" // lalr1.cc:919 break; case 369: -#line 1308 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1308 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2230 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2280 "dhcp6_parser.cc" // lalr1.cc:919 break; case 370: -#line 1310 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1310 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr space(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr space(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("space", space); ctx.leave(); } -#line 2240 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2290 "dhcp6_parser.cc" // lalr1.cc:919 break; case 372: -#line 1318 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1318 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2248 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2298 "dhcp6_parser.cc" // lalr1.cc:919 break; case 373: -#line 1320 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1320 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr encap(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr encap(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("encapsulate", encap); ctx.leave(); } -#line 2258 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2308 "dhcp6_parser.cc" // lalr1.cc:919 break; case 374: -#line 1326 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1326 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr array(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr array(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("array", array); } -#line 2267 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2317 "dhcp6_parser.cc" // lalr1.cc:919 break; case 375: -#line 1335 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1335 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2278 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2328 "dhcp6_parser.cc" // lalr1.cc:919 break; case 376: -#line 1340 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1340 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2287 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2337 "dhcp6_parser.cc" // lalr1.cc:919 break; case 381: -#line 1359 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1359 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2297 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2347 "dhcp6_parser.cc" // lalr1.cc:919 break; case 382: -#line 1363 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1363 "dhcp6_parser.yy" // lalr1.cc:919 { /// @todo: the code or name parameters are required. ctx.stack_.pop_back(); } -#line 2306 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2356 "dhcp6_parser.cc" // lalr1.cc:919 break; case 383: -#line 1371 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1371 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the option-data list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2316 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2366 "dhcp6_parser.cc" // lalr1.cc:919 break; case 384: -#line 1375 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1375 "dhcp6_parser.yy" // lalr1.cc:919 { /// @todo: the code or name parameters are required. // parsing completed } -#line 2325 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2375 "dhcp6_parser.cc" // lalr1.cc:919 break; case 399: -#line 1408 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1408 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2333 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2383 "dhcp6_parser.cc" // lalr1.cc:919 break; case 400: -#line 1410 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1410 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr data(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr data(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("data", data); ctx.leave(); } -#line 2343 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2393 "dhcp6_parser.cc" // lalr1.cc:919 break; case 403: -#line 1420 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1420 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr space(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr space(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("csv-format", space); } -#line 2352 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2402 "dhcp6_parser.cc" // lalr1.cc:919 break; case 404: -#line 1425 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1425 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr persist(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr persist(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("always-send", persist); } -#line 2361 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2411 "dhcp6_parser.cc" // lalr1.cc:919 break; case 405: -#line 1433 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1433 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2372 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2422 "dhcp6_parser.cc" // lalr1.cc:919 break; case 406: -#line 1438 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1438 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2381 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2431 "dhcp6_parser.cc" // lalr1.cc:919 break; case 411: -#line 1453 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1453 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2391 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2441 "dhcp6_parser.cc" // lalr1.cc:919 break; case 412: -#line 1457 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1457 "dhcp6_parser.yy" // lalr1.cc:919 { // The pool parameter is required. ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2401 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2451 "dhcp6_parser.cc" // lalr1.cc:919 break; case 413: -#line 1463 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1463 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the pool list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2411 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2461 "dhcp6_parser.cc" // lalr1.cc:919 break; case 414: -#line 1467 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1467 "dhcp6_parser.yy" // lalr1.cc:919 { // The pool parameter is required. ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); } -#line 2420 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2470 "dhcp6_parser.cc" // lalr1.cc:919 break; case 424: -#line 1485 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1485 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2428 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2478 "dhcp6_parser.cc" // lalr1.cc:919 break; case 425: -#line 1487 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1487 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr pool(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr pool(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("pool", pool); ctx.leave(); } -#line 2438 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2488 "dhcp6_parser.cc" // lalr1.cc:919 break; case 426: -#line 1493 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1493 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2446 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2496 "dhcp6_parser.cc" // lalr1.cc:919 break; case 427: -#line 1495 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1495 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr parent = ctx.stack_.back(); - ElementPtr user_context = yystack_[0].value.as< ElementPtr > (); + ElementPtr user_context = yystack_[0].value.as < ElementPtr > (); ConstElementPtr old = parent->get("user-context"); // Handle already existing user context @@ -2469,23 +2519,23 @@ namespace isc { namespace dhcp { parent->set("user-context", user_context); ctx.leave(); } -#line 2473 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2523 "dhcp6_parser.cc" // lalr1.cc:919 break; case 428: -#line 1518 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1518 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2481 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2531 "dhcp6_parser.cc" // lalr1.cc:919 break; case 429: -#line 1520 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1520 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr parent = ctx.stack_.back(); ElementPtr user_context(new MapElement(ctx.loc2pos(yystack_[3].location))); - ElementPtr comment(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr comment(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); user_context->set("comment", comment); // Handle already existing user context @@ -2506,41 +2556,41 @@ namespace isc { namespace dhcp { parent->set("user-context", user_context); ctx.leave(); } -#line 2510 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2560 "dhcp6_parser.cc" // lalr1.cc:919 break; case 430: -#line 1548 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1548 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2521 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2571 "dhcp6_parser.cc" // lalr1.cc:919 break; case 431: -#line 1553 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1553 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2530 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2580 "dhcp6_parser.cc" // lalr1.cc:919 break; case 436: -#line 1568 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1568 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2540 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2590 "dhcp6_parser.cc" // lalr1.cc:919 break; case 437: -#line 1572 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1572 "dhcp6_parser.yy" // lalr1.cc:919 { // The prefix, prefix len and delegated len parameters are required. ctx.require("prefix", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2548,21 +2598,21 @@ namespace isc { namespace dhcp { ctx.require("delegated-len", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2552 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2602 "dhcp6_parser.cc" // lalr1.cc:919 break; case 438: -#line 1580 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1580 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the pd-pool list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2562 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2612 "dhcp6_parser.cc" // lalr1.cc:919 break; case 439: -#line 1584 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1584 "dhcp6_parser.yy" // lalr1.cc:919 { // The prefix, prefix len and delegated len parameters are required. ctx.require("prefix", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2570,546 +2620,546 @@ namespace isc { namespace dhcp { ctx.require("delegated-len", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2574 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2624 "dhcp6_parser.cc" // lalr1.cc:919 break; case 453: -#line 1609 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1609 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2582 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2632 "dhcp6_parser.cc" // lalr1.cc:919 break; case 454: -#line 1611 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1611 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("prefix", prf); ctx.leave(); } -#line 2592 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2642 "dhcp6_parser.cc" // lalr1.cc:919 break; case 455: -#line 1617 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1617 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("prefix-len", prf); } -#line 2601 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2651 "dhcp6_parser.cc" // lalr1.cc:919 break; case 456: -#line 1622 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1622 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2609 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2659 "dhcp6_parser.cc" // lalr1.cc:919 break; case 457: -#line 1624 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1624 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 2619 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2669 "dhcp6_parser.cc" // lalr1.cc:919 break; case 458: -#line 1630 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1630 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr prf(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("excluded-prefix-len", prf); } -#line 2628 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2678 "dhcp6_parser.cc" // lalr1.cc:919 break; case 459: -#line 1635 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1635 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr deleg(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr deleg(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("delegated-len", deleg); } -#line 2637 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2687 "dhcp6_parser.cc" // lalr1.cc:919 break; case 460: -#line 1643 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1643 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2648 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2698 "dhcp6_parser.cc" // lalr1.cc:919 break; case 461: -#line 1648 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1648 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2657 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2707 "dhcp6_parser.cc" // lalr1.cc:919 break; case 466: -#line 1661 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1661 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2667 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2717 "dhcp6_parser.cc" // lalr1.cc:919 break; case 467: -#line 1665 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1665 "dhcp6_parser.yy" // lalr1.cc:919 { /// @todo: an identifier parameter is required. ctx.stack_.pop_back(); } -#line 2676 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2726 "dhcp6_parser.cc" // lalr1.cc:919 break; case 468: -#line 1670 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1670 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the reservations list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2686 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2736 "dhcp6_parser.cc" // lalr1.cc:919 break; case 469: -#line 1674 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1674 "dhcp6_parser.yy" // lalr1.cc:919 { /// @todo: an identifier parameter is required. // parsing completed } -#line 2695 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2745 "dhcp6_parser.cc" // lalr1.cc:919 break; case 485: -#line 1701 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1701 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2706 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2756 "dhcp6_parser.cc" // lalr1.cc:919 break; case 486: -#line 1706 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1706 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2715 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2765 "dhcp6_parser.cc" // lalr1.cc:919 break; case 487: -#line 1711 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1711 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2726 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2776 "dhcp6_parser.cc" // lalr1.cc:919 break; case 488: -#line 1716 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1716 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2735 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2785 "dhcp6_parser.cc" // lalr1.cc:919 break; case 489: -#line 1721 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1721 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2743 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2793 "dhcp6_parser.cc" // lalr1.cc:919 break; case 490: -#line 1723 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1723 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr d(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr d(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("duid", d); ctx.leave(); } -#line 2753 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2803 "dhcp6_parser.cc" // lalr1.cc:919 break; case 491: -#line 1729 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1729 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2761 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2811 "dhcp6_parser.cc" // lalr1.cc:919 break; case 492: -#line 1731 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1731 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr hw(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 2771 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2821 "dhcp6_parser.cc" // lalr1.cc:919 break; case 493: -#line 1737 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1737 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2779 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2829 "dhcp6_parser.cc" // lalr1.cc:919 break; case 494: -#line 1739 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1739 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr host(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr host(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hostname", host); ctx.leave(); } -#line 2789 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2839 "dhcp6_parser.cc" // lalr1.cc:919 break; case 495: -#line 1745 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1745 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2797 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2847 "dhcp6_parser.cc" // lalr1.cc:919 break; case 496: -#line 1747 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1747 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr hw(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("flex-id", hw); ctx.leave(); } -#line 2807 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2857 "dhcp6_parser.cc" // lalr1.cc:919 break; case 497: -#line 1753 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1753 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2818 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2868 "dhcp6_parser.cc" // lalr1.cc:919 break; case 498: -#line 1758 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1758 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2827 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2877 "dhcp6_parser.cc" // lalr1.cc:919 break; case 499: -#line 1766 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1766 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2838 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2888 "dhcp6_parser.cc" // lalr1.cc:919 break; case 500: -#line 1771 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1771 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2847 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2897 "dhcp6_parser.cc" // lalr1.cc:919 break; case 503: -#line 1780 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1780 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2855 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2905 "dhcp6_parser.cc" // lalr1.cc:919 break; case 504: -#line 1782 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1782 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr addr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr addr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("ip-address", addr); ctx.leave(); } -#line 2865 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2915 "dhcp6_parser.cc" // lalr1.cc:919 break; case 505: -#line 1791 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1791 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2876 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2926 "dhcp6_parser.cc" // lalr1.cc:919 break; case 506: -#line 1796 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1796 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 2885 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2935 "dhcp6_parser.cc" // lalr1.cc:919 break; case 509: -#line 1805 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1805 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2895 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2945 "dhcp6_parser.cc" // lalr1.cc:919 break; case 510: -#line 1809 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1809 "dhcp6_parser.yy" // lalr1.cc:919 { // The name client class parameter is required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2905 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2955 "dhcp6_parser.cc" // lalr1.cc:919 break; case 523: -#line 1834 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1834 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 2913 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2963 "dhcp6_parser.cc" // lalr1.cc:919 break; case 524: -#line 1836 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1836 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr test(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr test(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("test", test); ctx.leave(); } -#line 2923 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2973 "dhcp6_parser.cc" // lalr1.cc:919 break; case 525: -#line 1842 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1842 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("only-if-required", b); } -#line 2932 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2982 "dhcp6_parser.cc" // lalr1.cc:919 break; case 526: -#line 1850 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1850 "dhcp6_parser.yy" // lalr1.cc:919 { 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 2943 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2993 "dhcp6_parser.cc" // lalr1.cc:919 break; case 527: -#line 1855 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1855 "dhcp6_parser.yy" // lalr1.cc:919 { // The type parameter is required. ctx.require("type", ctx.loc2pos(yystack_[2].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); ctx.leave(); } -#line 2954 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3004 "dhcp6_parser.cc" // lalr1.cc:919 break; case 539: -#line 1877 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1877 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.DUID_TYPE); } -#line 2962 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3012 "dhcp6_parser.cc" // lalr1.cc:919 break; case 540: -#line 1879 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1879 "dhcp6_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("type", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("type", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 2971 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3021 "dhcp6_parser.cc" // lalr1.cc:919 break; case 541: -#line 1884 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("LLT", ctx.loc2pos(yystack_[0].location))); } -#line 2977 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1884 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("LLT", ctx.loc2pos(yystack_[0].location))); } +#line 3027 "dhcp6_parser.cc" // lalr1.cc:919 break; case 542: -#line 1885 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("EN", ctx.loc2pos(yystack_[0].location))); } -#line 2983 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1885 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("EN", ctx.loc2pos(yystack_[0].location))); } +#line 3033 "dhcp6_parser.cc" // lalr1.cc:919 break; case 543: -#line 1886 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("LL", ctx.loc2pos(yystack_[0].location))); } -#line 2989 "dhcp6_parser.cc" // lalr1.cc:859 +#line 1886 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("LL", ctx.loc2pos(yystack_[0].location))); } +#line 3039 "dhcp6_parser.cc" // lalr1.cc:919 break; case 544: -#line 1889 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1889 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr htype(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr htype(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("htype", htype); } -#line 2998 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3048 "dhcp6_parser.cc" // lalr1.cc:919 break; case 545: -#line 1894 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1894 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3006 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3056 "dhcp6_parser.cc" // lalr1.cc:919 break; case 546: -#line 1896 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1896 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr id(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr id(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("identifier", id); ctx.leave(); } -#line 3016 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3066 "dhcp6_parser.cc" // lalr1.cc:919 break; case 547: -#line 1902 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1902 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr time(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr time(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("time", time); } -#line 3025 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3075 "dhcp6_parser.cc" // lalr1.cc:919 break; case 548: -#line 1907 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1907 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr time(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr time(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("enterprise-id", time); } -#line 3034 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3084 "dhcp6_parser.cc" // lalr1.cc:919 break; case 549: -#line 1914 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1914 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr time(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr time(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("dhcp4o6-port", time); } -#line 3043 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3093 "dhcp6_parser.cc" // lalr1.cc:919 break; case 550: -#line 1921 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1921 "dhcp6_parser.yy" // lalr1.cc:919 { 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 3054 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3104 "dhcp6_parser.cc" // lalr1.cc:919 break; case 551: -#line 1926 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1926 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 3063 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3113 "dhcp6_parser.cc" // lalr1.cc:919 break; case 559: -#line 1942 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1942 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3071 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3121 "dhcp6_parser.cc" // lalr1.cc:919 break; case 560: -#line 1944 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1944 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr stype(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 3081 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3131 "dhcp6_parser.cc" // lalr1.cc:919 break; case 561: -#line 1950 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1950 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3089 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3139 "dhcp6_parser.cc" // lalr1.cc:919 break; case 562: -#line 1952 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1952 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr name(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + 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 3099 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3149 "dhcp6_parser.cc" // lalr1.cc:919 break; case 563: -#line 1960 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1960 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3107 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3157 "dhcp6_parser.cc" // lalr1.cc:919 break; case 564: -#line 1962 "dhcp6_parser.yy" // lalr1.cc:859 +#line 1962 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr qc = yystack_[0].value.as< ElementPtr > (); + ElementPtr qc = yystack_[0].value.as < ElementPtr > (); ctx.stack_.back()->set("dhcp-queue-control", qc); // Doing this manually, because dhcp-queue-control @@ -3143,636 +3193,640 @@ namespace isc { namespace dhcp { ctx.leave(); } -#line 3147 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3197 "dhcp6_parser.cc" // lalr1.cc:919 break; case 565: -#line 2000 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2000 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("dhcp-ddns", m); ctx.stack_.push_back(m); ctx.enter(ctx.DHCP_DDNS); } -#line 3158 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3208 "dhcp6_parser.cc" // lalr1.cc:919 break; case 566: -#line 2005 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2005 "dhcp6_parser.yy" // lalr1.cc:919 { // The enable updates DHCP DDNS parameter is required. ctx.require("enable-updates", ctx.loc2pos(yystack_[2].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); ctx.leave(); } -#line 3169 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3219 "dhcp6_parser.cc" // lalr1.cc:919 break; case 567: -#line 2012 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2012 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the dhcp-ddns map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3179 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3229 "dhcp6_parser.cc" // lalr1.cc:919 break; case 568: -#line 2016 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2016 "dhcp6_parser.yy" // lalr1.cc:919 { // The enable updates DHCP DDNS parameter is required. ctx.require("enable-updates", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 3189 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3239 "dhcp6_parser.cc" // lalr1.cc:919 break; case 589: -#line 2046 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2046 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("enable-updates", b); } -#line 3198 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3248 "dhcp6_parser.cc" // lalr1.cc:919 break; case 590: -#line 2051 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2051 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3206 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3256 "dhcp6_parser.cc" // lalr1.cc:919 break; case 591: -#line 2053 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2053 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("qualifying-suffix", s); ctx.leave(); } -#line 3216 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3266 "dhcp6_parser.cc" // lalr1.cc:919 break; case 592: -#line 2059 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2059 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3224 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3274 "dhcp6_parser.cc" // lalr1.cc:919 break; case 593: -#line 2061 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2061 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("server-ip", s); ctx.leave(); } -#line 3234 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3284 "dhcp6_parser.cc" // lalr1.cc:919 break; case 594: -#line 2067 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2067 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("server-port", i); } -#line 3243 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3293 "dhcp6_parser.cc" // lalr1.cc:919 break; case 595: -#line 2072 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2072 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3251 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3301 "dhcp6_parser.cc" // lalr1.cc:919 break; case 596: -#line 2074 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2074 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("sender-ip", s); ctx.leave(); } -#line 3261 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3311 "dhcp6_parser.cc" // lalr1.cc:919 break; case 597: -#line 2080 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2080 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("sender-port", i); } -#line 3270 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3320 "dhcp6_parser.cc" // lalr1.cc:919 break; case 598: -#line 2085 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2085 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("max-queue-size", i); } -#line 3279 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3329 "dhcp6_parser.cc" // lalr1.cc:919 break; case 599: -#line 2090 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2090 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NCR_PROTOCOL); } -#line 3287 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3337 "dhcp6_parser.cc" // lalr1.cc:919 break; case 600: -#line 2092 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2092 "dhcp6_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("ncr-protocol", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("ncr-protocol", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3296 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3346 "dhcp6_parser.cc" // lalr1.cc:919 break; case 601: -#line 2098 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } -#line 3302 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2098 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } +#line 3352 "dhcp6_parser.cc" // lalr1.cc:919 break; case 602: -#line 2099 "dhcp6_parser.yy" // lalr1.cc:859 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } -#line 3308 "dhcp6_parser.cc" // lalr1.cc:859 +#line 2099 "dhcp6_parser.yy" // lalr1.cc:919 + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } +#line 3358 "dhcp6_parser.cc" // lalr1.cc:919 break; case 603: -#line 2102 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2102 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NCR_FORMAT); } -#line 3316 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3366 "dhcp6_parser.cc" // lalr1.cc:919 break; case 604: -#line 2104 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2104 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr json(new StringElement("JSON", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("ncr-format", json); ctx.leave(); } -#line 3326 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3376 "dhcp6_parser.cc" // lalr1.cc:919 break; case 605: -#line 2110 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2110 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("override-no-update", b); } -#line 3335 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3385 "dhcp6_parser.cc" // lalr1.cc:919 break; case 606: -#line 2115 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2115 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr b(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("override-client-update", b); } -#line 3344 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3394 "dhcp6_parser.cc" // lalr1.cc:919 break; case 607: -#line 2120 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2120 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.REPLACE_CLIENT_NAME); } -#line 3352 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3402 "dhcp6_parser.cc" // lalr1.cc:919 break; case 608: -#line 2122 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2122 "dhcp6_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("replace-client-name", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("replace-client-name", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3361 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3411 "dhcp6_parser.cc" // lalr1.cc:919 break; case 609: -#line 2128 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2128 "dhcp6_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("when-present", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("when-present", ctx.loc2pos(yystack_[0].location))); } -#line 3369 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3419 "dhcp6_parser.cc" // lalr1.cc:919 break; case 610: -#line 2131 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2131 "dhcp6_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("never", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("never", ctx.loc2pos(yystack_[0].location))); } -#line 3377 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3427 "dhcp6_parser.cc" // lalr1.cc:919 break; case 611: -#line 2134 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2134 "dhcp6_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("always", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("always", ctx.loc2pos(yystack_[0].location))); } -#line 3385 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3435 "dhcp6_parser.cc" // lalr1.cc:919 break; case 612: -#line 2137 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2137 "dhcp6_parser.yy" // lalr1.cc:919 { - yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("when-not-present", ctx.loc2pos(yystack_[0].location))); + yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("when-not-present", ctx.loc2pos(yystack_[0].location))); } -#line 3393 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3443 "dhcp6_parser.cc" // lalr1.cc:919 break; case 613: -#line 2140 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2140 "dhcp6_parser.yy" // lalr1.cc:919 { error(yystack_[0].location, "boolean values for the replace-client-name are " "no longer supported"); } -#line 3402 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3452 "dhcp6_parser.cc" // lalr1.cc:919 break; case 614: -#line 2146 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2146 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3410 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3460 "dhcp6_parser.cc" // lalr1.cc:919 break; case 615: -#line 2148 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2148 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("generated-prefix", s); ctx.leave(); } -#line 3420 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3470 "dhcp6_parser.cc" // lalr1.cc:919 break; case 616: -#line 2154 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2154 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3428 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3478 "dhcp6_parser.cc" // lalr1.cc:919 break; case 617: -#line 2156 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2156 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hostname-char-set", s); ctx.leave(); } -#line 3438 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3488 "dhcp6_parser.cc" // lalr1.cc:919 break; case 618: -#line 2162 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2162 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3446 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3496 "dhcp6_parser.cc" // lalr1.cc:919 break; case 619: -#line 2164 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2164 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr s(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("hostname-char-replacement", s); ctx.leave(); } -#line 3456 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3506 "dhcp6_parser.cc" // lalr1.cc:919 break; case 620: -#line 2172 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2172 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3464 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3514 "dhcp6_parser.cc" // lalr1.cc:919 break; case 621: -#line 2174 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2174 "dhcp6_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("Dhcp4", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("Dhcp4", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3473 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3523 "dhcp6_parser.cc" // lalr1.cc:919 break; case 622: -#line 2179 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2179 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3481 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3531 "dhcp6_parser.cc" // lalr1.cc:919 break; case 623: -#line 2181 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2181 "dhcp6_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("DhcpDdns", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("DhcpDdns", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3490 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3540 "dhcp6_parser.cc" // lalr1.cc:919 break; case 624: -#line 2186 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2186 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3498 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3548 "dhcp6_parser.cc" // lalr1.cc:919 break; case 625: -#line 2188 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2188 "dhcp6_parser.yy" // lalr1.cc:919 { - ctx.stack_.back()->set("Control-agent", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("Control-agent", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3507 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3557 "dhcp6_parser.cc" // lalr1.cc:919 break; case 626: -#line 2195 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2195 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr i(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("config-control", i); ctx.stack_.push_back(i); ctx.enter(ctx.CONFIG_CONTROL); } -#line 3518 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3568 "dhcp6_parser.cc" // lalr1.cc:919 break; case 627: -#line 2200 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2200 "dhcp6_parser.yy" // lalr1.cc:919 { // No config control params are required ctx.stack_.pop_back(); ctx.leave(); } -#line 3528 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3578 "dhcp6_parser.cc" // lalr1.cc:919 break; case 628: -#line 2206 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2206 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the config-control map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3538 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3588 "dhcp6_parser.cc" // lalr1.cc:919 break; case 629: -#line 2210 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2210 "dhcp6_parser.yy" // lalr1.cc:919 { // No config_control params are required // parsing completed } -#line 3547 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3597 "dhcp6_parser.cc" // lalr1.cc:919 break; case 633: -#line 2224 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2224 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("config-databases", l); ctx.stack_.push_back(l); ctx.enter(ctx.CONFIG_DATABASE); } -#line 3558 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3608 "dhcp6_parser.cc" // lalr1.cc:919 break; case 634: -#line 2229 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2229 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 3567 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3617 "dhcp6_parser.cc" // lalr1.cc:919 break; case 635: -#line 2239 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2239 "dhcp6_parser.yy" // lalr1.cc:919 { 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 3578 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3628 "dhcp6_parser.cc" // lalr1.cc:919 break; case 636: -#line 2244 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2244 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 3587 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3637 "dhcp6_parser.cc" // lalr1.cc:919 break; case 637: -#line 2249 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2249 "dhcp6_parser.yy" // lalr1.cc:919 { // Parse the Logging map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3597 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3647 "dhcp6_parser.cc" // lalr1.cc:919 break; case 638: -#line 2253 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2253 "dhcp6_parser.yy" // lalr1.cc:919 { // parsing completed } -#line 3605 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3655 "dhcp6_parser.cc" // lalr1.cc:919 break; case 642: -#line 2269 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2269 "dhcp6_parser.yy" // lalr1.cc:919 { 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 3616 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3666 "dhcp6_parser.cc" // lalr1.cc:919 break; case 643: -#line 2274 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2274 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 3625 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3675 "dhcp6_parser.cc" // lalr1.cc:919 break; case 646: -#line 2286 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2286 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(l); ctx.stack_.push_back(l); } -#line 3635 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3685 "dhcp6_parser.cc" // lalr1.cc:919 break; case 647: -#line 2290 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2290 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); } -#line 3643 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3693 "dhcp6_parser.cc" // lalr1.cc:919 break; case 657: -#line 2307 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2307 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr dl(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr dl(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("debuglevel", dl); } -#line 3652 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3702 "dhcp6_parser.cc" // lalr1.cc:919 break; case 658: -#line 2312 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2312 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3660 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3710 "dhcp6_parser.cc" // lalr1.cc:919 break; case 659: -#line 2314 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2314 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr sev(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("severity", sev); ctx.leave(); } -#line 3670 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3720 "dhcp6_parser.cc" // lalr1.cc:919 break; case 660: -#line 2320 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2320 "dhcp6_parser.yy" // lalr1.cc:919 { 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 3681 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3731 "dhcp6_parser.cc" // lalr1.cc:919 break; case 661: -#line 2325 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2325 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); ctx.leave(); } -#line 3690 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3740 "dhcp6_parser.cc" // lalr1.cc:919 break; case 664: -#line 2334 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2334 "dhcp6_parser.yy" // lalr1.cc:919 { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 3700 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3750 "dhcp6_parser.cc" // lalr1.cc:919 break; case 665: -#line 2338 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2338 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.stack_.pop_back(); } -#line 3708 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3758 "dhcp6_parser.cc" // lalr1.cc:919 break; case 672: -#line 2352 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2352 "dhcp6_parser.yy" // lalr1.cc:919 { ctx.enter(ctx.NO_KEYWORD); } -#line 3716 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3766 "dhcp6_parser.cc" // lalr1.cc:919 break; case 673: -#line 2354 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2354 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr sev(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("output", sev); ctx.leave(); } -#line 3726 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3776 "dhcp6_parser.cc" // lalr1.cc:919 break; case 674: -#line 2360 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2360 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr flush(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr flush(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("flush", flush); } -#line 3735 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3785 "dhcp6_parser.cc" // lalr1.cc:919 break; case 675: -#line 2365 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2365 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr maxsize(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr maxsize(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("maxsize", maxsize); } -#line 3744 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3794 "dhcp6_parser.cc" // lalr1.cc:919 break; case 676: -#line 2370 "dhcp6_parser.yy" // lalr1.cc:859 +#line 2370 "dhcp6_parser.yy" // lalr1.cc:919 { - ElementPtr maxver(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr maxver(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("maxver", maxver); } -#line 3753 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3803 "dhcp6_parser.cc" // lalr1.cc:919 break; -#line 3757 "dhcp6_parser.cc" // lalr1.cc:859 +#line 3807 "dhcp6_parser.cc" // lalr1.cc:919 default: break; } } +#if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); YYERROR; } +#endif // YY_EXCEPTIONS YY_SYMBOL_PRINT ("-> $$ =", yylhs); yypop_ (yylen); yylen = 0; YY_STACK_PRINT (); // Shift the result of the reduction. - yypush_ (YY_NULLPTR, yylhs); + yypush_ (YY_NULLPTR, YY_MOVE (yylhs)); } goto yynewstate; + /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ @@ -3809,19 +3863,18 @@ namespace isc { namespace dhcp { | 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. */ + /* Pacify compilers 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; + YYERROR; + /* 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. | `-------------------------------------------------------------*/ @@ -3858,20 +3911,30 @@ namespace isc { namespace dhcp { // Shift the error token. error_token.state = yyn; - yypush_ ("Shifting", error_token); + yypush_ ("Shifting", YY_MOVE (error_token)); } goto yynewstate; - // Accept. + + /*-------------------------------------. + | yyacceptlab -- YYACCEPT comes here. | + `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; - // Abort. + + /*-----------------------------------. + | yyabortlab -- YYABORT comes here. | + `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; + + /*-----------------------------------------------------. + | yyreturn -- parsing is finished, return the result. | + `-----------------------------------------------------*/ yyreturn: if (!yyla.empty ()) yy_destroy_ ("Cleanup: discarding lookahead", yyla); @@ -3887,12 +3950,12 @@ namespace isc { namespace dhcp { return yyresult; } +#if YY_EXCEPTIONS catch (...) { - YYCDEBUG << "Exception caught: cleaning lookahead and stack" - << std::endl; + YYCDEBUG << "Exception caught: cleaning lookahead and stack\n"; // Do not try to display the values of the reclaimed symbols, - // as their printer might throw an exception. + // as their printers might throw an exception. if (!yyla.empty ()) yy_destroy_ (YY_NULLPTR, yyla); @@ -3903,12 +3966,13 @@ namespace isc { namespace dhcp { } throw; } +#endif // YY_EXCEPTIONS } void Dhcp6Parser::error (const syntax_error& yyexc) { - error (yyexc.location, yyexc.what()); + error (yyexc.location, yyexc.what ()); } // Generate an error message. @@ -3984,12 +4048,13 @@ namespace isc { namespace dhcp { 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")); + default: // Avoid compiler warnings. + 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_ } @@ -4008,11 +4073,11 @@ namespace isc { namespace dhcp { } - const short int Dhcp6Parser::yypact_ninf_ = -833; + const short Dhcp6Parser::yypact_ninf_ = -833; const signed char Dhcp6Parser::yytable_ninf_ = -1; - const short int + const short Dhcp6Parser::yypact_[] = { 415, -833, -833, -833, -833, -833, -833, -833, -833, -833, @@ -4128,7 +4193,7 @@ namespace isc { namespace dhcp { -833 }; - const unsigned short int + const unsigned short Dhcp6Parser::yydefact_[] = { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, @@ -4244,7 +4309,7 @@ namespace isc { namespace dhcp { 673 }; - const short int + const short Dhcp6Parser::yypgoto_[] = { -833, -833, -833, -833, -833, -833, -833, -833, -833, -833, @@ -4289,7 +4354,7 @@ namespace isc { namespace dhcp { -833, -833, -833, -833, -833 }; - const short int + const short Dhcp6Parser::yydefgoto_[] = { -1, 16, 17, 18, 19, 20, 21, 22, 23, 24, @@ -4334,7 +4399,7 @@ namespace isc { namespace dhcp { 1084, 1089, 1085, 1086, 1087 }; - const unsigned short int + const unsigned short Dhcp6Parser::yytable_[] = { 100, 140, 177, 194, 217, 231, 251, 294, 273, 292, @@ -4443,7 +4508,7 @@ namespace isc { namespace dhcp { 0, 970, 0, 0, 0, 1013 }; - const short int + const short Dhcp6Parser::yycheck_[] = { 74, 75, 76, 77, 78, 79, 80, 83, 82, 83, @@ -4552,7 +4617,7 @@ namespace isc { namespace dhcp { -1, 1042, -1, -1, -1, 1059 }; - const unsigned short int + const unsigned short Dhcp6Parser::yystos_[] = { 0, 158, 159, 160, 161, 162, 163, 164, 165, 166, @@ -4668,7 +4733,7 @@ namespace isc { namespace dhcp { 173 }; - const unsigned short int + const unsigned short Dhcp6Parser::yyr1_[] = { 0, 177, 179, 178, 180, 178, 181, 178, 182, 178, @@ -4966,7 +5031,7 @@ namespace isc { namespace dhcp { }; #if PARSER6_DEBUG - const unsigned short int + const unsigned short Dhcp6Parser::yyrline_[] = { 0, 260, 260, 260, 261, 261, 262, 262, 263, 263, @@ -5049,18 +5114,18 @@ namespace isc { namespace dhcp { i_end = yystack_.end (); i != i_end; ++i) *yycdebug_ << ' ' << i->state; - *yycdebug_ << std::endl; + *yycdebug_ << '\n'; } // 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]; + unsigned 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; + << " (line " << yylno << "):\n"; // The symbols being reduced. for (int yyi = 0; yyi < yynrhs; yyi++) YY_SYMBOL_PRINT (" $" << yyi + 1 << " =", @@ -5069,10 +5134,10 @@ namespace isc { namespace dhcp { #endif // PARSER6_DEBUG -#line 14 "dhcp6_parser.yy" // lalr1.cc:1167 +#line 14 "dhcp6_parser.yy" // lalr1.cc:1242 } } // isc::dhcp -#line 5075 "dhcp6_parser.cc" // lalr1.cc:1167 -#line 2375 "dhcp6_parser.yy" // lalr1.cc:1168 +#line 5140 "dhcp6_parser.cc" // lalr1.cc:1242 +#line 2375 "dhcp6_parser.yy" // lalr1.cc:1243 void diff --git a/src/bin/dhcp6/dhcp6_parser.h b/src/bin/dhcp6/dhcp6_parser.h index 6c7ea1b5ff..b6bf2fc1db 100644 --- a/src/bin/dhcp6/dhcp6_parser.h +++ b/src/bin/dhcp6/dhcp6_parser.h @@ -1,8 +1,8 @@ -// A Bison parser, made by GNU Bison 3.0.4. +// A Bison parser, made by GNU Bison 3.3.2. // Skeleton interface for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015 Free Software Foundation, Inc. +// Copyright (C) 2002-2015, 2018-2019 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 @@ -30,6 +30,7 @@ // 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. @@ -37,10 +38,13 @@ // C++ LALR(1) parser skeleton written by Akim Demaille. +// Undocumented macros, especially those whose name start with YY_, +// are private implementation details. Do not rely on them. + #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 +#line 17 "dhcp6_parser.yy" // lalr1.cc:401 #include #include @@ -52,7 +56,7 @@ using namespace isc::dhcp; using namespace isc::data; using namespace std; -#line 56 "dhcp6_parser.h" // lalr1.cc:377 +#line 60 "dhcp6_parser.h" // lalr1.cc:401 # include # include // std::abort @@ -60,7 +64,43 @@ using namespace std; # include # include # include -# include "stack.hh" + +#if defined __cplusplus +# define YY_CPLUSPLUS __cplusplus +#else +# define YY_CPLUSPLUS 199711L +#endif + +// Support move semantics when possible. +#if 201103L <= YY_CPLUSPLUS +# define YY_MOVE std::move +# define YY_MOVE_OR_COPY move +# define YY_MOVE_REF(Type) Type&& +# define YY_RVREF(Type) Type&& +# define YY_COPY(Type) Type +#else +# define YY_MOVE +# define YY_MOVE_OR_COPY copy +# define YY_MOVE_REF(Type) Type& +# define YY_RVREF(Type) const Type& +# define YY_COPY(Type) const Type& +#endif + +// Support noexcept when possible. +#if 201103L <= YY_CPLUSPLUS +# define YY_NOEXCEPT noexcept +# define YY_NOTHROW +#else +# define YY_NOEXCEPT +# define YY_NOTHROW throw () +#endif + +// Support constexpr when possible. +#if 201703 <= YY_CPLUSPLUS +# define YY_CONSTEXPR constexpr +#else +# define YY_CONSTEXPR +#endif # include "location.hh" #include #ifndef YYASSERT @@ -87,15 +127,6 @@ using namespace std; # 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)) @@ -103,7 +134,7 @@ using namespace std; # define YYUSE(E) /* empty */ #endif -#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ +#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \ @@ -122,6 +153,18 @@ using namespace std; # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif +# ifndef YY_NULLPTR +# if defined __cplusplus +# if 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# else +# define YY_NULLPTR ((void*)0) +# endif +# endif + /* Debug traces. */ #ifndef PARSER6_DEBUG # if defined YYDEBUG @@ -135,120 +178,174 @@ using namespace std; # endif /* ! defined YYDEBUG */ #endif /* ! defined PARSER6_DEBUG */ -#line 14 "dhcp6_parser.yy" // lalr1.cc:377 +#line 14 "dhcp6_parser.yy" // lalr1.cc:401 namespace isc { namespace dhcp { -#line 141 "dhcp6_parser.h" // lalr1.cc:377 +#line 184 "dhcp6_parser.h" // lalr1.cc:401 - /// A char[S] buffer to store and retrieve objects. + /// A Bison parser. + class Dhcp6Parser + { + public: +#ifndef PARSER6_STYPE + /// A 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 - struct variant + /// via the current parser state. + class semantic_type { + public: /// Type of *this. - typedef variant self_type; + typedef semantic_type self_type; /// Empty construction. - variant () - : yytypeid_ (YY_NULLPTR) + semantic_type () YY_NOEXCEPT + : yybuffer_ () + , yytypeid_ (YY_NULLPTR) {} /// Construct and fill. template - variant (const T& t) + semantic_type (YY_RVREF (T) t) : yytypeid_ (&typeid (T)) { - YYASSERT (sizeof (T) <= S); - new (yyas_ ()) T (t); + YYASSERT (sizeof (T) <= size); + new (yyas_ ()) T (YY_MOVE (t)); } /// Destruction, allowed only if empty. - ~variant () + ~semantic_type () YY_NOEXCEPT { YYASSERT (!yytypeid_); } +# if 201103L <= YY_CPLUSPLUS + /// Instantiate a \a T in here from \a t. + template + T& + emplace (U&&... u) + { + YYASSERT (!yytypeid_); + YYASSERT (sizeof (T) <= size); + yytypeid_ = & typeid (T); + return *new (yyas_ ()) T (std::forward (u)...); + } +# else /// Instantiate an empty \a T in here. template T& - build () + emplace () { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); - return *new (yyas_ ()) T; + return *new (yyas_ ()) T (); } /// Instantiate a \a T in here from \a t. template T& - build (const T& t) + emplace (const T& t) { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); return *new (yyas_ ()) T (t); } +# endif + + /// Instantiate an empty \a T in here. + /// Obsolete, use emplace. + template + T& + build () + { + return emplace (); + } + + /// Instantiate a \a T in here from \a t. + /// Obsolete, use emplace. + template + T& + build (const T& t) + { + return emplace (t); + } /// Accessor to a built \a T. template T& - as () + as () YY_NOEXCEPT { + YYASSERT (yytypeid_); YYASSERT (*yytypeid_ == typeid (T)); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); return *yyas_ (); } /// Const accessor to a built \a T (for %printer). template const T& - as () const + as () const YY_NOEXCEPT { + YYASSERT (yytypeid_); YYASSERT (*yytypeid_ == typeid (T)); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); return *yyas_ (); } - /// Swap the content with \a other, of same type. + /// Swap the content with \a that, 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. + /// should not be the variant's responsibility. /// Swapping between built and (possibly) non-built is done with - /// variant::move (). + /// self_type::move (). template void - swap (self_type& other) + swap (self_type& that) YY_NOEXCEPT { YYASSERT (yytypeid_); - YYASSERT (*yytypeid_ == *other.yytypeid_); - std::swap (as (), other.as ()); + YYASSERT (*yytypeid_ == *that.yytypeid_); + std::swap (as (), that.as ()); } - /// Move the content of \a other to this. + /// Move the content of \a that to this. /// - /// Destroys \a other. + /// Destroys \a that. + template + void + move (self_type& that) + { +# if 201103L <= YY_CPLUSPLUS + emplace (std::move (that.as ())); +# else + emplace (); + swap (that); +# endif + that.destroy (); + } + +# if 201103L <= YY_CPLUSPLUS + /// Move the content of \a that to this. template void - move (self_type& other) + move (self_type&& that) { - build (); - swap (other); - other.destroy (); + emplace (std::move (that.as ())); + that.destroy (); } +#endif - /// Copy the content of \a other to this. + /// Copy the content of \a that to this. template void - copy (const self_type& other) + copy (const self_type& that) { - build (other.as ()); + emplace (that.as ()); } /// Destroy the stored \a T. @@ -262,13 +359,13 @@ namespace isc { namespace dhcp { private: /// Prohibit blind copies. - self_type& operator=(const self_type&); - variant (const self_type&); + self_type& operator= (const self_type&); + semantic_type (const self_type&); /// Accessor to raw memory as \a T. template T* - yyas_ () + yyas_ () YY_NOEXCEPT { void *yyp = yybuffer_.yyraw; return static_cast (yyp); @@ -277,30 +374,12 @@ namespace isc { namespace dhcp { /// Const accessor to raw memory as \a T. template const T* - yyas_ () const + yyas_ () const YY_NOEXCEPT { const void *yyp = yybuffer_.yyraw; return static_cast (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 { @@ -311,23 +390,37 @@ namespace isc { namespace dhcp { // duid_type // ncr_protocol_value // replace_client_name_value - char dummy1[sizeof(ElementPtr)]; + char dummy1[sizeof (ElementPtr)]; // "boolean" - char dummy2[sizeof(bool)]; + char dummy2[sizeof (bool)]; // "floating point" - char dummy3[sizeof(double)]; + char dummy3[sizeof (double)]; // "integer" - char dummy4[sizeof(int64_t)]; + char dummy4[sizeof (int64_t)]; // "constant string" - char dummy5[sizeof(std::string)]; -}; + char dummy5[sizeof (std::string)]; + }; + + /// The size of the largest semantic type. + enum { size = sizeof (union_type) }; + + /// A buffer to store semantic values. + union + { + /// Strongest alignment constraints. + long double yyalign_me; + /// A buffer large enough to store any of the semantic values. + char yyraw[size]; + } yybuffer_; + + /// Whether the content is built: if defined, the name of the stored type. + const std::type_info *yytypeid_; + }; - /// Symbol semantic values. - typedef variant semantic_type; #else typedef PARSER6_STYPE semantic_type; #endif @@ -337,7 +430,18 @@ namespace isc { namespace dhcp { /// Syntax errors thrown from user actions. struct syntax_error : std::runtime_error { - syntax_error (const location_type& l, const std::string& m); + syntax_error (const location_type& l, const std::string& m) + : std::runtime_error (m) + , location (l) + {} + + syntax_error (const syntax_error& s) + : std::runtime_error (s.what ()) + , location (s.location) + {} + + ~syntax_error () YY_NOEXCEPT YY_NOTHROW; + location_type location; }; @@ -539,7 +643,7 @@ namespace isc { namespace dhcp { /// A complete symbol. /// /// Expects its Base type to provide access to the symbol type - /// via type_get(). + /// via type_get (). /// /// Provide access to semantic value and location. template @@ -549,39 +653,154 @@ namespace isc { namespace dhcp { typedef Base super_type; /// Default constructor. - basic_symbol (); + basic_symbol () + : value () + , location () + {} + +#if 201103L <= YY_CPLUSPLUS + /// Move constructor. + basic_symbol (basic_symbol&& that); +#endif /// Copy constructor. - basic_symbol (const basic_symbol& other); + basic_symbol (const basic_symbol& that); /// Constructor for valueless symbols, and symbols from each type. +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, location_type&& l) + : Base (t) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const location_type& l) + : Base (t) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, double&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const double& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif +#if 201103L <= YY_CPLUSPLUS + basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l) + : Base (t) + , value (std::move (v)) + , location (std::move (l)) + {} +#else + basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l) + : Base (t) + , value (v) + , location (l) + {} +#endif - 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); + /// Destroy the symbol. + ~basic_symbol () + { + clear (); + } - basic_symbol (typename Base::kind_type t, const double v, const location_type& l); + /// Destroy contents, and record that is empty. + void clear () + { + // User destructor. + symbol_number_type yytype = this->type_get (); + basic_symbol& yysym = *this; + (void) yysym; + switch (yytype) + { + default: + break; + } + + // Type destructor. +switch (yytype) + { + case 194: // value + case 198: // map_value + case 252: // db_type + case 345: // hr_mode + case 481: // duid_type + case 516: // ncr_protocol_value + case 523: // replace_client_name_value + value.template destroy< ElementPtr > (); + break; - basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l); + case 176: // "boolean" + value.template destroy< bool > (); + break; - basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l); + case 175: // "floating point" + value.template destroy< double > (); + break; + case 174: // "integer" + value.template destroy< int64_t > (); + break; - /// Constructor for symbols with semantic value. - basic_symbol (typename Base::kind_type t, - const semantic_type& v, - const location_type& l); + case 173: // "constant string" + value.template destroy< std::string > (); + break; - /// Destroy the symbol. - ~basic_symbol (); + default: + break; + } - /// Destroy contents, and record that is empty. - void clear (); + Base::clear (); + } /// Whether empty. - bool empty () const; + bool empty () const YY_NOEXCEPT; /// Destructive move, \a s is emptied into this. void move (basic_symbol& s); @@ -593,8 +812,10 @@ namespace isc { namespace dhcp { location_type location; private: +#if YY_CPLUSPLUS < 201103L /// Assignment operator. - basic_symbol& operator= (const basic_symbol& other); + basic_symbol& operator= (const basic_symbol& that); +#endif }; /// Type access provider for token (enum) based symbols. @@ -603,8 +824,13 @@ namespace isc { namespace dhcp { /// Default constructor. by_type (); +#if 201103L <= YY_CPLUSPLUS + /// Move constructor. + by_type (by_type&& that); +#endif + /// Copy constructor. - by_type (const by_type& other); + by_type (const by_type& that); /// The symbol type as needed by the constructor. typedef token_type kind_type; @@ -620,10 +846,10 @@ namespace isc { namespace dhcp { /// The (internal) type number (corresponding to \a type). /// \a empty when empty. - symbol_number_type type_get () const; + symbol_number_type type_get () const YY_NOEXCEPT; /// The token. - token_type token () const; + token_type token () const YY_NOEXCEPT; /// The symbol type. /// \a empty_symbol when empty. @@ -632,2365 +858,3341 @@ namespace isc { namespace dhcp { }; /// "External" symbols: returned by the scanner. - typedef basic_symbol 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_DATA_DIRECTORY (const location_type& l); - - static inline - symbol_type - make_CONFIG_CONTROL (const location_type& l); - - static inline - symbol_type - make_CONFIG_DATABASES (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_RE_DETECT (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_HOSTS_DATABASES (const location_type& l); - - static inline - symbol_type - make_TYPE (const location_type& l); - - static inline - symbol_type - make_MEMFILE (const location_type& l); - - static inline - symbol_type - make_MYSQL (const location_type& l); - - static inline - symbol_type - make_POSTGRESQL (const location_type& l); - - static inline - symbol_type - make_CQL (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_PORT (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_CONNECT_TIMEOUT (const location_type& l); - - static inline - symbol_type - make_CONTACT_POINTS (const location_type& l); - - static inline - symbol_type - make_MAX_RECONNECT_TRIES (const location_type& l); - - static inline - symbol_type - make_RECONNECT_WAIT_TIME (const location_type& l); - - static inline - symbol_type - make_KEYSPACE (const location_type& l); - - static inline - symbol_type - make_CONSISTENCY (const location_type& l); - - static inline - symbol_type - make_SERIAL_CONSISTENCY (const location_type& l); - - static inline - symbol_type - make_REQUEST_TIMEOUT (const location_type& l); - - static inline - symbol_type - make_TCP_KEEPALIVE (const location_type& l); - - static inline - symbol_type - make_TCP_NODELAY (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_SERVER_TAG (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_ALWAYS_SEND (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); + struct symbol_type : basic_symbol + { + /// Superclass. + typedef basic_symbol super_type; - static inline - symbol_type - make_PREFIX_LEN (const location_type& l); + /// Empty symbol. + symbol_type () {} - static inline - symbol_type - make_EXCLUDED_PREFIX (const location_type& l); + /// Constructor for valueless symbols, and symbols from each type. +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, location_type l) + : super_type(token_type (tok), std::move (l)) + { + YYASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DATA_DIRECTORY || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_CQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_CONTACT_POINTS || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_KEYSPACE || tok == token::TOKEN_CONSISTENCY || tok == token::TOKEN_SERIAL_CONSISTENCY || tok == token::TOKEN_REQUEST_TIMEOUT || tok == token::TOKEN_TCP_KEEPALIVE || tok == token::TOKEN_TCP_NODELAY || tok == token::TOKEN_PREFERRED_LIFETIME || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_SUBNET6 || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_PD_POOLS || tok == token::TOKEN_PREFIX || tok == token::TOKEN_PREFIX_LEN || tok == token::TOKEN_EXCLUDED_PREFIX || tok == token::TOKEN_EXCLUDED_PREFIX_LEN || tok == token::TOKEN_DELEGATED_LEN || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_INTERFACE_ID || tok == token::TOKEN_ID || tok == token::TOKEN_RAPID_COMMIT || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_MAC_SOURCES || tok == token::TOKEN_RELAY_SUPPLIED_OPTIONS || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_PREFIXES || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_SERVER_ID || tok == token::TOKEN_LLT || tok == token::TOKEN_EN || tok == token::TOKEN_LL || tok == token::TOKEN_IDENTIFIER || tok == token::TOKEN_HTYPE || tok == token::TOKEN_TIME || tok == token::TOKEN_ENTERPRISE_ID || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_UDP || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_DHCP4 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP6 || tok == token::TOKEN_SUB_DHCP6 || tok == token::TOKEN_SUB_INTERFACES6 || tok == token::TOKEN_SUB_SUBNET6 || tok == token::TOKEN_SUB_POOL6 || tok == token::TOKEN_SUB_PD_POOL || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_LOGGING || tok == token::TOKEN_SUB_CONFIG_CONTROL); + } +#else + symbol_type (int tok, const location_type& l) + : super_type(token_type (tok), l) + { + YYASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DATA_DIRECTORY || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_CQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_CONTACT_POINTS || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_KEYSPACE || tok == token::TOKEN_CONSISTENCY || tok == token::TOKEN_SERIAL_CONSISTENCY || tok == token::TOKEN_REQUEST_TIMEOUT || tok == token::TOKEN_TCP_KEEPALIVE || tok == token::TOKEN_TCP_NODELAY || tok == token::TOKEN_PREFERRED_LIFETIME || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_SUBNET6 || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_PD_POOLS || tok == token::TOKEN_PREFIX || tok == token::TOKEN_PREFIX_LEN || tok == token::TOKEN_EXCLUDED_PREFIX || tok == token::TOKEN_EXCLUDED_PREFIX_LEN || tok == token::TOKEN_DELEGATED_LEN || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_INTERFACE_ID || tok == token::TOKEN_ID || tok == token::TOKEN_RAPID_COMMIT || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_MAC_SOURCES || tok == token::TOKEN_RELAY_SUPPLIED_OPTIONS || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_PREFIXES || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_SERVER_ID || tok == token::TOKEN_LLT || tok == token::TOKEN_EN || tok == token::TOKEN_LL || tok == token::TOKEN_IDENTIFIER || tok == token::TOKEN_HTYPE || tok == token::TOKEN_TIME || tok == token::TOKEN_ENTERPRISE_ID || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_UDP || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_DHCP4 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP6 || tok == token::TOKEN_SUB_DHCP6 || tok == token::TOKEN_SUB_INTERFACES6 || tok == token::TOKEN_SUB_SUBNET6 || tok == token::TOKEN_SUB_POOL6 || tok == token::TOKEN_SUB_PD_POOL || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_LOGGING || tok == token::TOKEN_SUB_CONFIG_CONTROL); + } +#endif +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, bool v, location_type l) + : super_type(token_type (tok), std::move (v), std::move (l)) + { + YYASSERT (tok == token::TOKEN_BOOLEAN); + } +#else + symbol_type (int tok, const bool& v, const location_type& l) + : super_type(token_type (tok), v, l) + { + YYASSERT (tok == token::TOKEN_BOOLEAN); + } +#endif +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, double v, location_type l) + : super_type(token_type (tok), std::move (v), std::move (l)) + { + YYASSERT (tok == token::TOKEN_FLOAT); + } +#else + symbol_type (int tok, const double& v, const location_type& l) + : super_type(token_type (tok), v, l) + { + YYASSERT (tok == token::TOKEN_FLOAT); + } +#endif +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, int64_t v, location_type l) + : super_type(token_type (tok), std::move (v), std::move (l)) + { + YYASSERT (tok == token::TOKEN_INTEGER); + } +#else + symbol_type (int tok, const int64_t& v, const location_type& l) + : super_type(token_type (tok), v, l) + { + YYASSERT (tok == token::TOKEN_INTEGER); + } +#endif +#if 201103L <= YY_CPLUSPLUS + symbol_type (int tok, std::string v, location_type l) + : super_type(token_type (tok), std::move (v), std::move (l)) + { + YYASSERT (tok == token::TOKEN_STRING); + } +#else + symbol_type (int tok, const std::string& v, const location_type& l) + : super_type(token_type (tok), v, l) + { + YYASSERT (tok == token::TOKEN_STRING); + } +#endif + }; - static inline - symbol_type - make_EXCLUDED_PREFIX_LEN (const location_type& l); + /// Build a parser object. + Dhcp6Parser (isc::dhcp::Parser6Context& ctx_yyarg); + virtual ~Dhcp6Parser (); - static inline - symbol_type - make_DELEGATED_LEN (const location_type& l); + /// Parse. An alias for parse (). + /// \returns 0 iff parsing succeeded. + int operator() (); - static inline - symbol_type - make_USER_CONTEXT (const location_type& l); + /// Parse. + /// \returns 0 iff parsing succeeded. + virtual int parse (); - static inline - symbol_type - make_COMMENT (const location_type& l); +#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 &); - static inline - symbol_type - make_SUBNET (const location_type& l); + /// 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 - static inline - symbol_type - make_INTERFACE (const location_type& l); + /// 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); - static inline - symbol_type - make_INTERFACE_ID (const location_type& l); + /// Report a syntax error. + void error (const syntax_error& err); - 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_DISABLED (const location_type& l); - - static inline - symbol_type - make_OUT_OF_POOL (const location_type& l); - - static inline - symbol_type - make_GLOBAL (const location_type& l); - - static inline - symbol_type - make_ALL (const location_type& l); - - static inline - symbol_type - make_SHARED_NETWORKS (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_SANITY_CHECKS (const location_type& l); - - static inline - symbol_type - make_LEASE_CHECKS (const location_type& l); - - static inline - symbol_type - make_CLIENT_CLASSES (const location_type& l); - - static inline - symbol_type - make_REQUIRE_CLIENT_CLASSES (const location_type& l); - - static inline - symbol_type - make_TEST (const location_type& l); - - static inline - symbol_type - make_ONLY_IF_REQUIRED (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_FLEX_ID (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_RECLAIM_TIMER_WAIT_TIME (const location_type& l); - - static inline - symbol_type - make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l); - - static inline - symbol_type - make_HOLD_RECLAIMED_TIME (const location_type& l); - - static inline - symbol_type - make_MAX_RECLAIM_LEASES (const location_type& l); - - static inline - symbol_type - make_MAX_RECLAIM_TIME (const location_type& l); - - static inline - symbol_type - make_UNWARNED_RECLAIM_CYCLES (const location_type& l); - - static inline - symbol_type - make_SERVER_ID (const location_type& l); - - static inline - symbol_type - make_LLT (const location_type& l); - - static inline - symbol_type - make_EN (const location_type& l); - - static inline - symbol_type - make_LL (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_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_QUEUE_CONTROL (const location_type& l); - - static inline - symbol_type - make_DHCP_DDNS (const location_type& l); - - static inline - symbol_type - make_ENABLE_UPDATES (const location_type& l); - - static inline - symbol_type - make_QUALIFYING_SUFFIX (const location_type& l); - - static inline - symbol_type - make_SERVER_IP (const location_type& l); - - static inline - symbol_type - make_SERVER_PORT (const location_type& l); - - static inline - symbol_type - make_SENDER_IP (const location_type& l); - - static inline - symbol_type - make_SENDER_PORT (const location_type& l); - - static inline - symbol_type - make_MAX_QUEUE_SIZE (const location_type& l); - - static inline - symbol_type - make_NCR_PROTOCOL (const location_type& l); - - static inline - symbol_type - make_NCR_FORMAT (const location_type& l); - - static inline - symbol_type - make_OVERRIDE_NO_UPDATE (const location_type& l); - - static inline - symbol_type - make_OVERRIDE_CLIENT_UPDATE (const location_type& l); - - static inline - symbol_type - make_REPLACE_CLIENT_NAME (const location_type& l); - - static inline - symbol_type - make_GENERATED_PREFIX (const location_type& l); - - static inline - symbol_type - make_UDP (const location_type& l); - - static inline - symbol_type - make_TCP (const location_type& l); - - static inline - symbol_type - make_JSON (const location_type& l); - - static inline - symbol_type - make_WHEN_PRESENT (const location_type& l); - - static inline - symbol_type - make_NEVER (const location_type& l); - - static inline - symbol_type - make_ALWAYS (const location_type& l); - - static inline - symbol_type - make_WHEN_NOT_PRESENT (const location_type& l); - - static inline - symbol_type - make_HOSTNAME_CHAR_SET (const location_type& l); - - static inline - symbol_type - make_HOSTNAME_CHAR_REPLACEMENT (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_FLUSH (const location_type& l); - - static inline - symbol_type - make_MAXSIZE (const location_type& l); - - static inline - symbol_type - make_MAXVER (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_CONTROL_AGENT (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_DEFS (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_SUB_DHCP_DDNS (const location_type& l); - - static inline - symbol_type - make_SUB_LOGGING (const location_type& l); - - static inline - symbol_type - make_SUB_CONFIG_CONTROL (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); + // Implementation of make_symbol for each symbol type. +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_END (location_type l) + { + return symbol_type (token::TOKEN_END, std::move (l)); + } +#else + static + symbol_type + make_END (const location_type& l) + { + return symbol_type (token::TOKEN_END, 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 - void yy_print_ (std::ostream& yyo, const basic_symbol& yysym) const; +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_COMMA (location_type l) + { + return symbol_type (token::TOKEN_COMMA, std::move (l)); + } +#else + static + symbol_type + make_COMMA (const location_type& l) + { + return symbol_type (token::TOKEN_COMMA, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_COLON (location_type l) + { + return symbol_type (token::TOKEN_COLON, std::move (l)); + } +#else + static + symbol_type + make_COLON (const location_type& l) + { + return symbol_type (token::TOKEN_COLON, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LSQUARE_BRACKET (location_type l) + { + return symbol_type (token::TOKEN_LSQUARE_BRACKET, std::move (l)); + } +#else + static + symbol_type + make_LSQUARE_BRACKET (const location_type& l) + { + return symbol_type (token::TOKEN_LSQUARE_BRACKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RSQUARE_BRACKET (location_type l) + { + return symbol_type (token::TOKEN_RSQUARE_BRACKET, std::move (l)); + } +#else + static + symbol_type + make_RSQUARE_BRACKET (const location_type& l) + { + return symbol_type (token::TOKEN_RSQUARE_BRACKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LCURLY_BRACKET (location_type l) + { + return symbol_type (token::TOKEN_LCURLY_BRACKET, std::move (l)); + } +#else + static + symbol_type + make_LCURLY_BRACKET (const location_type& l) + { + return symbol_type (token::TOKEN_LCURLY_BRACKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RCURLY_BRACKET (location_type l) + { + return symbol_type (token::TOKEN_RCURLY_BRACKET, std::move (l)); + } +#else + static + symbol_type + make_RCURLY_BRACKET (const location_type& l) + { + return symbol_type (token::TOKEN_RCURLY_BRACKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NULL_TYPE (location_type l) + { + return symbol_type (token::TOKEN_NULL_TYPE, std::move (l)); + } +#else + static + symbol_type + make_NULL_TYPE (const location_type& l) + { + return symbol_type (token::TOKEN_NULL_TYPE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP6 (location_type l) + { + return symbol_type (token::TOKEN_DHCP6, std::move (l)); + } +#else + static + symbol_type + make_DHCP6 (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP6, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DATA_DIRECTORY (location_type l) + { + return symbol_type (token::TOKEN_DATA_DIRECTORY, std::move (l)); + } +#else + static + symbol_type + make_DATA_DIRECTORY (const location_type& l) + { + return symbol_type (token::TOKEN_DATA_DIRECTORY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONFIG_CONTROL (location_type l) + { + return symbol_type (token::TOKEN_CONFIG_CONTROL, std::move (l)); + } +#else + static + symbol_type + make_CONFIG_CONTROL (const location_type& l) + { + return symbol_type (token::TOKEN_CONFIG_CONTROL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONFIG_DATABASES (location_type l) + { + return symbol_type (token::TOKEN_CONFIG_DATABASES, std::move (l)); + } +#else + static + symbol_type + make_CONFIG_DATABASES (const location_type& l) + { + return symbol_type (token::TOKEN_CONFIG_DATABASES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_INTERFACES_CONFIG (location_type l) + { + return symbol_type (token::TOKEN_INTERFACES_CONFIG, std::move (l)); + } +#else + static + symbol_type + make_INTERFACES_CONFIG (const location_type& l) + { + return symbol_type (token::TOKEN_INTERFACES_CONFIG, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_INTERFACES (location_type l) + { + return symbol_type (token::TOKEN_INTERFACES, std::move (l)); + } +#else + static + symbol_type + make_INTERFACES (const location_type& l) + { + return symbol_type (token::TOKEN_INTERFACES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RE_DETECT (location_type l) + { + return symbol_type (token::TOKEN_RE_DETECT, std::move (l)); + } +#else + static + symbol_type + make_RE_DETECT (const location_type& l) + { + return symbol_type (token::TOKEN_RE_DETECT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LEASE_DATABASE (location_type l) + { + return symbol_type (token::TOKEN_LEASE_DATABASE, std::move (l)); + } +#else + static + symbol_type + make_LEASE_DATABASE (const location_type& l) + { + return symbol_type (token::TOKEN_LEASE_DATABASE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTS_DATABASE (location_type l) + { + return symbol_type (token::TOKEN_HOSTS_DATABASE, std::move (l)); + } +#else + static + symbol_type + make_HOSTS_DATABASE (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTS_DATABASE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTS_DATABASES (location_type l) + { + return symbol_type (token::TOKEN_HOSTS_DATABASES, std::move (l)); + } +#else + static + symbol_type + make_HOSTS_DATABASES (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTS_DATABASES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TYPE (location_type l) + { + return symbol_type (token::TOKEN_TYPE, std::move (l)); + } +#else + static + symbol_type + make_TYPE (const location_type& l) + { + return symbol_type (token::TOKEN_TYPE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MEMFILE (location_type l) + { + return symbol_type (token::TOKEN_MEMFILE, std::move (l)); + } +#else + static + symbol_type + make_MEMFILE (const location_type& l) + { + return symbol_type (token::TOKEN_MEMFILE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MYSQL (location_type l) + { + return symbol_type (token::TOKEN_MYSQL, std::move (l)); + } +#else + static + symbol_type + make_MYSQL (const location_type& l) + { + return symbol_type (token::TOKEN_MYSQL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_POSTGRESQL (location_type l) + { + return symbol_type (token::TOKEN_POSTGRESQL, std::move (l)); + } +#else + static + symbol_type + make_POSTGRESQL (const location_type& l) + { + return symbol_type (token::TOKEN_POSTGRESQL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CQL (location_type l) + { + return symbol_type (token::TOKEN_CQL, std::move (l)); + } +#else + static + symbol_type + make_CQL (const location_type& l) + { + return symbol_type (token::TOKEN_CQL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_USER (location_type l) + { + return symbol_type (token::TOKEN_USER, std::move (l)); + } +#else + static + symbol_type + make_USER (const location_type& l) + { + return symbol_type (token::TOKEN_USER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PASSWORD (location_type l) + { + return symbol_type (token::TOKEN_PASSWORD, std::move (l)); + } +#else + static + symbol_type + make_PASSWORD (const location_type& l) + { + return symbol_type (token::TOKEN_PASSWORD, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOST (location_type l) + { + return symbol_type (token::TOKEN_HOST, std::move (l)); + } +#else + static + symbol_type + make_HOST (const location_type& l) + { + return symbol_type (token::TOKEN_HOST, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PORT (location_type l) + { + return symbol_type (token::TOKEN_PORT, std::move (l)); + } +#else + static + symbol_type + make_PORT (const location_type& l) + { + return symbol_type (token::TOKEN_PORT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PERSIST (location_type l) + { + return symbol_type (token::TOKEN_PERSIST, std::move (l)); + } +#else + static + symbol_type + make_PERSIST (const location_type& l) + { + return symbol_type (token::TOKEN_PERSIST, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LFC_INTERVAL (location_type l) + { + return symbol_type (token::TOKEN_LFC_INTERVAL, std::move (l)); + } +#else + static + symbol_type + make_LFC_INTERVAL (const location_type& l) + { + return symbol_type (token::TOKEN_LFC_INTERVAL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_READONLY (location_type l) + { + return symbol_type (token::TOKEN_READONLY, std::move (l)); + } +#else + static + symbol_type + make_READONLY (const location_type& l) + { + return symbol_type (token::TOKEN_READONLY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONNECT_TIMEOUT (location_type l) + { + return symbol_type (token::TOKEN_CONNECT_TIMEOUT, std::move (l)); + } +#else + static + symbol_type + make_CONNECT_TIMEOUT (const location_type& l) + { + return symbol_type (token::TOKEN_CONNECT_TIMEOUT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONTACT_POINTS (location_type l) + { + return symbol_type (token::TOKEN_CONTACT_POINTS, std::move (l)); + } +#else + static + symbol_type + make_CONTACT_POINTS (const location_type& l) + { + return symbol_type (token::TOKEN_CONTACT_POINTS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_RECONNECT_TRIES (location_type l) + { + return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, std::move (l)); + } +#else + static + symbol_type + make_MAX_RECONNECT_TRIES (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RECONNECT_WAIT_TIME (location_type l) + { + return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, std::move (l)); + } +#else + static + symbol_type + make_RECONNECT_WAIT_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_KEYSPACE (location_type l) + { + return symbol_type (token::TOKEN_KEYSPACE, std::move (l)); + } +#else + static + symbol_type + make_KEYSPACE (const location_type& l) + { + return symbol_type (token::TOKEN_KEYSPACE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONSISTENCY (location_type l) + { + return symbol_type (token::TOKEN_CONSISTENCY, std::move (l)); + } +#else + static + symbol_type + make_CONSISTENCY (const location_type& l) + { + return symbol_type (token::TOKEN_CONSISTENCY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERIAL_CONSISTENCY (location_type l) + { + return symbol_type (token::TOKEN_SERIAL_CONSISTENCY, std::move (l)); + } +#else + static + symbol_type + make_SERIAL_CONSISTENCY (const location_type& l) + { + return symbol_type (token::TOKEN_SERIAL_CONSISTENCY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_REQUEST_TIMEOUT (location_type l) + { + return symbol_type (token::TOKEN_REQUEST_TIMEOUT, std::move (l)); + } +#else + static + symbol_type + make_REQUEST_TIMEOUT (const location_type& l) + { + return symbol_type (token::TOKEN_REQUEST_TIMEOUT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TCP_KEEPALIVE (location_type l) + { + return symbol_type (token::TOKEN_TCP_KEEPALIVE, std::move (l)); + } +#else + static + symbol_type + make_TCP_KEEPALIVE (const location_type& l) + { + return symbol_type (token::TOKEN_TCP_KEEPALIVE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TCP_NODELAY (location_type l) + { + return symbol_type (token::TOKEN_TCP_NODELAY, std::move (l)); + } +#else + static + symbol_type + make_TCP_NODELAY (const location_type& l) + { + return symbol_type (token::TOKEN_TCP_NODELAY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PREFERRED_LIFETIME (location_type l) + { + return symbol_type (token::TOKEN_PREFERRED_LIFETIME, std::move (l)); + } +#else + static + symbol_type + make_PREFERRED_LIFETIME (const location_type& l) + { + return symbol_type (token::TOKEN_PREFERRED_LIFETIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_VALID_LIFETIME (location_type l) + { + return symbol_type (token::TOKEN_VALID_LIFETIME, std::move (l)); + } +#else + static + symbol_type + make_VALID_LIFETIME (const location_type& l) + { + return symbol_type (token::TOKEN_VALID_LIFETIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RENEW_TIMER (location_type l) + { + return symbol_type (token::TOKEN_RENEW_TIMER, std::move (l)); + } +#else + static + symbol_type + make_RENEW_TIMER (const location_type& l) + { + return symbol_type (token::TOKEN_RENEW_TIMER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_REBIND_TIMER (location_type l) + { + return symbol_type (token::TOKEN_REBIND_TIMER, std::move (l)); + } +#else + static + symbol_type + make_REBIND_TIMER (const location_type& l) + { + return symbol_type (token::TOKEN_REBIND_TIMER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DECLINE_PROBATION_PERIOD (location_type l) + { + return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, std::move (l)); + } +#else + static + symbol_type + make_DECLINE_PROBATION_PERIOD (const location_type& l) + { + return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERVER_TAG (location_type l) + { + return symbol_type (token::TOKEN_SERVER_TAG, std::move (l)); + } +#else + static + symbol_type + make_SERVER_TAG (const location_type& l) + { + return symbol_type (token::TOKEN_SERVER_TAG, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUBNET6 (location_type l) + { + return symbol_type (token::TOKEN_SUBNET6, std::move (l)); + } +#else + static + symbol_type + make_SUBNET6 (const location_type& l) + { + return symbol_type (token::TOKEN_SUBNET6, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OPTION_DEF (location_type l) + { + return symbol_type (token::TOKEN_OPTION_DEF, std::move (l)); + } +#else + static + symbol_type + make_OPTION_DEF (const location_type& l) + { + return symbol_type (token::TOKEN_OPTION_DEF, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OPTION_DATA (location_type l) + { + return symbol_type (token::TOKEN_OPTION_DATA, std::move (l)); + } +#else + static + symbol_type + make_OPTION_DATA (const location_type& l) + { + return symbol_type (token::TOKEN_OPTION_DATA, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NAME (location_type l) + { + return symbol_type (token::TOKEN_NAME, std::move (l)); + } +#else + static + symbol_type + make_NAME (const location_type& l) + { + return symbol_type (token::TOKEN_NAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DATA (location_type l) + { + return symbol_type (token::TOKEN_DATA, std::move (l)); + } +#else + static + symbol_type + make_DATA (const location_type& l) + { + return symbol_type (token::TOKEN_DATA, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CODE (location_type l) + { + return symbol_type (token::TOKEN_CODE, std::move (l)); + } +#else + static + symbol_type + make_CODE (const location_type& l) + { + return symbol_type (token::TOKEN_CODE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SPACE (location_type l) + { + return symbol_type (token::TOKEN_SPACE, std::move (l)); + } +#else + static + symbol_type + make_SPACE (const location_type& l) + { + return symbol_type (token::TOKEN_SPACE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CSV_FORMAT (location_type l) + { + return symbol_type (token::TOKEN_CSV_FORMAT, std::move (l)); + } +#else + static + symbol_type + make_CSV_FORMAT (const location_type& l) + { + return symbol_type (token::TOKEN_CSV_FORMAT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ALWAYS_SEND (location_type l) + { + return symbol_type (token::TOKEN_ALWAYS_SEND, std::move (l)); + } +#else + static + symbol_type + make_ALWAYS_SEND (const location_type& l) + { + return symbol_type (token::TOKEN_ALWAYS_SEND, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RECORD_TYPES (location_type l) + { + return symbol_type (token::TOKEN_RECORD_TYPES, std::move (l)); + } +#else + static + symbol_type + make_RECORD_TYPES (const location_type& l) + { + return symbol_type (token::TOKEN_RECORD_TYPES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ENCAPSULATE (location_type l) + { + return symbol_type (token::TOKEN_ENCAPSULATE, std::move (l)); + } +#else + static + symbol_type + make_ENCAPSULATE (const location_type& l) + { + return symbol_type (token::TOKEN_ENCAPSULATE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ARRAY (location_type l) + { + return symbol_type (token::TOKEN_ARRAY, std::move (l)); + } +#else + static + symbol_type + make_ARRAY (const location_type& l) + { + return symbol_type (token::TOKEN_ARRAY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_POOLS (location_type l) + { + return symbol_type (token::TOKEN_POOLS, std::move (l)); + } +#else + static + symbol_type + make_POOLS (const location_type& l) + { + return symbol_type (token::TOKEN_POOLS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_POOL (location_type l) + { + return symbol_type (token::TOKEN_POOL, std::move (l)); + } +#else + static + symbol_type + make_POOL (const location_type& l) + { + return symbol_type (token::TOKEN_POOL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PD_POOLS (location_type l) + { + return symbol_type (token::TOKEN_PD_POOLS, std::move (l)); + } +#else + static + symbol_type + make_PD_POOLS (const location_type& l) + { + return symbol_type (token::TOKEN_PD_POOLS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PREFIX (location_type l) + { + return symbol_type (token::TOKEN_PREFIX, std::move (l)); + } +#else + static + symbol_type + make_PREFIX (const location_type& l) + { + return symbol_type (token::TOKEN_PREFIX, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PREFIX_LEN (location_type l) + { + return symbol_type (token::TOKEN_PREFIX_LEN, std::move (l)); + } +#else + static + symbol_type + make_PREFIX_LEN (const location_type& l) + { + return symbol_type (token::TOKEN_PREFIX_LEN, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_EXCLUDED_PREFIX (location_type l) + { + return symbol_type (token::TOKEN_EXCLUDED_PREFIX, std::move (l)); + } +#else + static + symbol_type + make_EXCLUDED_PREFIX (const location_type& l) + { + return symbol_type (token::TOKEN_EXCLUDED_PREFIX, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_EXCLUDED_PREFIX_LEN (location_type l) + { + return symbol_type (token::TOKEN_EXCLUDED_PREFIX_LEN, std::move (l)); + } +#else + static + symbol_type + make_EXCLUDED_PREFIX_LEN (const location_type& l) + { + return symbol_type (token::TOKEN_EXCLUDED_PREFIX_LEN, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DELEGATED_LEN (location_type l) + { + return symbol_type (token::TOKEN_DELEGATED_LEN, std::move (l)); + } +#else + static + symbol_type + make_DELEGATED_LEN (const location_type& l) + { + return symbol_type (token::TOKEN_DELEGATED_LEN, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_USER_CONTEXT (location_type l) + { + return symbol_type (token::TOKEN_USER_CONTEXT, std::move (l)); + } +#else + static + symbol_type + make_USER_CONTEXT (const location_type& l) + { + return symbol_type (token::TOKEN_USER_CONTEXT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_COMMENT (location_type l) + { + return symbol_type (token::TOKEN_COMMENT, std::move (l)); + } +#else + static + symbol_type + make_COMMENT (const location_type& l) + { + return symbol_type (token::TOKEN_COMMENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUBNET (location_type l) + { + return symbol_type (token::TOKEN_SUBNET, std::move (l)); + } +#else + static + symbol_type + make_SUBNET (const location_type& l) + { + return symbol_type (token::TOKEN_SUBNET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_INTERFACE (location_type l) + { + return symbol_type (token::TOKEN_INTERFACE, std::move (l)); + } +#else + static + symbol_type + make_INTERFACE (const location_type& l) + { + return symbol_type (token::TOKEN_INTERFACE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_INTERFACE_ID (location_type l) + { + return symbol_type (token::TOKEN_INTERFACE_ID, std::move (l)); + } +#else + static + symbol_type + make_INTERFACE_ID (const location_type& l) + { + return symbol_type (token::TOKEN_INTERFACE_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ID (location_type l) + { + return symbol_type (token::TOKEN_ID, std::move (l)); + } +#else + static + symbol_type + make_ID (const location_type& l) + { + return symbol_type (token::TOKEN_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RAPID_COMMIT (location_type l) + { + return symbol_type (token::TOKEN_RAPID_COMMIT, std::move (l)); + } +#else + static + symbol_type + make_RAPID_COMMIT (const location_type& l) + { + return symbol_type (token::TOKEN_RAPID_COMMIT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RESERVATION_MODE (location_type l) + { + return symbol_type (token::TOKEN_RESERVATION_MODE, std::move (l)); + } +#else + static + symbol_type + make_RESERVATION_MODE (const location_type& l) + { + return symbol_type (token::TOKEN_RESERVATION_MODE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DISABLED (location_type l) + { + return symbol_type (token::TOKEN_DISABLED, std::move (l)); + } +#else + static + symbol_type + make_DISABLED (const location_type& l) + { + return symbol_type (token::TOKEN_DISABLED, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OUT_OF_POOL (location_type l) + { + return symbol_type (token::TOKEN_OUT_OF_POOL, std::move (l)); + } +#else + static + symbol_type + make_OUT_OF_POOL (const location_type& l) + { + return symbol_type (token::TOKEN_OUT_OF_POOL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_GLOBAL (location_type l) + { + return symbol_type (token::TOKEN_GLOBAL, std::move (l)); + } +#else + static + symbol_type + make_GLOBAL (const location_type& l) + { + return symbol_type (token::TOKEN_GLOBAL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ALL (location_type l) + { + return symbol_type (token::TOKEN_ALL, std::move (l)); + } +#else + static + symbol_type + make_ALL (const location_type& l) + { + return symbol_type (token::TOKEN_ALL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SHARED_NETWORKS (location_type l) + { + return symbol_type (token::TOKEN_SHARED_NETWORKS, std::move (l)); + } +#else + static + symbol_type + make_SHARED_NETWORKS (const location_type& l) + { + return symbol_type (token::TOKEN_SHARED_NETWORKS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAC_SOURCES (location_type l) + { + return symbol_type (token::TOKEN_MAC_SOURCES, std::move (l)); + } +#else + static + symbol_type + make_MAC_SOURCES (const location_type& l) + { + return symbol_type (token::TOKEN_MAC_SOURCES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RELAY_SUPPLIED_OPTIONS (location_type l) + { + return symbol_type (token::TOKEN_RELAY_SUPPLIED_OPTIONS, std::move (l)); + } +#else + static + symbol_type + make_RELAY_SUPPLIED_OPTIONS (const location_type& l) + { + return symbol_type (token::TOKEN_RELAY_SUPPLIED_OPTIONS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOST_RESERVATION_IDENTIFIERS (location_type l) + { + return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, std::move (l)); + } +#else + static + symbol_type + make_HOST_RESERVATION_IDENTIFIERS (const location_type& l) + { + return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SANITY_CHECKS (location_type l) + { + return symbol_type (token::TOKEN_SANITY_CHECKS, std::move (l)); + } +#else + static + symbol_type + make_SANITY_CHECKS (const location_type& l) + { + return symbol_type (token::TOKEN_SANITY_CHECKS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LEASE_CHECKS (location_type l) + { + return symbol_type (token::TOKEN_LEASE_CHECKS, std::move (l)); + } +#else + static + symbol_type + make_LEASE_CHECKS (const location_type& l) + { + return symbol_type (token::TOKEN_LEASE_CHECKS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CLIENT_CLASSES (location_type l) + { + return symbol_type (token::TOKEN_CLIENT_CLASSES, std::move (l)); + } +#else + static + symbol_type + make_CLIENT_CLASSES (const location_type& l) + { + return symbol_type (token::TOKEN_CLIENT_CLASSES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_REQUIRE_CLIENT_CLASSES (location_type l) + { + return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, std::move (l)); + } +#else + static + symbol_type + make_REQUIRE_CLIENT_CLASSES (const location_type& l) + { + return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TEST (location_type l) + { + return symbol_type (token::TOKEN_TEST, std::move (l)); + } +#else + static + symbol_type + make_TEST (const location_type& l) + { + return symbol_type (token::TOKEN_TEST, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ONLY_IF_REQUIRED (location_type l) + { + return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, std::move (l)); + } +#else + static + symbol_type + make_ONLY_IF_REQUIRED (const location_type& l) + { + return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CLIENT_CLASS (location_type l) + { + return symbol_type (token::TOKEN_CLIENT_CLASS, std::move (l)); + } +#else + static + symbol_type + make_CLIENT_CLASS (const location_type& l) + { + return symbol_type (token::TOKEN_CLIENT_CLASS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RESERVATIONS (location_type l) + { + return symbol_type (token::TOKEN_RESERVATIONS, std::move (l)); + } +#else + static + symbol_type + make_RESERVATIONS (const location_type& l) + { + return symbol_type (token::TOKEN_RESERVATIONS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_IP_ADDRESSES (location_type l) + { + return symbol_type (token::TOKEN_IP_ADDRESSES, std::move (l)); + } +#else + static + symbol_type + make_IP_ADDRESSES (const location_type& l) + { + return symbol_type (token::TOKEN_IP_ADDRESSES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PREFIXES (location_type l) + { + return symbol_type (token::TOKEN_PREFIXES, std::move (l)); + } +#else + static + symbol_type + make_PREFIXES (const location_type& l) + { + return symbol_type (token::TOKEN_PREFIXES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DUID (location_type l) + { + return symbol_type (token::TOKEN_DUID, std::move (l)); + } +#else + static + symbol_type + make_DUID (const location_type& l) + { + return symbol_type (token::TOKEN_DUID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HW_ADDRESS (location_type l) + { + return symbol_type (token::TOKEN_HW_ADDRESS, std::move (l)); + } +#else + static + symbol_type + make_HW_ADDRESS (const location_type& l) + { + return symbol_type (token::TOKEN_HW_ADDRESS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTNAME (location_type l) + { + return symbol_type (token::TOKEN_HOSTNAME, std::move (l)); + } +#else + static + symbol_type + make_HOSTNAME (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTNAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_FLEX_ID (location_type l) + { + return symbol_type (token::TOKEN_FLEX_ID, std::move (l)); + } +#else + static + symbol_type + make_FLEX_ID (const location_type& l) + { + return symbol_type (token::TOKEN_FLEX_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RELAY (location_type l) + { + return symbol_type (token::TOKEN_RELAY, std::move (l)); + } +#else + static + symbol_type + make_RELAY (const location_type& l) + { + return symbol_type (token::TOKEN_RELAY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_IP_ADDRESS (location_type l) + { + return symbol_type (token::TOKEN_IP_ADDRESS, std::move (l)); + } +#else + static + symbol_type + make_IP_ADDRESS (const location_type& l) + { + return symbol_type (token::TOKEN_IP_ADDRESS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOOKS_LIBRARIES (location_type l) + { + return symbol_type (token::TOKEN_HOOKS_LIBRARIES, std::move (l)); + } +#else + static + symbol_type + make_HOOKS_LIBRARIES (const location_type& l) + { + return symbol_type (token::TOKEN_HOOKS_LIBRARIES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LIBRARY (location_type l) + { + return symbol_type (token::TOKEN_LIBRARY, std::move (l)); + } +#else + static + symbol_type + make_LIBRARY (const location_type& l) + { + return symbol_type (token::TOKEN_LIBRARY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_PARAMETERS (location_type l) + { + return symbol_type (token::TOKEN_PARAMETERS, std::move (l)); + } +#else + static + symbol_type + make_PARAMETERS (const location_type& l) + { + return symbol_type (token::TOKEN_PARAMETERS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_EXPIRED_LEASES_PROCESSING (location_type l) + { + return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, std::move (l)); + } +#else + static + symbol_type + make_EXPIRED_LEASES_PROCESSING (const location_type& l) + { + return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_RECLAIM_TIMER_WAIT_TIME (location_type l) + { + return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, std::move (l)); + } +#else + static + symbol_type + make_RECLAIM_TIMER_WAIT_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (location_type l) + { + return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, std::move (l)); + } +#else + static + symbol_type + make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOLD_RECLAIMED_TIME (location_type l) + { + return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, std::move (l)); + } +#else + static + symbol_type + make_HOLD_RECLAIMED_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_RECLAIM_LEASES (location_type l) + { + return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, std::move (l)); + } +#else + static + symbol_type + make_MAX_RECLAIM_LEASES (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_RECLAIM_TIME (location_type l) + { + return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, std::move (l)); + } +#else + static + symbol_type + make_MAX_RECLAIM_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_UNWARNED_RECLAIM_CYCLES (location_type l) + { + return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, std::move (l)); + } +#else + static + symbol_type + make_UNWARNED_RECLAIM_CYCLES (const location_type& l) + { + return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERVER_ID (location_type l) + { + return symbol_type (token::TOKEN_SERVER_ID, std::move (l)); + } +#else + static + symbol_type + make_SERVER_ID (const location_type& l) + { + return symbol_type (token::TOKEN_SERVER_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LLT (location_type l) + { + return symbol_type (token::TOKEN_LLT, std::move (l)); + } +#else + static + symbol_type + make_LLT (const location_type& l) + { + return symbol_type (token::TOKEN_LLT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_EN (location_type l) + { + return symbol_type (token::TOKEN_EN, std::move (l)); + } +#else + static + symbol_type + make_EN (const location_type& l) + { + return symbol_type (token::TOKEN_EN, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LL (location_type l) + { + return symbol_type (token::TOKEN_LL, std::move (l)); + } +#else + static + symbol_type + make_LL (const location_type& l) + { + return symbol_type (token::TOKEN_LL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_IDENTIFIER (location_type l) + { + return symbol_type (token::TOKEN_IDENTIFIER, std::move (l)); + } +#else + static + symbol_type + make_IDENTIFIER (const location_type& l) + { + return symbol_type (token::TOKEN_IDENTIFIER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HTYPE (location_type l) + { + return symbol_type (token::TOKEN_HTYPE, std::move (l)); + } +#else + static + symbol_type + make_HTYPE (const location_type& l) + { + return symbol_type (token::TOKEN_HTYPE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TIME (location_type l) + { + return symbol_type (token::TOKEN_TIME, std::move (l)); + } +#else + static + symbol_type + make_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_TIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ENTERPRISE_ID (location_type l) + { + return symbol_type (token::TOKEN_ENTERPRISE_ID, std::move (l)); + } +#else + static + symbol_type + make_ENTERPRISE_ID (const location_type& l) + { + return symbol_type (token::TOKEN_ENTERPRISE_ID, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP4O6_PORT (location_type l) + { + return symbol_type (token::TOKEN_DHCP4O6_PORT, std::move (l)); + } +#else + static + symbol_type + make_DHCP4O6_PORT (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP4O6_PORT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONTROL_SOCKET (location_type l) + { + return symbol_type (token::TOKEN_CONTROL_SOCKET, std::move (l)); + } +#else + static + symbol_type + make_CONTROL_SOCKET (const location_type& l) + { + return symbol_type (token::TOKEN_CONTROL_SOCKET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SOCKET_TYPE (location_type l) + { + return symbol_type (token::TOKEN_SOCKET_TYPE, std::move (l)); + } +#else + static + symbol_type + make_SOCKET_TYPE (const location_type& l) + { + return symbol_type (token::TOKEN_SOCKET_TYPE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SOCKET_NAME (location_type l) + { + return symbol_type (token::TOKEN_SOCKET_NAME, std::move (l)); + } +#else + static + symbol_type + make_SOCKET_NAME (const location_type& l) + { + return symbol_type (token::TOKEN_SOCKET_NAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP_QUEUE_CONTROL (location_type l) + { + return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, std::move (l)); + } +#else + static + symbol_type + make_DHCP_QUEUE_CONTROL (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP_DDNS (location_type l) + { + return symbol_type (token::TOKEN_DHCP_DDNS, std::move (l)); + } +#else + static + symbol_type + make_DHCP_DDNS (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP_DDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ENABLE_UPDATES (location_type l) + { + return symbol_type (token::TOKEN_ENABLE_UPDATES, std::move (l)); + } +#else + static + symbol_type + make_ENABLE_UPDATES (const location_type& l) + { + return symbol_type (token::TOKEN_ENABLE_UPDATES, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_QUALIFYING_SUFFIX (location_type l) + { + return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, std::move (l)); + } +#else + static + symbol_type + make_QUALIFYING_SUFFIX (const location_type& l) + { + return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERVER_IP (location_type l) + { + return symbol_type (token::TOKEN_SERVER_IP, std::move (l)); + } +#else + static + symbol_type + make_SERVER_IP (const location_type& l) + { + return symbol_type (token::TOKEN_SERVER_IP, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SERVER_PORT (location_type l) + { + return symbol_type (token::TOKEN_SERVER_PORT, std::move (l)); + } +#else + static + symbol_type + make_SERVER_PORT (const location_type& l) + { + return symbol_type (token::TOKEN_SERVER_PORT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SENDER_IP (location_type l) + { + return symbol_type (token::TOKEN_SENDER_IP, std::move (l)); + } +#else + static + symbol_type + make_SENDER_IP (const location_type& l) + { + return symbol_type (token::TOKEN_SENDER_IP, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SENDER_PORT (location_type l) + { + return symbol_type (token::TOKEN_SENDER_PORT, std::move (l)); + } +#else + static + symbol_type + make_SENDER_PORT (const location_type& l) + { + return symbol_type (token::TOKEN_SENDER_PORT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_QUEUE_SIZE (location_type l) + { + return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, std::move (l)); + } +#else + static + symbol_type + make_MAX_QUEUE_SIZE (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NCR_PROTOCOL (location_type l) + { + return symbol_type (token::TOKEN_NCR_PROTOCOL, std::move (l)); + } +#else + static + symbol_type + make_NCR_PROTOCOL (const location_type& l) + { + return symbol_type (token::TOKEN_NCR_PROTOCOL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NCR_FORMAT (location_type l) + { + return symbol_type (token::TOKEN_NCR_FORMAT, std::move (l)); + } +#else + static + symbol_type + make_NCR_FORMAT (const location_type& l) + { + return symbol_type (token::TOKEN_NCR_FORMAT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OVERRIDE_NO_UPDATE (location_type l) + { + return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, std::move (l)); + } +#else + static + symbol_type + make_OVERRIDE_NO_UPDATE (const location_type& l) + { + return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OVERRIDE_CLIENT_UPDATE (location_type l) + { + return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, std::move (l)); + } +#else + static + symbol_type + make_OVERRIDE_CLIENT_UPDATE (const location_type& l) + { + return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_REPLACE_CLIENT_NAME (location_type l) + { + return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, std::move (l)); + } +#else + static + symbol_type + make_REPLACE_CLIENT_NAME (const location_type& l) + { + return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_GENERATED_PREFIX (location_type l) + { + return symbol_type (token::TOKEN_GENERATED_PREFIX, std::move (l)); + } +#else + static + symbol_type + make_GENERATED_PREFIX (const location_type& l) + { + return symbol_type (token::TOKEN_GENERATED_PREFIX, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_UDP (location_type l) + { + return symbol_type (token::TOKEN_UDP, std::move (l)); + } +#else + static + symbol_type + make_UDP (const location_type& l) + { + return symbol_type (token::TOKEN_UDP, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TCP (location_type l) + { + return symbol_type (token::TOKEN_TCP, std::move (l)); + } +#else + static + symbol_type + make_TCP (const location_type& l) + { + return symbol_type (token::TOKEN_TCP, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_JSON (location_type l) + { + return symbol_type (token::TOKEN_JSON, std::move (l)); + } +#else + static + symbol_type + make_JSON (const location_type& l) + { + return symbol_type (token::TOKEN_JSON, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_WHEN_PRESENT (location_type l) + { + return symbol_type (token::TOKEN_WHEN_PRESENT, std::move (l)); + } +#else + static + symbol_type + make_WHEN_PRESENT (const location_type& l) + { + return symbol_type (token::TOKEN_WHEN_PRESENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_NEVER (location_type l) + { + return symbol_type (token::TOKEN_NEVER, std::move (l)); + } +#else + static + symbol_type + make_NEVER (const location_type& l) + { + return symbol_type (token::TOKEN_NEVER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ALWAYS (location_type l) + { + return symbol_type (token::TOKEN_ALWAYS, std::move (l)); + } +#else + static + symbol_type + make_ALWAYS (const location_type& l) + { + return symbol_type (token::TOKEN_ALWAYS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_WHEN_NOT_PRESENT (location_type l) + { + return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, std::move (l)); + } +#else + static + symbol_type + make_WHEN_NOT_PRESENT (const location_type& l) + { + return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTNAME_CHAR_SET (location_type l) + { + return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, std::move (l)); + } +#else + static + symbol_type + make_HOSTNAME_CHAR_SET (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_HOSTNAME_CHAR_REPLACEMENT (location_type l) + { + return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, std::move (l)); + } +#else + static + symbol_type + make_HOSTNAME_CHAR_REPLACEMENT (const location_type& l) + { + return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LOGGING (location_type l) + { + return symbol_type (token::TOKEN_LOGGING, std::move (l)); + } +#else + static + symbol_type + make_LOGGING (const location_type& l) + { + return symbol_type (token::TOKEN_LOGGING, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_LOGGERS (location_type l) + { + return symbol_type (token::TOKEN_LOGGERS, std::move (l)); + } +#else + static + symbol_type + make_LOGGERS (const location_type& l) + { + return symbol_type (token::TOKEN_LOGGERS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OUTPUT_OPTIONS (location_type l) + { + return symbol_type (token::TOKEN_OUTPUT_OPTIONS, std::move (l)); + } +#else + static + symbol_type + make_OUTPUT_OPTIONS (const location_type& l) + { + return symbol_type (token::TOKEN_OUTPUT_OPTIONS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_OUTPUT (location_type l) + { + return symbol_type (token::TOKEN_OUTPUT, std::move (l)); + } +#else + static + symbol_type + make_OUTPUT (const location_type& l) + { + return symbol_type (token::TOKEN_OUTPUT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DEBUGLEVEL (location_type l) + { + return symbol_type (token::TOKEN_DEBUGLEVEL, std::move (l)); + } +#else + static + symbol_type + make_DEBUGLEVEL (const location_type& l) + { + return symbol_type (token::TOKEN_DEBUGLEVEL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SEVERITY (location_type l) + { + return symbol_type (token::TOKEN_SEVERITY, std::move (l)); + } +#else + static + symbol_type + make_SEVERITY (const location_type& l) + { + return symbol_type (token::TOKEN_SEVERITY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_FLUSH (location_type l) + { + return symbol_type (token::TOKEN_FLUSH, std::move (l)); + } +#else + static + symbol_type + make_FLUSH (const location_type& l) + { + return symbol_type (token::TOKEN_FLUSH, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAXSIZE (location_type l) + { + return symbol_type (token::TOKEN_MAXSIZE, std::move (l)); + } +#else + static + symbol_type + make_MAXSIZE (const location_type& l) + { + return symbol_type (token::TOKEN_MAXSIZE, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAXVER (location_type l) + { + return symbol_type (token::TOKEN_MAXVER, std::move (l)); + } +#else + static + symbol_type + make_MAXVER (const location_type& l) + { + return symbol_type (token::TOKEN_MAXVER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCP4 (location_type l) + { + return symbol_type (token::TOKEN_DHCP4, std::move (l)); + } +#else + static + symbol_type + make_DHCP4 (const location_type& l) + { + return symbol_type (token::TOKEN_DHCP4, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DHCPDDNS (location_type l) + { + return symbol_type (token::TOKEN_DHCPDDNS, std::move (l)); + } +#else + static + symbol_type + make_DHCPDDNS (const location_type& l) + { + return symbol_type (token::TOKEN_DHCPDDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_CONTROL_AGENT (location_type l) + { + return symbol_type (token::TOKEN_CONTROL_AGENT, std::move (l)); + } +#else + static + symbol_type + make_CONTROL_AGENT (const location_type& l) + { + return symbol_type (token::TOKEN_CONTROL_AGENT, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TOPLEVEL_JSON (location_type l) + { + return symbol_type (token::TOKEN_TOPLEVEL_JSON, std::move (l)); + } +#else + static + symbol_type + make_TOPLEVEL_JSON (const location_type& l) + { + return symbol_type (token::TOKEN_TOPLEVEL_JSON, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_TOPLEVEL_DHCP6 (location_type l) + { + return symbol_type (token::TOKEN_TOPLEVEL_DHCP6, std::move (l)); + } +#else + static + symbol_type + make_TOPLEVEL_DHCP6 (const location_type& l) + { + return symbol_type (token::TOKEN_TOPLEVEL_DHCP6, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_DHCP6 (location_type l) + { + return symbol_type (token::TOKEN_SUB_DHCP6, std::move (l)); + } +#else + static + symbol_type + make_SUB_DHCP6 (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_DHCP6, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_INTERFACES6 (location_type l) + { + return symbol_type (token::TOKEN_SUB_INTERFACES6, std::move (l)); + } +#else + static + symbol_type + make_SUB_INTERFACES6 (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_INTERFACES6, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_SUBNET6 (location_type l) + { + return symbol_type (token::TOKEN_SUB_SUBNET6, std::move (l)); + } +#else + static + symbol_type + make_SUB_SUBNET6 (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_SUBNET6, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_POOL6 (location_type l) + { + return symbol_type (token::TOKEN_SUB_POOL6, std::move (l)); + } +#else + static + symbol_type + make_SUB_POOL6 (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_POOL6, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_PD_POOL (location_type l) + { + return symbol_type (token::TOKEN_SUB_PD_POOL, std::move (l)); + } +#else + static + symbol_type + make_SUB_PD_POOL (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_PD_POOL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_RESERVATION (location_type l) + { + return symbol_type (token::TOKEN_SUB_RESERVATION, std::move (l)); + } +#else + static + symbol_type + make_SUB_RESERVATION (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_RESERVATION, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_OPTION_DEFS (location_type l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DEFS, std::move (l)); + } +#else + static + symbol_type + make_SUB_OPTION_DEFS (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DEFS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_OPTION_DEF (location_type l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DEF, std::move (l)); + } +#else + static + symbol_type + make_SUB_OPTION_DEF (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DEF, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_OPTION_DATA (location_type l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DATA, std::move (l)); + } +#else + static + symbol_type + make_SUB_OPTION_DATA (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_OPTION_DATA, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_HOOKS_LIBRARY (location_type l) + { + return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, std::move (l)); + } +#else + static + symbol_type + make_SUB_HOOKS_LIBRARY (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_DHCP_DDNS (location_type l) + { + return symbol_type (token::TOKEN_SUB_DHCP_DDNS, std::move (l)); + } +#else + static + symbol_type + make_SUB_DHCP_DDNS (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_LOGGING (location_type l) + { + return symbol_type (token::TOKEN_SUB_LOGGING, std::move (l)); + } +#else + static + symbol_type + make_SUB_LOGGING (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_LOGGING, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_CONFIG_CONTROL (location_type l) + { + return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, std::move (l)); + } +#else + static + symbol_type + make_SUB_CONFIG_CONTROL (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_STRING (std::string v, location_type l) + { + return symbol_type (token::TOKEN_STRING, std::move (v), std::move (l)); + } +#else + static + symbol_type + make_STRING (const std::string& v, const location_type& l) + { + return symbol_type (token::TOKEN_STRING, v, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_INTEGER (int64_t v, location_type l) + { + return symbol_type (token::TOKEN_INTEGER, std::move (v), std::move (l)); + } +#else + static + symbol_type + make_INTEGER (const int64_t& v, const location_type& l) + { + return symbol_type (token::TOKEN_INTEGER, v, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_FLOAT (double v, location_type l) + { + return symbol_type (token::TOKEN_FLOAT, std::move (v), std::move (l)); + } +#else + static + symbol_type + make_FLOAT (const double& v, const location_type& l) + { + return symbol_type (token::TOKEN_FLOAT, v, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_BOOLEAN (bool v, location_type l) + { + return symbol_type (token::TOKEN_BOOLEAN, std::move (v), std::move (l)); + } +#else + static + symbol_type + make_BOOLEAN (const bool& v, const location_type& l) + { + return symbol_type (token::TOKEN_BOOLEAN, v, l); + } #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 - void yy_destroy_ (const char* yymsg, basic_symbol& 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 - { - /// Superclass. - typedef basic_symbol 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_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_ = 1035, ///< Last index in yytable_. - yynnts_ = 395, ///< Number of nonterminal symbols. - yyfinal_ = 32, ///< Termination state number. - yyterror_ = 1, - yyerrcode_ = 256, - yyntokens_ = 177 ///< 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, 104, - 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, - 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, - 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, - 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, - 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, - 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, - 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, - 175, 176 - }; - const unsigned int user_token_number_max_ = 431; - const token_number_type undef_token_ = 2; - - if (static_cast(t) <= yyeof_) - return yyeof_; - else if (static_cast (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 - inline - Dhcp6Parser::basic_symbol::basic_symbol () - : value () - {} - - template - inline - Dhcp6Parser::basic_symbol::basic_symbol (const basic_symbol& other) - : Base (other) - , value () - , location (other.location) - { - switch (other.type_get ()) - { - case 194: // value - case 198: // map_value - case 252: // db_type - case 345: // hr_mode - case 481: // duid_type - case 516: // ncr_protocol_value - case 523: // replace_client_name_value - value.copy< ElementPtr > (other.value); - break; - - case 176: // "boolean" - value.copy< bool > (other.value); - break; - - case 175: // "floating point" - value.copy< double > (other.value); - break; - - case 174: // "integer" - value.copy< int64_t > (other.value); - break; - - case 173: // "constant string" - value.copy< std::string > (other.value); - break; - - default: - break; - } - - } - - - template - inline - Dhcp6Parser::basic_symbol::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 194: // value - case 198: // map_value - case 252: // db_type - case 345: // hr_mode - case 481: // duid_type - case 516: // ncr_protocol_value - case 523: // replace_client_name_value - value.copy< ElementPtr > (v); - break; - - case 176: // "boolean" - value.copy< bool > (v); - break; - - case 175: // "floating point" - value.copy< double > (v); - break; - - case 174: // "integer" - value.copy< int64_t > (v); - break; - - case 173: // "constant string" - value.copy< std::string > (v); - break; - - default: - break; - } -} - - - // Implementation of basic_symbol constructor for each type. - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const location_type& l) - : Base (t) - , value () - , location (l) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const ElementPtr v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const bool v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const double v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l) - : Base (t) - , value (v) - , location (l) - {} - - - template - inline - Dhcp6Parser::basic_symbol::~basic_symbol () - { - clear (); - } - - template - inline - void - Dhcp6Parser::basic_symbol::clear () - { - // User destructor. - symbol_number_type yytype = this->type_get (); - basic_symbol& yysym = *this; - (void) yysym; - switch (yytype) - { - default: - break; - } - - // Type destructor. - switch (yytype) - { - case 194: // value - case 198: // map_value - case 252: // db_type - case 345: // hr_mode - case 481: // duid_type - case 516: // ncr_protocol_value - case 523: // replace_client_name_value - value.template destroy< ElementPtr > (); - break; - - case 176: // "boolean" - value.template destroy< bool > (); - break; - - case 175: // "floating point" - value.template destroy< double > (); - break; - - case 174: // "integer" - value.template destroy< int64_t > (); - break; - - case 173: // "constant string" - value.template destroy< std::string > (); - break; - - default: - break; - } - - Base::clear (); - } - - template - inline - bool - Dhcp6Parser::basic_symbol::empty () const - { - return Base::type_get () == empty_symbol; - } - - template - inline - void - Dhcp6Parser::basic_symbol::move (basic_symbol& s) - { - super_type::move(s); - switch (this->type_get ()) - { - case 194: // value - case 198: // map_value - case 252: // db_type - case 345: // hr_mode - case 481: // duid_type - case 516: // ncr_protocol_value - case 523: // replace_client_name_value - value.move< ElementPtr > (s.value); - break; - - case 176: // "boolean" - value.move< bool > (s.value); - break; - - case 175: // "floating point" - value.move< double > (s.value); - break; - - case 174: // "integer" - value.move< int64_t > (s.value); - break; - - case 173: // "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, 359, 360, 361, 362, 363, 364, - 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, - 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, - 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, - 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, - 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, - 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, - 425, 426, 427, 428, 429, 430, 431 - }; - return static_cast (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_DATA_DIRECTORY (const location_type& l) - { - return symbol_type (token::TOKEN_DATA_DIRECTORY, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONFIG_CONTROL (const location_type& l) - { - return symbol_type (token::TOKEN_CONFIG_CONTROL, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONFIG_DATABASES (const location_type& l) - { - return symbol_type (token::TOKEN_CONFIG_DATABASES, 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_RE_DETECT (const location_type& l) - { - return symbol_type (token::TOKEN_RE_DETECT, 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_HOSTS_DATABASES (const location_type& l) - { - return symbol_type (token::TOKEN_HOSTS_DATABASES, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TYPE (const location_type& l) - { - return symbol_type (token::TOKEN_TYPE, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MEMFILE (const location_type& l) - { - return symbol_type (token::TOKEN_MEMFILE, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MYSQL (const location_type& l) - { - return symbol_type (token::TOKEN_MYSQL, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_POSTGRESQL (const location_type& l) - { - return symbol_type (token::TOKEN_POSTGRESQL, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CQL (const location_type& l) - { - return symbol_type (token::TOKEN_CQL, 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_PORT (const location_type& l) - { - return symbol_type (token::TOKEN_PORT, 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_CONNECT_TIMEOUT (const location_type& l) - { - return symbol_type (token::TOKEN_CONNECT_TIMEOUT, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONTACT_POINTS (const location_type& l) - { - return symbol_type (token::TOKEN_CONTACT_POINTS, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_RECONNECT_TRIES (const location_type& l) - { - return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RECONNECT_WAIT_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_KEYSPACE (const location_type& l) - { - return symbol_type (token::TOKEN_KEYSPACE, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONSISTENCY (const location_type& l) - { - return symbol_type (token::TOKEN_CONSISTENCY, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SERIAL_CONSISTENCY (const location_type& l) - { - return symbol_type (token::TOKEN_SERIAL_CONSISTENCY, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_REQUEST_TIMEOUT (const location_type& l) - { - return symbol_type (token::TOKEN_REQUEST_TIMEOUT, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TCP_KEEPALIVE (const location_type& l) - { - return symbol_type (token::TOKEN_TCP_KEEPALIVE, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TCP_NODELAY (const location_type& l) - { - return symbol_type (token::TOKEN_TCP_NODELAY, 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_SERVER_TAG (const location_type& l) - { - return symbol_type (token::TOKEN_SERVER_TAG, 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_ALWAYS_SEND (const location_type& l) - { - return symbol_type (token::TOKEN_ALWAYS_SEND, 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_USER_CONTEXT (const location_type& l) - { - return symbol_type (token::TOKEN_USER_CONTEXT, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_COMMENT (const location_type& l) - { - return symbol_type (token::TOKEN_COMMENT, 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_DISABLED (const location_type& l) - { - return symbol_type (token::TOKEN_DISABLED, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OUT_OF_POOL (const location_type& l) - { - return symbol_type (token::TOKEN_OUT_OF_POOL, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_GLOBAL (const location_type& l) - { - return symbol_type (token::TOKEN_GLOBAL, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ALL (const location_type& l) - { - return symbol_type (token::TOKEN_ALL, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SHARED_NETWORKS (const location_type& l) - { - return symbol_type (token::TOKEN_SHARED_NETWORKS, 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_SANITY_CHECKS (const location_type& l) - { - return symbol_type (token::TOKEN_SANITY_CHECKS, l); - } - - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LEASE_CHECKS (const location_type& l) - { - return symbol_type (token::TOKEN_LEASE_CHECKS, 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_REQUIRE_CLIENT_CLASSES (const location_type& l) - { - return symbol_type (token::TOKEN_REQUIRE_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_ONLY_IF_REQUIRED (const location_type& l) - { - return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, 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); - } + private: + /// This class is not copyable. + Dhcp6Parser (const Dhcp6Parser&); + Dhcp6Parser& operator= (const Dhcp6Parser&); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PREFIXES (const location_type& l) - { - return symbol_type (token::TOKEN_PREFIXES, l); - } + /// State numbers. + typedef int state_type; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DUID (const location_type& l) - { - return symbol_type (token::TOKEN_DUID, l); - } + /// 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; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HW_ADDRESS (const location_type& l) - { - return symbol_type (token::TOKEN_HW_ADDRESS, l); - } + /// 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); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOSTNAME (const location_type& l) - { - return symbol_type (token::TOKEN_HOSTNAME, l); - } + /// 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); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_FLEX_ID (const location_type& l) - { - return symbol_type (token::TOKEN_FLEX_ID, l); - } + /// 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); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RELAY (const location_type& l) - { - return symbol_type (token::TOKEN_RELAY, l); - } + static const short yypact_ninf_; + static const signed char yytable_ninf_; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_IP_ADDRESS (const location_type& l) - { - return symbol_type (token::TOKEN_IP_ADDRESS, l); - } + /// Convert a scanner token number \a t to a symbol number. + static token_number_type yytranslate_ (token_type t); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOOKS_LIBRARIES (const location_type& l) - { - return symbol_type (token::TOKEN_HOOKS_LIBRARIES, l); - } + // Tables. + // YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + // STATE-NUM. + static const short yypact_[]; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LIBRARY (const location_type& l) - { - return symbol_type (token::TOKEN_LIBRARY, l); - } + // 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 yydefact_[]; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PARAMETERS (const location_type& l) - { - return symbol_type (token::TOKEN_PARAMETERS, l); - } + // YYPGOTO[NTERM-NUM]. + static const short yypgoto_[]; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_EXPIRED_LEASES_PROCESSING (const location_type& l) - { - return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, l); - } + // YYDEFGOTO[NTERM-NUM]. + static const short yydefgoto_[]; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RECLAIM_TIMER_WAIT_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, l); - } + // 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 yytable_[]; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, l); - } + static const short yycheck_[]; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOLD_RECLAIMED_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, l); - } + // YYSTOS[STATE-NUM] -- The (internal number of the) accessing + // symbol of state STATE-NUM. + static const unsigned short yystos_[]; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_RECLAIM_LEASES (const location_type& l) - { - return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, l); - } + // YYR1[YYN] -- Symbol number of symbol that rule YYN derives. + static const unsigned short yyr1_[]; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_RECLAIM_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, l); - } + // YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. + static const unsigned char yyr2_[]; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_UNWARNED_RECLAIM_CYCLES (const location_type& l) - { - return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, l); - } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SERVER_ID (const location_type& l) - { - return symbol_type (token::TOKEN_SERVER_ID, l); - } + /// Convert the symbol name \a n to a form suitable for a diagnostic. + static std::string yytnamerr_ (const char *n); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LLT (const location_type& l) - { - return symbol_type (token::TOKEN_LLT, l); - } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_EN (const location_type& l) - { - return symbol_type (token::TOKEN_EN, l); - } + /// 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 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_ (); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LL (const location_type& l) - { - return symbol_type (token::TOKEN_LL, l); - } + /// Debugging level. + int yydebug_; + /// Debug stream. + std::ostream* yycdebug_; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_IDENTIFIER (const location_type& l) - { - return symbol_type (token::TOKEN_IDENTIFIER, l); - } + /// \brief Display a symbol type, value and location. + /// \param yyo The output stream. + /// \param yysym The symbol. + template + void yy_print_ (std::ostream& yyo, const basic_symbol& yysym) const; +#endif - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HTYPE (const location_type& l) - { - return symbol_type (token::TOKEN_HTYPE, l); - } + /// \brief Reclaim the memory associated to a symbol. + /// \param yymsg Why this token is reclaimed. + /// If null, print nothing. + /// \param yysym The symbol. + template + void yy_destroy_ (const char* yymsg, basic_symbol& yysym) const; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TIME (const location_type& l) - { - return symbol_type (token::TOKEN_TIME, l); - } + private: + /// Type access provider for state based symbols. + struct by_state + { + /// Default constructor. + by_state () YY_NOEXCEPT; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ENTERPRISE_ID (const location_type& l) - { - return symbol_type (token::TOKEN_ENTERPRISE_ID, l); - } + /// The symbol type as needed by the constructor. + typedef state_type kind_type; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCP4O6_PORT (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP4O6_PORT, l); - } + /// Constructor. + by_state (kind_type s) YY_NOEXCEPT; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONTROL_SOCKET (const location_type& l) - { - return symbol_type (token::TOKEN_CONTROL_SOCKET, l); - } + /// Copy constructor. + by_state (const by_state& that) YY_NOEXCEPT; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SOCKET_TYPE (const location_type& l) - { - return symbol_type (token::TOKEN_SOCKET_TYPE, l); - } + /// Record that this symbol is empty. + void clear () YY_NOEXCEPT; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SOCKET_NAME (const location_type& l) - { - return symbol_type (token::TOKEN_SOCKET_NAME, l); - } + /// Steal the symbol type from \a that. + void move (by_state& that); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCP_QUEUE_CONTROL (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, l); - } + /// The (internal) type number (corresponding to \a state). + /// \a empty_symbol when empty. + symbol_number_type type_get () const YY_NOEXCEPT; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCP_DDNS (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP_DDNS, l); - } + /// The state number used to denote an empty symbol. + enum { empty_state = -1 }; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ENABLE_UPDATES (const location_type& l) - { - return symbol_type (token::TOKEN_ENABLE_UPDATES, l); - } + /// The state. + /// \a empty when empty. + state_type state; + }; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_QUALIFYING_SUFFIX (const location_type& l) - { - return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, l); - } + /// "Internal" symbol: element of the stack. + struct stack_symbol_type : basic_symbol + { + /// Superclass. + typedef basic_symbol super_type; + /// Construct an empty symbol. + stack_symbol_type (); + /// Move or copy construction. + stack_symbol_type (YY_RVREF (stack_symbol_type) that); + /// Steal the contents from \a sym to build this. + stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym); +#if YY_CPLUSPLUS < 201103L + /// Assignment, needed by push_back by some old implementations. + /// Moves the contents of that. + stack_symbol_type& operator= (stack_symbol_type& that); +#endif + }; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SERVER_IP (const location_type& l) - { - return symbol_type (token::TOKEN_SERVER_IP, l); - } + /// A stack with random access from its top. + template > + class stack + { + public: + // Hide our reversed order. + typedef typename S::reverse_iterator iterator; + typedef typename S::const_reverse_iterator const_iterator; + typedef typename S::size_type size_type; + + stack (size_type n = 200) + : seq_ (n) + {} + + /// Random access. + /// + /// Index 0 returns the topmost element. + T& + operator[] (size_type i) + { + return seq_[size () - 1 - i]; + } + + /// Random access. + /// + /// Index 0 returns the topmost element. + T& + operator[] (int i) + { + return operator[] (size_type (i)); + } + + /// Random access. + /// + /// Index 0 returns the topmost element. + const T& + operator[] (size_type i) const + { + return seq_[size () - 1 - i]; + } + + /// Random access. + /// + /// Index 0 returns the topmost element. + const T& + operator[] (int i) const + { + return operator[] (size_type (i)); + } + + /// Steal the contents of \a t. + /// + /// Close to move-semantics. + void + push (YY_MOVE_REF (T) t) + { + seq_.push_back (T ()); + operator[] (0).move (t); + } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SERVER_PORT (const location_type& l) - { - return symbol_type (token::TOKEN_SERVER_PORT, l); - } + /// Pop elements from the stack. + void + pop (int n = 1) YY_NOEXCEPT + { + for (; 0 < n; --n) + seq_.pop_back (); + } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SENDER_IP (const location_type& l) - { - return symbol_type (token::TOKEN_SENDER_IP, l); - } + /// Pop all elements from the stack. + void + clear () YY_NOEXCEPT + { + seq_.clear (); + } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SENDER_PORT (const location_type& l) - { - return symbol_type (token::TOKEN_SENDER_PORT, l); - } + /// Number of elements on the stack. + size_type + size () const YY_NOEXCEPT + { + return seq_.size (); + } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_QUEUE_SIZE (const location_type& l) - { - return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, l); - } + /// Iterator on top of the stack (going downwards). + const_iterator + begin () const YY_NOEXCEPT + { + return seq_.rbegin (); + } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_NCR_PROTOCOL (const location_type& l) - { - return symbol_type (token::TOKEN_NCR_PROTOCOL, l); - } + /// Bottom of the stack. + const_iterator + end () const YY_NOEXCEPT + { + return seq_.rend (); + } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_NCR_FORMAT (const location_type& l) - { - return symbol_type (token::TOKEN_NCR_FORMAT, l); - } + /// Present a slice of the top of a stack. + class slice + { + public: + slice (const stack& stack, int range) + : stack_ (stack) + , range_ (range) + {} + + const T& + operator[] (int i) const + { + return stack_[range_ - i]; + } + + private: + const stack& stack_; + int range_; + }; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OVERRIDE_NO_UPDATE (const location_type& l) - { - return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, l); - } + private: + stack (const stack&); + stack& operator= (const stack&); + /// The wrapped container. + S seq_; + }; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OVERRIDE_CLIENT_UPDATE (const location_type& l) - { - return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, l); - } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_REPLACE_CLIENT_NAME (const location_type& l) - { - return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, l); - } + /// Stack type. + typedef stack stack_type; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_GENERATED_PREFIX (const location_type& l) - { - return symbol_type (token::TOKEN_GENERATED_PREFIX, l); - } + /// The stack. + stack_type yystack_; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_UDP (const location_type& l) - { - return symbol_type (token::TOKEN_UDP, l); - } + /// Push a new state on the stack. + /// \param m a debug message to display + /// if null, no trace is output. + /// \param sym the symbol + /// \warning the contents of \a s.value is stolen. + void yypush_ (const char* m, YY_MOVE_REF (stack_symbol_type) sym); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TCP (const location_type& l) - { - return symbol_type (token::TOKEN_TCP, l); - } + /// 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 sym.value is stolen. + void yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_JSON (const location_type& l) - { - return symbol_type (token::TOKEN_JSON, l); - } + /// Pop \a n symbols from the stack. + void yypop_ (int n = 1); - Dhcp6Parser::symbol_type - Dhcp6Parser::make_WHEN_PRESENT (const location_type& l) - { - return symbol_type (token::TOKEN_WHEN_PRESENT, l); - } + /// Constants. + enum + { + yyeof_ = 0, + yylast_ = 1035, ///< Last index in yytable_. + yynnts_ = 395, ///< Number of nonterminal symbols. + yyfinal_ = 32, ///< Termination state number. + yyterror_ = 1, + yyerrcode_ = 256, + yyntokens_ = 177 ///< Number of tokens. + }; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_NEVER (const location_type& l) - { - return symbol_type (token::TOKEN_NEVER, l); - } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ALWAYS (const location_type& l) - { - return symbol_type (token::TOKEN_ALWAYS, l); - } + // User arguments. + isc::dhcp::Parser6Context& ctx; + }; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_WHEN_NOT_PRESENT (const location_type& l) + inline + Dhcp6Parser::token_number_type + Dhcp6Parser::yytranslate_ (token_type t) { - return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, l); - } + // YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to + // TOKEN-NUM as returned by yylex. + 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, 104, + 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, + 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, + 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, + 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, + 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, + 175, 176 + }; + const unsigned user_token_number_max_ = 431; + const token_number_type undef_token_ = 2; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOSTNAME_CHAR_SET (const location_type& l) - { - return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, l); + if (static_cast (t) <= yyeof_) + return yyeof_; + else if (static_cast (t) <= user_token_number_max_) + return translate_table[t]; + else + return undef_token_; } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOSTNAME_CHAR_REPLACEMENT (const location_type& l) + // basic_symbol. +#if 201103L <= YY_CPLUSPLUS + template + Dhcp6Parser::basic_symbol::basic_symbol (basic_symbol&& that) + : Base (std::move (that)) + , value () + , location (std::move (that.location)) { - return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, l); - } + switch (this->type_get ()) + { + case 194: // value + case 198: // map_value + case 252: // db_type + case 345: // hr_mode + case 481: // duid_type + case 516: // ncr_protocol_value + case 523: // replace_client_name_value + value.move< ElementPtr > (std::move (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LOGGING (const location_type& l) - { - return symbol_type (token::TOKEN_LOGGING, l); - } + case 176: // "boolean" + value.move< bool > (std::move (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LOGGERS (const location_type& l) - { - return symbol_type (token::TOKEN_LOGGERS, l); - } + case 175: // "floating point" + value.move< double > (std::move (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OUTPUT_OPTIONS (const location_type& l) - { - return symbol_type (token::TOKEN_OUTPUT_OPTIONS, l); - } + case 174: // "integer" + value.move< int64_t > (std::move (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OUTPUT (const location_type& l) - { - return symbol_type (token::TOKEN_OUTPUT, l); - } + case 173: // "constant string" + value.move< std::string > (std::move (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DEBUGLEVEL (const location_type& l) - { - return symbol_type (token::TOKEN_DEBUGLEVEL, l); - } + default: + break; + } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SEVERITY (const location_type& l) - { - return symbol_type (token::TOKEN_SEVERITY, l); } +#endif - Dhcp6Parser::symbol_type - Dhcp6Parser::make_FLUSH (const location_type& l) + template + Dhcp6Parser::basic_symbol::basic_symbol (const basic_symbol& that) + : Base (that) + , value () + , location (that.location) { - return symbol_type (token::TOKEN_FLUSH, l); - } + switch (this->type_get ()) + { + case 194: // value + case 198: // map_value + case 252: // db_type + case 345: // hr_mode + case 481: // duid_type + case 516: // ncr_protocol_value + case 523: // replace_client_name_value + value.copy< ElementPtr > (YY_MOVE (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAXSIZE (const location_type& l) - { - return symbol_type (token::TOKEN_MAXSIZE, l); - } + case 176: // "boolean" + value.copy< bool > (YY_MOVE (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAXVER (const location_type& l) - { - return symbol_type (token::TOKEN_MAXVER, l); - } + case 175: // "floating point" + value.copy< double > (YY_MOVE (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCP4 (const location_type& l) - { - return symbol_type (token::TOKEN_DHCP4, l); - } + case 174: // "integer" + value.copy< int64_t > (YY_MOVE (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCPDDNS (const location_type& l) - { - return symbol_type (token::TOKEN_DHCPDDNS, l); - } + case 173: // "constant string" + value.copy< std::string > (YY_MOVE (that.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONTROL_AGENT (const location_type& l) - { - return symbol_type (token::TOKEN_CONTROL_AGENT, l); - } + default: + break; + } - 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) + template + bool + Dhcp6Parser::basic_symbol::empty () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_SUB_INTERFACES6, l); + return Base::type_get () == empty_symbol; } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_SUBNET6 (const location_type& l) + template + void + Dhcp6Parser::basic_symbol::move (basic_symbol& s) { - return symbol_type (token::TOKEN_SUB_SUBNET6, l); - } + super_type::move (s); + switch (this->type_get ()) + { + case 194: // value + case 198: // map_value + case 252: // db_type + case 345: // hr_mode + case 481: // duid_type + case 516: // ncr_protocol_value + case 523: // replace_client_name_value + value.move< ElementPtr > (YY_MOVE (s.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_POOL6 (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_POOL6, l); - } + case 176: // "boolean" + value.move< bool > (YY_MOVE (s.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_PD_POOL (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_PD_POOL, l); - } + case 175: // "floating point" + value.move< double > (YY_MOVE (s.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_RESERVATION (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_RESERVATION, l); - } + case 174: // "integer" + value.move< int64_t > (YY_MOVE (s.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_OPTION_DEFS (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DEFS, l); - } + case 173: // "constant string" + value.move< std::string > (YY_MOVE (s.value)); + break; - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_OPTION_DEF (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DEF, l); - } + default: + break; + } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_OPTION_DATA (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DATA, l); + location = YY_MOVE (s.location); } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_HOOKS_LIBRARY (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, l); - } + // by_type. + inline + Dhcp6Parser::by_type::by_type () + : type (empty_symbol) + {} - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_DHCP_DDNS (const location_type& l) +#if 201103L <= YY_CPLUSPLUS + inline + Dhcp6Parser::by_type::by_type (by_type&& that) + : type (that.type) { - return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l); + that.clear (); } +#endif - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_LOGGING (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_LOGGING, l); - } + inline + Dhcp6Parser::by_type::by_type (const by_type& that) + : type (that.type) + {} - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_CONFIG_CONTROL (const location_type& l) - { - return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, l); - } + inline + Dhcp6Parser::by_type::by_type (token_type t) + : type (yytranslate_ (t)) + {} - Dhcp6Parser::symbol_type - Dhcp6Parser::make_STRING (const std::string& v, const location_type& l) + inline + void + Dhcp6Parser::by_type::clear () { - return symbol_type (token::TOKEN_STRING, v, l); + type = empty_symbol; } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_INTEGER (const int64_t& v, const location_type& l) + inline + void + Dhcp6Parser::by_type::move (by_type& that) { - return symbol_type (token::TOKEN_INTEGER, v, l); + type = that.type; + that.clear (); } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_FLOAT (const double& v, const location_type& l) + inline + int + Dhcp6Parser::by_type::type_get () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_FLOAT, v, l); + return type; } - Dhcp6Parser::symbol_type - Dhcp6Parser::make_BOOLEAN (const bool& v, const location_type& l) + inline + Dhcp6Parser::token_type + Dhcp6Parser::by_type::token () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_BOOLEAN, v, l); + // YYTOKNUM[NUM] -- (External) token number corresponding to the + // (internal) symbol number NUM (which must be that of a token). */ + static + const unsigned short + 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, 359, 360, 361, 362, 363, 364, + 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, + 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, + 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, + 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, + 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, + 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, + 425, 426, 427, 428, 429, 430, 431 + }; + return token_type (yytoken_number_[type]); } - -#line 14 "dhcp6_parser.yy" // lalr1.cc:377 +#line 14 "dhcp6_parser.yy" // lalr1.cc:401 } } // isc::dhcp -#line 2994 "dhcp6_parser.h" // lalr1.cc:377 +#line 4196 "dhcp6_parser.h" // lalr1.cc:401 diff --git a/src/bin/dhcp6/location.hh b/src/bin/dhcp6/location.hh index d56da27f52..b080712231 100644 --- a/src/bin/dhcp6/location.hh +++ b/src/bin/dhcp6/location.hh @@ -1,9 +1,9 @@ -// Generated 201903221555 -// A Bison parser, made by GNU Bison 3.0.4. +// Generated 201903231444 +// A Bison parser, made by GNU Bison 3.3.2. // Locations for Bison parsers in C++ -// Copyright (C) 2002-2015 Free Software Foundation, Inc. +// Copyright (C) 2002-2015, 2018-2019 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 @@ -39,12 +39,145 @@ #ifndef YY_PARSER6_LOCATION_HH_INCLUDED # define YY_PARSER6_LOCATION_HH_INCLUDED -# include "position.hh" +# include // std::max +# include +# include -#line 14 "dhcp6_parser.yy" // location.cc:296 +# ifndef YY_NULLPTR +# if defined __cplusplus +# if 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# else +# define YY_NULLPTR ((void*)0) +# endif +# endif + +#line 14 "dhcp6_parser.yy" // location.cc:339 namespace isc { namespace dhcp { -#line 46 "location.hh" // location.cc:296 - /// Abstract a location. +#line 60 "location.hh" // location.cc:339 + /// A point in a source file. + class position + { + public: + /// Construct a position. + explicit position (std::string* f = YY_NULLPTR, + unsigned l = 1u, + unsigned c = 1u) + : filename (f) + , line (l) + , column (c) + {} + + + /// Initialization. + void initialize (std::string* fn = YY_NULLPTR, + unsigned l = 1u, + unsigned 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 line; + /// Current column number. + unsigned column; + + private: + /// Compute max (min, lhs+rhs). + static unsigned add_ (unsigned lhs, int rhs, int min) + { + return static_cast (std::max (min, + static_cast (lhs) + rhs)); + } + }; + + /// 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 + std::basic_ostream& + operator<< (std::basic_ostream& ostr, const position& pos) + { + if (pos.filename) + ostr << *pos.filename << ':'; + return ostr << pos.line << '.' << pos.column; + } + + /// Two points in a source file. class location { public: @@ -53,30 +186,27 @@ namespace isc { namespace dhcp { 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) + unsigned l = 1u, + unsigned 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) + unsigned l = 1u, + unsigned c = 1u) { begin.initialize (f, l, c); end = begin; @@ -171,10 +301,10 @@ namespace isc { namespace dhcp { ** Avoid duplicate information. */ template - inline std::basic_ostream& + std::basic_ostream& operator<< (std::basic_ostream& ostr, const location& loc) { - unsigned int end_col = 0 < loc.end.column ? loc.end.column - 1 : 0; + unsigned end_col = 0 < loc.end.column ? loc.end.column - 1 : 0; ostr << loc.begin; if (loc.end.filename && (!loc.begin.filename @@ -187,7 +317,7 @@ namespace isc { namespace dhcp { return ostr; } -#line 14 "dhcp6_parser.yy" // location.cc:296 +#line 14 "dhcp6_parser.yy" // location.cc:339 } } // isc::dhcp -#line 192 "location.hh" // location.cc:296 +#line 322 "location.hh" // location.cc:339 #endif // !YY_PARSER6_LOCATION_HH_INCLUDED diff --git a/src/bin/dhcp6/position.hh b/src/bin/dhcp6/position.hh index a044d80391..bc115ead3e 100644 --- a/src/bin/dhcp6/position.hh +++ b/src/bin/dhcp6/position.hh @@ -1,181 +1,12 @@ -// Generated 201903221555 -// 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 . - -// 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 // std::max -# include -# include - -# 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(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 - inline std::basic_ostream& - operator<< (std::basic_ostream& 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 +// Generated 201903231444 +// A Bison parser, made by GNU Bison 3.3.2. + +// Starting with Bison 3.2, this file is useless: the structure it +// used to define is now defined in "location.hh". +// +// To get rid of this file: +// 1. add 'require "3.2"' (or newer) to your grammar file +// 2. remove references to this file from your build system +// 3. if you used to include it, include "location.hh" instead. + +#include "location.hh" diff --git a/src/bin/dhcp6/stack.hh b/src/bin/dhcp6/stack.hh index a2255edd6b..6701827115 100644 --- a/src/bin/dhcp6/stack.hh +++ b/src/bin/dhcp6/stack.hh @@ -1,158 +1,9 @@ -// Generated 201903221555 -// 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 . - -// 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 - -#line 14 "dhcp6_parser.yy" // stack.hh:132 -namespace isc { namespace dhcp { -#line 46 "stack.hh" // stack.hh:132 - template > - 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 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 +// Generated 201903231444 +// A Bison parser, made by GNU Bison 3.3.2. + +// Starting with Bison 3.2, this file is useless: the structure it +// used to define is now defined with the parser itself. +// +// To get rid of this file: +// 1. add 'require "3.2"' (or newer) to your grammar file +// 2. remove references to this file from your build system.