From: Michal Nowikowski Date: Mon, 19 Aug 2019 12:47:31 +0000 (+0000) Subject: regenerated parsers for 1.6.0 final X-Git-Tag: Kea-1.6.0~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bec7d1cdb811c8fbf68a0040018a6fd4a1de29fe;p=thirdparty%2Fkea.git regenerated parsers for 1.6.0 final --- diff --git a/src/bin/agent/location.hh b/src/bin/agent/location.hh index 95881b3c61..4f538ced79 100644 --- a/src/bin/agent/location.hh +++ b/src/bin/agent/location.hh @@ -1,3 +1,4 @@ +// Generated 201908191238 // A Bison parser, made by GNU Bison 3.4.1. // Locations for Bison parsers in C++ diff --git a/src/bin/agent/position.hh b/src/bin/agent/position.hh index c1280f1a34..c202e38cf4 100644 --- a/src/bin/agent/position.hh +++ b/src/bin/agent/position.hh @@ -1,3 +1,4 @@ +// Generated 201908191238 // A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it diff --git a/src/bin/agent/stack.hh b/src/bin/agent/stack.hh index 0f7aafe529..42822f6530 100644 --- a/src/bin/agent/stack.hh +++ b/src/bin/agent/stack.hh @@ -1,3 +1,4 @@ +// Generated 201908191238 // A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it diff --git a/src/bin/d2/d2_parser.cc b/src/bin/d2/d2_parser.cc index d225e39431..d1ce9fd347 100644 --- a/src/bin/d2/d2_parser.cc +++ b/src/bin/d2/d2_parser.cc @@ -1,8 +1,8 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// A Bison parser, made by GNU Bison 3.4.1. // Skeleton implementation for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015, 2018 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 @@ -43,11 +43,11 @@ // Unqualified %code blocks. -#line 34 "d2_parser.yy" // lalr1.cc:438 +#line 34 "d2_parser.yy" #include -#line 51 "d2_parser.cc" // lalr1.cc:438 +#line 51 "d2_parser.cc" #ifndef YY_ @@ -88,7 +88,7 @@ { \ (Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \ } \ - while (/*CONSTCOND*/ false) + while (false) # endif @@ -140,9 +140,10 @@ #define YYERROR goto yyerrorlab #define YYRECOVERING() (!!yyerrstatus_) -#line 14 "d2_parser.yy" // lalr1.cc:513 +#line 14 "d2_parser.yy" namespace isc { namespace d2 { -#line 146 "d2_parser.cc" // lalr1.cc:513 +#line 146 "d2_parser.cc" + /* Return YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is @@ -154,7 +155,7 @@ namespace isc { namespace d2 { { if (*yystr == '"') { - std::string yyr = ""; + std::string yyr; char const *yyp = yystr; for (;;) @@ -167,7 +168,10 @@ namespace isc { namespace d2 { case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; - // Fall through. + else + goto append; + + append: default: yyr += *yyp; break; @@ -195,6 +199,8 @@ namespace isc { namespace d2 { D2Parser::~D2Parser () {} + D2Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW + {} /*---------------. | Symbol types. | @@ -203,16 +209,16 @@ namespace isc { namespace d2 { // by_state. - D2Parser::by_state::by_state () + D2Parser::by_state::by_state () YY_NOEXCEPT : state (empty_state) {} - D2Parser::by_state::by_state (const by_state& other) - : state (other.state) + D2Parser::by_state::by_state (const by_state& that) YY_NOEXCEPT + : state (that.state) {} void - D2Parser::by_state::clear () + D2Parser::by_state::clear () YY_NOEXCEPT { state = empty_state; } @@ -224,12 +230,12 @@ namespace isc { namespace d2 { that.clear (); } - D2Parser::by_state::by_state (state_type s) + D2Parser::by_state::by_state (state_type s) YY_NOEXCEPT : state (s) {} D2Parser::symbol_number_type - D2Parser::by_state::type_get () const + D2Parser::by_state::type_get () const YY_NOEXCEPT { if (state == empty_state) return empty_symbol; @@ -271,7 +277,7 @@ namespace isc { namespace d2 { break; } -#if defined __cplusplus && 201103L <= __cplusplus +#if 201103L <= YY_CPLUSPLUS // that is emptied. that.state = empty_state; #endif @@ -312,7 +318,7 @@ namespace isc { namespace d2 { that.type = empty_symbol; } -#if !defined __cplusplus || __cplusplus < 201103L +#if YY_CPLUSPLUS < 201103L D2Parser::stack_symbol_type& D2Parser::stack_symbol_type::operator= (stack_symbol_type& that) { @@ -369,65 +375,59 @@ namespace isc { namespace d2 { 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 57: // "constant string" - -#line 116 "d2_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< std::string > (); } -#line 386 "d2_parser.cc" // lalr1.cc:672 + case 57: // "constant string" +#line 116 "d2_parser.yy" + { yyoutput << yysym.value.template as < std::string > (); } +#line 393 "d2_parser.cc" break; case 58: // "integer" - -#line 116 "d2_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< int64_t > (); } -#line 393 "d2_parser.cc" // lalr1.cc:672 +#line 116 "d2_parser.yy" + { yyoutput << yysym.value.template as < int64_t > (); } +#line 399 "d2_parser.cc" break; case 59: // "floating point" - -#line 116 "d2_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< double > (); } -#line 400 "d2_parser.cc" // lalr1.cc:672 +#line 116 "d2_parser.yy" + { yyoutput << yysym.value.template as < double > (); } +#line 405 "d2_parser.cc" break; case 60: // "boolean" - -#line 116 "d2_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< bool > (); } -#line 407 "d2_parser.cc" // lalr1.cc:672 +#line 116 "d2_parser.yy" + { yyoutput << yysym.value.template as < bool > (); } +#line 411 "d2_parser.cc" break; case 72: // value - -#line 116 "d2_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 414 "d2_parser.cc" // lalr1.cc:672 +#line 116 "d2_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 417 "d2_parser.cc" break; case 76: // map_value - -#line 116 "d2_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 421 "d2_parser.cc" // lalr1.cc:672 +#line 116 "d2_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 423 "d2_parser.cc" break; case 100: // ncr_protocol_value - -#line 116 "d2_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 428 "d2_parser.cc" // lalr1.cc:672 +#line 116 "d2_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 429 "d2_parser.cc" break; - default: break; } @@ -446,7 +446,7 @@ namespace isc { namespace d2 { void D2Parser::yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym) { -#if defined __cplusplus && 201103L <= __cplusplus +#if 201103L <= YY_CPLUSPLUS yypush_ (m, stack_symbol_type (s, std::move (sym))); #else stack_symbol_type ss (s, sym); @@ -550,17 +550,22 @@ namespace isc { namespace d2 { yystack_.clear (); 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 << '\n'; // Accept? if (yystack_[0].state == yyfinal_) - goto yyacceptlab; + YYACCEPT; goto yybackup; - // Backup. + + /*-----------. + | yybackup. | + `-----------*/ yybackup: // Try to take a decision without lookahead. yyn = yypact_[yystack_[0].state]; @@ -581,6 +586,7 @@ namespace isc { namespace d2 { #if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); goto yyerrlab1; } @@ -612,6 +618,7 @@ namespace isc { namespace d2 { yypush_ ("Shifting", yyn, YY_MOVE (yyla)); goto yynewstate; + /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ @@ -621,8 +628,9 @@ namespace isc { namespace d2 { goto yyerrlab; goto yyreduce; + /*-----------------------------. - | yyreduce -- Do a reduction. | + | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: yylen = yyr2_[yyn]; @@ -663,8 +671,8 @@ namespace isc { namespace d2 { // 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; } @@ -677,364 +685,364 @@ namespace isc { namespace d2 { switch (yyn) { case 2: -#line 125 "d2_parser.yy" // lalr1.cc:907 +#line 125 "d2_parser.yy" { ctx.ctx_ = ctx.NO_KEYWORD; } -#line 683 "d2_parser.cc" // lalr1.cc:907 +#line 691 "d2_parser.cc" break; case 4: -#line 126 "d2_parser.yy" // lalr1.cc:907 +#line 126 "d2_parser.yy" { ctx.ctx_ = ctx.CONFIG; } -#line 689 "d2_parser.cc" // lalr1.cc:907 +#line 697 "d2_parser.cc" break; case 6: -#line 127 "d2_parser.yy" // lalr1.cc:907 +#line 127 "d2_parser.yy" { ctx.ctx_ = ctx.DHCPDDNS; } -#line 695 "d2_parser.cc" // lalr1.cc:907 +#line 703 "d2_parser.cc" break; case 8: -#line 128 "d2_parser.yy" // lalr1.cc:907 +#line 128 "d2_parser.yy" { ctx.ctx_ = ctx.TSIG_KEY; } -#line 701 "d2_parser.cc" // lalr1.cc:907 +#line 709 "d2_parser.cc" break; case 10: -#line 129 "d2_parser.yy" // lalr1.cc:907 +#line 129 "d2_parser.yy" { ctx.ctx_ = ctx.TSIG_KEYS; } -#line 707 "d2_parser.cc" // lalr1.cc:907 +#line 715 "d2_parser.cc" break; case 12: -#line 130 "d2_parser.yy" // lalr1.cc:907 +#line 130 "d2_parser.yy" { ctx.ctx_ = ctx.DDNS_DOMAIN; } -#line 713 "d2_parser.cc" // lalr1.cc:907 +#line 721 "d2_parser.cc" break; case 14: -#line 131 "d2_parser.yy" // lalr1.cc:907 +#line 131 "d2_parser.yy" { ctx.ctx_ = ctx.DDNS_DOMAINS; } -#line 719 "d2_parser.cc" // lalr1.cc:907 +#line 727 "d2_parser.cc" break; case 16: -#line 132 "d2_parser.yy" // lalr1.cc:907 +#line 132 "d2_parser.yy" { ctx.ctx_ = ctx.DNS_SERVERS; } -#line 725 "d2_parser.cc" // lalr1.cc:907 +#line 733 "d2_parser.cc" break; case 18: -#line 133 "d2_parser.yy" // lalr1.cc:907 +#line 133 "d2_parser.yy" { ctx.ctx_ = ctx.DNS_SERVERS; } -#line 731 "d2_parser.cc" // lalr1.cc:907 +#line 739 "d2_parser.cc" break; case 20: -#line 141 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); } -#line 737 "d2_parser.cc" // lalr1.cc:907 +#line 141 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); } +#line 745 "d2_parser.cc" break; case 21: -#line 142 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); } -#line 743 "d2_parser.cc" // lalr1.cc:907 +#line 142 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); } +#line 751 "d2_parser.cc" break; case 22: -#line 143 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); } -#line 749 "d2_parser.cc" // lalr1.cc:907 +#line 143 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); } +#line 757 "d2_parser.cc" break; case 23: -#line 144 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); } -#line 755 "d2_parser.cc" // lalr1.cc:907 +#line 144 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); } +#line 763 "d2_parser.cc" break; case 24: -#line 145 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } -#line 761 "d2_parser.cc" // lalr1.cc:907 +#line 145 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } +#line 769 "d2_parser.cc" break; case 25: -#line 146 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 767 "d2_parser.cc" // lalr1.cc:907 +#line 146 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 775 "d2_parser.cc" break; case 26: -#line 147 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 773 "d2_parser.cc" // lalr1.cc:907 +#line 147 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 781 "d2_parser.cc" break; case 27: -#line 150 "d2_parser.yy" // lalr1.cc:907 +#line 150 "d2_parser.yy" { // 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 782 "d2_parser.cc" // lalr1.cc:907 +#line 790 "d2_parser.cc" break; case 28: -#line 155 "d2_parser.yy" // lalr1.cc:907 +#line 155 "d2_parser.yy" { // 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 793 "d2_parser.cc" // lalr1.cc:907 +#line 801 "d2_parser.cc" break; case 29: -#line 160 "d2_parser.yy" // lalr1.cc:907 +#line 160 "d2_parser.yy" { // 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 803 "d2_parser.cc" // lalr1.cc:907 +#line 811 "d2_parser.cc" break; case 30: -#line 166 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 809 "d2_parser.cc" // lalr1.cc:907 +#line 166 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 817 "d2_parser.cc" break; case 33: -#line 173 "d2_parser.yy" // lalr1.cc:907 +#line 173 "d2_parser.yy" { // 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 818 "d2_parser.cc" // lalr1.cc:907 +#line 826 "d2_parser.cc" break; case 34: -#line 177 "d2_parser.yy" // lalr1.cc:907 +#line 177 "d2_parser.yy" { // 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 828 "d2_parser.cc" // lalr1.cc:907 +#line 836 "d2_parser.cc" break; case 35: -#line 184 "d2_parser.yy" // lalr1.cc:907 +#line 184 "d2_parser.yy" { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(l); } -#line 837 "d2_parser.cc" // lalr1.cc:907 +#line 845 "d2_parser.cc" break; case 36: -#line 187 "d2_parser.yy" // lalr1.cc:907 +#line 187 "d2_parser.yy" { // list parsing complete. Put any sanity checking here } -#line 845 "d2_parser.cc" // lalr1.cc:907 +#line 853 "d2_parser.cc" break; case 39: -#line 195 "d2_parser.yy" // lalr1.cc:907 +#line 195 "d2_parser.yy" { // 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 854 "d2_parser.cc" // lalr1.cc:907 +#line 862 "d2_parser.cc" break; case 40: -#line 199 "d2_parser.yy" // lalr1.cc:907 +#line 199 "d2_parser.yy" { // 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 863 "d2_parser.cc" // lalr1.cc:907 +#line 871 "d2_parser.cc" break; case 41: -#line 210 "d2_parser.yy" // lalr1.cc:907 +#line 210 "d2_parser.yy" { 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 874 "d2_parser.cc" // lalr1.cc:907 +#line 882 "d2_parser.cc" break; case 42: -#line 220 "d2_parser.yy" // lalr1.cc:907 +#line 220 "d2_parser.yy" { // 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 885 "d2_parser.cc" // lalr1.cc:907 +#line 893 "d2_parser.cc" break; case 43: -#line 225 "d2_parser.yy" // lalr1.cc:907 +#line 225 "d2_parser.yy" { // 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 895 "d2_parser.cc" // lalr1.cc:907 +#line 903 "d2_parser.cc" break; case 52: -#line 247 "d2_parser.yy" // lalr1.cc:907 +#line 247 "d2_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("DhcpDdns", m); ctx.stack_.push_back(m); ctx.enter(ctx.DHCPDDNS); } -#line 906 "d2_parser.cc" // lalr1.cc:907 +#line 914 "d2_parser.cc" break; case 53: -#line 252 "d2_parser.yy" // lalr1.cc:907 +#line 252 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 915 "d2_parser.cc" // lalr1.cc:907 +#line 923 "d2_parser.cc" break; case 54: -#line 257 "d2_parser.yy" // lalr1.cc:907 +#line 257 "d2_parser.yy" { // Parse the dhcpddns map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 925 "d2_parser.cc" // lalr1.cc:907 +#line 933 "d2_parser.cc" break; case 55: -#line 261 "d2_parser.yy" // lalr1.cc:907 +#line 261 "d2_parser.yy" { // parsing completed } -#line 933 "d2_parser.cc" // lalr1.cc:907 +#line 941 "d2_parser.cc" break; case 71: -#line 285 "d2_parser.yy" // lalr1.cc:907 +#line 285 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 941 "d2_parser.cc" // lalr1.cc:907 +#line 949 "d2_parser.cc" break; case 72: -#line 287 "d2_parser.yy" // lalr1.cc:907 +#line 287 "d2_parser.yy" { - 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("ip-address", s); ctx.leave(); } -#line 951 "d2_parser.cc" // lalr1.cc:907 +#line 959 "d2_parser.cc" break; case 73: -#line 293 "d2_parser.yy" // lalr1.cc:907 +#line 293 "d2_parser.yy" { - if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65536 ) { + if (yystack_[0].value.as < int64_t > () <= 0 || yystack_[0].value.as < int64_t > () >= 65536 ) { error(yystack_[0].location, "port must be greater than zero but less than 65536"); } - 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("port", i); } -#line 963 "d2_parser.cc" // lalr1.cc:907 +#line 971 "d2_parser.cc" break; case 74: -#line 301 "d2_parser.yy" // lalr1.cc:907 +#line 301 "d2_parser.yy" { - if (yystack_[0].value.as< int64_t > () <= 0) { + if (yystack_[0].value.as < int64_t > () <= 0) { error(yystack_[0].location, "dns-server-timeout must be greater than zero"); } else { - 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("dns-server-timeout", i); } } -#line 976 "d2_parser.cc" // lalr1.cc:907 +#line 984 "d2_parser.cc" break; case 75: -#line 310 "d2_parser.yy" // lalr1.cc:907 +#line 310 "d2_parser.yy" { ctx.enter(ctx.NCR_PROTOCOL); } -#line 984 "d2_parser.cc" // lalr1.cc:907 +#line 992 "d2_parser.cc" break; case 76: -#line 312 "d2_parser.yy" // lalr1.cc:907 +#line 312 "d2_parser.yy" { - 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 993 "d2_parser.cc" // lalr1.cc:907 +#line 1001 "d2_parser.cc" break; case 77: -#line 318 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } -#line 999 "d2_parser.cc" // lalr1.cc:907 +#line 318 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } +#line 1007 "d2_parser.cc" break; case 78: -#line 319 "d2_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } -#line 1005 "d2_parser.cc" // lalr1.cc:907 +#line 319 "d2_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } +#line 1013 "d2_parser.cc" break; case 79: -#line 322 "d2_parser.yy" // lalr1.cc:907 +#line 322 "d2_parser.yy" { ctx.enter(ctx.NCR_FORMAT); } -#line 1013 "d2_parser.cc" // lalr1.cc:907 +#line 1021 "d2_parser.cc" break; case 80: -#line 324 "d2_parser.yy" // lalr1.cc:907 +#line 324 "d2_parser.yy" { ElementPtr json(new StringElement("JSON", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("ncr-format", json); ctx.leave(); } -#line 1023 "d2_parser.cc" // lalr1.cc:907 +#line 1031 "d2_parser.cc" break; case 81: -#line 330 "d2_parser.yy" // lalr1.cc:907 +#line 330 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1031 "d2_parser.cc" // lalr1.cc:907 +#line 1039 "d2_parser.cc" break; case 82: -#line 332 "d2_parser.yy" // lalr1.cc:907 +#line 332 "d2_parser.yy" { 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 @@ -1054,23 +1062,23 @@ namespace isc { namespace d2 { parent->set("user-context", user_context); ctx.leave(); } -#line 1058 "d2_parser.cc" // lalr1.cc:907 +#line 1066 "d2_parser.cc" break; case 83: -#line 355 "d2_parser.yy" // lalr1.cc:907 +#line 355 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1066 "d2_parser.cc" // lalr1.cc:907 +#line 1074 "d2_parser.cc" break; case 84: -#line 357 "d2_parser.yy" // lalr1.cc:907 +#line 357 "d2_parser.yy" { 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 @@ -1091,748 +1099,749 @@ namespace isc { namespace d2 { parent->set("user-context", user_context); ctx.leave(); } -#line 1095 "d2_parser.cc" // lalr1.cc:907 +#line 1103 "d2_parser.cc" break; case 85: -#line 382 "d2_parser.yy" // lalr1.cc:907 +#line 382 "d2_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("forward-ddns", m); ctx.stack_.push_back(m); ctx.enter(ctx.FORWARD_DDNS); } -#line 1106 "d2_parser.cc" // lalr1.cc:907 +#line 1114 "d2_parser.cc" break; case 86: -#line 387 "d2_parser.yy" // lalr1.cc:907 +#line 387 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1115 "d2_parser.cc" // lalr1.cc:907 +#line 1123 "d2_parser.cc" break; case 87: -#line 392 "d2_parser.yy" // lalr1.cc:907 +#line 392 "d2_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("reverse-ddns", m); ctx.stack_.push_back(m); ctx.enter(ctx.REVERSE_DDNS); } -#line 1126 "d2_parser.cc" // lalr1.cc:907 +#line 1134 "d2_parser.cc" break; case 88: -#line 397 "d2_parser.yy" // lalr1.cc:907 +#line 397 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1135 "d2_parser.cc" // lalr1.cc:907 +#line 1143 "d2_parser.cc" break; case 95: -#line 416 "d2_parser.yy" // lalr1.cc:907 +#line 416 "d2_parser.yy" { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("ddns-domains", l); ctx.stack_.push_back(l); ctx.enter(ctx.DDNS_DOMAINS); } -#line 1146 "d2_parser.cc" // lalr1.cc:907 +#line 1154 "d2_parser.cc" break; case 96: -#line 421 "d2_parser.yy" // lalr1.cc:907 +#line 421 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1155 "d2_parser.cc" // lalr1.cc:907 +#line 1163 "d2_parser.cc" break; case 97: -#line 426 "d2_parser.yy" // lalr1.cc:907 +#line 426 "d2_parser.yy" { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(l); } -#line 1164 "d2_parser.cc" // lalr1.cc:907 +#line 1172 "d2_parser.cc" break; case 98: -#line 429 "d2_parser.yy" // lalr1.cc:907 +#line 429 "d2_parser.yy" { // parsing completed } -#line 1172 "d2_parser.cc" // lalr1.cc:907 +#line 1180 "d2_parser.cc" break; case 103: -#line 441 "d2_parser.yy" // lalr1.cc:907 +#line 441 "d2_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1182 "d2_parser.cc" // lalr1.cc:907 +#line 1190 "d2_parser.cc" break; case 104: -#line 445 "d2_parser.yy" // lalr1.cc:907 +#line 445 "d2_parser.yy" { ctx.stack_.pop_back(); } -#line 1190 "d2_parser.cc" // lalr1.cc:907 +#line 1198 "d2_parser.cc" break; case 105: -#line 449 "d2_parser.yy" // lalr1.cc:907 +#line 449 "d2_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1199 "d2_parser.cc" // lalr1.cc:907 +#line 1207 "d2_parser.cc" break; case 106: -#line 452 "d2_parser.yy" // lalr1.cc:907 +#line 452 "d2_parser.yy" { // parsing completed } -#line 1207 "d2_parser.cc" // lalr1.cc:907 +#line 1215 "d2_parser.cc" break; case 115: -#line 469 "d2_parser.yy" // lalr1.cc:907 +#line 469 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1215 "d2_parser.cc" // lalr1.cc:907 +#line 1223 "d2_parser.cc" break; case 116: -#line 471 "d2_parser.yy" // lalr1.cc:907 +#line 471 "d2_parser.yy" { - if (yystack_[0].value.as< std::string > () == "") { + if (yystack_[0].value.as < std::string > () == "") { error(yystack_[1].location, "Ddns domain name cannot be blank"); } - ElementPtr elem(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))); + ElementPtr elem(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 1229 "d2_parser.cc" // lalr1.cc:907 +#line 1237 "d2_parser.cc" break; case 117: -#line 481 "d2_parser.yy" // lalr1.cc:907 +#line 481 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1237 "d2_parser.cc" // lalr1.cc:907 +#line 1245 "d2_parser.cc" break; case 118: -#line 483 "d2_parser.yy" // lalr1.cc:907 +#line 483 "d2_parser.yy" { - ElementPtr elem(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))); + ElementPtr elem(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("key-name", name); ctx.leave(); } -#line 1248 "d2_parser.cc" // lalr1.cc:907 +#line 1256 "d2_parser.cc" break; case 119: -#line 493 "d2_parser.yy" // lalr1.cc:907 +#line 493 "d2_parser.yy" { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("dns-servers", l); ctx.stack_.push_back(l); ctx.enter(ctx.DNS_SERVERS); } -#line 1259 "d2_parser.cc" // lalr1.cc:907 +#line 1267 "d2_parser.cc" break; case 120: -#line 498 "d2_parser.yy" // lalr1.cc:907 +#line 498 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1268 "d2_parser.cc" // lalr1.cc:907 +#line 1276 "d2_parser.cc" break; case 121: -#line 503 "d2_parser.yy" // lalr1.cc:907 +#line 503 "d2_parser.yy" { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(l); } -#line 1277 "d2_parser.cc" // lalr1.cc:907 +#line 1285 "d2_parser.cc" break; case 122: -#line 506 "d2_parser.yy" // lalr1.cc:907 +#line 506 "d2_parser.yy" { // parsing completed } -#line 1285 "d2_parser.cc" // lalr1.cc:907 +#line 1293 "d2_parser.cc" break; case 125: -#line 514 "d2_parser.yy" // lalr1.cc:907 +#line 514 "d2_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1295 "d2_parser.cc" // lalr1.cc:907 +#line 1303 "d2_parser.cc" break; case 126: -#line 518 "d2_parser.yy" // lalr1.cc:907 +#line 518 "d2_parser.yy" { ctx.stack_.pop_back(); } -#line 1303 "d2_parser.cc" // lalr1.cc:907 +#line 1311 "d2_parser.cc" break; case 127: -#line 522 "d2_parser.yy" // lalr1.cc:907 +#line 522 "d2_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1312 "d2_parser.cc" // lalr1.cc:907 +#line 1320 "d2_parser.cc" break; case 128: -#line 525 "d2_parser.yy" // lalr1.cc:907 +#line 525 "d2_parser.yy" { // parsing completed } -#line 1320 "d2_parser.cc" // lalr1.cc:907 +#line 1328 "d2_parser.cc" break; case 137: -#line 541 "d2_parser.yy" // lalr1.cc:907 +#line 541 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1328 "d2_parser.cc" // lalr1.cc:907 +#line 1336 "d2_parser.cc" break; case 138: -#line 543 "d2_parser.yy" // lalr1.cc:907 +#line 543 "d2_parser.yy" { - if (yystack_[0].value.as< std::string > () != "") { + if (yystack_[0].value.as < std::string > () != "") { error(yystack_[1].location, "hostname is not yet supported"); } - ElementPtr elem(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))); + ElementPtr elem(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("hostname", name); ctx.leave(); } -#line 1342 "d2_parser.cc" // lalr1.cc:907 +#line 1350 "d2_parser.cc" break; case 139: -#line 553 "d2_parser.yy" // lalr1.cc:907 +#line 553 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1350 "d2_parser.cc" // lalr1.cc:907 +#line 1358 "d2_parser.cc" break; case 140: -#line 555 "d2_parser.yy" // lalr1.cc:907 +#line 555 "d2_parser.yy" { - 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("ip-address", s); ctx.leave(); } -#line 1360 "d2_parser.cc" // lalr1.cc:907 +#line 1368 "d2_parser.cc" break; case 141: -#line 561 "d2_parser.yy" // lalr1.cc:907 +#line 561 "d2_parser.yy" { - if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65536 ) { + if (yystack_[0].value.as < int64_t > () <= 0 || yystack_[0].value.as < int64_t > () >= 65536 ) { error(yystack_[0].location, "port must be greater than zero but less than 65536"); } - 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("port", i); } -#line 1372 "d2_parser.cc" // lalr1.cc:907 +#line 1380 "d2_parser.cc" break; case 142: -#line 575 "d2_parser.yy" // lalr1.cc:907 +#line 575 "d2_parser.yy" { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("tsig-keys", l); ctx.stack_.push_back(l); ctx.enter(ctx.TSIG_KEYS); } -#line 1383 "d2_parser.cc" // lalr1.cc:907 +#line 1391 "d2_parser.cc" break; case 143: -#line 580 "d2_parser.yy" // lalr1.cc:907 +#line 580 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1392 "d2_parser.cc" // lalr1.cc:907 +#line 1400 "d2_parser.cc" break; case 144: -#line 585 "d2_parser.yy" // lalr1.cc:907 +#line 585 "d2_parser.yy" { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(l); } -#line 1401 "d2_parser.cc" // lalr1.cc:907 +#line 1409 "d2_parser.cc" break; case 145: -#line 588 "d2_parser.yy" // lalr1.cc:907 +#line 588 "d2_parser.yy" { // parsing completed } -#line 1409 "d2_parser.cc" // lalr1.cc:907 +#line 1417 "d2_parser.cc" break; case 150: -#line 600 "d2_parser.yy" // lalr1.cc:907 +#line 600 "d2_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1419 "d2_parser.cc" // lalr1.cc:907 +#line 1427 "d2_parser.cc" break; case 151: -#line 604 "d2_parser.yy" // lalr1.cc:907 +#line 604 "d2_parser.yy" { ctx.stack_.pop_back(); } -#line 1427 "d2_parser.cc" // lalr1.cc:907 +#line 1435 "d2_parser.cc" break; case 152: -#line 608 "d2_parser.yy" // lalr1.cc:907 +#line 608 "d2_parser.yy" { // Parse tsig key list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1437 "d2_parser.cc" // lalr1.cc:907 +#line 1445 "d2_parser.cc" break; case 153: -#line 612 "d2_parser.yy" // lalr1.cc:907 +#line 612 "d2_parser.yy" { // parsing completed } -#line 1445 "d2_parser.cc" // lalr1.cc:907 +#line 1453 "d2_parser.cc" break; case 163: -#line 630 "d2_parser.yy" // lalr1.cc:907 +#line 630 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1453 "d2_parser.cc" // lalr1.cc:907 +#line 1461 "d2_parser.cc" break; case 164: -#line 632 "d2_parser.yy" // lalr1.cc:907 +#line 632 "d2_parser.yy" { - if (yystack_[0].value.as< std::string > () == "") { + if (yystack_[0].value.as < std::string > () == "") { error(yystack_[1].location, "TSIG key name cannot be blank"); } - ElementPtr elem(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))); + ElementPtr elem(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 1467 "d2_parser.cc" // lalr1.cc:907 +#line 1475 "d2_parser.cc" break; case 165: -#line 642 "d2_parser.yy" // lalr1.cc:907 +#line 642 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1475 "d2_parser.cc" // lalr1.cc:907 +#line 1483 "d2_parser.cc" break; case 166: -#line 644 "d2_parser.yy" // lalr1.cc:907 +#line 644 "d2_parser.yy" { - if (yystack_[0].value.as< std::string > () == "") { + if (yystack_[0].value.as < std::string > () == "") { error(yystack_[1].location, "TSIG key algorithm cannot be blank"); } - ElementPtr elem(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr elem(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("algorithm", elem); ctx.leave(); } -#line 1488 "d2_parser.cc" // lalr1.cc:907 +#line 1496 "d2_parser.cc" break; case 167: -#line 653 "d2_parser.yy" // lalr1.cc:907 +#line 653 "d2_parser.yy" { - if (yystack_[0].value.as< int64_t > () < 0 || (yystack_[0].value.as< int64_t > () > 0 && (yystack_[0].value.as< int64_t > () % 8 != 0))) { + if (yystack_[0].value.as < int64_t > () < 0 || (yystack_[0].value.as < int64_t > () > 0 && (yystack_[0].value.as < int64_t > () % 8 != 0))) { error(yystack_[0].location, "TSIG key digest-bits must either be zero or a positive, multiple of eight"); } - ElementPtr elem(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr elem(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("digest-bits", elem); } -#line 1500 "d2_parser.cc" // lalr1.cc:907 +#line 1508 "d2_parser.cc" break; case 168: -#line 661 "d2_parser.yy" // lalr1.cc:907 +#line 661 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1508 "d2_parser.cc" // lalr1.cc:907 +#line 1516 "d2_parser.cc" break; case 169: -#line 663 "d2_parser.yy" // lalr1.cc:907 +#line 663 "d2_parser.yy" { - if (yystack_[0].value.as< std::string > () == "") { + if (yystack_[0].value.as < std::string > () == "") { error(yystack_[1].location, "TSIG key secret cannot be blank"); } - ElementPtr elem(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); + ElementPtr elem(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("secret", elem); ctx.leave(); } -#line 1521 "d2_parser.cc" // lalr1.cc:907 +#line 1529 "d2_parser.cc" break; case 170: -#line 677 "d2_parser.yy" // lalr1.cc:907 +#line 677 "d2_parser.yy" { 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 1532 "d2_parser.cc" // lalr1.cc:907 +#line 1540 "d2_parser.cc" break; case 171: -#line 682 "d2_parser.yy" // lalr1.cc:907 +#line 682 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1541 "d2_parser.cc" // lalr1.cc:907 +#line 1549 "d2_parser.cc" break; case 179: -#line 698 "d2_parser.yy" // lalr1.cc:907 +#line 698 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1549 "d2_parser.cc" // lalr1.cc:907 +#line 1557 "d2_parser.cc" break; case 180: -#line 700 "d2_parser.yy" // lalr1.cc:907 +#line 700 "d2_parser.yy" { - 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 1559 "d2_parser.cc" // lalr1.cc:907 +#line 1567 "d2_parser.cc" break; case 181: -#line 706 "d2_parser.yy" // lalr1.cc:907 +#line 706 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1567 "d2_parser.cc" // lalr1.cc:907 +#line 1575 "d2_parser.cc" break; case 182: -#line 708 "d2_parser.yy" // lalr1.cc:907 +#line 708 "d2_parser.yy" { - 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 1577 "d2_parser.cc" // lalr1.cc:907 +#line 1585 "d2_parser.cc" break; case 183: -#line 716 "d2_parser.yy" // lalr1.cc:907 +#line 716 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1585 "d2_parser.cc" // lalr1.cc:907 +#line 1593 "d2_parser.cc" break; case 184: -#line 718 "d2_parser.yy" // lalr1.cc:907 +#line 718 "d2_parser.yy" { - ctx.stack_.back()->set("Dhcp6", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("Dhcp6", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1594 "d2_parser.cc" // lalr1.cc:907 +#line 1602 "d2_parser.cc" break; case 185: -#line 723 "d2_parser.yy" // lalr1.cc:907 +#line 723 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1602 "d2_parser.cc" // lalr1.cc:907 +#line 1610 "d2_parser.cc" break; case 186: -#line 725 "d2_parser.yy" // lalr1.cc:907 +#line 725 "d2_parser.yy" { - ctx.stack_.back()->set("Dhcp4", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("Dhcp4", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1611 "d2_parser.cc" // lalr1.cc:907 +#line 1619 "d2_parser.cc" break; case 187: -#line 730 "d2_parser.yy" // lalr1.cc:907 +#line 730 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1619 "d2_parser.cc" // lalr1.cc:907 +#line 1627 "d2_parser.cc" break; case 188: -#line 732 "d2_parser.yy" // lalr1.cc:907 +#line 732 "d2_parser.yy" { - 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 1628 "d2_parser.cc" // lalr1.cc:907 +#line 1636 "d2_parser.cc" break; case 189: -#line 742 "d2_parser.yy" // lalr1.cc:907 +#line 742 "d2_parser.yy" { 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 1639 "d2_parser.cc" // lalr1.cc:907 +#line 1647 "d2_parser.cc" break; case 190: -#line 747 "d2_parser.yy" // lalr1.cc:907 +#line 747 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1648 "d2_parser.cc" // lalr1.cc:907 +#line 1656 "d2_parser.cc" break; case 194: -#line 764 "d2_parser.yy" // lalr1.cc:907 +#line 764 "d2_parser.yy" { 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 1659 "d2_parser.cc" // lalr1.cc:907 +#line 1667 "d2_parser.cc" break; case 195: -#line 769 "d2_parser.yy" // lalr1.cc:907 +#line 769 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1668 "d2_parser.cc" // lalr1.cc:907 +#line 1676 "d2_parser.cc" break; case 198: -#line 781 "d2_parser.yy" // lalr1.cc:907 +#line 781 "d2_parser.yy" { ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(l); ctx.stack_.push_back(l); } -#line 1678 "d2_parser.cc" // lalr1.cc:907 +#line 1686 "d2_parser.cc" break; case 199: -#line 785 "d2_parser.yy" // lalr1.cc:907 +#line 785 "d2_parser.yy" { ctx.stack_.pop_back(); } -#line 1686 "d2_parser.cc" // lalr1.cc:907 +#line 1694 "d2_parser.cc" break; case 209: -#line 802 "d2_parser.yy" // lalr1.cc:907 +#line 802 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1694 "d2_parser.cc" // lalr1.cc:907 +#line 1702 "d2_parser.cc" break; case 210: -#line 804 "d2_parser.yy" // lalr1.cc:907 +#line 804 "d2_parser.yy" { - 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 1704 "d2_parser.cc" // lalr1.cc:907 +#line 1712 "d2_parser.cc" break; case 211: -#line 810 "d2_parser.yy" // lalr1.cc:907 +#line 810 "d2_parser.yy" { - 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 1713 "d2_parser.cc" // lalr1.cc:907 +#line 1721 "d2_parser.cc" break; case 212: -#line 814 "d2_parser.yy" // lalr1.cc:907 +#line 814 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1721 "d2_parser.cc" // lalr1.cc:907 +#line 1729 "d2_parser.cc" break; case 213: -#line 816 "d2_parser.yy" // lalr1.cc:907 +#line 816 "d2_parser.yy" { - 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 1731 "d2_parser.cc" // lalr1.cc:907 +#line 1739 "d2_parser.cc" break; case 214: -#line 822 "d2_parser.yy" // lalr1.cc:907 +#line 822 "d2_parser.yy" { 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 1742 "d2_parser.cc" // lalr1.cc:907 +#line 1750 "d2_parser.cc" break; case 215: -#line 827 "d2_parser.yy" // lalr1.cc:907 +#line 827 "d2_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1751 "d2_parser.cc" // lalr1.cc:907 +#line 1759 "d2_parser.cc" break; case 218: -#line 836 "d2_parser.yy" // lalr1.cc:907 +#line 836 "d2_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1761 "d2_parser.cc" // lalr1.cc:907 +#line 1769 "d2_parser.cc" break; case 219: -#line 840 "d2_parser.yy" // lalr1.cc:907 +#line 840 "d2_parser.yy" { ctx.stack_.pop_back(); } -#line 1769 "d2_parser.cc" // lalr1.cc:907 +#line 1777 "d2_parser.cc" break; case 227: -#line 855 "d2_parser.yy" // lalr1.cc:907 +#line 855 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1777 "d2_parser.cc" // lalr1.cc:907 +#line 1785 "d2_parser.cc" break; case 228: -#line 857 "d2_parser.yy" // lalr1.cc:907 +#line 857 "d2_parser.yy" { - 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 1787 "d2_parser.cc" // lalr1.cc:907 +#line 1795 "d2_parser.cc" break; case 229: -#line 863 "d2_parser.yy" // lalr1.cc:907 +#line 863 "d2_parser.yy" { - 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 1796 "d2_parser.cc" // lalr1.cc:907 +#line 1804 "d2_parser.cc" break; case 230: -#line 868 "d2_parser.yy" // lalr1.cc:907 +#line 868 "d2_parser.yy" { - 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 1805 "d2_parser.cc" // lalr1.cc:907 +#line 1813 "d2_parser.cc" break; case 231: -#line 873 "d2_parser.yy" // lalr1.cc:907 +#line 873 "d2_parser.yy" { - 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 1814 "d2_parser.cc" // lalr1.cc:907 +#line 1822 "d2_parser.cc" break; case 232: -#line 878 "d2_parser.yy" // lalr1.cc:907 +#line 878 "d2_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1822 "d2_parser.cc" // lalr1.cc:907 +#line 1830 "d2_parser.cc" break; case 233: -#line 880 "d2_parser.yy" // lalr1.cc:907 +#line 880 "d2_parser.yy" { - 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("pattern", sev); ctx.leave(); } -#line 1832 "d2_parser.cc" // lalr1.cc:907 +#line 1840 "d2_parser.cc" break; -#line 1836 "d2_parser.cc" // lalr1.cc:907 +#line 1844 "d2_parser.cc" + default: break; } @@ -1840,6 +1849,7 @@ namespace isc { namespace d2 { #if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); YYERROR; } @@ -1854,6 +1864,7 @@ namespace isc { namespace d2 { } goto yynewstate; + /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ @@ -1890,18 +1901,18 @@ namespace isc { namespace d2 { | 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; + /* 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. | `-------------------------------------------------------------*/ @@ -1942,16 +1953,26 @@ namespace isc { namespace d2 { } 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); @@ -2512,10 +2533,11 @@ namespace isc { namespace d2 { #endif // D2_PARSER_DEBUG -#line 14 "d2_parser.yy" // lalr1.cc:1218 +#line 14 "d2_parser.yy" } } // isc::d2 -#line 2518 "d2_parser.cc" // lalr1.cc:1218 -#line 886 "d2_parser.yy" // lalr1.cc:1219 +#line 2539 "d2_parser.cc" + +#line 886 "d2_parser.yy" void diff --git a/src/bin/d2/d2_parser.h b/src/bin/d2/d2_parser.h index 8f107676c4..07cbc55543 100644 --- a/src/bin/d2/d2_parser.h +++ b/src/bin/d2/d2_parser.h @@ -1,8 +1,8 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// A Bison parser, made by GNU Bison 3.4.1. // Skeleton interface for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015, 2018 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 @@ -44,7 +44,7 @@ #ifndef YY_D2_PARSER_D2_PARSER_H_INCLUDED # define YY_D2_PARSER_D2_PARSER_H_INCLUDED // // "%code requires" blocks. -#line 17 "d2_parser.yy" // lalr1.cc:404 +#line 17 "d2_parser.yy" #include #include @@ -56,7 +56,7 @@ using namespace isc::d2; using namespace isc::data; using namespace std; -#line 60 "d2_parser.h" // lalr1.cc:404 +#line 60 "d2_parser.h" # include # include // std::abort @@ -65,8 +65,14 @@ using namespace std; # include # include +#if defined __cplusplus +# define YY_CPLUSPLUS __cplusplus +#else +# define YY_CPLUSPLUS 199711L +#endif + // Support move semantics when possible. -#if defined __cplusplus && 201103L <= __cplusplus +#if 201103L <= YY_CPLUSPLUS # define YY_MOVE std::move # define YY_MOVE_OR_COPY move # define YY_MOVE_REF(Type) Type&& @@ -79,6 +85,22 @@ using namespace std; # 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 @@ -156,193 +178,80 @@ using namespace std; # endif /* ! defined YYDEBUG */ #endif /* ! defined D2_PARSER_DEBUG */ -#line 14 "d2_parser.yy" // lalr1.cc:404 +#line 14 "d2_parser.yy" namespace isc { namespace d2 { -#line 162 "d2_parser.h" // lalr1.cc:404 - - /// 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); - } - - void - pop (int n = 1) - { - for (; 0 < n; --n) - seq_.pop_back (); - } - - void - clear () - { - seq_.clear (); - } - - size_type - size () const - { - return seq_.size (); - } +#line 184 "d2_parser.h" - const_iterator - begin () const - { - return seq_.rbegin (); - } - 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 + /// A Bison parser. + class D2Parser { public: - slice (const S& stack, int range) - : stack_ (stack) - , range_ (range) - {} - - const T& - operator[] (int i) const - { - return stack_[range_ - i]; - } - - private: - const S& stack_; - int range_; - }; - - - - /// A char[S] buffer to store and retrieve objects. +#ifndef D2_PARSER_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 () + semantic_type () YY_NOEXCEPT : yybuffer_ () , yytypeid_ (YY_NULLPTR) {} /// Construct and fill. template - variant (YY_RVREF (T) t) + semantic_type (YY_RVREF (T) t) : yytypeid_ (&typeid (T)) { - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); new (yyas_ ()) T (YY_MOVE (t)); } /// Destruction, allowed only if empty. - ~variant () + ~semantic_type () YY_NOEXCEPT { YYASSERT (!yytypeid_); } - /// Instantiate an empty \a T in here. - template +# if 201103L <= YY_CPLUSPLUS + /// Instantiate a \a T in here from \a t. + template T& - emplace () + emplace (U&&... u) { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); - return *new (yyas_ ()) T (); + return *new (yyas_ ()) T (std::forward (u)...); } - -# if defined __cplusplus && 201103L <= __cplusplus - /// Instantiate a \a T in here from \a t. - template +# else + /// Instantiate an empty \a T in here. + template T& - emplace (U&& u) + emplace () { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); - return *new (yyas_ ()) T (std::forward (u)); + return *new (yyas_ ()) T (); } -# else + /// Instantiate a \a T in here from \a t. template T& emplace (const T& t) { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); return *new (yyas_ ()) T (t); } @@ -369,75 +278,75 @@ namespace isc { namespace d2 { /// 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 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& other) + move (self_type& that) { -# if defined __cplusplus && 201103L <= __cplusplus - emplace (std::move (other.as ())); +# if 201103L <= YY_CPLUSPLUS + emplace (std::move (that.as ())); # else emplace (); - swap (other); + swap (that); # endif - other.destroy (); + that.destroy (); } -# if defined __cplusplus && 201103L <= __cplusplus - /// Move the content of \a other to this. +# if 201103L <= YY_CPLUSPLUS + /// Move the content of \a that to this. template void - move (self_type&& other) + move (self_type&& that) { - emplace (std::move (other.as ())); - 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) { - emplace (other.as ()); + emplace (that.as ()); } /// Destroy the stored \a T. @@ -452,12 +361,12 @@ namespace isc { namespace d2 { private: /// Prohibit blind copies. self_type& operator= (const self_type&); - variant (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); @@ -466,30 +375,12 @@ namespace isc { namespace d2 { /// 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 D2Parser - { - public: -#ifndef D2_PARSER_STYPE /// An auxiliary type to compute the largest semantic type. union union_type { @@ -509,10 +400,24 @@ namespace isc { namespace d2 { // "constant 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 D2_PARSER_STYPE semantic_type; #endif @@ -522,7 +427,18 @@ namespace isc { namespace d2 { /// 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; }; @@ -618,29 +534,150 @@ namespace isc { namespace d2 { typedef Base super_type; /// Default constructor. - basic_symbol (); - - /// Move or copy constructor. - basic_symbol (YY_RVREF (basic_symbol) other); + basic_symbol () + : value () + , location () + {} + +#if 201103L <= YY_CPLUSPLUS + /// Move constructor. + basic_symbol (basic_symbol&& that); +#endif + /// Copy constructor. + basic_symbol (const basic_symbol& that); /// Constructor for valueless symbols, and symbols from each type. - basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l); - +#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 /// Destroy the symbol. - ~basic_symbol (); + ~basic_symbol () + { + clear (); + } /// Destroy contents, and record that is empty. - void clear (); + 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 72: // value + case 76: // map_value + case 100: // ncr_protocol_value + value.template destroy< ElementPtr > (); + break; + + case 60: // "boolean" + value.template destroy< bool > (); + break; + + case 59: // "floating point" + value.template destroy< double > (); + break; + + case 58: // "integer" + value.template destroy< int64_t > (); + break; + + case 57: // "constant string" + value.template destroy< std::string > (); + break; + + default: + break; + } + + 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); @@ -652,9 +689,9 @@ namespace isc { namespace d2 { location_type location; private: -#if !defined __cplusplus || __cplusplus < 201103L +#if YY_CPLUSPLUS < 201103L /// Assignment operator. - basic_symbol& operator= (const basic_symbol& other); + basic_symbol& operator= (const basic_symbol& that); #endif }; @@ -664,8 +701,13 @@ namespace isc { namespace d2 { /// 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; @@ -681,10 +723,10 @@ namespace isc { namespace d2 { /// 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. @@ -693,7 +735,81 @@ namespace isc { namespace d2 { }; /// "External" symbols: returned by the scanner. - typedef basic_symbol symbol_type; + struct symbol_type : basic_symbol + { + /// Superclass. + typedef basic_symbol super_type; + + /// Empty symbol. + symbol_type () {} + + /// 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_DHCP4 || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_PORT || tok == token::TOKEN_DNS_SERVER_TIMEOUT || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_UDP || tok == token::TOKEN_TCP || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_JSON || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_FORWARD_DDNS || tok == token::TOKEN_REVERSE_DDNS || tok == token::TOKEN_DDNS_DOMAINS || tok == token::TOKEN_KEY_NAME || tok == token::TOKEN_DNS_SERVERS || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_TSIG_KEYS || tok == token::TOKEN_ALGORITHM || tok == token::TOKEN_DIGEST_BITS || tok == token::TOKEN_SECRET || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_NAME || 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_PATTERN || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCPDDNS || tok == token::TOKEN_SUB_DHCPDDNS || tok == token::TOKEN_SUB_TSIG_KEY || tok == token::TOKEN_SUB_TSIG_KEYS || tok == token::TOKEN_SUB_DDNS_DOMAIN || tok == token::TOKEN_SUB_DDNS_DOMAINS || tok == token::TOKEN_SUB_DNS_SERVER || tok == token::TOKEN_SUB_DNS_SERVERS); + } +#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_DHCP4 || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_PORT || tok == token::TOKEN_DNS_SERVER_TIMEOUT || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_UDP || tok == token::TOKEN_TCP || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_JSON || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_FORWARD_DDNS || tok == token::TOKEN_REVERSE_DDNS || tok == token::TOKEN_DDNS_DOMAINS || tok == token::TOKEN_KEY_NAME || tok == token::TOKEN_DNS_SERVERS || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_TSIG_KEYS || tok == token::TOKEN_ALGORITHM || tok == token::TOKEN_DIGEST_BITS || tok == token::TOKEN_SECRET || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_NAME || 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_PATTERN || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCPDDNS || tok == token::TOKEN_SUB_DHCPDDNS || tok == token::TOKEN_SUB_TSIG_KEY || tok == token::TOKEN_SUB_TSIG_KEYS || tok == token::TOKEN_SUB_DDNS_DOMAIN || tok == token::TOKEN_SUB_DDNS_DOMAINS || tok == token::TOKEN_SUB_DNS_SERVER || tok == token::TOKEN_SUB_DNS_SERVERS); + } +#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 + }; /// Build a parser object. D2Parser (isc::d2::D2ParserContext& ctx_yyarg); @@ -729,243 +845,892 @@ namespace isc { namespace d2 { /// Report a syntax error. void error (const syntax_error& err); - // Symbol constructors declarations. - static - symbol_type - make_END (YY_COPY (location_type) l); - - static - symbol_type - make_COMMA (YY_COPY (location_type) l); - - static - symbol_type - make_COLON (YY_COPY (location_type) l); - - static - symbol_type - make_LSQUARE_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_RSQUARE_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_LCURLY_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_RCURLY_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_NULL_TYPE (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP6 (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP4 (YY_COPY (location_type) l); - - static - symbol_type - make_CONTROL_AGENT (YY_COPY (location_type) l); - - static - symbol_type - make_DHCPDDNS (YY_COPY (location_type) l); - - static - symbol_type - make_IP_ADDRESS (YY_COPY (location_type) l); - - static - symbol_type - make_PORT (YY_COPY (location_type) l); - - static - symbol_type - make_DNS_SERVER_TIMEOUT (YY_COPY (location_type) l); - - static - symbol_type - make_NCR_PROTOCOL (YY_COPY (location_type) l); - - static - symbol_type - make_UDP (YY_COPY (location_type) l); - - static - symbol_type - make_TCP (YY_COPY (location_type) l); - - static - symbol_type - make_NCR_FORMAT (YY_COPY (location_type) l); - - static - symbol_type - make_JSON (YY_COPY (location_type) l); - - static - symbol_type - make_USER_CONTEXT (YY_COPY (location_type) l); - - static - symbol_type - make_COMMENT (YY_COPY (location_type) l); - - static - symbol_type - make_FORWARD_DDNS (YY_COPY (location_type) l); - - static - symbol_type - make_REVERSE_DDNS (YY_COPY (location_type) l); - - static - symbol_type - make_DDNS_DOMAINS (YY_COPY (location_type) l); - - static - symbol_type - make_KEY_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_DNS_SERVERS (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTNAME (YY_COPY (location_type) l); - - static - symbol_type - make_TSIG_KEYS (YY_COPY (location_type) l); - - static - symbol_type - make_ALGORITHM (YY_COPY (location_type) l); - - static - symbol_type - make_DIGEST_BITS (YY_COPY (location_type) l); - - static - symbol_type - make_SECRET (YY_COPY (location_type) l); - - static - symbol_type - make_CONTROL_SOCKET (YY_COPY (location_type) l); - - static - symbol_type - make_SOCKET_TYPE (YY_COPY (location_type) l); - - static - symbol_type - make_SOCKET_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_LOGGING (YY_COPY (location_type) l); - - static - symbol_type - make_LOGGERS (YY_COPY (location_type) l); - - static - symbol_type - make_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_OUTPUT_OPTIONS (YY_COPY (location_type) l); - - static - symbol_type - make_OUTPUT (YY_COPY (location_type) l); - - static - symbol_type - make_DEBUGLEVEL (YY_COPY (location_type) l); - - static - symbol_type - make_SEVERITY (YY_COPY (location_type) l); - - static - symbol_type - make_FLUSH (YY_COPY (location_type) l); - - static - symbol_type - make_MAXSIZE (YY_COPY (location_type) l); - - static - symbol_type - make_MAXVER (YY_COPY (location_type) l); - - static - symbol_type - make_PATTERN (YY_COPY (location_type) l); - - static - symbol_type - make_TOPLEVEL_JSON (YY_COPY (location_type) l); - - static - symbol_type - make_TOPLEVEL_DHCPDDNS (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_DHCPDDNS (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_TSIG_KEY (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_TSIG_KEYS (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_DDNS_DOMAIN (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_DDNS_DOMAINS (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_DNS_SERVER (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_DNS_SERVERS (YY_COPY (location_type) l); - - static - symbol_type - make_STRING (YY_COPY (std::string) v, YY_COPY (location_type) l); - - static - symbol_type - make_INTEGER (YY_COPY (int64_t) v, YY_COPY (location_type) l); - - static - symbol_type - make_FLOAT (YY_COPY (double) v, YY_COPY (location_type) l); - - static - symbol_type - make_BOOLEAN (YY_COPY (bool) v, YY_COPY (location_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 +#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_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_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_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_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_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_DNS_SERVER_TIMEOUT (location_type l) + { + return symbol_type (token::TOKEN_DNS_SERVER_TIMEOUT, std::move (l)); + } +#else + static + symbol_type + make_DNS_SERVER_TIMEOUT (const location_type& l) + { + return symbol_type (token::TOKEN_DNS_SERVER_TIMEOUT, 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_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_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_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_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_FORWARD_DDNS (location_type l) + { + return symbol_type (token::TOKEN_FORWARD_DDNS, std::move (l)); + } +#else + static + symbol_type + make_FORWARD_DDNS (const location_type& l) + { + return symbol_type (token::TOKEN_FORWARD_DDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_REVERSE_DDNS (location_type l) + { + return symbol_type (token::TOKEN_REVERSE_DDNS, std::move (l)); + } +#else + static + symbol_type + make_REVERSE_DDNS (const location_type& l) + { + return symbol_type (token::TOKEN_REVERSE_DDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DDNS_DOMAINS (location_type l) + { + return symbol_type (token::TOKEN_DDNS_DOMAINS, std::move (l)); + } +#else + static + symbol_type + make_DDNS_DOMAINS (const location_type& l) + { + return symbol_type (token::TOKEN_DDNS_DOMAINS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_KEY_NAME (location_type l) + { + return symbol_type (token::TOKEN_KEY_NAME, std::move (l)); + } +#else + static + symbol_type + make_KEY_NAME (const location_type& l) + { + return symbol_type (token::TOKEN_KEY_NAME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DNS_SERVERS (location_type l) + { + return symbol_type (token::TOKEN_DNS_SERVERS, std::move (l)); + } +#else + static + symbol_type + make_DNS_SERVERS (const location_type& l) + { + return symbol_type (token::TOKEN_DNS_SERVERS, 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_TSIG_KEYS (location_type l) + { + return symbol_type (token::TOKEN_TSIG_KEYS, std::move (l)); + } +#else + static + symbol_type + make_TSIG_KEYS (const location_type& l) + { + return symbol_type (token::TOKEN_TSIG_KEYS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_ALGORITHM (location_type l) + { + return symbol_type (token::TOKEN_ALGORITHM, std::move (l)); + } +#else + static + symbol_type + make_ALGORITHM (const location_type& l) + { + return symbol_type (token::TOKEN_ALGORITHM, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_DIGEST_BITS (location_type l) + { + return symbol_type (token::TOKEN_DIGEST_BITS, std::move (l)); + } +#else + static + symbol_type + make_DIGEST_BITS (const location_type& l) + { + return symbol_type (token::TOKEN_DIGEST_BITS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SECRET (location_type l) + { + return symbol_type (token::TOKEN_SECRET, std::move (l)); + } +#else + static + symbol_type + make_SECRET (const location_type& l) + { + return symbol_type (token::TOKEN_SECRET, 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_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_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_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_PATTERN (location_type l) + { + return symbol_type (token::TOKEN_PATTERN, std::move (l)); + } +#else + static + symbol_type + make_PATTERN (const location_type& l) + { + return symbol_type (token::TOKEN_PATTERN, 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_DHCPDDNS (location_type l) + { + return symbol_type (token::TOKEN_TOPLEVEL_DHCPDDNS, std::move (l)); + } +#else + static + symbol_type + make_TOPLEVEL_DHCPDDNS (const location_type& l) + { + return symbol_type (token::TOKEN_TOPLEVEL_DHCPDDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_DHCPDDNS (location_type l) + { + return symbol_type (token::TOKEN_SUB_DHCPDDNS, std::move (l)); + } +#else + static + symbol_type + make_SUB_DHCPDDNS (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_DHCPDDNS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_TSIG_KEY (location_type l) + { + return symbol_type (token::TOKEN_SUB_TSIG_KEY, std::move (l)); + } +#else + static + symbol_type + make_SUB_TSIG_KEY (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_TSIG_KEY, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_TSIG_KEYS (location_type l) + { + return symbol_type (token::TOKEN_SUB_TSIG_KEYS, std::move (l)); + } +#else + static + symbol_type + make_SUB_TSIG_KEYS (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_TSIG_KEYS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_DDNS_DOMAIN (location_type l) + { + return symbol_type (token::TOKEN_SUB_DDNS_DOMAIN, std::move (l)); + } +#else + static + symbol_type + make_SUB_DDNS_DOMAIN (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_DDNS_DOMAIN, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_DDNS_DOMAINS (location_type l) + { + return symbol_type (token::TOKEN_SUB_DDNS_DOMAINS, std::move (l)); + } +#else + static + symbol_type + make_SUB_DDNS_DOMAINS (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_DDNS_DOMAINS, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_DNS_SERVER (location_type l) + { + return symbol_type (token::TOKEN_SUB_DNS_SERVER, std::move (l)); + } +#else + static + symbol_type + make_SUB_DNS_SERVER (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_DNS_SERVER, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_SUB_DNS_SERVERS (location_type l) + { + return symbol_type (token::TOKEN_SUB_DNS_SERVERS, std::move (l)); + } +#else + static + symbol_type + make_SUB_DNS_SERVERS (const location_type& l) + { + return symbol_type (token::TOKEN_SUB_DNS_SERVERS, 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 private: @@ -1073,26 +1838,26 @@ namespace isc { namespace d2 { struct by_state { /// Default constructor. - by_state (); + by_state () YY_NOEXCEPT; /// The symbol type as needed by the constructor. typedef state_type kind_type; /// Constructor. - by_state (kind_type s); + by_state (kind_type s) YY_NOEXCEPT; /// Copy constructor. - by_state (const by_state& other); + by_state (const by_state& that) YY_NOEXCEPT; /// Record that this symbol is empty. - void clear (); + void clear () YY_NOEXCEPT; /// 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; + symbol_number_type type_get () const YY_NOEXCEPT; /// The state number used to denote an empty symbol. enum { empty_state = -1 }; @@ -1113,13 +1878,137 @@ namespace isc { namespace d2 { 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 !defined __cplusplus || __cplusplus < 201103L +#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 }; + /// 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); + } + + /// Pop elements from the stack. + void + pop (int n = 1) YY_NOEXCEPT + { + for (; 0 < n; --n) + seq_.pop_back (); + } + + /// Pop all elements from the stack. + void + clear () YY_NOEXCEPT + { + seq_.clear (); + } + + /// Number of elements on the stack. + size_type + size () const YY_NOEXCEPT + { + return seq_.size (); + } + + /// Iterator on top of the stack (going downwards). + const_iterator + begin () const YY_NOEXCEPT + { + return seq_.rbegin (); + } + + /// Bottom of the stack. + const_iterator + end () const YY_NOEXCEPT + { + return seq_.rend (); + } + + /// 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_; + }; + + private: + stack (const stack&); + stack& operator= (const stack&); + /// The wrapped container. + S seq_; + }; + + /// Stack type. typedef stack stack_type; @@ -1161,16 +2050,17 @@ namespace isc { namespace d2 { isc::d2::D2ParserContext& ctx; }; - // Symbol number corresponding to token number t. inline D2Parser::token_number_type D2Parser::yytranslate_ (token_type t) { + // 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, + 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, @@ -1214,47 +2104,36 @@ namespace isc { namespace d2 { return undef_token_; } - inline - D2Parser::syntax_error::syntax_error (const location_type& l, const std::string& m) - : std::runtime_error (m) - , location (l) - {} - // basic_symbol. +#if 201103L <= YY_CPLUSPLUS template - D2Parser::basic_symbol::basic_symbol () - : value () - , location () - {} - - template - D2Parser::basic_symbol::basic_symbol (YY_RVREF (basic_symbol) other) - : Base (YY_MOVE (other)) + D2Parser::basic_symbol::basic_symbol (basic_symbol&& that) + : Base (std::move (that)) , value () - , location (YY_MOVE (other.location)) + , location (std::move (that.location)) { - switch (other.type_get ()) + switch (this->type_get ()) { case 72: // value case 76: // map_value case 100: // ncr_protocol_value - value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (other.value)); + value.move< ElementPtr > (std::move (that.value)); break; case 60: // "boolean" - value.YY_MOVE_OR_COPY< bool > (YY_MOVE (other.value)); + value.move< bool > (std::move (that.value)); break; case 59: // "floating point" - value.YY_MOVE_OR_COPY< double > (YY_MOVE (other.value)); + value.move< double > (std::move (that.value)); break; case 58: // "integer" - value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (other.value)); + value.move< int64_t > (std::move (that.value)); break; case 57: // "constant string" - value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (other.value)); + value.move< std::string > (std::move (that.value)); break; default: @@ -1262,107 +2141,49 @@ namespace isc { namespace d2 { } } +#endif - - // Implementation of basic_symbol constructor for each type. - template - D2Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l) - : Base (t) - , location (YY_MOVE (l)) - {} - - template - D2Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - D2Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - D2Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - D2Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - D2Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - - - template - D2Parser::basic_symbol::~basic_symbol () - { - clear (); - } - - template - void - D2Parser::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) + template + D2Parser::basic_symbol::basic_symbol (const basic_symbol& that) + : Base (that) + , value () + , location (that.location) + { + switch (this->type_get ()) { case 72: // value case 76: // map_value case 100: // ncr_protocol_value - value.template destroy< ElementPtr > (); + value.copy< ElementPtr > (YY_MOVE (that.value)); break; case 60: // "boolean" - value.template destroy< bool > (); + value.copy< bool > (YY_MOVE (that.value)); break; case 59: // "floating point" - value.template destroy< double > (); + value.copy< double > (YY_MOVE (that.value)); break; case 58: // "integer" - value.template destroy< int64_t > (); + value.copy< int64_t > (YY_MOVE (that.value)); break; case 57: // "constant string" - value.template destroy< std::string > (); + value.copy< std::string > (YY_MOVE (that.value)); break; default: break; } - Base::clear (); } + + template bool - D2Parser::basic_symbol::empty () const + D2Parser::basic_symbol::empty () const YY_NOEXCEPT { return Base::type_get () == empty_symbol; } @@ -1409,9 +2230,18 @@ namespace isc { namespace d2 { : type (empty_symbol) {} +#if 201103L <= YY_CPLUSPLUS + inline + D2Parser::by_type::by_type (by_type&& that) + : type (that.type) + { + that.clear (); + } +#endif + inline - D2Parser::by_type::by_type (const by_type& other) - : type (other.type) + D2Parser::by_type::by_type (const by_type& that) + : type (that.type) {} inline @@ -1436,14 +2266,14 @@ namespace isc { namespace d2 { inline int - D2Parser::by_type::type_get () const + D2Parser::by_type::type_get () const YY_NOEXCEPT { return type; } inline D2Parser::token_type - D2Parser::by_type::token () const + D2Parser::by_type::token () const YY_NOEXCEPT { // YYTOKNUM[NUM] -- (External) token number corresponding to the // (internal) symbol number NUM (which must be that of a token). */ @@ -1459,427 +2289,13 @@ namespace isc { namespace d2 { 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315 }; - return static_cast (yytoken_number_[type]); - } - - // Implementation of make_symbol for each symbol type. - inline - D2Parser::symbol_type - D2Parser::make_END (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_END, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_COMMA (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_COMMA, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_COLON (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_COLON, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_LSQUARE_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LSQUARE_BRACKET, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_RSQUARE_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RSQUARE_BRACKET, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_LCURLY_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LCURLY_BRACKET, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_RCURLY_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RCURLY_BRACKET, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_NULL_TYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NULL_TYPE, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_DHCP6 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP6, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_DHCP4 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP4, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_CONTROL_AGENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONTROL_AGENT, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_DHCPDDNS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCPDDNS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_IP_ADDRESS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_IP_ADDRESS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_PORT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PORT, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_DNS_SERVER_TIMEOUT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DNS_SERVER_TIMEOUT, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_NCR_PROTOCOL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NCR_PROTOCOL, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_UDP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_UDP, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_TCP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TCP, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_NCR_FORMAT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NCR_FORMAT, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_JSON (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_JSON, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_USER_CONTEXT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_USER_CONTEXT, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_COMMENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_COMMENT, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_FORWARD_DDNS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_FORWARD_DDNS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_REVERSE_DDNS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_REVERSE_DDNS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_DDNS_DOMAINS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DDNS_DOMAINS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_KEY_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_KEY_NAME, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_DNS_SERVERS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DNS_SERVERS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_HOSTNAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTNAME, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_TSIG_KEYS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TSIG_KEYS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_ALGORITHM (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ALGORITHM, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_DIGEST_BITS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DIGEST_BITS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SECRET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SECRET, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_CONTROL_SOCKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONTROL_SOCKET, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SOCKET_TYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SOCKET_TYPE, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SOCKET_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SOCKET_NAME, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_LOGGING (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LOGGING, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_LOGGERS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LOGGERS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NAME, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_OUTPUT_OPTIONS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OUTPUT_OPTIONS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_OUTPUT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OUTPUT, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_DEBUGLEVEL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DEBUGLEVEL, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SEVERITY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SEVERITY, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_FLUSH (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_FLUSH, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_MAXSIZE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAXSIZE, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_MAXVER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAXVER, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_PATTERN (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PATTERN, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_TOPLEVEL_JSON (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TOPLEVEL_JSON, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_TOPLEVEL_DHCPDDNS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TOPLEVEL_DHCPDDNS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SUB_DHCPDDNS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_DHCPDDNS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SUB_TSIG_KEY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_TSIG_KEY, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SUB_TSIG_KEYS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_TSIG_KEYS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SUB_DDNS_DOMAIN (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_DDNS_DOMAIN, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SUB_DDNS_DOMAINS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_DDNS_DOMAINS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SUB_DNS_SERVER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_DNS_SERVER, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_SUB_DNS_SERVERS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_DNS_SERVERS, YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_STRING (YY_COPY (std::string) v, YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_STRING, YY_MOVE (v), YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_INTEGER (YY_COPY (int64_t) v, YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_INTEGER, YY_MOVE (v), YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_FLOAT (YY_COPY (double) v, YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_FLOAT, YY_MOVE (v), YY_MOVE (l)); - } - - inline - D2Parser::symbol_type - D2Parser::make_BOOLEAN (YY_COPY (bool) v, YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_BOOLEAN, YY_MOVE (v), YY_MOVE (l)); + return token_type (yytoken_number_[type]); } - -#line 14 "d2_parser.yy" // lalr1.cc:404 +#line 14 "d2_parser.yy" } } // isc::d2 -#line 1883 "d2_parser.h" // lalr1.cc:404 +#line 2298 "d2_parser.h" + diff --git a/src/bin/d2/location.hh b/src/bin/d2/location.hh index fd43145f26..f0143ba749 100644 --- a/src/bin/d2/location.hh +++ b/src/bin/d2/location.hh @@ -1,8 +1,9 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// Generated 201908191238 +// A Bison parser, made by GNU Bison 3.4.1. // Locations for Bison parsers in C++ -// Copyright (C) 2002-2015, 2018 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 @@ -54,9 +55,10 @@ # endif # endif -#line 14 "d2_parser.yy" // location.cc:339 +#line 14 "d2_parser.yy" namespace isc { namespace d2 { -#line 60 "location.hh" // location.cc:339 +#line 60 "location.hh" + /// A point in a source file. class position { @@ -316,7 +318,8 @@ namespace isc { namespace d2 { return ostr; } -#line 14 "d2_parser.yy" // location.cc:339 +#line 14 "d2_parser.yy" } } // isc::d2 -#line 322 "location.hh" // location.cc:339 +#line 323 "location.hh" + #endif // !YY_D2_PARSER_LOCATION_HH_INCLUDED diff --git a/src/bin/d2/position.hh b/src/bin/d2/position.hh index 22ef35f744..c202e38cf4 100644 --- a/src/bin/d2/position.hh +++ b/src/bin/d2/position.hh @@ -1,4 +1,5 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// Generated 201908191238 +// A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it // used to define is now defined in "location.hh". diff --git a/src/bin/d2/stack.hh b/src/bin/d2/stack.hh index 81e152d836..42822f6530 100644 --- a/src/bin/d2/stack.hh +++ b/src/bin/d2/stack.hh @@ -1,4 +1,5 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// Generated 201908191238 +// A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it // used to define is now defined with the parser itself. diff --git a/src/bin/dhcp4/dhcp4_parser.cc b/src/bin/dhcp4/dhcp4_parser.cc index caca1fbf07..ad1c54974e 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.2.1. +// A Bison parser, made by GNU Bison 3.4.1. // Skeleton implementation for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015, 2018 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 @@ -43,11 +43,11 @@ // Unqualified %code blocks. -#line 34 "dhcp4_parser.yy" // lalr1.cc:438 +#line 34 "dhcp4_parser.yy" #include -#line 51 "dhcp4_parser.cc" // lalr1.cc:438 +#line 51 "dhcp4_parser.cc" #ifndef YY_ @@ -88,7 +88,7 @@ { \ (Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \ } \ - while (/*CONSTCOND*/ false) + while (false) # endif @@ -140,9 +140,10 @@ #define YYERROR goto yyerrorlab #define YYRECOVERING() (!!yyerrstatus_) -#line 14 "dhcp4_parser.yy" // lalr1.cc:513 +#line 14 "dhcp4_parser.yy" namespace isc { namespace dhcp { -#line 146 "dhcp4_parser.cc" // lalr1.cc:513 +#line 146 "dhcp4_parser.cc" + /* Return YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is @@ -154,7 +155,7 @@ namespace isc { namespace dhcp { { if (*yystr == '"') { - std::string yyr = ""; + std::string yyr; char const *yyp = yystr; for (;;) @@ -167,7 +168,10 @@ namespace isc { namespace dhcp { case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; - // Fall through. + else + goto append; + + append: default: yyr += *yyp; break; @@ -195,6 +199,8 @@ namespace isc { namespace dhcp { Dhcp4Parser::~Dhcp4Parser () {} + Dhcp4Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW + {} /*---------------. | Symbol types. | @@ -203,16 +209,16 @@ namespace isc { namespace dhcp { // by_state. - Dhcp4Parser::by_state::by_state () + Dhcp4Parser::by_state::by_state () YY_NOEXCEPT : state (empty_state) {} - 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) {} void - Dhcp4Parser::by_state::clear () + Dhcp4Parser::by_state::clear () YY_NOEXCEPT { state = empty_state; } @@ -224,12 +230,12 @@ namespace isc { namespace dhcp { that.clear (); } - Dhcp4Parser::by_state::by_state (state_type s) + Dhcp4Parser::by_state::by_state (state_type s) YY_NOEXCEPT : state (s) {} 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; @@ -276,7 +282,7 @@ namespace isc { namespace dhcp { break; } -#if defined __cplusplus && 201103L <= __cplusplus +#if 201103L <= YY_CPLUSPLUS // that is emptied. that.state = empty_state; #endif @@ -322,7 +328,7 @@ namespace isc { namespace dhcp { that.type = empty_symbol; } -#if !defined __cplusplus || __cplusplus < 201103L +#if YY_CPLUSPLUS < 201103L Dhcp4Parser::stack_symbol_type& Dhcp4Parser::stack_symbol_type::operator= (stack_symbol_type& that) { @@ -384,100 +390,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 175: // "constant string" - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< std::string > (); } -#line 401 "dhcp4_parser.cc" // lalr1.cc:672 + case 175: // "constant string" +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < std::string > (); } +#line 408 "dhcp4_parser.cc" break; case 176: // "integer" - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< int64_t > (); } -#line 408 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < int64_t > (); } +#line 414 "dhcp4_parser.cc" break; case 177: // "floating point" - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< double > (); } -#line 415 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < double > (); } +#line 420 "dhcp4_parser.cc" break; case 178: // "boolean" - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< bool > (); } -#line 422 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < bool > (); } +#line 426 "dhcp4_parser.cc" break; case 195: // value - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 429 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 432 "dhcp4_parser.cc" break; case 199: // map_value - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 436 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 438 "dhcp4_parser.cc" break; case 245: // socket_type - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 443 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 444 "dhcp4_parser.cc" break; case 248: // outbound_interface_value - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 450 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 450 "dhcp4_parser.cc" break; case 270: // db_type - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 457 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 456 "dhcp4_parser.cc" break; case 357: // hr_mode - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 464 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 462 "dhcp4_parser.cc" break; case 506: // ncr_protocol_value - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 471 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 468 "dhcp4_parser.cc" break; case 513: // replace_client_name_value - -#line 257 "dhcp4_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 478 "dhcp4_parser.cc" // lalr1.cc:672 +#line 257 "dhcp4_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 474 "dhcp4_parser.cc" break; - default: break; } @@ -496,7 +491,7 @@ namespace isc { namespace dhcp { void Dhcp4Parser::yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym) { -#if defined __cplusplus && 201103L <= __cplusplus +#if 201103L <= YY_CPLUSPLUS yypush_ (m, stack_symbol_type (s, std::move (sym))); #else stack_symbol_type ss (s, sym); @@ -600,17 +595,22 @@ namespace isc { namespace dhcp { yystack_.clear (); 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 << '\n'; // Accept? if (yystack_[0].state == yyfinal_) - goto yyacceptlab; + YYACCEPT; goto yybackup; - // Backup. + + /*-----------. + | yybackup. | + `-----------*/ yybackup: // Try to take a decision without lookahead. yyn = yypact_[yystack_[0].state]; @@ -631,6 +631,7 @@ namespace isc { namespace dhcp { #if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); goto yyerrlab1; } @@ -662,6 +663,7 @@ namespace isc { namespace dhcp { yypush_ ("Shifting", yyn, YY_MOVE (yyla)); goto yynewstate; + /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ @@ -671,8 +673,9 @@ namespace isc { namespace dhcp { goto yyerrlab; goto yyreduce; + /*-----------------------------. - | yyreduce -- Do a reduction. | + | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: yylen = yyr2_[yyn]; @@ -718,8 +721,8 @@ namespace isc { namespace dhcp { // 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; } @@ -732,280 +735,280 @@ namespace isc { namespace dhcp { switch (yyn) { case 2: -#line 266 "dhcp4_parser.yy" // lalr1.cc:907 +#line 266 "dhcp4_parser.yy" { ctx.ctx_ = ctx.NO_KEYWORD; } -#line 738 "dhcp4_parser.cc" // lalr1.cc:907 +#line 741 "dhcp4_parser.cc" break; case 4: -#line 267 "dhcp4_parser.yy" // lalr1.cc:907 +#line 267 "dhcp4_parser.yy" { ctx.ctx_ = ctx.CONFIG; } -#line 744 "dhcp4_parser.cc" // lalr1.cc:907 +#line 747 "dhcp4_parser.cc" break; case 6: -#line 268 "dhcp4_parser.yy" // lalr1.cc:907 +#line 268 "dhcp4_parser.yy" { ctx.ctx_ = ctx.DHCP4; } -#line 750 "dhcp4_parser.cc" // lalr1.cc:907 +#line 753 "dhcp4_parser.cc" break; case 8: -#line 269 "dhcp4_parser.yy" // lalr1.cc:907 +#line 269 "dhcp4_parser.yy" { ctx.ctx_ = ctx.INTERFACES_CONFIG; } -#line 756 "dhcp4_parser.cc" // lalr1.cc:907 +#line 759 "dhcp4_parser.cc" break; case 10: -#line 270 "dhcp4_parser.yy" // lalr1.cc:907 +#line 270 "dhcp4_parser.yy" { ctx.ctx_ = ctx.SUBNET4; } -#line 762 "dhcp4_parser.cc" // lalr1.cc:907 +#line 765 "dhcp4_parser.cc" break; case 12: -#line 271 "dhcp4_parser.yy" // lalr1.cc:907 +#line 271 "dhcp4_parser.yy" { ctx.ctx_ = ctx.POOLS; } -#line 768 "dhcp4_parser.cc" // lalr1.cc:907 +#line 771 "dhcp4_parser.cc" break; case 14: -#line 272 "dhcp4_parser.yy" // lalr1.cc:907 +#line 272 "dhcp4_parser.yy" { ctx.ctx_ = ctx.RESERVATIONS; } -#line 774 "dhcp4_parser.cc" // lalr1.cc:907 +#line 777 "dhcp4_parser.cc" break; case 16: -#line 273 "dhcp4_parser.yy" // lalr1.cc:907 +#line 273 "dhcp4_parser.yy" { ctx.ctx_ = ctx.DHCP4; } -#line 780 "dhcp4_parser.cc" // lalr1.cc:907 +#line 783 "dhcp4_parser.cc" break; case 18: -#line 274 "dhcp4_parser.yy" // lalr1.cc:907 +#line 274 "dhcp4_parser.yy" { ctx.ctx_ = ctx.OPTION_DEF; } -#line 786 "dhcp4_parser.cc" // lalr1.cc:907 +#line 789 "dhcp4_parser.cc" break; case 20: -#line 275 "dhcp4_parser.yy" // lalr1.cc:907 +#line 275 "dhcp4_parser.yy" { ctx.ctx_ = ctx.OPTION_DATA; } -#line 792 "dhcp4_parser.cc" // lalr1.cc:907 +#line 795 "dhcp4_parser.cc" break; case 22: -#line 276 "dhcp4_parser.yy" // lalr1.cc:907 +#line 276 "dhcp4_parser.yy" { ctx.ctx_ = ctx.HOOKS_LIBRARIES; } -#line 798 "dhcp4_parser.cc" // lalr1.cc:907 +#line 801 "dhcp4_parser.cc" break; case 24: -#line 277 "dhcp4_parser.yy" // lalr1.cc:907 +#line 277 "dhcp4_parser.yy" { ctx.ctx_ = ctx.DHCP_DDNS; } -#line 804 "dhcp4_parser.cc" // lalr1.cc:907 +#line 807 "dhcp4_parser.cc" break; case 26: -#line 278 "dhcp4_parser.yy" // lalr1.cc:907 +#line 278 "dhcp4_parser.yy" { ctx.ctx_ = ctx.LOGGING; } -#line 810 "dhcp4_parser.cc" // lalr1.cc:907 +#line 813 "dhcp4_parser.cc" break; case 28: -#line 279 "dhcp4_parser.yy" // lalr1.cc:907 +#line 279 "dhcp4_parser.yy" { ctx.ctx_ = ctx.CONFIG_CONTROL; } -#line 816 "dhcp4_parser.cc" // lalr1.cc:907 +#line 819 "dhcp4_parser.cc" break; case 30: -#line 287 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); } -#line 822 "dhcp4_parser.cc" // lalr1.cc:907 +#line 287 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); } +#line 825 "dhcp4_parser.cc" break; case 31: -#line 288 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); } -#line 828 "dhcp4_parser.cc" // lalr1.cc:907 +#line 288 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); } +#line 831 "dhcp4_parser.cc" break; case 32: -#line 289 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); } -#line 834 "dhcp4_parser.cc" // lalr1.cc:907 +#line 289 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); } +#line 837 "dhcp4_parser.cc" break; case 33: -#line 290 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); } -#line 840 "dhcp4_parser.cc" // lalr1.cc:907 +#line 290 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); } +#line 843 "dhcp4_parser.cc" break; case 34: -#line 291 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } -#line 846 "dhcp4_parser.cc" // lalr1.cc:907 +#line 291 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } +#line 849 "dhcp4_parser.cc" break; case 35: -#line 292 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 852 "dhcp4_parser.cc" // lalr1.cc:907 +#line 292 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 855 "dhcp4_parser.cc" break; case 36: -#line 293 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 858 "dhcp4_parser.cc" // lalr1.cc:907 +#line 293 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 861 "dhcp4_parser.cc" break; case 37: -#line 296 "dhcp4_parser.yy" // lalr1.cc:907 +#line 296 "dhcp4_parser.yy" { // 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 867 "dhcp4_parser.cc" // lalr1.cc:907 +#line 870 "dhcp4_parser.cc" break; case 38: -#line 301 "dhcp4_parser.yy" // lalr1.cc:907 +#line 301 "dhcp4_parser.yy" { // 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 878 "dhcp4_parser.cc" // lalr1.cc:907 +#line 881 "dhcp4_parser.cc" break; case 39: -#line 306 "dhcp4_parser.yy" // lalr1.cc:907 +#line 306 "dhcp4_parser.yy" { // 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 888 "dhcp4_parser.cc" // lalr1.cc:907 +#line 891 "dhcp4_parser.cc" break; case 40: -#line 312 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 894 "dhcp4_parser.cc" // lalr1.cc:907 +#line 312 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 897 "dhcp4_parser.cc" break; case 43: -#line 319 "dhcp4_parser.yy" // lalr1.cc:907 +#line 319 "dhcp4_parser.yy" { // 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 903 "dhcp4_parser.cc" // lalr1.cc:907 +#line 906 "dhcp4_parser.cc" break; case 44: -#line 323 "dhcp4_parser.yy" // lalr1.cc:907 +#line 323 "dhcp4_parser.yy" { // 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 913 "dhcp4_parser.cc" // lalr1.cc:907 +#line 916 "dhcp4_parser.cc" break; case 45: -#line 330 "dhcp4_parser.yy" // lalr1.cc:907 +#line 330 "dhcp4_parser.yy" { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(l); } -#line 922 "dhcp4_parser.cc" // lalr1.cc:907 +#line 925 "dhcp4_parser.cc" break; case 46: -#line 333 "dhcp4_parser.yy" // lalr1.cc:907 +#line 333 "dhcp4_parser.yy" { // list parsing complete. Put any sanity checking here } -#line 930 "dhcp4_parser.cc" // lalr1.cc:907 +#line 933 "dhcp4_parser.cc" break; case 49: -#line 341 "dhcp4_parser.yy" // lalr1.cc:907 +#line 341 "dhcp4_parser.yy" { // 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 939 "dhcp4_parser.cc" // lalr1.cc:907 +#line 942 "dhcp4_parser.cc" break; case 50: -#line 345 "dhcp4_parser.yy" // lalr1.cc:907 +#line 345 "dhcp4_parser.yy" { // 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 948 "dhcp4_parser.cc" // lalr1.cc:907 +#line 951 "dhcp4_parser.cc" break; case 51: -#line 352 "dhcp4_parser.yy" // lalr1.cc:907 +#line 352 "dhcp4_parser.yy" { // List parsing about to start } -#line 956 "dhcp4_parser.cc" // lalr1.cc:907 +#line 959 "dhcp4_parser.cc" break; case 52: -#line 354 "dhcp4_parser.yy" // lalr1.cc:907 +#line 354 "dhcp4_parser.yy" { // list parsing complete. Put any sanity checking here //ctx.stack_.pop_back(); } -#line 965 "dhcp4_parser.cc" // lalr1.cc:907 +#line 968 "dhcp4_parser.cc" break; case 55: -#line 363 "dhcp4_parser.yy" // lalr1.cc:907 +#line 363 "dhcp4_parser.yy" { - 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 974 "dhcp4_parser.cc" // lalr1.cc:907 +#line 977 "dhcp4_parser.cc" break; case 56: -#line 367 "dhcp4_parser.yy" // lalr1.cc:907 +#line 367 "dhcp4_parser.yy" { - 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 983 "dhcp4_parser.cc" // lalr1.cc:907 +#line 986 "dhcp4_parser.cc" break; case 57: -#line 378 "dhcp4_parser.yy" // lalr1.cc:907 +#line 378 "dhcp4_parser.yy" { 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 994 "dhcp4_parser.cc" // lalr1.cc:907 +#line 997 "dhcp4_parser.cc" break; case 58: -#line 388 "dhcp4_parser.yy" // lalr1.cc:907 +#line 388 "dhcp4_parser.yy" { // 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 1005 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1008 "dhcp4_parser.cc" break; case 59: -#line 393 "dhcp4_parser.yy" // lalr1.cc:907 +#line 393 "dhcp4_parser.yy" { // map parsing completed. If we ever want to do any wrap up // (maybe some sanity checking), this would be the best place @@ -1014,11 +1017,11 @@ namespace isc { namespace dhcp { // Dhcp4 is required ctx.require("Dhcp4", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); } -#line 1018 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1021 "dhcp4_parser.cc" break; case 68: -#line 417 "dhcp4_parser.yy" // lalr1.cc:907 +#line 417 "dhcp4_parser.yy" { // This code is executed when we're about to start parsing // the content of the map @@ -1027,978 +1030,978 @@ namespace isc { namespace dhcp { ctx.stack_.push_back(m); ctx.enter(ctx.DHCP4); } -#line 1031 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1034 "dhcp4_parser.cc" break; case 69: -#line 424 "dhcp4_parser.yy" // lalr1.cc:907 +#line 424 "dhcp4_parser.yy" { // No global parameter is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1041 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1044 "dhcp4_parser.cc" break; case 70: -#line 432 "dhcp4_parser.yy" // lalr1.cc:907 +#line 432 "dhcp4_parser.yy" { // Parse the Dhcp4 map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1051 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1054 "dhcp4_parser.cc" break; case 71: -#line 436 "dhcp4_parser.yy" // lalr1.cc:907 +#line 436 "dhcp4_parser.yy" { // No global parameter is required // parsing completed } -#line 1060 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1063 "dhcp4_parser.cc" break; case 116: -#line 491 "dhcp4_parser.yy" // lalr1.cc:907 +#line 491 "dhcp4_parser.yy" { - 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 1069 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1072 "dhcp4_parser.cc" break; case 117: -#line 496 "dhcp4_parser.yy" // lalr1.cc:907 +#line 496 "dhcp4_parser.yy" { - 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("min-valid-lifetime", prf); } -#line 1078 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1081 "dhcp4_parser.cc" break; case 118: -#line 501 "dhcp4_parser.yy" // lalr1.cc:907 +#line 501 "dhcp4_parser.yy" { - 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("max-valid-lifetime", prf); } -#line 1087 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1090 "dhcp4_parser.cc" break; case 119: -#line 506 "dhcp4_parser.yy" // lalr1.cc:907 +#line 506 "dhcp4_parser.yy" { - 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 1096 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1099 "dhcp4_parser.cc" break; case 120: -#line 511 "dhcp4_parser.yy" // lalr1.cc:907 +#line 511 "dhcp4_parser.yy" { - 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 1105 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1108 "dhcp4_parser.cc" break; case 121: -#line 516 "dhcp4_parser.yy" // lalr1.cc:907 +#line 516 "dhcp4_parser.yy" { - 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 1114 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1117 "dhcp4_parser.cc" break; case 122: -#line 521 "dhcp4_parser.yy" // lalr1.cc:907 +#line 521 "dhcp4_parser.yy" { - 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 1123 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1126 "dhcp4_parser.cc" break; case 123: -#line 526 "dhcp4_parser.yy" // lalr1.cc:907 +#line 526 "dhcp4_parser.yy" { - 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 1132 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1135 "dhcp4_parser.cc" break; case 124: -#line 531 "dhcp4_parser.yy" // lalr1.cc:907 +#line 531 "dhcp4_parser.yy" { - 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 1141 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1144 "dhcp4_parser.cc" break; case 125: -#line 536 "dhcp4_parser.yy" // lalr1.cc:907 +#line 536 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1149 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1152 "dhcp4_parser.cc" break; case 126: -#line 538 "dhcp4_parser.yy" // lalr1.cc:907 +#line 538 "dhcp4_parser.yy" { - 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 1159 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1162 "dhcp4_parser.cc" break; case 127: -#line 544 "dhcp4_parser.yy" // lalr1.cc:907 +#line 544 "dhcp4_parser.yy" { - 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 1168 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1171 "dhcp4_parser.cc" break; case 128: -#line 549 "dhcp4_parser.yy" // lalr1.cc:907 +#line 549 "dhcp4_parser.yy" { - 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 1177 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1180 "dhcp4_parser.cc" break; case 129: -#line 554 "dhcp4_parser.yy" // lalr1.cc:907 +#line 554 "dhcp4_parser.yy" { - 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 1186 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1189 "dhcp4_parser.cc" break; case 130: -#line 560 "dhcp4_parser.yy" // lalr1.cc:907 +#line 560 "dhcp4_parser.yy" { 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 1197 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1200 "dhcp4_parser.cc" break; case 131: -#line 565 "dhcp4_parser.yy" // lalr1.cc:907 +#line 565 "dhcp4_parser.yy" { // No interfaces config param is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1207 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1210 "dhcp4_parser.cc" break; case 141: -#line 584 "dhcp4_parser.yy" // lalr1.cc:907 +#line 584 "dhcp4_parser.yy" { // Parse the interfaces-config map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1217 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1220 "dhcp4_parser.cc" break; case 142: -#line 588 "dhcp4_parser.yy" // lalr1.cc:907 +#line 588 "dhcp4_parser.yy" { // No interfaces config param is required // parsing completed } -#line 1226 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1229 "dhcp4_parser.cc" break; case 143: -#line 593 "dhcp4_parser.yy" // lalr1.cc:907 +#line 593 "dhcp4_parser.yy" { 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 1237 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1240 "dhcp4_parser.cc" break; case 144: -#line 598 "dhcp4_parser.yy" // lalr1.cc:907 +#line 598 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1246 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1249 "dhcp4_parser.cc" break; case 145: -#line 603 "dhcp4_parser.yy" // lalr1.cc:907 +#line 603 "dhcp4_parser.yy" { ctx.enter(ctx.DHCP_SOCKET_TYPE); } -#line 1254 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1257 "dhcp4_parser.cc" break; case 146: -#line 605 "dhcp4_parser.yy" // lalr1.cc:907 +#line 605 "dhcp4_parser.yy" { - 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 1263 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1266 "dhcp4_parser.cc" break; case 147: -#line 610 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("raw", ctx.loc2pos(yystack_[0].location))); } -#line 1269 "dhcp4_parser.cc" // lalr1.cc:907 +#line 610 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("raw", ctx.loc2pos(yystack_[0].location))); } +#line 1272 "dhcp4_parser.cc" break; case 148: -#line 611 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("udp", ctx.loc2pos(yystack_[0].location))); } -#line 1275 "dhcp4_parser.cc" // lalr1.cc:907 +#line 611 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("udp", ctx.loc2pos(yystack_[0].location))); } +#line 1278 "dhcp4_parser.cc" break; case 149: -#line 614 "dhcp4_parser.yy" // lalr1.cc:907 +#line 614 "dhcp4_parser.yy" { ctx.enter(ctx.OUTBOUND_INTERFACE); } -#line 1283 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1286 "dhcp4_parser.cc" break; case 150: -#line 616 "dhcp4_parser.yy" // lalr1.cc:907 +#line 616 "dhcp4_parser.yy" { - 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 1292 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1295 "dhcp4_parser.cc" break; case 151: -#line 621 "dhcp4_parser.yy" // lalr1.cc:907 +#line 621 "dhcp4_parser.yy" { - 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 1300 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1303 "dhcp4_parser.cc" break; case 152: -#line 623 "dhcp4_parser.yy" // lalr1.cc:907 +#line 623 "dhcp4_parser.yy" { - 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 1308 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1311 "dhcp4_parser.cc" break; case 153: -#line 627 "dhcp4_parser.yy" // lalr1.cc:907 +#line 627 "dhcp4_parser.yy" { - 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 1317 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1320 "dhcp4_parser.cc" break; case 154: -#line 633 "dhcp4_parser.yy" // lalr1.cc:907 +#line 633 "dhcp4_parser.yy" { 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 1328 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1331 "dhcp4_parser.cc" break; case 155: -#line 638 "dhcp4_parser.yy" // lalr1.cc:907 +#line 638 "dhcp4_parser.yy" { // 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 1339 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1342 "dhcp4_parser.cc" break; case 156: -#line 645 "dhcp4_parser.yy" // lalr1.cc:907 +#line 645 "dhcp4_parser.yy" { 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 1350 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1353 "dhcp4_parser.cc" break; case 157: -#line 650 "dhcp4_parser.yy" // lalr1.cc:907 +#line 650 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1359 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1362 "dhcp4_parser.cc" break; case 161: -#line 660 "dhcp4_parser.yy" // lalr1.cc:907 +#line 660 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1367 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1370 "dhcp4_parser.cc" break; case 162: -#line 662 "dhcp4_parser.yy" // lalr1.cc:907 +#line 662 "dhcp4_parser.yy" { - 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 1387 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1390 "dhcp4_parser.cc" break; case 163: -#line 678 "dhcp4_parser.yy" // lalr1.cc:907 +#line 678 "dhcp4_parser.yy" { 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 1398 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1401 "dhcp4_parser.cc" break; case 164: -#line 683 "dhcp4_parser.yy" // lalr1.cc:907 +#line 683 "dhcp4_parser.yy" { // 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 1409 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1412 "dhcp4_parser.cc" break; case 165: -#line 690 "dhcp4_parser.yy" // lalr1.cc:907 +#line 690 "dhcp4_parser.yy" { 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 1420 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1423 "dhcp4_parser.cc" break; case 166: -#line 695 "dhcp4_parser.yy" // lalr1.cc:907 +#line 695 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1429 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1432 "dhcp4_parser.cc" break; case 171: -#line 708 "dhcp4_parser.yy" // lalr1.cc:907 +#line 708 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1439 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1442 "dhcp4_parser.cc" break; case 172: -#line 712 "dhcp4_parser.yy" // lalr1.cc:907 +#line 712 "dhcp4_parser.yy" { // The type parameter is required ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1449 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1452 "dhcp4_parser.cc" break; case 196: -#line 745 "dhcp4_parser.yy" // lalr1.cc:907 +#line 745 "dhcp4_parser.yy" { ctx.enter(ctx.DATABASE_TYPE); } -#line 1457 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1460 "dhcp4_parser.cc" break; case 197: -#line 747 "dhcp4_parser.yy" // lalr1.cc:907 +#line 747 "dhcp4_parser.yy" { - ctx.stack_.back()->set("type", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("type", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1466 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1469 "dhcp4_parser.cc" break; case 198: -#line 752 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); } -#line 1472 "dhcp4_parser.cc" // lalr1.cc:907 +#line 752 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); } +#line 1475 "dhcp4_parser.cc" break; case 199: -#line 753 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); } -#line 1478 "dhcp4_parser.cc" // lalr1.cc:907 +#line 753 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); } +#line 1481 "dhcp4_parser.cc" break; case 200: -#line 754 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); } -#line 1484 "dhcp4_parser.cc" // lalr1.cc:907 +#line 754 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); } +#line 1487 "dhcp4_parser.cc" break; case 201: -#line 755 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); } -#line 1490 "dhcp4_parser.cc" // lalr1.cc:907 +#line 755 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); } +#line 1493 "dhcp4_parser.cc" break; case 202: -#line 758 "dhcp4_parser.yy" // lalr1.cc:907 +#line 758 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1498 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1501 "dhcp4_parser.cc" break; case 203: -#line 760 "dhcp4_parser.yy" // lalr1.cc:907 +#line 760 "dhcp4_parser.yy" { - 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 1508 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1511 "dhcp4_parser.cc" break; case 204: -#line 766 "dhcp4_parser.yy" // lalr1.cc:907 +#line 766 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1516 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1519 "dhcp4_parser.cc" break; case 205: -#line 768 "dhcp4_parser.yy" // lalr1.cc:907 +#line 768 "dhcp4_parser.yy" { - 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 1526 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1529 "dhcp4_parser.cc" break; case 206: -#line 774 "dhcp4_parser.yy" // lalr1.cc:907 +#line 774 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1534 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1537 "dhcp4_parser.cc" break; case 207: -#line 776 "dhcp4_parser.yy" // lalr1.cc:907 +#line 776 "dhcp4_parser.yy" { - 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 1544 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1547 "dhcp4_parser.cc" break; case 208: -#line 782 "dhcp4_parser.yy" // lalr1.cc:907 +#line 782 "dhcp4_parser.yy" { - 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 1553 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1556 "dhcp4_parser.cc" break; case 209: -#line 787 "dhcp4_parser.yy" // lalr1.cc:907 +#line 787 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1561 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1564 "dhcp4_parser.cc" break; case 210: -#line 789 "dhcp4_parser.yy" // lalr1.cc:907 +#line 789 "dhcp4_parser.yy" { - 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 1571 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1574 "dhcp4_parser.cc" break; case 211: -#line 795 "dhcp4_parser.yy" // lalr1.cc:907 +#line 795 "dhcp4_parser.yy" { - 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 1580 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1583 "dhcp4_parser.cc" break; case 212: -#line 800 "dhcp4_parser.yy" // lalr1.cc:907 +#line 800 "dhcp4_parser.yy" { - 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 1589 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1592 "dhcp4_parser.cc" break; case 213: -#line 805 "dhcp4_parser.yy" // lalr1.cc:907 +#line 805 "dhcp4_parser.yy" { - 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 1598 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1601 "dhcp4_parser.cc" break; case 214: -#line 810 "dhcp4_parser.yy" // lalr1.cc:907 +#line 810 "dhcp4_parser.yy" { - 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 1607 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1610 "dhcp4_parser.cc" break; case 215: -#line 815 "dhcp4_parser.yy" // lalr1.cc:907 +#line 815 "dhcp4_parser.yy" { - 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 1616 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1619 "dhcp4_parser.cc" break; case 216: -#line 820 "dhcp4_parser.yy" // lalr1.cc:907 +#line 820 "dhcp4_parser.yy" { - 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 1625 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1628 "dhcp4_parser.cc" break; case 217: -#line 825 "dhcp4_parser.yy" // lalr1.cc:907 +#line 825 "dhcp4_parser.yy" { - 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 1634 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1637 "dhcp4_parser.cc" break; case 218: -#line 830 "dhcp4_parser.yy" // lalr1.cc:907 +#line 830 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1642 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1645 "dhcp4_parser.cc" break; case 219: -#line 832 "dhcp4_parser.yy" // lalr1.cc:907 +#line 832 "dhcp4_parser.yy" { - 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 1652 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1655 "dhcp4_parser.cc" break; case 220: -#line 838 "dhcp4_parser.yy" // lalr1.cc:907 +#line 838 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1660 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1663 "dhcp4_parser.cc" break; case 221: -#line 840 "dhcp4_parser.yy" // lalr1.cc:907 +#line 840 "dhcp4_parser.yy" { - 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 1670 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1673 "dhcp4_parser.cc" break; case 222: -#line 846 "dhcp4_parser.yy" // lalr1.cc:907 +#line 846 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1678 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1681 "dhcp4_parser.cc" break; case 223: -#line 848 "dhcp4_parser.yy" // lalr1.cc:907 +#line 848 "dhcp4_parser.yy" { - 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 1688 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1691 "dhcp4_parser.cc" break; case 224: -#line 854 "dhcp4_parser.yy" // lalr1.cc:907 +#line 854 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1696 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1699 "dhcp4_parser.cc" break; case 225: -#line 856 "dhcp4_parser.yy" // lalr1.cc:907 +#line 856 "dhcp4_parser.yy" { - 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 1706 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1709 "dhcp4_parser.cc" break; case 226: -#line 862 "dhcp4_parser.yy" // lalr1.cc:907 +#line 862 "dhcp4_parser.yy" { - 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 1715 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1718 "dhcp4_parser.cc" break; case 227: -#line 867 "dhcp4_parser.yy" // lalr1.cc:907 +#line 867 "dhcp4_parser.yy" { - 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 1724 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1727 "dhcp4_parser.cc" break; case 228: -#line 872 "dhcp4_parser.yy" // lalr1.cc:907 +#line 872 "dhcp4_parser.yy" { - 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-row-errors", n); } -#line 1733 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1736 "dhcp4_parser.cc" break; case 229: -#line 878 "dhcp4_parser.yy" // lalr1.cc:907 +#line 878 "dhcp4_parser.yy" { 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 1744 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1747 "dhcp4_parser.cc" break; case 230: -#line 883 "dhcp4_parser.yy" // lalr1.cc:907 +#line 883 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1753 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1756 "dhcp4_parser.cc" break; case 238: -#line 899 "dhcp4_parser.yy" // lalr1.cc:907 +#line 899 "dhcp4_parser.yy" { ElementPtr duid(new StringElement("duid", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(duid); } -#line 1762 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1765 "dhcp4_parser.cc" break; case 239: -#line 904 "dhcp4_parser.yy" // lalr1.cc:907 +#line 904 "dhcp4_parser.yy" { ElementPtr hwaddr(new StringElement("hw-address", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(hwaddr); } -#line 1771 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1774 "dhcp4_parser.cc" break; case 240: -#line 909 "dhcp4_parser.yy" // lalr1.cc:907 +#line 909 "dhcp4_parser.yy" { ElementPtr circuit(new StringElement("circuit-id", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(circuit); } -#line 1780 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1783 "dhcp4_parser.cc" break; case 241: -#line 914 "dhcp4_parser.yy" // lalr1.cc:907 +#line 914 "dhcp4_parser.yy" { ElementPtr client(new StringElement("client-id", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(client); } -#line 1789 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1792 "dhcp4_parser.cc" break; case 242: -#line 919 "dhcp4_parser.yy" // lalr1.cc:907 +#line 919 "dhcp4_parser.yy" { ElementPtr flex_id(new StringElement("flex-id", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(flex_id); } -#line 1798 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1801 "dhcp4_parser.cc" break; case 243: -#line 924 "dhcp4_parser.yy" // lalr1.cc:907 +#line 924 "dhcp4_parser.yy" { 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 1809 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1812 "dhcp4_parser.cc" break; case 244: -#line 929 "dhcp4_parser.yy" // lalr1.cc:907 +#line 929 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1818 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1821 "dhcp4_parser.cc" break; case 249: -#line 942 "dhcp4_parser.yy" // lalr1.cc:907 +#line 942 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1828 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1831 "dhcp4_parser.cc" break; case 250: -#line 946 "dhcp4_parser.yy" // lalr1.cc:907 +#line 946 "dhcp4_parser.yy" { // The library hooks parameter is required ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1838 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1841 "dhcp4_parser.cc" break; case 251: -#line 952 "dhcp4_parser.yy" // lalr1.cc:907 +#line 952 "dhcp4_parser.yy" { // Parse the hooks-libraries list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1848 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1851 "dhcp4_parser.cc" break; case 252: -#line 956 "dhcp4_parser.yy" // lalr1.cc:907 +#line 956 "dhcp4_parser.yy" { // The library hooks parameter is required ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 1858 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1861 "dhcp4_parser.cc" break; case 258: -#line 971 "dhcp4_parser.yy" // lalr1.cc:907 +#line 971 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1866 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1869 "dhcp4_parser.cc" break; case 259: -#line 973 "dhcp4_parser.yy" // lalr1.cc:907 +#line 973 "dhcp4_parser.yy" { - 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 1876 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1879 "dhcp4_parser.cc" break; case 260: -#line 979 "dhcp4_parser.yy" // lalr1.cc:907 +#line 979 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1884 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1887 "dhcp4_parser.cc" break; case 261: -#line 981 "dhcp4_parser.yy" // lalr1.cc:907 +#line 981 "dhcp4_parser.yy" { - ctx.stack_.back()->set("parameters", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("parameters", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1893 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1896 "dhcp4_parser.cc" break; case 262: -#line 987 "dhcp4_parser.yy" // lalr1.cc:907 +#line 987 "dhcp4_parser.yy" { 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 1904 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1907 "dhcp4_parser.cc" break; case 263: -#line 992 "dhcp4_parser.yy" // lalr1.cc:907 +#line 992 "dhcp4_parser.yy" { // No expired lease parameter is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1914 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1917 "dhcp4_parser.cc" break; case 272: -#line 1010 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1010 "dhcp4_parser.yy" { - 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 1923 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1926 "dhcp4_parser.cc" break; case 273: -#line 1015 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1015 "dhcp4_parser.yy" { - 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 1932 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1935 "dhcp4_parser.cc" break; case 274: -#line 1020 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1020 "dhcp4_parser.yy" { - 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 1941 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1944 "dhcp4_parser.cc" break; case 275: -#line 1025 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1025 "dhcp4_parser.yy" { - 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 1950 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1953 "dhcp4_parser.cc" break; case 276: -#line 1030 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1030 "dhcp4_parser.yy" { - 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 1959 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1962 "dhcp4_parser.cc" break; case 277: -#line 1035 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1035 "dhcp4_parser.yy" { - 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 1968 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1971 "dhcp4_parser.cc" break; case 278: -#line 1043 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1043 "dhcp4_parser.yy" { 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 1979 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1982 "dhcp4_parser.cc" break; case 279: -#line 1048 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1048 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1988 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1991 "dhcp4_parser.cc" break; case 284: -#line 1068 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1068 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1998 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2001 "dhcp4_parser.cc" break; case 285: -#line 1072 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1072 "dhcp4_parser.yy" { // Once we reached this place, the subnet parsing is now complete. // If we want to, we can implement default values here. @@ -2020,294 +2023,294 @@ namespace isc { namespace dhcp { ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2024 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2027 "dhcp4_parser.cc" break; case 286: -#line 1094 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1094 "dhcp4_parser.yy" { // Parse the subnet4 list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2034 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2037 "dhcp4_parser.cc" break; case 287: -#line 1098 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1098 "dhcp4_parser.yy" { // The subnet subnet4 parameter is required ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2044 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2047 "dhcp4_parser.cc" break; case 319: -#line 1141 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1141 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2052 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2055 "dhcp4_parser.cc" break; case 320: -#line 1143 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1143 "dhcp4_parser.yy" { - 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 2062 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2065 "dhcp4_parser.cc" break; case 321: -#line 1149 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1149 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2070 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2073 "dhcp4_parser.cc" break; case 322: -#line 1151 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1151 "dhcp4_parser.yy" { - 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 2080 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2083 "dhcp4_parser.cc" break; case 323: -#line 1157 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1157 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2088 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2091 "dhcp4_parser.cc" break; case 324: -#line 1159 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1159 "dhcp4_parser.yy" { - 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 2098 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2101 "dhcp4_parser.cc" break; case 325: -#line 1165 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1165 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2106 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2109 "dhcp4_parser.cc" break; case 326: -#line 1167 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1167 "dhcp4_parser.yy" { - 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 2116 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2119 "dhcp4_parser.cc" break; case 327: -#line 1173 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1173 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2124 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2127 "dhcp4_parser.cc" break; case 328: -#line 1175 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1175 "dhcp4_parser.yy" { - 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 2134 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2137 "dhcp4_parser.cc" break; case 329: -#line 1181 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1181 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2142 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2145 "dhcp4_parser.cc" break; case 330: -#line 1183 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1183 "dhcp4_parser.yy" { - 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 2152 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2155 "dhcp4_parser.cc" break; case 331: -#line 1189 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1189 "dhcp4_parser.yy" { 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 2163 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2166 "dhcp4_parser.cc" break; case 332: -#line 1194 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1194 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2172 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2175 "dhcp4_parser.cc" break; case 333: -#line 1199 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1199 "dhcp4_parser.yy" { ctx.enter(ctx.RESERVATION_MODE); } -#line 2180 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2183 "dhcp4_parser.cc" break; case 334: -#line 1201 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1201 "dhcp4_parser.yy" { - 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 2189 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2192 "dhcp4_parser.cc" break; case 335: -#line 1206 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); } -#line 2195 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1206 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); } +#line 2198 "dhcp4_parser.cc" break; case 336: -#line 1207 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); } -#line 2201 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1207 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); } +#line 2204 "dhcp4_parser.cc" break; case 337: -#line 1208 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); } -#line 2207 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1208 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); } +#line 2210 "dhcp4_parser.cc" break; case 338: -#line 1209 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); } -#line 2213 "dhcp4_parser.cc" // lalr1.cc:907 +#line 1209 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); } +#line 2216 "dhcp4_parser.cc" break; case 339: -#line 1212 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1212 "dhcp4_parser.yy" { - 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 2222 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2225 "dhcp4_parser.cc" break; case 340: -#line 1219 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1219 "dhcp4_parser.yy" { 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 2233 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2236 "dhcp4_parser.cc" break; case 341: -#line 1224 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1224 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2242 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2245 "dhcp4_parser.cc" break; case 346: -#line 1239 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1239 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2252 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2255 "dhcp4_parser.cc" break; case 347: -#line 1243 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1243 "dhcp4_parser.yy" { ctx.stack_.pop_back(); } -#line 2260 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2263 "dhcp4_parser.cc" break; case 374: -#line 1281 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1281 "dhcp4_parser.yy" { 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 2271 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2274 "dhcp4_parser.cc" break; case 375: -#line 1286 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1286 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2280 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2283 "dhcp4_parser.cc" break; case 376: -#line 1294 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1294 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2289 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2292 "dhcp4_parser.cc" break; case 377: -#line 1297 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1297 "dhcp4_parser.yy" { // parsing completed } -#line 2297 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2300 "dhcp4_parser.cc" break; case 382: -#line 1313 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1313 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2307 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2310 "dhcp4_parser.cc" break; case 383: -#line 1317 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1317 "dhcp4_parser.yy" { // The name, code and type option def parameters are required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2315,21 +2318,21 @@ namespace isc { namespace dhcp { ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2319 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2322 "dhcp4_parser.cc" break; case 384: -#line 1328 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1328 "dhcp4_parser.yy" { // Parse the option-def list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2329 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2332 "dhcp4_parser.cc" break; case 385: -#line 1332 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1332 "dhcp4_parser.yy" { // The name, code and type option def parameters are required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2337,284 +2340,284 @@ namespace isc { namespace dhcp { ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2341 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2344 "dhcp4_parser.cc" break; case 401: -#line 1364 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1364 "dhcp4_parser.yy" { - 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 2350 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2353 "dhcp4_parser.cc" break; case 403: -#line 1371 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1371 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2358 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2361 "dhcp4_parser.cc" break; case 404: -#line 1373 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1373 "dhcp4_parser.yy" { - 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 2368 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2371 "dhcp4_parser.cc" break; case 405: -#line 1379 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1379 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2376 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2379 "dhcp4_parser.cc" break; case 406: -#line 1381 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1381 "dhcp4_parser.yy" { - 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 2386 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2389 "dhcp4_parser.cc" break; case 407: -#line 1387 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1387 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2394 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2397 "dhcp4_parser.cc" break; case 408: -#line 1389 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1389 "dhcp4_parser.yy" { - 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 2404 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2407 "dhcp4_parser.cc" break; case 410: -#line 1397 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1397 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2412 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2415 "dhcp4_parser.cc" break; case 411: -#line 1399 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1399 "dhcp4_parser.yy" { - 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 2422 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2425 "dhcp4_parser.cc" break; case 412: -#line 1405 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1405 "dhcp4_parser.yy" { - 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 2431 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2434 "dhcp4_parser.cc" break; case 413: -#line 1414 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1414 "dhcp4_parser.yy" { 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 2442 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2445 "dhcp4_parser.cc" break; case 414: -#line 1419 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1419 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2451 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2454 "dhcp4_parser.cc" break; case 419: -#line 1438 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1438 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2461 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2464 "dhcp4_parser.cc" break; case 420: -#line 1442 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1442 "dhcp4_parser.yy" { /// @todo: the code or name parameters are required. ctx.stack_.pop_back(); } -#line 2470 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2473 "dhcp4_parser.cc" break; case 421: -#line 1450 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1450 "dhcp4_parser.yy" { // Parse the option-data list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2480 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2483 "dhcp4_parser.cc" break; case 422: -#line 1454 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1454 "dhcp4_parser.yy" { /// @todo: the code or name parameters are required. // parsing completed } -#line 2489 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2492 "dhcp4_parser.cc" break; case 437: -#line 1487 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1487 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2497 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2500 "dhcp4_parser.cc" break; case 438: -#line 1489 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1489 "dhcp4_parser.yy" { - 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 2507 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2510 "dhcp4_parser.cc" break; case 441: -#line 1499 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1499 "dhcp4_parser.yy" { - 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 2516 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2519 "dhcp4_parser.cc" break; case 442: -#line 1504 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1504 "dhcp4_parser.yy" { - 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 2525 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2528 "dhcp4_parser.cc" break; case 443: -#line 1512 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1512 "dhcp4_parser.yy" { 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 2536 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2539 "dhcp4_parser.cc" break; case 444: -#line 1517 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1517 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2545 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2548 "dhcp4_parser.cc" break; case 449: -#line 1532 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1532 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2555 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2558 "dhcp4_parser.cc" break; case 450: -#line 1536 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1536 "dhcp4_parser.yy" { // The pool parameter is required. ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2565 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2568 "dhcp4_parser.cc" break; case 451: -#line 1542 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1542 "dhcp4_parser.yy" { // Parse the pool list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2575 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2578 "dhcp4_parser.cc" break; case 452: -#line 1546 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1546 "dhcp4_parser.yy" { // The pool parameter is required. ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2585 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2588 "dhcp4_parser.cc" break; case 462: -#line 1565 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1565 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2593 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2596 "dhcp4_parser.cc" break; case 463: -#line 1567 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1567 "dhcp4_parser.yy" { - 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 2603 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2606 "dhcp4_parser.cc" break; case 464: -#line 1573 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1573 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2611 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2614 "dhcp4_parser.cc" break; case 465: -#line 1575 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1575 "dhcp4_parser.yy" { 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 @@ -2634,23 +2637,23 @@ namespace isc { namespace dhcp { parent->set("user-context", user_context); ctx.leave(); } -#line 2638 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2641 "dhcp4_parser.cc" break; case 466: -#line 1598 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1598 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2646 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2649 "dhcp4_parser.cc" break; case 467: -#line 1600 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1600 "dhcp4_parser.yy" { 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 @@ -2671,451 +2674,451 @@ namespace isc { namespace dhcp { parent->set("user-context", user_context); ctx.leave(); } -#line 2675 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2678 "dhcp4_parser.cc" break; case 468: -#line 1628 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1628 "dhcp4_parser.yy" { 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 2686 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2689 "dhcp4_parser.cc" break; case 469: -#line 1633 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1633 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2695 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2698 "dhcp4_parser.cc" break; case 474: -#line 1646 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1646 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2705 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2708 "dhcp4_parser.cc" break; case 475: -#line 1650 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1650 "dhcp4_parser.yy" { /// @todo: an identifier parameter is required. ctx.stack_.pop_back(); } -#line 2714 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2717 "dhcp4_parser.cc" break; case 476: -#line 1655 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1655 "dhcp4_parser.yy" { // Parse the reservations list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2724 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2727 "dhcp4_parser.cc" break; case 477: -#line 1659 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1659 "dhcp4_parser.yy" { /// @todo: an identifier parameter is required. // parsing completed } -#line 2733 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2736 "dhcp4_parser.cc" break; case 497: -#line 1690 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1690 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2741 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2744 "dhcp4_parser.cc" break; case 498: -#line 1692 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1692 "dhcp4_parser.yy" { - 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 2751 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2754 "dhcp4_parser.cc" break; case 499: -#line 1698 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1698 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2759 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2762 "dhcp4_parser.cc" break; case 500: -#line 1700 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1700 "dhcp4_parser.yy" { - 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 2769 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2772 "dhcp4_parser.cc" break; case 501: -#line 1706 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1706 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2777 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2780 "dhcp4_parser.cc" break; case 502: -#line 1708 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1708 "dhcp4_parser.yy" { - 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 2787 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2790 "dhcp4_parser.cc" break; case 503: -#line 1714 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1714 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2795 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2798 "dhcp4_parser.cc" break; case 504: -#line 1716 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1716 "dhcp4_parser.yy" { - 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 2805 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2808 "dhcp4_parser.cc" break; case 505: -#line 1722 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1722 "dhcp4_parser.yy" { 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 2816 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2819 "dhcp4_parser.cc" break; case 506: -#line 1727 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1727 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2825 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2828 "dhcp4_parser.cc" break; case 507: -#line 1732 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1732 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2833 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2836 "dhcp4_parser.cc" break; case 508: -#line 1734 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1734 "dhcp4_parser.yy" { - 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 2843 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2846 "dhcp4_parser.cc" break; case 509: -#line 1740 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1740 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2851 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2854 "dhcp4_parser.cc" break; case 510: -#line 1742 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1742 "dhcp4_parser.yy" { - 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 2861 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2864 "dhcp4_parser.cc" break; case 511: -#line 1748 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1748 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2869 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2872 "dhcp4_parser.cc" break; case 512: -#line 1750 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1750 "dhcp4_parser.yy" { - 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 2879 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2882 "dhcp4_parser.cc" break; case 513: -#line 1756 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1756 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2887 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2890 "dhcp4_parser.cc" break; case 514: -#line 1758 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1758 "dhcp4_parser.yy" { - 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 2897 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2900 "dhcp4_parser.cc" break; case 515: -#line 1764 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1764 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2905 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2908 "dhcp4_parser.cc" break; case 516: -#line 1766 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1766 "dhcp4_parser.yy" { - 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 2915 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2918 "dhcp4_parser.cc" break; case 517: -#line 1772 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1772 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2923 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2926 "dhcp4_parser.cc" break; case 518: -#line 1774 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1774 "dhcp4_parser.yy" { - 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 2933 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2936 "dhcp4_parser.cc" break; case 519: -#line 1780 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1780 "dhcp4_parser.yy" { 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 2944 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2947 "dhcp4_parser.cc" break; case 520: -#line 1785 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1785 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2953 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2956 "dhcp4_parser.cc" break; case 521: -#line 1793 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1793 "dhcp4_parser.yy" { 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 2964 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2967 "dhcp4_parser.cc" break; case 522: -#line 1798 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1798 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2973 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2976 "dhcp4_parser.cc" break; case 525: -#line 1810 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1810 "dhcp4_parser.yy" { 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 2984 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2987 "dhcp4_parser.cc" break; case 526: -#line 1815 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1815 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2993 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2996 "dhcp4_parser.cc" break; case 529: -#line 1824 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1824 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 3003 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3006 "dhcp4_parser.cc" break; case 530: -#line 1828 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1828 "dhcp4_parser.yy" { // 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 3013 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3016 "dhcp4_parser.cc" break; case 547: -#line 1857 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1857 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3021 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3024 "dhcp4_parser.cc" break; case 548: -#line 1859 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1859 "dhcp4_parser.yy" { - 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 3031 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3034 "dhcp4_parser.cc" break; case 549: -#line 1865 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1865 "dhcp4_parser.yy" { - 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 3040 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3043 "dhcp4_parser.cc" break; case 550: -#line 1874 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1874 "dhcp4_parser.yy" { - 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 3049 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3052 "dhcp4_parser.cc" break; case 551: -#line 1881 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1881 "dhcp4_parser.yy" { 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 3060 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3063 "dhcp4_parser.cc" break; case 552: -#line 1886 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1886 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3069 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3072 "dhcp4_parser.cc" break; case 560: -#line 1902 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1902 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3077 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3080 "dhcp4_parser.cc" break; case 561: -#line 1904 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1904 "dhcp4_parser.yy" { - 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 3087 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3090 "dhcp4_parser.cc" break; case 562: -#line 1910 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1910 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3095 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3098 "dhcp4_parser.cc" break; case 563: -#line 1912 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1912 "dhcp4_parser.yy" { - 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 3105 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3108 "dhcp4_parser.cc" break; case 564: -#line 1921 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1921 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3113 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3116 "dhcp4_parser.cc" break; case 565: -#line 1923 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1923 "dhcp4_parser.yy" { - 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 @@ -3147,644 +3150,645 @@ namespace isc { namespace dhcp { ctx.leave(); } -#line 3151 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3154 "dhcp4_parser.cc" break; case 566: -#line 1959 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1959 "dhcp4_parser.yy" { 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 3162 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3165 "dhcp4_parser.cc" break; case 567: -#line 1964 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1964 "dhcp4_parser.yy" { // 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 3173 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3176 "dhcp4_parser.cc" break; case 568: -#line 1971 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1971 "dhcp4_parser.yy" { // Parse the dhcp-ddns map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3183 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3186 "dhcp4_parser.cc" break; case 569: -#line 1975 "dhcp4_parser.yy" // lalr1.cc:907 +#line 1975 "dhcp4_parser.yy" { // 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 3193 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3196 "dhcp4_parser.cc" break; case 590: -#line 2005 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2005 "dhcp4_parser.yy" { - 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 3202 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3205 "dhcp4_parser.cc" break; case 591: -#line 2010 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2010 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3210 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3213 "dhcp4_parser.cc" break; case 592: -#line 2012 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2012 "dhcp4_parser.yy" { - 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 3220 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3223 "dhcp4_parser.cc" break; case 593: -#line 2018 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2018 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3228 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3231 "dhcp4_parser.cc" break; case 594: -#line 2020 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2020 "dhcp4_parser.yy" { - 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 3238 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3241 "dhcp4_parser.cc" break; case 595: -#line 2026 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2026 "dhcp4_parser.yy" { - 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 3247 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3250 "dhcp4_parser.cc" break; case 596: -#line 2031 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2031 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3255 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3258 "dhcp4_parser.cc" break; case 597: -#line 2033 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2033 "dhcp4_parser.yy" { - 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 3265 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3268 "dhcp4_parser.cc" break; case 598: -#line 2039 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2039 "dhcp4_parser.yy" { - 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 3274 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3277 "dhcp4_parser.cc" break; case 599: -#line 2044 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2044 "dhcp4_parser.yy" { - 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 3283 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3286 "dhcp4_parser.cc" break; case 600: -#line 2049 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2049 "dhcp4_parser.yy" { ctx.enter(ctx.NCR_PROTOCOL); } -#line 3291 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3294 "dhcp4_parser.cc" break; case 601: -#line 2051 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2051 "dhcp4_parser.yy" { - 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 3300 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3303 "dhcp4_parser.cc" break; case 602: -#line 2057 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } -#line 3306 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2057 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } +#line 3309 "dhcp4_parser.cc" break; case 603: -#line 2058 "dhcp4_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } -#line 3312 "dhcp4_parser.cc" // lalr1.cc:907 +#line 2058 "dhcp4_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } +#line 3315 "dhcp4_parser.cc" break; case 604: -#line 2061 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2061 "dhcp4_parser.yy" { ctx.enter(ctx.NCR_FORMAT); } -#line 3320 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3323 "dhcp4_parser.cc" break; case 605: -#line 2063 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2063 "dhcp4_parser.yy" { ElementPtr json(new StringElement("JSON", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("ncr-format", json); ctx.leave(); } -#line 3330 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3333 "dhcp4_parser.cc" break; case 606: -#line 2069 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2069 "dhcp4_parser.yy" { - 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 3339 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3342 "dhcp4_parser.cc" break; case 607: -#line 2074 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2074 "dhcp4_parser.yy" { - 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 3348 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3351 "dhcp4_parser.cc" break; case 608: -#line 2079 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2079 "dhcp4_parser.yy" { ctx.enter(ctx.REPLACE_CLIENT_NAME); } -#line 3356 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3359 "dhcp4_parser.cc" break; case 609: -#line 2081 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2081 "dhcp4_parser.yy" { - 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 3365 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3368 "dhcp4_parser.cc" break; case 610: -#line 2087 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2087 "dhcp4_parser.yy" { - 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 3373 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3376 "dhcp4_parser.cc" break; case 611: -#line 2090 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2090 "dhcp4_parser.yy" { - 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 3381 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3384 "dhcp4_parser.cc" break; case 612: -#line 2093 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2093 "dhcp4_parser.yy" { - 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 3389 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3392 "dhcp4_parser.cc" break; case 613: -#line 2096 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2096 "dhcp4_parser.yy" { - 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 3397 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3400 "dhcp4_parser.cc" break; case 614: -#line 2099 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2099 "dhcp4_parser.yy" { error(yystack_[0].location, "boolean values for the replace-client-name are " "no longer supported"); } -#line 3406 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3409 "dhcp4_parser.cc" break; case 615: -#line 2105 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2105 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3414 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3417 "dhcp4_parser.cc" break; case 616: -#line 2107 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2107 "dhcp4_parser.yy" { - 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 3424 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3427 "dhcp4_parser.cc" break; case 617: -#line 2113 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2113 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3432 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3435 "dhcp4_parser.cc" break; case 618: -#line 2115 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2115 "dhcp4_parser.yy" { - 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 3442 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3445 "dhcp4_parser.cc" break; case 619: -#line 2121 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2121 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3450 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3453 "dhcp4_parser.cc" break; case 620: -#line 2123 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2123 "dhcp4_parser.yy" { - 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 3460 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3463 "dhcp4_parser.cc" break; case 621: -#line 2132 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2132 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3468 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3471 "dhcp4_parser.cc" break; case 622: -#line 2134 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2134 "dhcp4_parser.yy" { - ctx.stack_.back()->set("Dhcp6", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("Dhcp6", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3477 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3480 "dhcp4_parser.cc" break; case 623: -#line 2139 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2139 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3485 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3488 "dhcp4_parser.cc" break; case 624: -#line 2141 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2141 "dhcp4_parser.yy" { - ctx.stack_.back()->set("DhcpDdns", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("DhcpDdns", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3494 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3497 "dhcp4_parser.cc" break; case 625: -#line 2146 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2146 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3502 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3505 "dhcp4_parser.cc" break; case 626: -#line 2148 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2148 "dhcp4_parser.yy" { - 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 3511 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3514 "dhcp4_parser.cc" break; case 627: -#line 2153 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2153 "dhcp4_parser.yy" { 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 3522 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3525 "dhcp4_parser.cc" break; case 628: -#line 2158 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2158 "dhcp4_parser.yy" { // No config control params are required ctx.stack_.pop_back(); ctx.leave(); } -#line 3532 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3535 "dhcp4_parser.cc" break; case 629: -#line 2164 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2164 "dhcp4_parser.yy" { // Parse the config-control map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3542 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3545 "dhcp4_parser.cc" break; case 630: -#line 2168 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2168 "dhcp4_parser.yy" { // No config_control params are required // parsing completed } -#line 3551 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3554 "dhcp4_parser.cc" break; case 635: -#line 2183 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2183 "dhcp4_parser.yy" { 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 3562 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3565 "dhcp4_parser.cc" break; case 636: -#line 2188 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2188 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3571 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3574 "dhcp4_parser.cc" break; case 637: -#line 2193 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2193 "dhcp4_parser.yy" { - 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("config-fetch-wait-time", value); } -#line 3580 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3583 "dhcp4_parser.cc" break; case 638: -#line 2203 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2203 "dhcp4_parser.yy" { 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 3591 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3594 "dhcp4_parser.cc" break; case 639: -#line 2208 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2208 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3600 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3603 "dhcp4_parser.cc" break; case 640: -#line 2213 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2213 "dhcp4_parser.yy" { // Parse the Logging map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3610 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3613 "dhcp4_parser.cc" break; case 641: -#line 2217 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2217 "dhcp4_parser.yy" { // parsing completed } -#line 3618 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3621 "dhcp4_parser.cc" break; case 645: -#line 2233 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2233 "dhcp4_parser.yy" { 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 3629 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3632 "dhcp4_parser.cc" break; case 646: -#line 2238 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2238 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3638 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3641 "dhcp4_parser.cc" break; case 649: -#line 2250 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2250 "dhcp4_parser.yy" { ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(l); ctx.stack_.push_back(l); } -#line 3648 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3651 "dhcp4_parser.cc" break; case 650: -#line 2254 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2254 "dhcp4_parser.yy" { ctx.stack_.pop_back(); } -#line 3656 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3659 "dhcp4_parser.cc" break; case 660: -#line 2271 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2271 "dhcp4_parser.yy" { - 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 3665 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3668 "dhcp4_parser.cc" break; case 661: -#line 2276 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2276 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3673 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3676 "dhcp4_parser.cc" break; case 662: -#line 2278 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2278 "dhcp4_parser.yy" { - 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 3683 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3686 "dhcp4_parser.cc" break; case 663: -#line 2284 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2284 "dhcp4_parser.yy" { 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 3694 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3697 "dhcp4_parser.cc" break; case 664: -#line 2289 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2289 "dhcp4_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3703 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3706 "dhcp4_parser.cc" break; case 667: -#line 2298 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2298 "dhcp4_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 3713 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3716 "dhcp4_parser.cc" break; case 668: -#line 2302 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2302 "dhcp4_parser.yy" { ctx.stack_.pop_back(); } -#line 3721 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3724 "dhcp4_parser.cc" break; case 676: -#line 2317 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2317 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3729 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3732 "dhcp4_parser.cc" break; case 677: -#line 2319 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2319 "dhcp4_parser.yy" { - 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 3739 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3742 "dhcp4_parser.cc" break; case 678: -#line 2325 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2325 "dhcp4_parser.yy" { - 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 3748 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3751 "dhcp4_parser.cc" break; case 679: -#line 2330 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2330 "dhcp4_parser.yy" { - 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 3757 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3760 "dhcp4_parser.cc" break; case 680: -#line 2335 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2335 "dhcp4_parser.yy" { - 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 3766 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3769 "dhcp4_parser.cc" break; case 681: -#line 2340 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2340 "dhcp4_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3774 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3777 "dhcp4_parser.cc" break; case 682: -#line 2342 "dhcp4_parser.yy" // lalr1.cc:907 +#line 2342 "dhcp4_parser.yy" { - 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("pattern", sev); ctx.leave(); } -#line 3784 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3787 "dhcp4_parser.cc" break; -#line 3788 "dhcp4_parser.cc" // lalr1.cc:907 +#line 3791 "dhcp4_parser.cc" + default: break; } @@ -3792,6 +3796,7 @@ namespace isc { namespace dhcp { #if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); YYERROR; } @@ -3806,6 +3811,7 @@ namespace isc { namespace dhcp { } goto yynewstate; + /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ @@ -3842,18 +3848,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; + /* 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. | `-------------------------------------------------------------*/ @@ -3894,16 +3900,26 @@ namespace isc { namespace dhcp { } 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); @@ -5105,10 +5121,11 @@ namespace isc { namespace dhcp { #endif // PARSER4_DEBUG -#line 14 "dhcp4_parser.yy" // lalr1.cc:1218 +#line 14 "dhcp4_parser.yy" } } // isc::dhcp -#line 5111 "dhcp4_parser.cc" // lalr1.cc:1218 -#line 2349 "dhcp4_parser.yy" // lalr1.cc:1219 +#line 5127 "dhcp4_parser.cc" + +#line 2349 "dhcp4_parser.yy" void diff --git a/src/bin/dhcp4/dhcp4_parser.h b/src/bin/dhcp4/dhcp4_parser.h index f3f25687a5..48bc394818 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.2.1. +// A Bison parser, made by GNU Bison 3.4.1. // Skeleton interface for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015, 2018 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 @@ -44,7 +44,7 @@ #ifndef YY_PARSER4_DHCP4_PARSER_H_INCLUDED # define YY_PARSER4_DHCP4_PARSER_H_INCLUDED // // "%code requires" blocks. -#line 17 "dhcp4_parser.yy" // lalr1.cc:404 +#line 17 "dhcp4_parser.yy" #include #include @@ -56,7 +56,7 @@ using namespace isc::dhcp; using namespace isc::data; using namespace std; -#line 60 "dhcp4_parser.h" // lalr1.cc:404 +#line 60 "dhcp4_parser.h" # include # include // std::abort @@ -65,8 +65,14 @@ using namespace std; # include # include +#if defined __cplusplus +# define YY_CPLUSPLUS __cplusplus +#else +# define YY_CPLUSPLUS 199711L +#endif + // Support move semantics when possible. -#if defined __cplusplus && 201103L <= __cplusplus +#if 201103L <= YY_CPLUSPLUS # define YY_MOVE std::move # define YY_MOVE_OR_COPY move # define YY_MOVE_REF(Type) Type&& @@ -79,6 +85,22 @@ using namespace std; # 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 @@ -156,193 +178,80 @@ using namespace std; # endif /* ! defined YYDEBUG */ #endif /* ! defined PARSER4_DEBUG */ -#line 14 "dhcp4_parser.yy" // lalr1.cc:404 +#line 14 "dhcp4_parser.yy" namespace isc { namespace dhcp { -#line 162 "dhcp4_parser.h" // lalr1.cc:404 - - /// 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); - } - - void - pop (int n = 1) - { - for (; 0 < n; --n) - seq_.pop_back (); - } - - void - clear () - { - seq_.clear (); - } - - size_type - size () const - { - return seq_.size (); - } +#line 184 "dhcp4_parser.h" - const_iterator - begin () const - { - return seq_.rbegin (); - } - 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 + /// A Bison parser. + class Dhcp4Parser { public: - slice (const S& stack, int range) - : stack_ (stack) - , range_ (range) - {} - - const T& - operator[] (int i) const - { - return stack_[range_ - i]; - } - - private: - const S& stack_; - int range_; - }; - - - - /// A char[S] buffer to store and retrieve objects. +#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 () + semantic_type () YY_NOEXCEPT : yybuffer_ () , yytypeid_ (YY_NULLPTR) {} /// Construct and fill. template - variant (YY_RVREF (T) t) + semantic_type (YY_RVREF (T) t) : yytypeid_ (&typeid (T)) { - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); new (yyas_ ()) T (YY_MOVE (t)); } /// Destruction, allowed only if empty. - ~variant () + ~semantic_type () YY_NOEXCEPT { YYASSERT (!yytypeid_); } - /// Instantiate an empty \a T in here. - template +# if 201103L <= YY_CPLUSPLUS + /// Instantiate a \a T in here from \a t. + template T& - emplace () + emplace (U&&... u) { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); - return *new (yyas_ ()) T (); + return *new (yyas_ ()) T (std::forward (u)...); } - -# if defined __cplusplus && 201103L <= __cplusplus - /// Instantiate a \a T in here from \a t. - template +# else + /// Instantiate an empty \a T in here. + template T& - emplace (U&& u) + emplace () { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); - return *new (yyas_ ()) T (std::forward (u)); + return *new (yyas_ ()) T (); } -# else + /// Instantiate a \a T in here from \a t. template T& emplace (const T& t) { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); return *new (yyas_ ()) T (t); } @@ -369,75 +278,75 @@ namespace isc { namespace dhcp { /// 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 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& other) + move (self_type& that) { -# if defined __cplusplus && 201103L <= __cplusplus - emplace (std::move (other.as ())); +# if 201103L <= YY_CPLUSPLUS + emplace (std::move (that.as ())); # else emplace (); - swap (other); + swap (that); # endif - other.destroy (); + that.destroy (); } -# if defined __cplusplus && 201103L <= __cplusplus - /// Move the content of \a other to this. +# if 201103L <= YY_CPLUSPLUS + /// Move the content of \a that to this. template void - move (self_type&& other) + move (self_type&& that) { - emplace (std::move (other.as ())); - 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) { - emplace (other.as ()); + emplace (that.as ()); } /// Destroy the stored \a T. @@ -452,12 +361,12 @@ namespace isc { namespace dhcp { private: /// Prohibit blind copies. self_type& operator= (const self_type&); - variant (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); @@ -466,30 +375,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 { @@ -514,10 +405,24 @@ namespace isc { namespace dhcp { // "constant 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 @@ -527,7 +432,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; }; @@ -741,29 +657,155 @@ namespace isc { namespace dhcp { typedef Base super_type; /// Default constructor. - basic_symbol (); - - /// Move or copy constructor. - basic_symbol (YY_RVREF (basic_symbol) other); + basic_symbol () + : value () + , location () + {} + +#if 201103L <= YY_CPLUSPLUS + /// Move constructor. + basic_symbol (basic_symbol&& that); +#endif + /// Copy constructor. + basic_symbol (const basic_symbol& that); /// Constructor for valueless symbols, and symbols from each type. - basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l); - +#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 /// Destroy the symbol. - ~basic_symbol (); + ~basic_symbol () + { + clear (); + } /// Destroy contents, and record that is empty. - void clear (); + 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 195: // value + case 199: // map_value + case 245: // socket_type + case 248: // outbound_interface_value + case 270: // db_type + case 357: // hr_mode + case 506: // ncr_protocol_value + case 513: // replace_client_name_value + value.template destroy< ElementPtr > (); + break; + + case 178: // "boolean" + value.template destroy< bool > (); + break; + + case 177: // "floating point" + value.template destroy< double > (); + break; + + case 176: // "integer" + value.template destroy< int64_t > (); + break; + + case 175: // "constant string" + value.template destroy< std::string > (); + break; + + default: + break; + } + + 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); @@ -775,9 +817,9 @@ namespace isc { namespace dhcp { location_type location; private: -#if !defined __cplusplus || __cplusplus < 201103L +#if YY_CPLUSPLUS < 201103L /// Assignment operator. - basic_symbol& operator= (const basic_symbol& other); + basic_symbol& operator= (const basic_symbol& that); #endif }; @@ -787,8 +829,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; @@ -804,10 +851,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. @@ -816,7 +863,81 @@ namespace isc { namespace dhcp { }; /// "External" symbols: returned by the scanner. - typedef basic_symbol symbol_type; + struct symbol_type : basic_symbol + { + /// Superclass. + typedef basic_symbol super_type; + + /// Empty symbol. + symbol_type () {} + + /// 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_CONFIG_FETCH_WAIT_TIME || 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_MAX_ROW_ERRORS || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_MIN_VALID_LIFETIME || tok == token::TOKEN_MAX_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_PATTERN || 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_CONFIG_FETCH_WAIT_TIME || 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_MAX_ROW_ERRORS || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_MIN_VALID_LIFETIME || tok == token::TOKEN_MAX_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_PATTERN || 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 + }; /// Build a parser object. Dhcp4Parser (isc::dhcp::Parser4Context& ctx_yyarg); @@ -852,2493 +973,3265 @@ namespace isc { namespace dhcp { /// Report a syntax error. void error (const syntax_error& err); - // Symbol constructors declarations. - static - symbol_type - make_END (YY_COPY (location_type) l); - - static - symbol_type - make_COMMA (YY_COPY (location_type) l); - - static - symbol_type - make_COLON (YY_COPY (location_type) l); - - static - symbol_type - make_LSQUARE_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_RSQUARE_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_LCURLY_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_RCURLY_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_NULL_TYPE (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP4 (YY_COPY (location_type) l); - - static - symbol_type - make_CONFIG_CONTROL (YY_COPY (location_type) l); - - static - symbol_type - make_CONFIG_DATABASES (YY_COPY (location_type) l); - - static - symbol_type - make_CONFIG_FETCH_WAIT_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_INTERFACES_CONFIG (YY_COPY (location_type) l); - - static - symbol_type - make_INTERFACES (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP_SOCKET_TYPE (YY_COPY (location_type) l); - - static - symbol_type - make_RAW (YY_COPY (location_type) l); - - static - symbol_type - make_UDP (YY_COPY (location_type) l); - - static - symbol_type - make_OUTBOUND_INTERFACE (YY_COPY (location_type) l); - - static - symbol_type - make_SAME_AS_INBOUND (YY_COPY (location_type) l); - - static - symbol_type - make_USE_ROUTING (YY_COPY (location_type) l); - - static - symbol_type - make_RE_DETECT (YY_COPY (location_type) l); - - static - symbol_type - make_SANITY_CHECKS (YY_COPY (location_type) l); - - static - symbol_type - make_LEASE_CHECKS (YY_COPY (location_type) l); - - static - symbol_type - make_ECHO_CLIENT_ID (YY_COPY (location_type) l); - - static - symbol_type - make_MATCH_CLIENT_ID (YY_COPY (location_type) l); - - static - symbol_type - make_AUTHORITATIVE (YY_COPY (location_type) l); - - static - symbol_type - make_NEXT_SERVER (YY_COPY (location_type) l); - - static - symbol_type - make_SERVER_HOSTNAME (YY_COPY (location_type) l); - - static - symbol_type - make_BOOT_FILE_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_LEASE_DATABASE (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTS_DATABASE (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTS_DATABASES (YY_COPY (location_type) l); - - static - symbol_type - make_TYPE (YY_COPY (location_type) l); - - static - symbol_type - make_MEMFILE (YY_COPY (location_type) l); - - static - symbol_type - make_MYSQL (YY_COPY (location_type) l); - - static - symbol_type - make_POSTGRESQL (YY_COPY (location_type) l); - - static - symbol_type - make_CQL (YY_COPY (location_type) l); - - static - symbol_type - make_USER (YY_COPY (location_type) l); - - static - symbol_type - make_PASSWORD (YY_COPY (location_type) l); - - static - symbol_type - make_HOST (YY_COPY (location_type) l); - - static - symbol_type - make_PORT (YY_COPY (location_type) l); - - static - symbol_type - make_PERSIST (YY_COPY (location_type) l); - - static - symbol_type - make_LFC_INTERVAL (YY_COPY (location_type) l); - - static - symbol_type - make_READONLY (YY_COPY (location_type) l); - - static - symbol_type - make_CONNECT_TIMEOUT (YY_COPY (location_type) l); - - static - symbol_type - make_CONTACT_POINTS (YY_COPY (location_type) l); - - static - symbol_type - make_KEYSPACE (YY_COPY (location_type) l); - - static - symbol_type - make_CONSISTENCY (YY_COPY (location_type) l); - - static - symbol_type - make_SERIAL_CONSISTENCY (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_RECONNECT_TRIES (YY_COPY (location_type) l); - - static - symbol_type - make_RECONNECT_WAIT_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_REQUEST_TIMEOUT (YY_COPY (location_type) l); - - static - symbol_type - make_TCP_KEEPALIVE (YY_COPY (location_type) l); - - static - symbol_type - make_TCP_NODELAY (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_ROW_ERRORS (YY_COPY (location_type) l); - - static - symbol_type - make_VALID_LIFETIME (YY_COPY (location_type) l); - - static - symbol_type - make_MIN_VALID_LIFETIME (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_VALID_LIFETIME (YY_COPY (location_type) l); - - static - symbol_type - make_RENEW_TIMER (YY_COPY (location_type) l); - - static - symbol_type - make_REBIND_TIMER (YY_COPY (location_type) l); - - static - symbol_type - make_CALCULATE_TEE_TIMES (YY_COPY (location_type) l); - - static - symbol_type - make_T1_PERCENT (YY_COPY (location_type) l); - - static - symbol_type - make_T2_PERCENT (YY_COPY (location_type) l); - - static - symbol_type - make_DECLINE_PROBATION_PERIOD (YY_COPY (location_type) l); - - static - symbol_type - make_SERVER_TAG (YY_COPY (location_type) l); - - static - symbol_type - make_SUBNET4 (YY_COPY (location_type) l); - - static - symbol_type - make_SUBNET_4O6_INTERFACE (YY_COPY (location_type) l); - - static - symbol_type - make_SUBNET_4O6_INTERFACE_ID (YY_COPY (location_type) l); - - static - symbol_type - make_SUBNET_4O6_SUBNET (YY_COPY (location_type) l); - - static - symbol_type - make_OPTION_DEF (YY_COPY (location_type) l); - - static - symbol_type - make_OPTION_DATA (YY_COPY (location_type) l); - - static - symbol_type - make_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_DATA (YY_COPY (location_type) l); - - static - symbol_type - make_CODE (YY_COPY (location_type) l); - - static - symbol_type - make_SPACE (YY_COPY (location_type) l); - - static - symbol_type - make_CSV_FORMAT (YY_COPY (location_type) l); - - static - symbol_type - make_ALWAYS_SEND (YY_COPY (location_type) l); - - static - symbol_type - make_RECORD_TYPES (YY_COPY (location_type) l); - - static - symbol_type - make_ENCAPSULATE (YY_COPY (location_type) l); - - static - symbol_type - make_ARRAY (YY_COPY (location_type) l); - - static - symbol_type - make_SHARED_NETWORKS (YY_COPY (location_type) l); - - static - symbol_type - make_POOLS (YY_COPY (location_type) l); - - static - symbol_type - make_POOL (YY_COPY (location_type) l); - - static - symbol_type - make_USER_CONTEXT (YY_COPY (location_type) l); - - static - symbol_type - make_COMMENT (YY_COPY (location_type) l); - - static - symbol_type - make_SUBNET (YY_COPY (location_type) l); - - static - symbol_type - make_INTERFACE (YY_COPY (location_type) l); - - static - symbol_type - make_ID (YY_COPY (location_type) l); - - static - symbol_type - make_RESERVATION_MODE (YY_COPY (location_type) l); - - static - symbol_type - make_DISABLED (YY_COPY (location_type) l); - - static - symbol_type - make_OUT_OF_POOL (YY_COPY (location_type) l); - - static - symbol_type - make_GLOBAL (YY_COPY (location_type) l); - - static - symbol_type - make_ALL (YY_COPY (location_type) l); - - static - symbol_type - make_HOST_RESERVATION_IDENTIFIERS (YY_COPY (location_type) l); - - static - symbol_type - make_CLIENT_CLASSES (YY_COPY (location_type) l); - - static - symbol_type - make_REQUIRE_CLIENT_CLASSES (YY_COPY (location_type) l); - - static - symbol_type - make_TEST (YY_COPY (location_type) l); - - static - symbol_type - make_ONLY_IF_REQUIRED (YY_COPY (location_type) l); - - static - symbol_type - make_CLIENT_CLASS (YY_COPY (location_type) l); - - static - symbol_type - make_RESERVATIONS (YY_COPY (location_type) l); - - static - symbol_type - make_DUID (YY_COPY (location_type) l); - - static - symbol_type - make_HW_ADDRESS (YY_COPY (location_type) l); - - static - symbol_type - make_CIRCUIT_ID (YY_COPY (location_type) l); - - static - symbol_type - make_CLIENT_ID (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTNAME (YY_COPY (location_type) l); - - static - symbol_type - make_FLEX_ID (YY_COPY (location_type) l); - - static - symbol_type - make_RELAY (YY_COPY (location_type) l); - - static - symbol_type - make_IP_ADDRESS (YY_COPY (location_type) l); - - static - symbol_type - make_IP_ADDRESSES (YY_COPY (location_type) l); - - static - symbol_type - make_HOOKS_LIBRARIES (YY_COPY (location_type) l); - - static - symbol_type - make_LIBRARY (YY_COPY (location_type) l); - - static - symbol_type - make_PARAMETERS (YY_COPY (location_type) l); - - static - symbol_type - make_EXPIRED_LEASES_PROCESSING (YY_COPY (location_type) l); - - static - symbol_type - make_RECLAIM_TIMER_WAIT_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_HOLD_RECLAIMED_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_RECLAIM_LEASES (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_RECLAIM_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_UNWARNED_RECLAIM_CYCLES (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP4O6_PORT (YY_COPY (location_type) l); - - static - symbol_type - make_CONTROL_SOCKET (YY_COPY (location_type) l); - - static - symbol_type - make_SOCKET_TYPE (YY_COPY (location_type) l); - - static - symbol_type - make_SOCKET_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP_QUEUE_CONTROL (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP_DDNS (YY_COPY (location_type) l); - - static - symbol_type - make_ENABLE_UPDATES (YY_COPY (location_type) l); - - static - symbol_type - make_QUALIFYING_SUFFIX (YY_COPY (location_type) l); - - static - symbol_type - make_SERVER_IP (YY_COPY (location_type) l); - - static - symbol_type - make_SERVER_PORT (YY_COPY (location_type) l); - - static - symbol_type - make_SENDER_IP (YY_COPY (location_type) l); - - static - symbol_type - make_SENDER_PORT (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_QUEUE_SIZE (YY_COPY (location_type) l); - - static - symbol_type - make_NCR_PROTOCOL (YY_COPY (location_type) l); - - static - symbol_type - make_NCR_FORMAT (YY_COPY (location_type) l); - - static - symbol_type - make_OVERRIDE_NO_UPDATE (YY_COPY (location_type) l); - - static - symbol_type - make_OVERRIDE_CLIENT_UPDATE (YY_COPY (location_type) l); - - static - symbol_type - make_REPLACE_CLIENT_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_GENERATED_PREFIX (YY_COPY (location_type) l); - - static - symbol_type - make_TCP (YY_COPY (location_type) l); - - static - symbol_type - make_JSON (YY_COPY (location_type) l); - - static - symbol_type - make_WHEN_PRESENT (YY_COPY (location_type) l); - - static - symbol_type - make_NEVER (YY_COPY (location_type) l); - - static - symbol_type - make_ALWAYS (YY_COPY (location_type) l); - - static - symbol_type - make_WHEN_NOT_PRESENT (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTNAME_CHAR_SET (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTNAME_CHAR_REPLACEMENT (YY_COPY (location_type) l); - - static - symbol_type - make_LOGGING (YY_COPY (location_type) l); - - static - symbol_type - make_LOGGERS (YY_COPY (location_type) l); - - static - symbol_type - make_OUTPUT_OPTIONS (YY_COPY (location_type) l); - - static - symbol_type - make_OUTPUT (YY_COPY (location_type) l); - - static - symbol_type - make_DEBUGLEVEL (YY_COPY (location_type) l); - - static - symbol_type - make_SEVERITY (YY_COPY (location_type) l); - - static - symbol_type - make_FLUSH (YY_COPY (location_type) l); - - static - symbol_type - make_MAXSIZE (YY_COPY (location_type) l); - - static - symbol_type - make_MAXVER (YY_COPY (location_type) l); - - static - symbol_type - make_PATTERN (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP6 (YY_COPY (location_type) l); - - static - symbol_type - make_DHCPDDNS (YY_COPY (location_type) l); - - static - symbol_type - make_CONTROL_AGENT (YY_COPY (location_type) l); - - static - symbol_type - make_TOPLEVEL_JSON (YY_COPY (location_type) l); - - static - symbol_type - make_TOPLEVEL_DHCP4 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_DHCP4 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_INTERFACES4 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_SUBNET4 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_POOL4 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_RESERVATION (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_OPTION_DEFS (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_OPTION_DEF (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_OPTION_DATA (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_HOOKS_LIBRARY (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_DHCP_DDNS (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_LOGGING (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_CONFIG_CONTROL (YY_COPY (location_type) l); - - static - symbol_type - make_STRING (YY_COPY (std::string) v, YY_COPY (location_type) l); - - static - symbol_type - make_INTEGER (YY_COPY (int64_t) v, YY_COPY (location_type) l); - - static - symbol_type - make_FLOAT (YY_COPY (double) v, YY_COPY (location_type) l); - - static - symbol_type - make_BOOLEAN (YY_COPY (bool) v, YY_COPY (location_type) l); - - - - 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 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 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 yydefact_[]; - - // YYPGOTO[NTERM-NUM]. - static const short yypgoto_[]; - - // YYDEFGOTO[NTERM-NUM]. - static const short 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 yytable_[]; - - static const short yycheck_[]; - - // YYSTOS[STATE-NUM] -- The (internal number of the) accessing - // symbol of state STATE-NUM. - static const unsigned short yystos_[]; - - // YYR1[YYN] -- Symbol number of symbol that rule YYN derives. - static const unsigned short 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 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 level. - int yydebug_; - /// Debug stream. - 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; -#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 (); - /// 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 !defined __cplusplus || __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 - }; - - /// 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 sym the symbol - /// \warning the contents of \a s.value is stolen. - void yypush_ (const char* m, YY_MOVE_REF (stack_symbol_type) sym); - - /// 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); - - /// Pop \a n symbols from the stack. - void yypop_ (int n = 1); - - /// Constants. - enum - { - yyeof_ = 0, - yylast_ = 1054, ///< Last index in yytable_. - yynnts_ = 386, ///< Number of nonterminal symbols. - yyfinal_ = 30, ///< Termination state number. - yyterror_ = 1, - yyerrcode_ = 256, - yyntokens_ = 179 ///< 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, 174, - 175, 176, 177, 178 - }; - const unsigned user_token_number_max_ = 433; - 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 - Dhcp4Parser::basic_symbol::basic_symbol () - : value () - , location () - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (YY_RVREF (basic_symbol) other) - : Base (YY_MOVE (other)) - , value () - , location (YY_MOVE (other.location)) - { - switch (other.type_get ()) - { - case 195: // value - case 199: // map_value - case 245: // socket_type - case 248: // outbound_interface_value - case 270: // db_type - case 357: // hr_mode - case 506: // ncr_protocol_value - case 513: // replace_client_name_value - value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (other.value)); - break; - - case 178: // "boolean" - value.YY_MOVE_OR_COPY< bool > (YY_MOVE (other.value)); - break; - - case 177: // "floating point" - value.YY_MOVE_OR_COPY< double > (YY_MOVE (other.value)); - break; - - case 176: // "integer" - value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (other.value)); - break; - - case 175: // "constant string" - value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (other.value)); - break; - - default: - break; - } - - } - - - // Implementation of basic_symbol constructor for each type. - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l) - : Base (t) - , location (YY_MOVE (l)) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - Dhcp4Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - - - template - Dhcp4Parser::basic_symbol::~basic_symbol () - { - clear (); - } - - template - 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 195: // value - case 199: // map_value - case 245: // socket_type - case 248: // outbound_interface_value - case 270: // db_type - case 357: // hr_mode - case 506: // ncr_protocol_value - case 513: // replace_client_name_value - value.template destroy< ElementPtr > (); - break; - - case 178: // "boolean" - value.template destroy< bool > (); - break; - - case 177: // "floating point" - value.template destroy< double > (); - break; - - case 176: // "integer" - value.template destroy< int64_t > (); - break; - - case 175: // "constant string" - value.template destroy< std::string > (); - break; - - default: - break; - } - - Base::clear (); - } - - template - bool - Dhcp4Parser::basic_symbol::empty () const - { - return Base::type_get () == empty_symbol; - } - - template - void - Dhcp4Parser::basic_symbol::move (basic_symbol& s) - { - super_type::move (s); - switch (this->type_get ()) - { - case 195: // value - case 199: // map_value - case 245: // socket_type - case 248: // outbound_interface_value - case 270: // db_type - case 357: // hr_mode - case 506: // ncr_protocol_value - case 513: // replace_client_name_value - value.move< ElementPtr > (YY_MOVE (s.value)); - break; - - case 178: // "boolean" - value.move< bool > (YY_MOVE (s.value)); - break; - - case 177: // "floating point" - value.move< double > (YY_MOVE (s.value)); - break; - - case 176: // "integer" - value.move< int64_t > (YY_MOVE (s.value)); - break; - - case 175: // "constant string" - value.move< std::string > (YY_MOVE (s.value)); - break; - - default: - break; - } - - location = YY_MOVE (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 - 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, 432, 433 - }; - return static_cast (yytoken_number_[type]); - } - - // Implementation of make_symbol for each symbol type. - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_END (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_END, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_COMMA (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_COMMA, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_COLON (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_COLON, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LSQUARE_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LSQUARE_BRACKET, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RSQUARE_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RSQUARE_BRACKET, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LCURLY_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LCURLY_BRACKET, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RCURLY_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RCURLY_BRACKET, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NULL_TYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NULL_TYPE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP4 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP4, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONFIG_CONTROL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONFIG_CONTROL, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONFIG_DATABASES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONFIG_DATABASES, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONFIG_FETCH_WAIT_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONFIG_FETCH_WAIT_TIME, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_INTERFACES_CONFIG (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_INTERFACES_CONFIG, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_INTERFACES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_INTERFACES, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP_SOCKET_TYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP_SOCKET_TYPE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RAW (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RAW, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_UDP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_UDP, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OUTBOUND_INTERFACE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OUTBOUND_INTERFACE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SAME_AS_INBOUND (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SAME_AS_INBOUND, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_USE_ROUTING (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_USE_ROUTING, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RE_DETECT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RE_DETECT, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SANITY_CHECKS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SANITY_CHECKS, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LEASE_CHECKS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LEASE_CHECKS, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ECHO_CLIENT_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ECHO_CLIENT_ID, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MATCH_CLIENT_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MATCH_CLIENT_ID, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_AUTHORITATIVE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_AUTHORITATIVE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NEXT_SERVER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NEXT_SERVER, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERVER_HOSTNAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERVER_HOSTNAME, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_BOOT_FILE_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_BOOT_FILE_NAME, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LEASE_DATABASE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LEASE_DATABASE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTS_DATABASE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTS_DATABASE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTS_DATABASES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTS_DATABASES, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TYPE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MEMFILE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MEMFILE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MYSQL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MYSQL, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_POSTGRESQL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_POSTGRESQL, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CQL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CQL, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_USER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_USER, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_PASSWORD (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PASSWORD, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOST (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOST, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_PORT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PORT, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_PERSIST (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PERSIST, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LFC_INTERVAL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LFC_INTERVAL, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_READONLY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_READONLY, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONNECT_TIMEOUT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONNECT_TIMEOUT, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONTACT_POINTS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONTACT_POINTS, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_KEYSPACE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_KEYSPACE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONSISTENCY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONSISTENCY, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERIAL_CONSISTENCY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERIAL_CONSISTENCY, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_RECONNECT_TRIES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RECONNECT_WAIT_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_REQUEST_TIMEOUT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_REQUEST_TIMEOUT, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TCP_KEEPALIVE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TCP_KEEPALIVE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TCP_NODELAY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TCP_NODELAY, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_ROW_ERRORS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_ROW_ERRORS, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_VALID_LIFETIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_VALID_LIFETIME, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MIN_VALID_LIFETIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MIN_VALID_LIFETIME, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_VALID_LIFETIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_VALID_LIFETIME, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RENEW_TIMER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RENEW_TIMER, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_REBIND_TIMER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_REBIND_TIMER, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CALCULATE_TEE_TIMES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CALCULATE_TEE_TIMES, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_T1_PERCENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_T1_PERCENT, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_T2_PERCENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_T2_PERCENT, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DECLINE_PROBATION_PERIOD (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERVER_TAG (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERVER_TAG, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET4 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUBNET4, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET_4O6_INTERFACE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET_4O6_INTERFACE_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE_ID, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET_4O6_SUBNET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUBNET_4O6_SUBNET, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OPTION_DEF (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OPTION_DEF, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OPTION_DATA (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OPTION_DATA, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NAME, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DATA (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DATA, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CODE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CODE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SPACE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SPACE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CSV_FORMAT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CSV_FORMAT, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ALWAYS_SEND (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ALWAYS_SEND, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RECORD_TYPES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RECORD_TYPES, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ENCAPSULATE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ENCAPSULATE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ARRAY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ARRAY, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SHARED_NETWORKS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SHARED_NETWORKS, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_POOLS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_POOLS, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_POOL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_POOL, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_USER_CONTEXT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_USER_CONTEXT, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_COMMENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_COMMENT, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUBNET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUBNET, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_INTERFACE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_INTERFACE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ID, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RESERVATION_MODE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RESERVATION_MODE, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DISABLED (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DISABLED, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OUT_OF_POOL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OUT_OF_POOL, YY_MOVE (l)); - } - - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_GLOBAL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_GLOBAL, YY_MOVE (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 +#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_CONFIG_FETCH_WAIT_TIME (location_type l) + { + return symbol_type (token::TOKEN_CONFIG_FETCH_WAIT_TIME, std::move (l)); + } +#else + static + symbol_type + make_CONFIG_FETCH_WAIT_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_CONFIG_FETCH_WAIT_TIME, 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_MAX_ROW_ERRORS (location_type l) + { + return symbol_type (token::TOKEN_MAX_ROW_ERRORS, std::move (l)); + } +#else + static + symbol_type + make_MAX_ROW_ERRORS (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_ROW_ERRORS, 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_MIN_VALID_LIFETIME (location_type l) + { + return symbol_type (token::TOKEN_MIN_VALID_LIFETIME, std::move (l)); + } +#else + static + symbol_type + make_MIN_VALID_LIFETIME (const location_type& l) + { + return symbol_type (token::TOKEN_MIN_VALID_LIFETIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_VALID_LIFETIME (location_type l) + { + return symbol_type (token::TOKEN_MAX_VALID_LIFETIME, std::move (l)); + } +#else + static + symbol_type + make_MAX_VALID_LIFETIME (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_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_PATTERN (location_type l) + { + return symbol_type (token::TOKEN_PATTERN, std::move (l)); + } +#else + static + symbol_type + make_PATTERN (const location_type& l) + { + return symbol_type (token::TOKEN_PATTERN, 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 - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ALL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ALL, YY_MOVE (l)); - } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOST_RESERVATION_IDENTIFIERS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, YY_MOVE (l)); - } + private: + /// This class is not copyable. + Dhcp4Parser (const Dhcp4Parser&); + Dhcp4Parser& operator= (const Dhcp4Parser&); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CLIENT_CLASSES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CLIENT_CLASSES, YY_MOVE (l)); - } + /// State numbers. + typedef int state_type; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_REQUIRE_CLIENT_CLASSES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, YY_MOVE (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; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TEST (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TEST, YY_MOVE (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); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ONLY_IF_REQUIRED (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, YY_MOVE (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); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CLIENT_CLASS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CLIENT_CLASS, YY_MOVE (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); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RESERVATIONS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RESERVATIONS, YY_MOVE (l)); - } + static const short yypact_ninf_; + static const signed char yytable_ninf_; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DUID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DUID, YY_MOVE (l)); - } + /// Convert a scanner token number \a t to a symbol number. + static token_number_type yytranslate_ (token_type t); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HW_ADDRESS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HW_ADDRESS, YY_MOVE (l)); - } + // Tables. + // YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + // STATE-NUM. + static const short yypact_[]; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CIRCUIT_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CIRCUIT_ID, YY_MOVE (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_[]; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CLIENT_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CLIENT_ID, YY_MOVE (l)); - } + // YYPGOTO[NTERM-NUM]. + static const short yypgoto_[]; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTNAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTNAME, YY_MOVE (l)); - } + // YYDEFGOTO[NTERM-NUM]. + static const short yydefgoto_[]; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_FLEX_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_FLEX_ID, YY_MOVE (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_[]; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RELAY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RELAY, YY_MOVE (l)); - } + static const short yycheck_[]; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_IP_ADDRESS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_IP_ADDRESS, YY_MOVE (l)); - } + // YYSTOS[STATE-NUM] -- The (internal number of the) accessing + // symbol of state STATE-NUM. + static const unsigned short yystos_[]; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_IP_ADDRESSES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_IP_ADDRESSES, YY_MOVE (l)); - } + // YYR1[YYN] -- Symbol number of symbol that rule YYN derives. + static const unsigned short yyr1_[]; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOOKS_LIBRARIES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOOKS_LIBRARIES, YY_MOVE (l)); - } + // YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. + static const unsigned char yyr2_[]; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LIBRARY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LIBRARY, YY_MOVE (l)); - } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_PARAMETERS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PARAMETERS, YY_MOVE (l)); - } + /// Convert the symbol name \a n to a form suitable for a diagnostic. + static std::string yytnamerr_ (const char *n); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_EXPIRED_LEASES_PROCESSING (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, YY_MOVE (l)); - } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_RECLAIM_TIMER_WAIT_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, YY_MOVE (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_ (); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, YY_MOVE (l)); - } + /// Debugging level. + int yydebug_; + /// Debug stream. + std::ostream* yycdebug_; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOLD_RECLAIMED_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, YY_MOVE (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 - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_RECLAIM_LEASES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, YY_MOVE (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; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_RECLAIM_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, YY_MOVE (l)); - } + private: + /// Type access provider for state based symbols. + struct by_state + { + /// Default constructor. + by_state () YY_NOEXCEPT; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_UNWARNED_RECLAIM_CYCLES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, YY_MOVE (l)); - } + /// The symbol type as needed by the constructor. + typedef state_type kind_type; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP4O6_PORT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP4O6_PORT, YY_MOVE (l)); - } + /// Constructor. + by_state (kind_type s) YY_NOEXCEPT; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONTROL_SOCKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONTROL_SOCKET, YY_MOVE (l)); - } + /// Copy constructor. + by_state (const by_state& that) YY_NOEXCEPT; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SOCKET_TYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SOCKET_TYPE, YY_MOVE (l)); - } + /// Record that this symbol is empty. + void clear () YY_NOEXCEPT; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SOCKET_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SOCKET_NAME, YY_MOVE (l)); - } + /// Steal the symbol type from \a that. + void move (by_state& that); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP_QUEUE_CONTROL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, YY_MOVE (l)); - } + /// The (internal) type number (corresponding to \a state). + /// \a empty_symbol when empty. + symbol_number_type type_get () const YY_NOEXCEPT; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP_DDNS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP_DDNS, YY_MOVE (l)); - } + /// The state number used to denote an empty symbol. + enum { empty_state = -1 }; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ENABLE_UPDATES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ENABLE_UPDATES, YY_MOVE (l)); - } + /// The state. + /// \a empty when empty. + state_type state; + }; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_QUALIFYING_SUFFIX (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, YY_MOVE (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 + }; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERVER_IP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERVER_IP, YY_MOVE (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); + } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SERVER_PORT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERVER_PORT, YY_MOVE (l)); - } + /// Pop elements from the stack. + void + pop (int n = 1) YY_NOEXCEPT + { + for (; 0 < n; --n) + seq_.pop_back (); + } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SENDER_IP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SENDER_IP, YY_MOVE (l)); - } + /// Pop all elements from the stack. + void + clear () YY_NOEXCEPT + { + seq_.clear (); + } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SENDER_PORT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SENDER_PORT, YY_MOVE (l)); - } + /// Number of elements on the stack. + size_type + size () const YY_NOEXCEPT + { + return seq_.size (); + } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAX_QUEUE_SIZE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, YY_MOVE (l)); - } + /// Iterator on top of the stack (going downwards). + const_iterator + begin () const YY_NOEXCEPT + { + return seq_.rbegin (); + } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NCR_PROTOCOL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NCR_PROTOCOL, YY_MOVE (l)); - } + /// Bottom of the stack. + const_iterator + end () const YY_NOEXCEPT + { + return seq_.rend (); + } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NCR_FORMAT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NCR_FORMAT, YY_MOVE (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_; + }; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OVERRIDE_NO_UPDATE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, YY_MOVE (l)); - } + private: + stack (const stack&); + stack& operator= (const stack&); + /// The wrapped container. + S seq_; + }; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OVERRIDE_CLIENT_UPDATE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, YY_MOVE (l)); - } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_REPLACE_CLIENT_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, YY_MOVE (l)); - } + /// Stack type. + typedef stack stack_type; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_GENERATED_PREFIX (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_GENERATED_PREFIX, YY_MOVE (l)); - } + /// The stack. + stack_type yystack_; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TCP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TCP, YY_MOVE (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); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_JSON (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_JSON, YY_MOVE (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); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_WHEN_PRESENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_WHEN_PRESENT, YY_MOVE (l)); - } + /// Pop \a n symbols from the stack. + void yypop_ (int n = 1); - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_NEVER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NEVER, YY_MOVE (l)); - } + /// Constants. + enum + { + yyeof_ = 0, + yylast_ = 1054, ///< Last index in yytable_. + yynnts_ = 386, ///< Number of nonterminal symbols. + yyfinal_ = 30, ///< Termination state number. + yyterror_ = 1, + yyerrcode_ = 256, + yyntokens_ = 179 ///< Number of tokens. + }; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_ALWAYS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ALWAYS, YY_MOVE (l)); - } + + // User arguments. + isc::dhcp::Parser4Context& ctx; + }; inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_WHEN_NOT_PRESENT (YY_COPY (location_type) l) + Dhcp4Parser::token_number_type + Dhcp4Parser::yytranslate_ (token_type t) { - return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, YY_MOVE (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, 177, 178 + }; + const unsigned user_token_number_max_ = 433; + const token_number_type undef_token_ = 2; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTNAME_CHAR_SET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, YY_MOVE (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_; } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_HOSTNAME_CHAR_REPLACEMENT (YY_COPY (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_REPLACEMENT, YY_MOVE (l)); - } + switch (this->type_get ()) + { + case 195: // value + case 199: // map_value + case 245: // socket_type + case 248: // outbound_interface_value + case 270: // db_type + case 357: // hr_mode + case 506: // ncr_protocol_value + case 513: // replace_client_name_value + value.move< ElementPtr > (std::move (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LOGGING (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LOGGING, YY_MOVE (l)); - } + case 178: // "boolean" + value.move< bool > (std::move (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_LOGGERS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LOGGERS, YY_MOVE (l)); - } + case 177: // "floating point" + value.move< double > (std::move (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OUTPUT_OPTIONS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OUTPUT_OPTIONS, YY_MOVE (l)); - } + case 176: // "integer" + value.move< int64_t > (std::move (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_OUTPUT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OUTPUT, YY_MOVE (l)); - } + case 175: // "constant string" + value.move< std::string > (std::move (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DEBUGLEVEL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DEBUGLEVEL, YY_MOVE (l)); - } + default: + break; + } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SEVERITY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SEVERITY, YY_MOVE (l)); } +#endif - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_FLUSH (YY_COPY (location_type) l) + template + Dhcp4Parser::basic_symbol::basic_symbol (const basic_symbol& that) + : Base (that) + , value () + , location (that.location) { - return symbol_type (token::TOKEN_FLUSH, YY_MOVE (l)); - } + switch (this->type_get ()) + { + case 195: // value + case 199: // map_value + case 245: // socket_type + case 248: // outbound_interface_value + case 270: // db_type + case 357: // hr_mode + case 506: // ncr_protocol_value + case 513: // replace_client_name_value + value.copy< ElementPtr > (YY_MOVE (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAXSIZE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAXSIZE, YY_MOVE (l)); - } + case 178: // "boolean" + value.copy< bool > (YY_MOVE (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_MAXVER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAXVER, YY_MOVE (l)); - } + case 177: // "floating point" + value.copy< double > (YY_MOVE (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_PATTERN (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PATTERN, YY_MOVE (l)); - } + case 176: // "integer" + value.copy< int64_t > (YY_MOVE (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCP6 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP6, YY_MOVE (l)); - } + case 175: // "constant string" + value.copy< std::string > (YY_MOVE (that.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_DHCPDDNS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCPDDNS, YY_MOVE (l)); - } + default: + break; + } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_CONTROL_AGENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONTROL_AGENT, YY_MOVE (l)); } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TOPLEVEL_JSON (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TOPLEVEL_JSON, YY_MOVE (l)); - } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_TOPLEVEL_DHCP4 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TOPLEVEL_DHCP4, YY_MOVE (l)); - } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_DHCP4 (YY_COPY (location_type) l) + template + bool + Dhcp4Parser::basic_symbol::empty () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_SUB_DHCP4, YY_MOVE (l)); + return Base::type_get () == empty_symbol; } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_INTERFACES4 (YY_COPY (location_type) l) + template + void + Dhcp4Parser::basic_symbol::move (basic_symbol& s) { - return symbol_type (token::TOKEN_SUB_INTERFACES4, YY_MOVE (l)); - } + super_type::move (s); + switch (this->type_get ()) + { + case 195: // value + case 199: // map_value + case 245: // socket_type + case 248: // outbound_interface_value + case 270: // db_type + case 357: // hr_mode + case 506: // ncr_protocol_value + case 513: // replace_client_name_value + value.move< ElementPtr > (YY_MOVE (s.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_SUBNET4 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_SUBNET4, YY_MOVE (l)); - } + case 178: // "boolean" + value.move< bool > (YY_MOVE (s.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_POOL4 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_POOL4, YY_MOVE (l)); - } + case 177: // "floating point" + value.move< double > (YY_MOVE (s.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_RESERVATION (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_RESERVATION, YY_MOVE (l)); - } + case 176: // "integer" + value.move< int64_t > (YY_MOVE (s.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_OPTION_DEFS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DEFS, YY_MOVE (l)); - } + case 175: // "constant string" + value.move< std::string > (YY_MOVE (s.value)); + break; - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_OPTION_DEF (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DEF, YY_MOVE (l)); - } + default: + break; + } - inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_OPTION_DATA (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DATA, YY_MOVE (l)); + location = YY_MOVE (s.location); } + // by_type. inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_HOOKS_LIBRARY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, YY_MOVE (l)); - } + Dhcp4Parser::by_type::by_type () + : type (empty_symbol) + {} +#if 201103L <= YY_CPLUSPLUS inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_DHCP_DDNS (YY_COPY (location_type) l) + Dhcp4Parser::by_type::by_type (by_type&& that) + : type (that.type) { - return symbol_type (token::TOKEN_SUB_DHCP_DDNS, YY_MOVE (l)); + that.clear (); } +#endif inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_LOGGING (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_LOGGING, YY_MOVE (l)); - } + Dhcp4Parser::by_type::by_type (const by_type& that) + : type (that.type) + {} inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_SUB_CONFIG_CONTROL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, YY_MOVE (l)); - } + Dhcp4Parser::by_type::by_type (token_type t) + : type (yytranslate_ (t)) + {} inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_STRING (YY_COPY (std::string) v, YY_COPY (location_type) l) + void + Dhcp4Parser::by_type::clear () { - return symbol_type (token::TOKEN_STRING, YY_MOVE (v), YY_MOVE (l)); + type = empty_symbol; } inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_INTEGER (YY_COPY (int64_t) v, YY_COPY (location_type) l) + void + Dhcp4Parser::by_type::move (by_type& that) { - return symbol_type (token::TOKEN_INTEGER, YY_MOVE (v), YY_MOVE (l)); + type = that.type; + that.clear (); } inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_FLOAT (YY_COPY (double) v, YY_COPY (location_type) l) + int + Dhcp4Parser::by_type::type_get () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_FLOAT, YY_MOVE (v), YY_MOVE (l)); + return type; } inline - Dhcp4Parser::symbol_type - Dhcp4Parser::make_BOOLEAN (YY_COPY (bool) v, YY_COPY (location_type) l) + Dhcp4Parser::token_type + Dhcp4Parser::by_type::token () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_BOOLEAN, YY_MOVE (v), YY_MOVE (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, 432, 433 + }; + return token_type (yytoken_number_[type]); } - -#line 14 "dhcp4_parser.yy" // lalr1.cc:404 +#line 14 "dhcp4_parser.yy" } } // isc::dhcp -#line 3342 "dhcp4_parser.h" // lalr1.cc:404 +#line 4234 "dhcp4_parser.h" + diff --git a/src/bin/dhcp4/location.hh b/src/bin/dhcp4/location.hh index a5fb10e935..f6736dd8a6 100644 --- a/src/bin/dhcp4/location.hh +++ b/src/bin/dhcp4/location.hh @@ -1,8 +1,9 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// Generated 201908191237 +// A Bison parser, made by GNU Bison 3.4.1. // Locations for Bison parsers in C++ -// Copyright (C) 2002-2015, 2018 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 @@ -54,9 +55,10 @@ # endif # endif -#line 14 "dhcp4_parser.yy" // location.cc:339 +#line 14 "dhcp4_parser.yy" namespace isc { namespace dhcp { -#line 60 "location.hh" // location.cc:339 +#line 60 "location.hh" + /// A point in a source file. class position { @@ -316,7 +318,8 @@ namespace isc { namespace dhcp { return ostr; } -#line 14 "dhcp4_parser.yy" // location.cc:339 +#line 14 "dhcp4_parser.yy" } } // isc::dhcp -#line 322 "location.hh" // location.cc:339 +#line 323 "location.hh" + #endif // !YY_PARSER4_LOCATION_HH_INCLUDED diff --git a/src/bin/dhcp4/position.hh b/src/bin/dhcp4/position.hh index 22ef35f744..ab5e530ad4 100644 --- a/src/bin/dhcp4/position.hh +++ b/src/bin/dhcp4/position.hh @@ -1,4 +1,5 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// Generated 201908191237 +// A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it // used to define is now defined in "location.hh". diff --git a/src/bin/dhcp4/stack.hh b/src/bin/dhcp4/stack.hh index 81e152d836..a0044e9db3 100644 --- a/src/bin/dhcp4/stack.hh +++ b/src/bin/dhcp4/stack.hh @@ -1,4 +1,5 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// Generated 201908191237 +// A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it // used to define is now defined with the parser itself. diff --git a/src/bin/dhcp6/dhcp6_parser.cc b/src/bin/dhcp6/dhcp6_parser.cc index 6fb09a3d99..c28c7d15ad 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.2.1. +// A Bison parser, made by GNU Bison 3.4.1. // Skeleton implementation for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015, 2018 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 @@ -43,11 +43,11 @@ // Unqualified %code blocks. -#line 34 "dhcp6_parser.yy" // lalr1.cc:438 +#line 34 "dhcp6_parser.yy" #include -#line 51 "dhcp6_parser.cc" // lalr1.cc:438 +#line 51 "dhcp6_parser.cc" #ifndef YY_ @@ -88,7 +88,7 @@ { \ (Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \ } \ - while (/*CONSTCOND*/ false) + while (false) # endif @@ -140,9 +140,10 @@ #define YYERROR goto yyerrorlab #define YYRECOVERING() (!!yyerrstatus_) -#line 14 "dhcp6_parser.yy" // lalr1.cc:513 +#line 14 "dhcp6_parser.yy" namespace isc { namespace dhcp { -#line 146 "dhcp6_parser.cc" // lalr1.cc:513 +#line 146 "dhcp6_parser.cc" + /* Return YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is @@ -154,7 +155,7 @@ namespace isc { namespace dhcp { { if (*yystr == '"') { - std::string yyr = ""; + std::string yyr; char const *yyp = yystr; for (;;) @@ -167,7 +168,10 @@ namespace isc { namespace dhcp { case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; - // Fall through. + else + goto append; + + append: default: yyr += *yyp; break; @@ -195,6 +199,8 @@ namespace isc { namespace dhcp { Dhcp6Parser::~Dhcp6Parser () {} + Dhcp6Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW + {} /*---------------. | Symbol types. | @@ -203,16 +209,16 @@ namespace isc { namespace dhcp { // by_state. - Dhcp6Parser::by_state::by_state () + Dhcp6Parser::by_state::by_state () YY_NOEXCEPT : state (empty_state) {} - 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) {} void - Dhcp6Parser::by_state::clear () + Dhcp6Parser::by_state::clear () YY_NOEXCEPT { state = empty_state; } @@ -224,12 +230,12 @@ namespace isc { namespace dhcp { that.clear (); } - Dhcp6Parser::by_state::by_state (state_type s) + Dhcp6Parser::by_state::by_state (state_type s) YY_NOEXCEPT : state (s) {} 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; @@ -275,7 +281,7 @@ namespace isc { namespace dhcp { break; } -#if defined __cplusplus && 201103L <= __cplusplus +#if 201103L <= YY_CPLUSPLUS // that is emptied. that.state = empty_state; #endif @@ -320,7 +326,7 @@ namespace isc { namespace dhcp { that.type = empty_symbol; } -#if !defined __cplusplus || __cplusplus < 201103L +#if YY_CPLUSPLUS < 201103L Dhcp6Parser::stack_symbol_type& Dhcp6Parser::stack_symbol_type::operator= (stack_symbol_type& that) { @@ -381,93 +387,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 183: // "constant string" - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< std::string > (); } -#line 398 "dhcp6_parser.cc" // lalr1.cc:672 + case 183: // "constant string" +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < std::string > (); } +#line 405 "dhcp6_parser.cc" break; case 184: // "integer" - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< int64_t > (); } -#line 405 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < int64_t > (); } +#line 411 "dhcp6_parser.cc" break; case 185: // "floating point" - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< double > (); } -#line 412 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < double > (); } +#line 417 "dhcp6_parser.cc" break; case 186: // "boolean" - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< bool > (); } -#line 419 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < bool > (); } +#line 423 "dhcp6_parser.cc" break; case 204: // value - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 426 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 429 "dhcp6_parser.cc" break; case 208: // map_value - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 433 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 435 "dhcp6_parser.cc" break; case 269: // db_type - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 440 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 441 "dhcp6_parser.cc" break; case 363: // hr_mode - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 447 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 447 "dhcp6_parser.cc" break; case 499: // duid_type - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 454 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 453 "dhcp6_parser.cc" break; case 534: // ncr_protocol_value - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 461 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 459 "dhcp6_parser.cc" break; case 541: // replace_client_name_value - -#line 262 "dhcp6_parser.yy" // lalr1.cc:672 - { yyoutput << yysym.value.template as< ElementPtr > (); } -#line 468 "dhcp6_parser.cc" // lalr1.cc:672 +#line 262 "dhcp6_parser.yy" + { yyoutput << yysym.value.template as < ElementPtr > (); } +#line 465 "dhcp6_parser.cc" break; - default: break; } @@ -486,7 +482,7 @@ namespace isc { namespace dhcp { void Dhcp6Parser::yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym) { -#if defined __cplusplus && 201103L <= __cplusplus +#if 201103L <= YY_CPLUSPLUS yypush_ (m, stack_symbol_type (s, std::move (sym))); #else stack_symbol_type ss (s, sym); @@ -590,17 +586,22 @@ namespace isc { namespace dhcp { yystack_.clear (); 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 << '\n'; // Accept? if (yystack_[0].state == yyfinal_) - goto yyacceptlab; + YYACCEPT; goto yybackup; - // Backup. + + /*-----------. + | yybackup. | + `-----------*/ yybackup: // Try to take a decision without lookahead. yyn = yypact_[yystack_[0].state]; @@ -621,6 +622,7 @@ namespace isc { namespace dhcp { #if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); goto yyerrlab1; } @@ -652,6 +654,7 @@ namespace isc { namespace dhcp { yypush_ ("Shifting", yyn, YY_MOVE (yyla)); goto yynewstate; + /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ @@ -661,8 +664,9 @@ namespace isc { namespace dhcp { goto yyerrlab; goto yyreduce; + /*-----------------------------. - | yyreduce -- Do a reduction. | + | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: yylen = yyr2_[yyn]; @@ -707,8 +711,8 @@ namespace isc { namespace dhcp { // 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; } @@ -721,286 +725,286 @@ namespace isc { namespace dhcp { switch (yyn) { case 2: -#line 271 "dhcp6_parser.yy" // lalr1.cc:907 +#line 271 "dhcp6_parser.yy" { ctx.ctx_ = ctx.NO_KEYWORD; } -#line 727 "dhcp6_parser.cc" // lalr1.cc:907 +#line 731 "dhcp6_parser.cc" break; case 4: -#line 272 "dhcp6_parser.yy" // lalr1.cc:907 +#line 272 "dhcp6_parser.yy" { ctx.ctx_ = ctx.CONFIG; } -#line 733 "dhcp6_parser.cc" // lalr1.cc:907 +#line 737 "dhcp6_parser.cc" break; case 6: -#line 273 "dhcp6_parser.yy" // lalr1.cc:907 +#line 273 "dhcp6_parser.yy" { ctx.ctx_ = ctx.DHCP6; } -#line 739 "dhcp6_parser.cc" // lalr1.cc:907 +#line 743 "dhcp6_parser.cc" break; case 8: -#line 274 "dhcp6_parser.yy" // lalr1.cc:907 +#line 274 "dhcp6_parser.yy" { ctx.ctx_ = ctx.INTERFACES_CONFIG; } -#line 745 "dhcp6_parser.cc" // lalr1.cc:907 +#line 749 "dhcp6_parser.cc" break; case 10: -#line 275 "dhcp6_parser.yy" // lalr1.cc:907 +#line 275 "dhcp6_parser.yy" { ctx.ctx_ = ctx.SUBNET6; } -#line 751 "dhcp6_parser.cc" // lalr1.cc:907 +#line 755 "dhcp6_parser.cc" break; case 12: -#line 276 "dhcp6_parser.yy" // lalr1.cc:907 +#line 276 "dhcp6_parser.yy" { ctx.ctx_ = ctx.POOLS; } -#line 757 "dhcp6_parser.cc" // lalr1.cc:907 +#line 761 "dhcp6_parser.cc" break; case 14: -#line 277 "dhcp6_parser.yy" // lalr1.cc:907 +#line 277 "dhcp6_parser.yy" { ctx.ctx_ = ctx.PD_POOLS; } -#line 763 "dhcp6_parser.cc" // lalr1.cc:907 +#line 767 "dhcp6_parser.cc" break; case 16: -#line 278 "dhcp6_parser.yy" // lalr1.cc:907 +#line 278 "dhcp6_parser.yy" { ctx.ctx_ = ctx.RESERVATIONS; } -#line 769 "dhcp6_parser.cc" // lalr1.cc:907 +#line 773 "dhcp6_parser.cc" break; case 18: -#line 279 "dhcp6_parser.yy" // lalr1.cc:907 +#line 279 "dhcp6_parser.yy" { ctx.ctx_ = ctx.DHCP6; } -#line 775 "dhcp6_parser.cc" // lalr1.cc:907 +#line 779 "dhcp6_parser.cc" break; case 20: -#line 280 "dhcp6_parser.yy" // lalr1.cc:907 +#line 280 "dhcp6_parser.yy" { ctx.ctx_ = ctx.OPTION_DEF; } -#line 781 "dhcp6_parser.cc" // lalr1.cc:907 +#line 785 "dhcp6_parser.cc" break; case 22: -#line 281 "dhcp6_parser.yy" // lalr1.cc:907 +#line 281 "dhcp6_parser.yy" { ctx.ctx_ = ctx.OPTION_DATA; } -#line 787 "dhcp6_parser.cc" // lalr1.cc:907 +#line 791 "dhcp6_parser.cc" break; case 24: -#line 282 "dhcp6_parser.yy" // lalr1.cc:907 +#line 282 "dhcp6_parser.yy" { ctx.ctx_ = ctx.HOOKS_LIBRARIES; } -#line 793 "dhcp6_parser.cc" // lalr1.cc:907 +#line 797 "dhcp6_parser.cc" break; case 26: -#line 283 "dhcp6_parser.yy" // lalr1.cc:907 +#line 283 "dhcp6_parser.yy" { ctx.ctx_ = ctx.DHCP_DDNS; } -#line 799 "dhcp6_parser.cc" // lalr1.cc:907 +#line 803 "dhcp6_parser.cc" break; case 28: -#line 284 "dhcp6_parser.yy" // lalr1.cc:907 +#line 284 "dhcp6_parser.yy" { ctx.ctx_ = ctx.LOGGING; } -#line 805 "dhcp6_parser.cc" // lalr1.cc:907 +#line 809 "dhcp6_parser.cc" break; case 30: -#line 285 "dhcp6_parser.yy" // lalr1.cc:907 +#line 285 "dhcp6_parser.yy" { ctx.ctx_ = ctx.CONFIG_CONTROL; } -#line 811 "dhcp6_parser.cc" // lalr1.cc:907 +#line 815 "dhcp6_parser.cc" break; case 32: -#line 293 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); } -#line 817 "dhcp6_parser.cc" // lalr1.cc:907 +#line 293 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); } +#line 821 "dhcp6_parser.cc" break; case 33: -#line 294 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); } -#line 823 "dhcp6_parser.cc" // lalr1.cc:907 +#line 294 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); } +#line 827 "dhcp6_parser.cc" break; case 34: -#line 295 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); } -#line 829 "dhcp6_parser.cc" // lalr1.cc:907 +#line 295 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); } +#line 833 "dhcp6_parser.cc" break; case 35: -#line 296 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); } -#line 835 "dhcp6_parser.cc" // lalr1.cc:907 +#line 296 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); } +#line 839 "dhcp6_parser.cc" break; case 36: -#line 297 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } -#line 841 "dhcp6_parser.cc" // lalr1.cc:907 +#line 297 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); } +#line 845 "dhcp6_parser.cc" break; case 37: -#line 298 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 847 "dhcp6_parser.cc" // lalr1.cc:907 +#line 298 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 851 "dhcp6_parser.cc" break; case 38: -#line 299 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 853 "dhcp6_parser.cc" // lalr1.cc:907 +#line 299 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 857 "dhcp6_parser.cc" break; case 39: -#line 302 "dhcp6_parser.yy" // lalr1.cc:907 +#line 302 "dhcp6_parser.yy" { // 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 862 "dhcp6_parser.cc" // lalr1.cc:907 +#line 866 "dhcp6_parser.cc" break; case 40: -#line 307 "dhcp6_parser.yy" // lalr1.cc:907 +#line 307 "dhcp6_parser.yy" { // 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 873 "dhcp6_parser.cc" // lalr1.cc:907 +#line 877 "dhcp6_parser.cc" break; case 41: -#line 312 "dhcp6_parser.yy" // lalr1.cc:907 +#line 312 "dhcp6_parser.yy" { // 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 883 "dhcp6_parser.cc" // lalr1.cc:907 +#line 887 "dhcp6_parser.cc" break; case 42: -#line 318 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } -#line 889 "dhcp6_parser.cc" // lalr1.cc:907 +#line 318 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); } +#line 893 "dhcp6_parser.cc" break; case 45: -#line 325 "dhcp6_parser.yy" // lalr1.cc:907 +#line 325 "dhcp6_parser.yy" { // 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 898 "dhcp6_parser.cc" // lalr1.cc:907 +#line 902 "dhcp6_parser.cc" break; case 46: -#line 329 "dhcp6_parser.yy" // lalr1.cc:907 +#line 329 "dhcp6_parser.yy" { // 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 908 "dhcp6_parser.cc" // lalr1.cc:907 +#line 912 "dhcp6_parser.cc" break; case 47: -#line 336 "dhcp6_parser.yy" // lalr1.cc:907 +#line 336 "dhcp6_parser.yy" { ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(l); } -#line 917 "dhcp6_parser.cc" // lalr1.cc:907 +#line 921 "dhcp6_parser.cc" break; case 48: -#line 339 "dhcp6_parser.yy" // lalr1.cc:907 +#line 339 "dhcp6_parser.yy" { // list parsing complete. Put any sanity checking here } -#line 925 "dhcp6_parser.cc" // lalr1.cc:907 +#line 929 "dhcp6_parser.cc" break; case 51: -#line 347 "dhcp6_parser.yy" // lalr1.cc:907 +#line 347 "dhcp6_parser.yy" { // 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 934 "dhcp6_parser.cc" // lalr1.cc:907 +#line 938 "dhcp6_parser.cc" break; case 52: -#line 351 "dhcp6_parser.yy" // lalr1.cc:907 +#line 351 "dhcp6_parser.yy" { // 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 943 "dhcp6_parser.cc" // lalr1.cc:907 +#line 947 "dhcp6_parser.cc" break; case 53: -#line 358 "dhcp6_parser.yy" // lalr1.cc:907 +#line 358 "dhcp6_parser.yy" { // List parsing about to start } -#line 951 "dhcp6_parser.cc" // lalr1.cc:907 +#line 955 "dhcp6_parser.cc" break; case 54: -#line 360 "dhcp6_parser.yy" // lalr1.cc:907 +#line 360 "dhcp6_parser.yy" { // list parsing complete. Put any sanity checking here //ctx.stack_.pop_back(); } -#line 960 "dhcp6_parser.cc" // lalr1.cc:907 +#line 964 "dhcp6_parser.cc" break; case 57: -#line 369 "dhcp6_parser.yy" // lalr1.cc:907 +#line 369 "dhcp6_parser.yy" { - 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 969 "dhcp6_parser.cc" // lalr1.cc:907 +#line 973 "dhcp6_parser.cc" break; case 58: -#line 373 "dhcp6_parser.yy" // lalr1.cc:907 +#line 373 "dhcp6_parser.yy" { - 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 978 "dhcp6_parser.cc" // lalr1.cc:907 +#line 982 "dhcp6_parser.cc" break; case 59: -#line 384 "dhcp6_parser.yy" // lalr1.cc:907 +#line 384 "dhcp6_parser.yy" { 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 989 "dhcp6_parser.cc" // lalr1.cc:907 +#line 993 "dhcp6_parser.cc" break; case 60: -#line 394 "dhcp6_parser.yy" // lalr1.cc:907 +#line 394 "dhcp6_parser.yy" { // 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 1000 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1004 "dhcp6_parser.cc" break; case 61: -#line 399 "dhcp6_parser.yy" // lalr1.cc:907 +#line 399 "dhcp6_parser.yy" { // map parsing completed. If we ever want to do any wrap up // (maybe some sanity checking), this would be the best place @@ -1009,11 +1013,11 @@ namespace isc { namespace dhcp { // Dhcp6 is required ctx.require("Dhcp6", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); } -#line 1013 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1017 "dhcp6_parser.cc" break; case 70: -#line 422 "dhcp6_parser.yy" // lalr1.cc:907 +#line 422 "dhcp6_parser.yy" { // This code is executed when we're about to start parsing // the content of the map @@ -1022,965 +1026,965 @@ namespace isc { namespace dhcp { ctx.stack_.push_back(m); ctx.enter(ctx.DHCP6); } -#line 1026 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1030 "dhcp6_parser.cc" break; case 71: -#line 429 "dhcp6_parser.yy" // lalr1.cc:907 +#line 429 "dhcp6_parser.yy" { // No global parameter is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1036 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1040 "dhcp6_parser.cc" break; case 72: -#line 437 "dhcp6_parser.yy" // lalr1.cc:907 +#line 437 "dhcp6_parser.yy" { // Parse the Dhcp6 map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1046 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1050 "dhcp6_parser.cc" break; case 73: -#line 441 "dhcp6_parser.yy" // lalr1.cc:907 +#line 441 "dhcp6_parser.yy" { // No global parameter is required // parsing completed } -#line 1055 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1059 "dhcp6_parser.cc" break; case 119: -#line 497 "dhcp6_parser.yy" // lalr1.cc:907 +#line 497 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1063 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1067 "dhcp6_parser.cc" break; case 120: -#line 499 "dhcp6_parser.yy" // lalr1.cc:907 +#line 499 "dhcp6_parser.yy" { - 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 1073 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1077 "dhcp6_parser.cc" break; case 121: -#line 505 "dhcp6_parser.yy" // lalr1.cc:907 +#line 505 "dhcp6_parser.yy" { - 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 1082 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1086 "dhcp6_parser.cc" break; case 122: -#line 510 "dhcp6_parser.yy" // lalr1.cc:907 +#line 510 "dhcp6_parser.yy" { - 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("min-preferred-lifetime", prf); } -#line 1091 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1095 "dhcp6_parser.cc" break; case 123: -#line 515 "dhcp6_parser.yy" // lalr1.cc:907 +#line 515 "dhcp6_parser.yy" { - 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("max-preferred-lifetime", prf); } -#line 1100 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1104 "dhcp6_parser.cc" break; case 124: -#line 520 "dhcp6_parser.yy" // lalr1.cc:907 +#line 520 "dhcp6_parser.yy" { - 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 1109 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1113 "dhcp6_parser.cc" break; case 125: -#line 525 "dhcp6_parser.yy" // lalr1.cc:907 +#line 525 "dhcp6_parser.yy" { - 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("min-valid-lifetime", prf); } -#line 1118 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1122 "dhcp6_parser.cc" break; case 126: -#line 530 "dhcp6_parser.yy" // lalr1.cc:907 +#line 530 "dhcp6_parser.yy" { - 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("max-valid-lifetime", prf); } -#line 1127 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1131 "dhcp6_parser.cc" break; case 127: -#line 535 "dhcp6_parser.yy" // lalr1.cc:907 +#line 535 "dhcp6_parser.yy" { - 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 1136 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1140 "dhcp6_parser.cc" break; case 128: -#line 540 "dhcp6_parser.yy" // lalr1.cc:907 +#line 540 "dhcp6_parser.yy" { - 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 1145 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1149 "dhcp6_parser.cc" break; case 129: -#line 545 "dhcp6_parser.yy" // lalr1.cc:907 +#line 545 "dhcp6_parser.yy" { - 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 1154 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1158 "dhcp6_parser.cc" break; case 130: -#line 550 "dhcp6_parser.yy" // lalr1.cc:907 +#line 550 "dhcp6_parser.yy" { - 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 1163 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1167 "dhcp6_parser.cc" break; case 131: -#line 555 "dhcp6_parser.yy" // lalr1.cc:907 +#line 555 "dhcp6_parser.yy" { - 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 1172 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1176 "dhcp6_parser.cc" break; case 132: -#line 560 "dhcp6_parser.yy" // lalr1.cc:907 +#line 560 "dhcp6_parser.yy" { - 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 1181 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1185 "dhcp6_parser.cc" break; case 133: -#line 565 "dhcp6_parser.yy" // lalr1.cc:907 +#line 565 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1189 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1193 "dhcp6_parser.cc" break; case 134: -#line 567 "dhcp6_parser.yy" // lalr1.cc:907 +#line 567 "dhcp6_parser.yy" { - 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 1199 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1203 "dhcp6_parser.cc" break; case 135: -#line 573 "dhcp6_parser.yy" // lalr1.cc:907 +#line 573 "dhcp6_parser.yy" { 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 1210 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1214 "dhcp6_parser.cc" break; case 136: -#line 578 "dhcp6_parser.yy" // lalr1.cc:907 +#line 578 "dhcp6_parser.yy" { // No interfaces config param is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1220 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1224 "dhcp6_parser.cc" break; case 137: -#line 584 "dhcp6_parser.yy" // lalr1.cc:907 +#line 584 "dhcp6_parser.yy" { // Parse the interfaces-config map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1230 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1234 "dhcp6_parser.cc" break; case 138: -#line 588 "dhcp6_parser.yy" // lalr1.cc:907 +#line 588 "dhcp6_parser.yy" { // No interfaces config param is required // parsing completed } -#line 1239 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1243 "dhcp6_parser.cc" break; case 146: -#line 604 "dhcp6_parser.yy" // lalr1.cc:907 +#line 604 "dhcp6_parser.yy" { 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 1250 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1254 "dhcp6_parser.cc" break; case 147: -#line 609 "dhcp6_parser.yy" // lalr1.cc:907 +#line 609 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1259 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1263 "dhcp6_parser.cc" break; case 148: -#line 614 "dhcp6_parser.yy" // lalr1.cc:907 +#line 614 "dhcp6_parser.yy" { - 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 1268 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1272 "dhcp6_parser.cc" break; case 149: -#line 620 "dhcp6_parser.yy" // lalr1.cc:907 +#line 620 "dhcp6_parser.yy" { 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 1279 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1283 "dhcp6_parser.cc" break; case 150: -#line 625 "dhcp6_parser.yy" // lalr1.cc:907 +#line 625 "dhcp6_parser.yy" { // 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 1290 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1294 "dhcp6_parser.cc" break; case 151: -#line 632 "dhcp6_parser.yy" // lalr1.cc:907 +#line 632 "dhcp6_parser.yy" { 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 1301 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1305 "dhcp6_parser.cc" break; case 152: -#line 637 "dhcp6_parser.yy" // lalr1.cc:907 +#line 637 "dhcp6_parser.yy" { // 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 1312 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1316 "dhcp6_parser.cc" break; case 153: -#line 644 "dhcp6_parser.yy" // lalr1.cc:907 +#line 644 "dhcp6_parser.yy" { 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 1323 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1327 "dhcp6_parser.cc" break; case 154: -#line 649 "dhcp6_parser.yy" // lalr1.cc:907 +#line 649 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1332 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1336 "dhcp6_parser.cc" break; case 159: -#line 662 "dhcp6_parser.yy" // lalr1.cc:907 +#line 662 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1342 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1346 "dhcp6_parser.cc" break; case 160: -#line 666 "dhcp6_parser.yy" // lalr1.cc:907 +#line 666 "dhcp6_parser.yy" { // The type parameter is required ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1352 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1356 "dhcp6_parser.cc" break; case 184: -#line 699 "dhcp6_parser.yy" // lalr1.cc:907 +#line 699 "dhcp6_parser.yy" { ctx.enter(ctx.DATABASE_TYPE); } -#line 1360 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1364 "dhcp6_parser.cc" break; case 185: -#line 701 "dhcp6_parser.yy" // lalr1.cc:907 +#line 701 "dhcp6_parser.yy" { - ctx.stack_.back()->set("type", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("type", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1369 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1373 "dhcp6_parser.cc" break; case 186: -#line 706 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); } -#line 1375 "dhcp6_parser.cc" // lalr1.cc:907 +#line 706 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); } +#line 1379 "dhcp6_parser.cc" break; case 187: -#line 707 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); } -#line 1381 "dhcp6_parser.cc" // lalr1.cc:907 +#line 707 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); } +#line 1385 "dhcp6_parser.cc" break; case 188: -#line 708 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); } -#line 1387 "dhcp6_parser.cc" // lalr1.cc:907 +#line 708 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); } +#line 1391 "dhcp6_parser.cc" break; case 189: -#line 709 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); } -#line 1393 "dhcp6_parser.cc" // lalr1.cc:907 +#line 709 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); } +#line 1397 "dhcp6_parser.cc" break; case 190: -#line 712 "dhcp6_parser.yy" // lalr1.cc:907 +#line 712 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1401 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1405 "dhcp6_parser.cc" break; case 191: -#line 714 "dhcp6_parser.yy" // lalr1.cc:907 +#line 714 "dhcp6_parser.yy" { - 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 1411 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1415 "dhcp6_parser.cc" break; case 192: -#line 720 "dhcp6_parser.yy" // lalr1.cc:907 +#line 720 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1419 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1423 "dhcp6_parser.cc" break; case 193: -#line 722 "dhcp6_parser.yy" // lalr1.cc:907 +#line 722 "dhcp6_parser.yy" { - 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 1429 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1433 "dhcp6_parser.cc" break; case 194: -#line 728 "dhcp6_parser.yy" // lalr1.cc:907 +#line 728 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1437 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1441 "dhcp6_parser.cc" break; case 195: -#line 730 "dhcp6_parser.yy" // lalr1.cc:907 +#line 730 "dhcp6_parser.yy" { - 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 1447 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1451 "dhcp6_parser.cc" break; case 196: -#line 736 "dhcp6_parser.yy" // lalr1.cc:907 +#line 736 "dhcp6_parser.yy" { - 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 1456 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1460 "dhcp6_parser.cc" break; case 197: -#line 741 "dhcp6_parser.yy" // lalr1.cc:907 +#line 741 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1464 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1468 "dhcp6_parser.cc" break; case 198: -#line 743 "dhcp6_parser.yy" // lalr1.cc:907 +#line 743 "dhcp6_parser.yy" { - 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 1474 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1478 "dhcp6_parser.cc" break; case 199: -#line 749 "dhcp6_parser.yy" // lalr1.cc:907 +#line 749 "dhcp6_parser.yy" { - 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 1483 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1487 "dhcp6_parser.cc" break; case 200: -#line 754 "dhcp6_parser.yy" // lalr1.cc:907 +#line 754 "dhcp6_parser.yy" { - 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 1492 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1496 "dhcp6_parser.cc" break; case 201: -#line 759 "dhcp6_parser.yy" // lalr1.cc:907 +#line 759 "dhcp6_parser.yy" { - 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 1501 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1505 "dhcp6_parser.cc" break; case 202: -#line 764 "dhcp6_parser.yy" // lalr1.cc:907 +#line 764 "dhcp6_parser.yy" { - 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 1510 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1514 "dhcp6_parser.cc" break; case 203: -#line 769 "dhcp6_parser.yy" // lalr1.cc:907 +#line 769 "dhcp6_parser.yy" { - 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 1519 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1523 "dhcp6_parser.cc" break; case 204: -#line 774 "dhcp6_parser.yy" // lalr1.cc:907 +#line 774 "dhcp6_parser.yy" { - 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-row-errors", n); } -#line 1528 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1532 "dhcp6_parser.cc" break; case 205: -#line 779 "dhcp6_parser.yy" // lalr1.cc:907 +#line 779 "dhcp6_parser.yy" { - 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 1537 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1541 "dhcp6_parser.cc" break; case 206: -#line 784 "dhcp6_parser.yy" // lalr1.cc:907 +#line 784 "dhcp6_parser.yy" { - 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 1546 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1550 "dhcp6_parser.cc" break; case 207: -#line 789 "dhcp6_parser.yy" // lalr1.cc:907 +#line 789 "dhcp6_parser.yy" { - 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 1555 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1559 "dhcp6_parser.cc" break; case 208: -#line 794 "dhcp6_parser.yy" // lalr1.cc:907 +#line 794 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1563 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1567 "dhcp6_parser.cc" break; case 209: -#line 796 "dhcp6_parser.yy" // lalr1.cc:907 +#line 796 "dhcp6_parser.yy" { - 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 1573 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1577 "dhcp6_parser.cc" break; case 210: -#line 802 "dhcp6_parser.yy" // lalr1.cc:907 +#line 802 "dhcp6_parser.yy" { - 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 1582 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1586 "dhcp6_parser.cc" break; case 211: -#line 807 "dhcp6_parser.yy" // lalr1.cc:907 +#line 807 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1590 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1594 "dhcp6_parser.cc" break; case 212: -#line 809 "dhcp6_parser.yy" // lalr1.cc:907 +#line 809 "dhcp6_parser.yy" { - 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 1600 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1604 "dhcp6_parser.cc" break; case 213: -#line 815 "dhcp6_parser.yy" // lalr1.cc:907 +#line 815 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1608 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1612 "dhcp6_parser.cc" break; case 214: -#line 817 "dhcp6_parser.yy" // lalr1.cc:907 +#line 817 "dhcp6_parser.yy" { - 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 1618 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1622 "dhcp6_parser.cc" break; case 215: -#line 823 "dhcp6_parser.yy" // lalr1.cc:907 +#line 823 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1626 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1630 "dhcp6_parser.cc" break; case 216: -#line 825 "dhcp6_parser.yy" // lalr1.cc:907 +#line 825 "dhcp6_parser.yy" { - 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 1636 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1640 "dhcp6_parser.cc" break; case 217: -#line 831 "dhcp6_parser.yy" // lalr1.cc:907 +#line 831 "dhcp6_parser.yy" { 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 1647 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1651 "dhcp6_parser.cc" break; case 218: -#line 836 "dhcp6_parser.yy" // lalr1.cc:907 +#line 836 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1656 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1660 "dhcp6_parser.cc" break; case 222: -#line 846 "dhcp6_parser.yy" // lalr1.cc:907 +#line 846 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1664 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1668 "dhcp6_parser.cc" break; case 223: -#line 848 "dhcp6_parser.yy" // lalr1.cc:907 +#line 848 "dhcp6_parser.yy" { - 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 1684 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1688 "dhcp6_parser.cc" break; case 224: -#line 864 "dhcp6_parser.yy" // lalr1.cc:907 +#line 864 "dhcp6_parser.yy" { 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 1695 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1699 "dhcp6_parser.cc" break; case 225: -#line 869 "dhcp6_parser.yy" // lalr1.cc:907 +#line 869 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1704 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1708 "dhcp6_parser.cc" break; case 230: -#line 882 "dhcp6_parser.yy" // lalr1.cc:907 +#line 882 "dhcp6_parser.yy" { ElementPtr duid(new StringElement("duid", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(duid); } -#line 1713 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1717 "dhcp6_parser.cc" break; case 231: -#line 887 "dhcp6_parser.yy" // lalr1.cc:907 +#line 887 "dhcp6_parser.yy" { - 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 1722 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1726 "dhcp6_parser.cc" break; case 232: -#line 892 "dhcp6_parser.yy" // lalr1.cc:907 +#line 892 "dhcp6_parser.yy" { 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 1733 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1737 "dhcp6_parser.cc" break; case 233: -#line 897 "dhcp6_parser.yy" // lalr1.cc:907 +#line 897 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1742 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1746 "dhcp6_parser.cc" break; case 239: -#line 911 "dhcp6_parser.yy" // lalr1.cc:907 +#line 911 "dhcp6_parser.yy" { ElementPtr hwaddr(new StringElement("hw-address", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(hwaddr); } -#line 1751 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1755 "dhcp6_parser.cc" break; case 240: -#line 916 "dhcp6_parser.yy" // lalr1.cc:907 +#line 916 "dhcp6_parser.yy" { ElementPtr flex_id(new StringElement("flex-id", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(flex_id); } -#line 1760 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1764 "dhcp6_parser.cc" break; case 241: -#line 923 "dhcp6_parser.yy" // lalr1.cc:907 +#line 923 "dhcp6_parser.yy" { 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 1771 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1775 "dhcp6_parser.cc" break; case 242: -#line 928 "dhcp6_parser.yy" // lalr1.cc:907 +#line 928 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1780 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1784 "dhcp6_parser.cc" break; case 243: -#line 933 "dhcp6_parser.yy" // lalr1.cc:907 +#line 933 "dhcp6_parser.yy" { 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 1791 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1795 "dhcp6_parser.cc" break; case 244: -#line 938 "dhcp6_parser.yy" // lalr1.cc:907 +#line 938 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1800 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1804 "dhcp6_parser.cc" break; case 249: -#line 951 "dhcp6_parser.yy" // lalr1.cc:907 +#line 951 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1810 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1814 "dhcp6_parser.cc" break; case 250: -#line 955 "dhcp6_parser.yy" // lalr1.cc:907 +#line 955 "dhcp6_parser.yy" { // The library hooks parameter is required ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 1820 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1824 "dhcp6_parser.cc" break; case 251: -#line 961 "dhcp6_parser.yy" // lalr1.cc:907 +#line 961 "dhcp6_parser.yy" { // Parse the hooks-libraries list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 1830 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1834 "dhcp6_parser.cc" break; case 252: -#line 965 "dhcp6_parser.yy" // lalr1.cc:907 +#line 965 "dhcp6_parser.yy" { // The library hooks parameter is required ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 1840 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1844 "dhcp6_parser.cc" break; case 258: -#line 980 "dhcp6_parser.yy" // lalr1.cc:907 +#line 980 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1848 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1852 "dhcp6_parser.cc" break; case 259: -#line 982 "dhcp6_parser.yy" // lalr1.cc:907 +#line 982 "dhcp6_parser.yy" { - 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 1858 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1862 "dhcp6_parser.cc" break; case 260: -#line 988 "dhcp6_parser.yy" // lalr1.cc:907 +#line 988 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 1866 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1870 "dhcp6_parser.cc" break; case 261: -#line 990 "dhcp6_parser.yy" // lalr1.cc:907 +#line 990 "dhcp6_parser.yy" { - ctx.stack_.back()->set("parameters", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("parameters", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 1875 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1879 "dhcp6_parser.cc" break; case 262: -#line 996 "dhcp6_parser.yy" // lalr1.cc:907 +#line 996 "dhcp6_parser.yy" { 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 1886 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1890 "dhcp6_parser.cc" break; case 263: -#line 1001 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1001 "dhcp6_parser.yy" { // No expired lease parameter is required ctx.stack_.pop_back(); ctx.leave(); } -#line 1896 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1900 "dhcp6_parser.cc" break; case 272: -#line 1019 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1019 "dhcp6_parser.yy" { - 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 1905 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1909 "dhcp6_parser.cc" break; case 273: -#line 1024 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1024 "dhcp6_parser.yy" { - 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 1914 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1918 "dhcp6_parser.cc" break; case 274: -#line 1029 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1029 "dhcp6_parser.yy" { - 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 1923 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1927 "dhcp6_parser.cc" break; case 275: -#line 1034 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1034 "dhcp6_parser.yy" { - 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 1932 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1936 "dhcp6_parser.cc" break; case 276: -#line 1039 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1039 "dhcp6_parser.yy" { - 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 1941 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1945 "dhcp6_parser.cc" break; case 277: -#line 1044 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1044 "dhcp6_parser.yy" { - 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 1950 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1954 "dhcp6_parser.cc" break; case 278: -#line 1052 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1052 "dhcp6_parser.yy" { 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 1961 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1965 "dhcp6_parser.cc" break; case 279: -#line 1057 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1057 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 1970 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1974 "dhcp6_parser.cc" break; case 284: -#line 1077 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1077 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 1980 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1984 "dhcp6_parser.cc" break; case 285: -#line 1081 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1081 "dhcp6_parser.yy" { // Once we reached this place, the subnet parsing is now complete. // If we want to, we can implement default values here. @@ -2002,267 +2006,267 @@ namespace isc { namespace dhcp { ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2006 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2010 "dhcp6_parser.cc" break; case 286: -#line 1103 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1103 "dhcp6_parser.yy" { // Parse the subnet6 list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2016 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2020 "dhcp6_parser.cc" break; case 287: -#line 1107 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1107 "dhcp6_parser.yy" { // The subnet subnet6 parameter is required ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2026 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2030 "dhcp6_parser.cc" break; case 317: -#line 1148 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1148 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2034 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2038 "dhcp6_parser.cc" break; case 318: -#line 1150 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1150 "dhcp6_parser.yy" { - 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 2044 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2048 "dhcp6_parser.cc" break; case 319: -#line 1156 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1156 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2052 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2056 "dhcp6_parser.cc" break; case 320: -#line 1158 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1158 "dhcp6_parser.yy" { - 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 2062 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2066 "dhcp6_parser.cc" break; case 321: -#line 1164 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1164 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2070 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2074 "dhcp6_parser.cc" break; case 322: -#line 1166 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1166 "dhcp6_parser.yy" { - 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 2080 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2084 "dhcp6_parser.cc" break; case 323: -#line 1172 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1172 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2088 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2092 "dhcp6_parser.cc" break; case 324: -#line 1174 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1174 "dhcp6_parser.yy" { - 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 2098 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2102 "dhcp6_parser.cc" break; case 325: -#line 1180 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1180 "dhcp6_parser.yy" { 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 2109 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2113 "dhcp6_parser.cc" break; case 326: -#line 1185 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1185 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2118 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2122 "dhcp6_parser.cc" break; case 327: -#line 1190 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1190 "dhcp6_parser.yy" { ctx.enter(ctx.RESERVATION_MODE); } -#line 2126 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2130 "dhcp6_parser.cc" break; case 328: -#line 1192 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1192 "dhcp6_parser.yy" { - 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 2135 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2139 "dhcp6_parser.cc" break; case 329: -#line 1197 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); } -#line 2141 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1197 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); } +#line 2145 "dhcp6_parser.cc" break; case 330: -#line 1198 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); } -#line 2147 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1198 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); } +#line 2151 "dhcp6_parser.cc" break; case 331: -#line 1199 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); } -#line 2153 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1199 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); } +#line 2157 "dhcp6_parser.cc" break; case 332: -#line 1200 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); } -#line 2159 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1200 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); } +#line 2163 "dhcp6_parser.cc" break; case 333: -#line 1203 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1203 "dhcp6_parser.yy" { - 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 2168 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2172 "dhcp6_parser.cc" break; case 334: -#line 1208 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1208 "dhcp6_parser.yy" { - 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 2177 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2181 "dhcp6_parser.cc" break; case 335: -#line 1216 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1216 "dhcp6_parser.yy" { 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 2188 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2192 "dhcp6_parser.cc" break; case 336: -#line 1221 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1221 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2197 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2201 "dhcp6_parser.cc" break; case 341: -#line 1236 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1236 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2207 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2211 "dhcp6_parser.cc" break; case 342: -#line 1240 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1240 "dhcp6_parser.yy" { ctx.stack_.pop_back(); } -#line 2215 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2219 "dhcp6_parser.cc" break; case 369: -#line 1278 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1278 "dhcp6_parser.yy" { 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 2226 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2230 "dhcp6_parser.cc" break; case 370: -#line 1283 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1283 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2235 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2239 "dhcp6_parser.cc" break; case 371: -#line 1291 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1291 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2244 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2248 "dhcp6_parser.cc" break; case 372: -#line 1294 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1294 "dhcp6_parser.yy" { // parsing completed } -#line 2252 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2256 "dhcp6_parser.cc" break; case 377: -#line 1310 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1310 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2262 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2266 "dhcp6_parser.cc" break; case 378: -#line 1314 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1314 "dhcp6_parser.yy" { // The name, code and type option def parameters are required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2270,21 +2274,21 @@ namespace isc { namespace dhcp { ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2274 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2278 "dhcp6_parser.cc" break; case 379: -#line 1325 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1325 "dhcp6_parser.yy" { // Parse the option-def list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2284 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2288 "dhcp6_parser.cc" break; case 380: -#line 1329 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1329 "dhcp6_parser.yy" { // The name, code and type option def parameters are required. ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2292,283 +2296,283 @@ namespace isc { namespace dhcp { ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2296 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2300 "dhcp6_parser.cc" break; case 396: -#line 1361 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1361 "dhcp6_parser.yy" { - 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 2305 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2309 "dhcp6_parser.cc" break; case 398: -#line 1368 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1368 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2313 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2317 "dhcp6_parser.cc" break; case 399: -#line 1370 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1370 "dhcp6_parser.yy" { - 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 2323 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2327 "dhcp6_parser.cc" break; case 400: -#line 1376 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1376 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2331 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2335 "dhcp6_parser.cc" break; case 401: -#line 1378 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1378 "dhcp6_parser.yy" { - 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 2341 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2345 "dhcp6_parser.cc" break; case 402: -#line 1384 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1384 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2349 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2353 "dhcp6_parser.cc" break; case 403: -#line 1386 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1386 "dhcp6_parser.yy" { - 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 2359 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2363 "dhcp6_parser.cc" break; case 405: -#line 1394 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1394 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2367 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2371 "dhcp6_parser.cc" break; case 406: -#line 1396 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1396 "dhcp6_parser.yy" { - 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 2377 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2381 "dhcp6_parser.cc" break; case 407: -#line 1402 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1402 "dhcp6_parser.yy" { - 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 2386 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2390 "dhcp6_parser.cc" break; case 408: -#line 1411 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1411 "dhcp6_parser.yy" { 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 2397 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2401 "dhcp6_parser.cc" break; case 409: -#line 1416 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1416 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2406 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2410 "dhcp6_parser.cc" break; case 414: -#line 1435 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1435 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2416 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2420 "dhcp6_parser.cc" break; case 415: -#line 1439 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1439 "dhcp6_parser.yy" { /// @todo: the code or name parameters are required. ctx.stack_.pop_back(); } -#line 2425 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2429 "dhcp6_parser.cc" break; case 416: -#line 1447 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1447 "dhcp6_parser.yy" { // Parse the option-data list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2435 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2439 "dhcp6_parser.cc" break; case 417: -#line 1451 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1451 "dhcp6_parser.yy" { /// @todo: the code or name parameters are required. // parsing completed } -#line 2444 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2448 "dhcp6_parser.cc" break; case 432: -#line 1484 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1484 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2452 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2456 "dhcp6_parser.cc" break; case 433: -#line 1486 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1486 "dhcp6_parser.yy" { - 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 2462 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2466 "dhcp6_parser.cc" break; case 436: -#line 1496 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1496 "dhcp6_parser.yy" { - 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 2471 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2475 "dhcp6_parser.cc" break; case 437: -#line 1501 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1501 "dhcp6_parser.yy" { - 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 2480 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2484 "dhcp6_parser.cc" break; case 438: -#line 1509 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1509 "dhcp6_parser.yy" { 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 2491 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2495 "dhcp6_parser.cc" break; case 439: -#line 1514 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1514 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2500 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2504 "dhcp6_parser.cc" break; case 444: -#line 1529 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1529 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2510 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2514 "dhcp6_parser.cc" break; case 445: -#line 1533 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1533 "dhcp6_parser.yy" { // The pool parameter is required. ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2520 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2524 "dhcp6_parser.cc" break; case 446: -#line 1539 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1539 "dhcp6_parser.yy" { // Parse the pool list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2530 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2534 "dhcp6_parser.cc" break; case 447: -#line 1543 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1543 "dhcp6_parser.yy" { // The pool parameter is required. ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); } -#line 2539 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2543 "dhcp6_parser.cc" break; case 457: -#line 1561 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1561 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2547 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2551 "dhcp6_parser.cc" break; case 458: -#line 1563 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1563 "dhcp6_parser.yy" { - 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 2557 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2561 "dhcp6_parser.cc" break; case 459: -#line 1569 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1569 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2565 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2569 "dhcp6_parser.cc" break; case 460: -#line 1571 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1571 "dhcp6_parser.yy" { 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 @@ -2588,23 +2592,23 @@ namespace isc { namespace dhcp { parent->set("user-context", user_context); ctx.leave(); } -#line 2592 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2596 "dhcp6_parser.cc" break; case 461: -#line 1594 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1594 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2600 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2604 "dhcp6_parser.cc" break; case 462: -#line 1596 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1596 "dhcp6_parser.yy" { 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 @@ -2625,41 +2629,41 @@ namespace isc { namespace dhcp { parent->set("user-context", user_context); ctx.leave(); } -#line 2629 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2633 "dhcp6_parser.cc" break; case 463: -#line 1624 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1624 "dhcp6_parser.yy" { 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 2640 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2644 "dhcp6_parser.cc" break; case 464: -#line 1629 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1629 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2649 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2653 "dhcp6_parser.cc" break; case 469: -#line 1644 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1644 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2659 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2663 "dhcp6_parser.cc" break; case 470: -#line 1648 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1648 "dhcp6_parser.yy" { // The prefix, prefix len and delegated len parameters are required. ctx.require("prefix", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2667,21 +2671,21 @@ namespace isc { namespace dhcp { ctx.require("delegated-len", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); ctx.stack_.pop_back(); } -#line 2671 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2675 "dhcp6_parser.cc" break; case 471: -#line 1656 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1656 "dhcp6_parser.yy" { // Parse the pd-pool list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2681 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2685 "dhcp6_parser.cc" break; case 472: -#line 1660 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1660 "dhcp6_parser.yy" { // The prefix, prefix len and delegated len parameters are required. ctx.require("prefix", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); @@ -2689,546 +2693,546 @@ namespace isc { namespace dhcp { ctx.require("delegated-len", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location)); // parsing completed } -#line 2693 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2697 "dhcp6_parser.cc" break; case 486: -#line 1685 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1685 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2701 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2705 "dhcp6_parser.cc" break; case 487: -#line 1687 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1687 "dhcp6_parser.yy" { - 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 2711 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2715 "dhcp6_parser.cc" break; case 488: -#line 1693 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1693 "dhcp6_parser.yy" { - 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 2720 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2724 "dhcp6_parser.cc" break; case 489: -#line 1698 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1698 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2728 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2732 "dhcp6_parser.cc" break; case 490: -#line 1700 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1700 "dhcp6_parser.yy" { - 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 2738 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2742 "dhcp6_parser.cc" break; case 491: -#line 1706 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1706 "dhcp6_parser.yy" { - 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 2747 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2751 "dhcp6_parser.cc" break; case 492: -#line 1711 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1711 "dhcp6_parser.yy" { - 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 2756 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2760 "dhcp6_parser.cc" break; case 493: -#line 1719 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1719 "dhcp6_parser.yy" { 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 2767 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2771 "dhcp6_parser.cc" break; case 494: -#line 1724 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1724 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2776 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2780 "dhcp6_parser.cc" break; case 499: -#line 1737 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1737 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 2786 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2790 "dhcp6_parser.cc" break; case 500: -#line 1741 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1741 "dhcp6_parser.yy" { /// @todo: an identifier parameter is required. ctx.stack_.pop_back(); } -#line 2795 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2799 "dhcp6_parser.cc" break; case 501: -#line 1746 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1746 "dhcp6_parser.yy" { // Parse the reservations list entry map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 2805 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2809 "dhcp6_parser.cc" break; case 502: -#line 1750 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1750 "dhcp6_parser.yy" { /// @todo: an identifier parameter is required. // parsing completed } -#line 2814 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2818 "dhcp6_parser.cc" break; case 518: -#line 1777 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1777 "dhcp6_parser.yy" { 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 2825 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2829 "dhcp6_parser.cc" break; case 519: -#line 1782 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1782 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2834 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2838 "dhcp6_parser.cc" break; case 520: -#line 1787 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1787 "dhcp6_parser.yy" { 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 2845 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2849 "dhcp6_parser.cc" break; case 521: -#line 1792 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1792 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2854 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2858 "dhcp6_parser.cc" break; case 522: -#line 1797 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1797 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2862 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2866 "dhcp6_parser.cc" break; case 523: -#line 1799 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1799 "dhcp6_parser.yy" { - 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 2872 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2876 "dhcp6_parser.cc" break; case 524: -#line 1805 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1805 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2880 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2884 "dhcp6_parser.cc" break; case 525: -#line 1807 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1807 "dhcp6_parser.yy" { - 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 2890 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2894 "dhcp6_parser.cc" break; case 526: -#line 1813 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1813 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2898 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2902 "dhcp6_parser.cc" break; case 527: -#line 1815 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1815 "dhcp6_parser.yy" { - 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 2908 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2912 "dhcp6_parser.cc" break; case 528: -#line 1821 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1821 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2916 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2920 "dhcp6_parser.cc" break; case 529: -#line 1823 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1823 "dhcp6_parser.yy" { - 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 2926 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2930 "dhcp6_parser.cc" break; case 530: -#line 1829 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1829 "dhcp6_parser.yy" { 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 2937 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2941 "dhcp6_parser.cc" break; case 531: -#line 1834 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1834 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2946 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2950 "dhcp6_parser.cc" break; case 532: -#line 1842 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1842 "dhcp6_parser.yy" { 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 2957 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2961 "dhcp6_parser.cc" break; case 533: -#line 1847 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1847 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 2966 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2970 "dhcp6_parser.cc" break; case 536: -#line 1856 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1856 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 2974 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2978 "dhcp6_parser.cc" break; case 537: -#line 1858 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1858 "dhcp6_parser.yy" { - 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 2984 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2988 "dhcp6_parser.cc" break; case 538: -#line 1867 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1867 "dhcp6_parser.yy" { 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 2995 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2999 "dhcp6_parser.cc" break; case 539: -#line 1872 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1872 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3004 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3008 "dhcp6_parser.cc" break; case 542: -#line 1881 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1881 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 3014 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3018 "dhcp6_parser.cc" break; case 543: -#line 1885 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1885 "dhcp6_parser.yy" { // 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 3024 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3028 "dhcp6_parser.cc" break; case 556: -#line 1910 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1910 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3032 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3036 "dhcp6_parser.cc" break; case 557: -#line 1912 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1912 "dhcp6_parser.yy" { - 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 3042 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3046 "dhcp6_parser.cc" break; case 558: -#line 1918 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1918 "dhcp6_parser.yy" { - 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 3051 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3055 "dhcp6_parser.cc" break; case 559: -#line 1926 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1926 "dhcp6_parser.yy" { 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 3062 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3066 "dhcp6_parser.cc" break; case 560: -#line 1931 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1931 "dhcp6_parser.yy" { // 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 3073 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3077 "dhcp6_parser.cc" break; case 572: -#line 1953 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1953 "dhcp6_parser.yy" { ctx.enter(ctx.DUID_TYPE); } -#line 3081 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3085 "dhcp6_parser.cc" break; case 573: -#line 1955 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1955 "dhcp6_parser.yy" { - ctx.stack_.back()->set("type", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("type", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3090 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3094 "dhcp6_parser.cc" break; case 574: -#line 1960 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("LLT", ctx.loc2pos(yystack_[0].location))); } -#line 3096 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1960 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("LLT", ctx.loc2pos(yystack_[0].location))); } +#line 3100 "dhcp6_parser.cc" break; case 575: -#line 1961 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("EN", ctx.loc2pos(yystack_[0].location))); } -#line 3102 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1961 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("EN", ctx.loc2pos(yystack_[0].location))); } +#line 3106 "dhcp6_parser.cc" break; case 576: -#line 1962 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("LL", ctx.loc2pos(yystack_[0].location))); } -#line 3108 "dhcp6_parser.cc" // lalr1.cc:907 +#line 1962 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("LL", ctx.loc2pos(yystack_[0].location))); } +#line 3112 "dhcp6_parser.cc" break; case 577: -#line 1965 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1965 "dhcp6_parser.yy" { - 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 3117 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3121 "dhcp6_parser.cc" break; case 578: -#line 1970 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1970 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3125 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3129 "dhcp6_parser.cc" break; case 579: -#line 1972 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1972 "dhcp6_parser.yy" { - 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 3135 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3139 "dhcp6_parser.cc" break; case 580: -#line 1978 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1978 "dhcp6_parser.yy" { - 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 3144 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3148 "dhcp6_parser.cc" break; case 581: -#line 1983 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1983 "dhcp6_parser.yy" { - 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 3153 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3157 "dhcp6_parser.cc" break; case 582: -#line 1990 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1990 "dhcp6_parser.yy" { - 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 3162 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3166 "dhcp6_parser.cc" break; case 583: -#line 1997 "dhcp6_parser.yy" // lalr1.cc:907 +#line 1997 "dhcp6_parser.yy" { 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 3173 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3177 "dhcp6_parser.cc" break; case 584: -#line 2002 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2002 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3182 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3186 "dhcp6_parser.cc" break; case 592: -#line 2018 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2018 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3190 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3194 "dhcp6_parser.cc" break; case 593: -#line 2020 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2020 "dhcp6_parser.yy" { - 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 3200 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3204 "dhcp6_parser.cc" break; case 594: -#line 2026 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2026 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3208 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3212 "dhcp6_parser.cc" break; case 595: -#line 2028 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2028 "dhcp6_parser.yy" { - 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 3218 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3222 "dhcp6_parser.cc" break; case 596: -#line 2036 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2036 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3226 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3230 "dhcp6_parser.cc" break; case 597: -#line 2038 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2038 "dhcp6_parser.yy" { - 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 @@ -3262,644 +3266,645 @@ namespace isc { namespace dhcp { ctx.leave(); } -#line 3266 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3270 "dhcp6_parser.cc" break; case 598: -#line 2076 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2076 "dhcp6_parser.yy" { 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 3277 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3281 "dhcp6_parser.cc" break; case 599: -#line 2081 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2081 "dhcp6_parser.yy" { // 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 3288 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3292 "dhcp6_parser.cc" break; case 600: -#line 2088 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2088 "dhcp6_parser.yy" { // Parse the dhcp-ddns map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3298 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3302 "dhcp6_parser.cc" break; case 601: -#line 2092 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2092 "dhcp6_parser.yy" { // 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 3308 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3312 "dhcp6_parser.cc" break; case 622: -#line 2122 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2122 "dhcp6_parser.yy" { - 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 3317 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3321 "dhcp6_parser.cc" break; case 623: -#line 2127 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2127 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3325 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3329 "dhcp6_parser.cc" break; case 624: -#line 2129 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2129 "dhcp6_parser.yy" { - 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 3335 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3339 "dhcp6_parser.cc" break; case 625: -#line 2135 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2135 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3343 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3347 "dhcp6_parser.cc" break; case 626: -#line 2137 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2137 "dhcp6_parser.yy" { - 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 3353 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3357 "dhcp6_parser.cc" break; case 627: -#line 2143 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2143 "dhcp6_parser.yy" { - 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 3362 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3366 "dhcp6_parser.cc" break; case 628: -#line 2148 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2148 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3370 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3374 "dhcp6_parser.cc" break; case 629: -#line 2150 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2150 "dhcp6_parser.yy" { - 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 3380 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3384 "dhcp6_parser.cc" break; case 630: -#line 2156 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2156 "dhcp6_parser.yy" { - 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 3389 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3393 "dhcp6_parser.cc" break; case 631: -#line 2161 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2161 "dhcp6_parser.yy" { - 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 3398 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3402 "dhcp6_parser.cc" break; case 632: -#line 2166 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2166 "dhcp6_parser.yy" { ctx.enter(ctx.NCR_PROTOCOL); } -#line 3406 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3410 "dhcp6_parser.cc" break; case 633: -#line 2168 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2168 "dhcp6_parser.yy" { - 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 3415 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3419 "dhcp6_parser.cc" break; case 634: -#line 2174 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } -#line 3421 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2174 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); } +#line 3425 "dhcp6_parser.cc" break; case 635: -#line 2175 "dhcp6_parser.yy" // lalr1.cc:907 - { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } -#line 3427 "dhcp6_parser.cc" // lalr1.cc:907 +#line 2175 "dhcp6_parser.yy" + { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); } +#line 3431 "dhcp6_parser.cc" break; case 636: -#line 2178 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2178 "dhcp6_parser.yy" { ctx.enter(ctx.NCR_FORMAT); } -#line 3435 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3439 "dhcp6_parser.cc" break; case 637: -#line 2180 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2180 "dhcp6_parser.yy" { ElementPtr json(new StringElement("JSON", ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->set("ncr-format", json); ctx.leave(); } -#line 3445 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3449 "dhcp6_parser.cc" break; case 638: -#line 2186 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2186 "dhcp6_parser.yy" { - 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 3454 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3458 "dhcp6_parser.cc" break; case 639: -#line 2191 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2191 "dhcp6_parser.yy" { - 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 3463 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3467 "dhcp6_parser.cc" break; case 640: -#line 2196 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2196 "dhcp6_parser.yy" { ctx.enter(ctx.REPLACE_CLIENT_NAME); } -#line 3471 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3475 "dhcp6_parser.cc" break; case 641: -#line 2198 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2198 "dhcp6_parser.yy" { - 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 3480 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3484 "dhcp6_parser.cc" break; case 642: -#line 2204 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2204 "dhcp6_parser.yy" { - 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 3488 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3492 "dhcp6_parser.cc" break; case 643: -#line 2207 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2207 "dhcp6_parser.yy" { - 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 3496 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3500 "dhcp6_parser.cc" break; case 644: -#line 2210 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2210 "dhcp6_parser.yy" { - 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 3504 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3508 "dhcp6_parser.cc" break; case 645: -#line 2213 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2213 "dhcp6_parser.yy" { - 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 3512 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3516 "dhcp6_parser.cc" break; case 646: -#line 2216 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2216 "dhcp6_parser.yy" { error(yystack_[0].location, "boolean values for the replace-client-name are " "no longer supported"); } -#line 3521 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3525 "dhcp6_parser.cc" break; case 647: -#line 2222 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2222 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3529 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3533 "dhcp6_parser.cc" break; case 648: -#line 2224 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2224 "dhcp6_parser.yy" { - 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 3539 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3543 "dhcp6_parser.cc" break; case 649: -#line 2230 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2230 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3547 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3551 "dhcp6_parser.cc" break; case 650: -#line 2232 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2232 "dhcp6_parser.yy" { - 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 3557 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3561 "dhcp6_parser.cc" break; case 651: -#line 2238 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2238 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3565 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3569 "dhcp6_parser.cc" break; case 652: -#line 2240 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2240 "dhcp6_parser.yy" { - 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 3575 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3579 "dhcp6_parser.cc" break; case 653: -#line 2248 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2248 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3583 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3587 "dhcp6_parser.cc" break; case 654: -#line 2250 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2250 "dhcp6_parser.yy" { - ctx.stack_.back()->set("Dhcp4", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("Dhcp4", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3592 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3596 "dhcp6_parser.cc" break; case 655: -#line 2255 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2255 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3600 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3604 "dhcp6_parser.cc" break; case 656: -#line 2257 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2257 "dhcp6_parser.yy" { - ctx.stack_.back()->set("DhcpDdns", yystack_[0].value.as< ElementPtr > ()); + ctx.stack_.back()->set("DhcpDdns", yystack_[0].value.as < ElementPtr > ()); ctx.leave(); } -#line 3609 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3613 "dhcp6_parser.cc" break; case 657: -#line 2262 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2262 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3617 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3621 "dhcp6_parser.cc" break; case 658: -#line 2264 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2264 "dhcp6_parser.yy" { - 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 3626 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3630 "dhcp6_parser.cc" break; case 659: -#line 2271 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2271 "dhcp6_parser.yy" { 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 3637 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3641 "dhcp6_parser.cc" break; case 660: -#line 2276 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2276 "dhcp6_parser.yy" { // No config control params are required ctx.stack_.pop_back(); ctx.leave(); } -#line 3647 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3651 "dhcp6_parser.cc" break; case 661: -#line 2282 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2282 "dhcp6_parser.yy" { // Parse the config-control map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3657 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3661 "dhcp6_parser.cc" break; case 662: -#line 2286 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2286 "dhcp6_parser.yy" { // No config_control params are required // parsing completed } -#line 3666 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3670 "dhcp6_parser.cc" break; case 667: -#line 2301 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2301 "dhcp6_parser.yy" { 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 3677 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3681 "dhcp6_parser.cc" break; case 668: -#line 2306 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2306 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3686 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3690 "dhcp6_parser.cc" break; case 669: -#line 2311 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2311 "dhcp6_parser.yy" { - 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("config-fetch-wait-time", value); } -#line 3695 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3699 "dhcp6_parser.cc" break; case 670: -#line 2321 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2321 "dhcp6_parser.yy" { 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 3706 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3710 "dhcp6_parser.cc" break; case 671: -#line 2326 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2326 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3715 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3719 "dhcp6_parser.cc" break; case 672: -#line 2331 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2331 "dhcp6_parser.yy" { // Parse the Logging map ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.push_back(m); } -#line 3725 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3729 "dhcp6_parser.cc" break; case 673: -#line 2335 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2335 "dhcp6_parser.yy" { // parsing completed } -#line 3733 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3737 "dhcp6_parser.cc" break; case 677: -#line 2351 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2351 "dhcp6_parser.yy" { 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 3744 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3748 "dhcp6_parser.cc" break; case 678: -#line 2356 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2356 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3753 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3757 "dhcp6_parser.cc" break; case 681: -#line 2368 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2368 "dhcp6_parser.yy" { ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(l); ctx.stack_.push_back(l); } -#line 3763 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3767 "dhcp6_parser.cc" break; case 682: -#line 2372 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2372 "dhcp6_parser.yy" { ctx.stack_.pop_back(); } -#line 3771 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3775 "dhcp6_parser.cc" break; case 692: -#line 2389 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2389 "dhcp6_parser.yy" { - 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 3780 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3784 "dhcp6_parser.cc" break; case 693: -#line 2394 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2394 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3788 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3792 "dhcp6_parser.cc" break; case 694: -#line 2396 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2396 "dhcp6_parser.yy" { - 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 3798 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3802 "dhcp6_parser.cc" break; case 695: -#line 2402 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2402 "dhcp6_parser.yy" { 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 3809 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3813 "dhcp6_parser.cc" break; case 696: -#line 2407 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2407 "dhcp6_parser.yy" { ctx.stack_.pop_back(); ctx.leave(); } -#line 3818 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3822 "dhcp6_parser.cc" break; case 699: -#line 2416 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2416 "dhcp6_parser.yy" { ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location))); ctx.stack_.back()->add(m); ctx.stack_.push_back(m); } -#line 3828 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3832 "dhcp6_parser.cc" break; case 700: -#line 2420 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2420 "dhcp6_parser.yy" { ctx.stack_.pop_back(); } -#line 3836 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3840 "dhcp6_parser.cc" break; case 708: -#line 2435 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2435 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3844 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3848 "dhcp6_parser.cc" break; case 709: -#line 2437 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2437 "dhcp6_parser.yy" { - 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 3854 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3858 "dhcp6_parser.cc" break; case 710: -#line 2443 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2443 "dhcp6_parser.yy" { - 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 3863 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3867 "dhcp6_parser.cc" break; case 711: -#line 2448 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2448 "dhcp6_parser.yy" { - 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 3872 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3876 "dhcp6_parser.cc" break; case 712: -#line 2453 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2453 "dhcp6_parser.yy" { - 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 3881 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3885 "dhcp6_parser.cc" break; case 713: -#line 2458 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2458 "dhcp6_parser.yy" { ctx.enter(ctx.NO_KEYWORD); } -#line 3889 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3893 "dhcp6_parser.cc" break; case 714: -#line 2460 "dhcp6_parser.yy" // lalr1.cc:907 +#line 2460 "dhcp6_parser.yy" { - 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("pattern", sev); ctx.leave(); } -#line 3899 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3903 "dhcp6_parser.cc" break; -#line 3903 "dhcp6_parser.cc" // lalr1.cc:907 +#line 3907 "dhcp6_parser.cc" + default: break; } @@ -3907,6 +3912,7 @@ namespace isc { namespace dhcp { #if YY_EXCEPTIONS catch (const syntax_error& yyexc) { + YYCDEBUG << "Caught exception: " << yyexc.what() << '\n'; error (yyexc); YYERROR; } @@ -3921,6 +3927,7 @@ namespace isc { namespace dhcp { } goto yynewstate; + /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ @@ -3957,18 +3964,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; + /* 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. | `-------------------------------------------------------------*/ @@ -4009,16 +4016,26 @@ namespace isc { namespace dhcp { } 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); @@ -5268,10 +5285,11 @@ namespace isc { namespace dhcp { #endif // PARSER6_DEBUG -#line 14 "dhcp6_parser.yy" // lalr1.cc:1218 +#line 14 "dhcp6_parser.yy" } } // isc::dhcp -#line 5274 "dhcp6_parser.cc" // lalr1.cc:1218 -#line 2466 "dhcp6_parser.yy" // lalr1.cc:1219 +#line 5291 "dhcp6_parser.cc" + +#line 2466 "dhcp6_parser.yy" void diff --git a/src/bin/dhcp6/dhcp6_parser.h b/src/bin/dhcp6/dhcp6_parser.h index cefa430b1a..2d67048ecb 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.2.1. +// A Bison parser, made by GNU Bison 3.4.1. // Skeleton interface for Bison LALR(1) parsers in C++ -// Copyright (C) 2002-2015, 2018 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 @@ -44,7 +44,7 @@ #ifndef YY_PARSER6_DHCP6_PARSER_H_INCLUDED # define YY_PARSER6_DHCP6_PARSER_H_INCLUDED // // "%code requires" blocks. -#line 17 "dhcp6_parser.yy" // lalr1.cc:404 +#line 17 "dhcp6_parser.yy" #include #include @@ -56,7 +56,7 @@ using namespace isc::dhcp; using namespace isc::data; using namespace std; -#line 60 "dhcp6_parser.h" // lalr1.cc:404 +#line 60 "dhcp6_parser.h" # include # include // std::abort @@ -65,8 +65,14 @@ using namespace std; # include # include +#if defined __cplusplus +# define YY_CPLUSPLUS __cplusplus +#else +# define YY_CPLUSPLUS 199711L +#endif + // Support move semantics when possible. -#if defined __cplusplus && 201103L <= __cplusplus +#if 201103L <= YY_CPLUSPLUS # define YY_MOVE std::move # define YY_MOVE_OR_COPY move # define YY_MOVE_REF(Type) Type&& @@ -79,6 +85,22 @@ using namespace std; # 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 @@ -156,193 +178,80 @@ using namespace std; # endif /* ! defined YYDEBUG */ #endif /* ! defined PARSER6_DEBUG */ -#line 14 "dhcp6_parser.yy" // lalr1.cc:404 +#line 14 "dhcp6_parser.yy" namespace isc { namespace dhcp { -#line 162 "dhcp6_parser.h" // lalr1.cc:404 - - /// 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); - } - - void - pop (int n = 1) - { - for (; 0 < n; --n) - seq_.pop_back (); - } - - void - clear () - { - seq_.clear (); - } - - size_type - size () const - { - return seq_.size (); - } +#line 184 "dhcp6_parser.h" - const_iterator - begin () const - { - return seq_.rbegin (); - } - 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 + /// A Bison parser. + class Dhcp6Parser { public: - slice (const S& stack, int range) - : stack_ (stack) - , range_ (range) - {} - - const T& - operator[] (int i) const - { - return stack_[range_ - i]; - } - - private: - const S& stack_; - int range_; - }; - - - - /// A char[S] buffer to store and retrieve objects. +#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 () + semantic_type () YY_NOEXCEPT : yybuffer_ () , yytypeid_ (YY_NULLPTR) {} /// Construct and fill. template - variant (YY_RVREF (T) t) + semantic_type (YY_RVREF (T) t) : yytypeid_ (&typeid (T)) { - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); new (yyas_ ()) T (YY_MOVE (t)); } /// Destruction, allowed only if empty. - ~variant () + ~semantic_type () YY_NOEXCEPT { YYASSERT (!yytypeid_); } - /// Instantiate an empty \a T in here. - template +# if 201103L <= YY_CPLUSPLUS + /// Instantiate a \a T in here from \a t. + template T& - emplace () + emplace (U&&... u) { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); - return *new (yyas_ ()) T (); + return *new (yyas_ ()) T (std::forward (u)...); } - -# if defined __cplusplus && 201103L <= __cplusplus - /// Instantiate a \a T in here from \a t. - template +# else + /// Instantiate an empty \a T in here. + template T& - emplace (U&& u) + emplace () { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); - return *new (yyas_ ()) T (std::forward (u)); + return *new (yyas_ ()) T (); } -# else + /// Instantiate a \a T in here from \a t. template T& emplace (const T& t) { YYASSERT (!yytypeid_); - YYASSERT (sizeof (T) <= S); + YYASSERT (sizeof (T) <= size); yytypeid_ = & typeid (T); return *new (yyas_ ()) T (t); } @@ -369,75 +278,75 @@ namespace isc { namespace dhcp { /// 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 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& other) + move (self_type& that) { -# if defined __cplusplus && 201103L <= __cplusplus - emplace (std::move (other.as ())); +# if 201103L <= YY_CPLUSPLUS + emplace (std::move (that.as ())); # else emplace (); - swap (other); + swap (that); # endif - other.destroy (); + that.destroy (); } -# if defined __cplusplus && 201103L <= __cplusplus - /// Move the content of \a other to this. +# if 201103L <= YY_CPLUSPLUS + /// Move the content of \a that to this. template void - move (self_type&& other) + move (self_type&& that) { - emplace (std::move (other.as ())); - 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) { - emplace (other.as ()); + emplace (that.as ()); } /// Destroy the stored \a T. @@ -452,12 +361,12 @@ namespace isc { namespace dhcp { private: /// Prohibit blind copies. self_type& operator= (const self_type&); - variant (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); @@ -466,30 +375,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 { @@ -513,10 +404,24 @@ namespace isc { namespace dhcp { // "constant 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 @@ -526,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; }; @@ -748,29 +664,154 @@ namespace isc { namespace dhcp { typedef Base super_type; /// Default constructor. - basic_symbol (); - - /// Move or copy constructor. - basic_symbol (YY_RVREF (basic_symbol) other); + basic_symbol () + : value () + , location () + {} + +#if 201103L <= YY_CPLUSPLUS + /// Move constructor. + basic_symbol (basic_symbol&& that); +#endif + /// Copy constructor. + basic_symbol (const basic_symbol& that); /// Constructor for valueless symbols, and symbols from each type. - basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l); - basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l); - +#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 /// Destroy the symbol. - ~basic_symbol (); + ~basic_symbol () + { + clear (); + } /// Destroy contents, and record that is empty. - void clear (); + 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 204: // value + case 208: // map_value + case 269: // db_type + case 363: // hr_mode + case 499: // duid_type + case 534: // ncr_protocol_value + case 541: // replace_client_name_value + value.template destroy< ElementPtr > (); + break; + + case 186: // "boolean" + value.template destroy< bool > (); + break; + + case 185: // "floating point" + value.template destroy< double > (); + break; + + case 184: // "integer" + value.template destroy< int64_t > (); + break; + + case 183: // "constant string" + value.template destroy< std::string > (); + break; + + default: + break; + } + + 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); @@ -782,9 +823,9 @@ namespace isc { namespace dhcp { location_type location; private: -#if !defined __cplusplus || __cplusplus < 201103L +#if YY_CPLUSPLUS < 201103L /// Assignment operator. - basic_symbol& operator= (const basic_symbol& other); + basic_symbol& operator= (const basic_symbol& that); #endif }; @@ -794,8 +835,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; @@ -811,10 +857,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. @@ -823,7 +869,81 @@ namespace isc { namespace dhcp { }; /// "External" symbols: returned by the scanner. - typedef basic_symbol symbol_type; + struct symbol_type : basic_symbol + { + /// Superclass. + typedef basic_symbol super_type; + + /// Empty symbol. + symbol_type () {} + + /// 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_CONFIG_FETCH_WAIT_TIME || 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_MAX_ROW_ERRORS || tok == token::TOKEN_PREFERRED_LIFETIME || tok == token::TOKEN_MIN_PREFERRED_LIFETIME || tok == token::TOKEN_MAX_PREFERRED_LIFETIME || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_MIN_VALID_LIFETIME || tok == token::TOKEN_MAX_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_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_PATTERN || 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_CONFIG_FETCH_WAIT_TIME || 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_MAX_ROW_ERRORS || tok == token::TOKEN_PREFERRED_LIFETIME || tok == token::TOKEN_MIN_PREFERRED_LIFETIME || tok == token::TOKEN_MAX_PREFERRED_LIFETIME || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_MIN_VALID_LIFETIME || tok == token::TOKEN_MAX_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_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_PATTERN || 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 + }; /// Build a parser object. Dhcp6Parser (isc::dhcp::Parser6Context& ctx_yyarg); @@ -859,2580 +979,3384 @@ namespace isc { namespace dhcp { /// Report a syntax error. void error (const syntax_error& err); - // Symbol constructors declarations. - static - symbol_type - make_END (YY_COPY (location_type) l); - - static - symbol_type - make_COMMA (YY_COPY (location_type) l); - - static - symbol_type - make_COLON (YY_COPY (location_type) l); - - static - symbol_type - make_LSQUARE_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_RSQUARE_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_LCURLY_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_RCURLY_BRACKET (YY_COPY (location_type) l); - - static - symbol_type - make_NULL_TYPE (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP6 (YY_COPY (location_type) l); - - static - symbol_type - make_DATA_DIRECTORY (YY_COPY (location_type) l); - - static - symbol_type - make_CONFIG_CONTROL (YY_COPY (location_type) l); - - static - symbol_type - make_CONFIG_DATABASES (YY_COPY (location_type) l); - - static - symbol_type - make_CONFIG_FETCH_WAIT_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_INTERFACES_CONFIG (YY_COPY (location_type) l); - - static - symbol_type - make_INTERFACES (YY_COPY (location_type) l); - - static - symbol_type - make_RE_DETECT (YY_COPY (location_type) l); - - static - symbol_type - make_LEASE_DATABASE (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTS_DATABASE (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTS_DATABASES (YY_COPY (location_type) l); - - static - symbol_type - make_TYPE (YY_COPY (location_type) l); - - static - symbol_type - make_MEMFILE (YY_COPY (location_type) l); - - static - symbol_type - make_MYSQL (YY_COPY (location_type) l); - - static - symbol_type - make_POSTGRESQL (YY_COPY (location_type) l); - - static - symbol_type - make_CQL (YY_COPY (location_type) l); - - static - symbol_type - make_USER (YY_COPY (location_type) l); - - static - symbol_type - make_PASSWORD (YY_COPY (location_type) l); - - static - symbol_type - make_HOST (YY_COPY (location_type) l); - - static - symbol_type - make_PORT (YY_COPY (location_type) l); - - static - symbol_type - make_PERSIST (YY_COPY (location_type) l); - - static - symbol_type - make_LFC_INTERVAL (YY_COPY (location_type) l); - - static - symbol_type - make_READONLY (YY_COPY (location_type) l); - - static - symbol_type - make_CONNECT_TIMEOUT (YY_COPY (location_type) l); - - static - symbol_type - make_CONTACT_POINTS (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_RECONNECT_TRIES (YY_COPY (location_type) l); - - static - symbol_type - make_RECONNECT_WAIT_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_KEYSPACE (YY_COPY (location_type) l); - - static - symbol_type - make_CONSISTENCY (YY_COPY (location_type) l); - - static - symbol_type - make_SERIAL_CONSISTENCY (YY_COPY (location_type) l); - - static - symbol_type - make_REQUEST_TIMEOUT (YY_COPY (location_type) l); - - static - symbol_type - make_TCP_KEEPALIVE (YY_COPY (location_type) l); - - static - symbol_type - make_TCP_NODELAY (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_ROW_ERRORS (YY_COPY (location_type) l); - - static - symbol_type - make_PREFERRED_LIFETIME (YY_COPY (location_type) l); - - static - symbol_type - make_MIN_PREFERRED_LIFETIME (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_PREFERRED_LIFETIME (YY_COPY (location_type) l); - - static - symbol_type - make_VALID_LIFETIME (YY_COPY (location_type) l); - - static - symbol_type - make_MIN_VALID_LIFETIME (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_VALID_LIFETIME (YY_COPY (location_type) l); - - static - symbol_type - make_RENEW_TIMER (YY_COPY (location_type) l); - - static - symbol_type - make_REBIND_TIMER (YY_COPY (location_type) l); - - static - symbol_type - make_CALCULATE_TEE_TIMES (YY_COPY (location_type) l); - - static - symbol_type - make_T1_PERCENT (YY_COPY (location_type) l); - - static - symbol_type - make_T2_PERCENT (YY_COPY (location_type) l); - - static - symbol_type - make_DECLINE_PROBATION_PERIOD (YY_COPY (location_type) l); - - static - symbol_type - make_SERVER_TAG (YY_COPY (location_type) l); - - static - symbol_type - make_SUBNET6 (YY_COPY (location_type) l); - - static - symbol_type - make_OPTION_DEF (YY_COPY (location_type) l); - - static - symbol_type - make_OPTION_DATA (YY_COPY (location_type) l); - - static - symbol_type - make_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_DATA (YY_COPY (location_type) l); - - static - symbol_type - make_CODE (YY_COPY (location_type) l); - - static - symbol_type - make_SPACE (YY_COPY (location_type) l); - - static - symbol_type - make_CSV_FORMAT (YY_COPY (location_type) l); - - static - symbol_type - make_ALWAYS_SEND (YY_COPY (location_type) l); - - static - symbol_type - make_RECORD_TYPES (YY_COPY (location_type) l); - - static - symbol_type - make_ENCAPSULATE (YY_COPY (location_type) l); - - static - symbol_type - make_ARRAY (YY_COPY (location_type) l); - - static - symbol_type - make_POOLS (YY_COPY (location_type) l); - - static - symbol_type - make_POOL (YY_COPY (location_type) l); - - static - symbol_type - make_PD_POOLS (YY_COPY (location_type) l); - - static - symbol_type - make_PREFIX (YY_COPY (location_type) l); - - static - symbol_type - make_PREFIX_LEN (YY_COPY (location_type) l); - - static - symbol_type - make_EXCLUDED_PREFIX (YY_COPY (location_type) l); - - static - symbol_type - make_EXCLUDED_PREFIX_LEN (YY_COPY (location_type) l); - - static - symbol_type - make_DELEGATED_LEN (YY_COPY (location_type) l); - - static - symbol_type - make_USER_CONTEXT (YY_COPY (location_type) l); - - static - symbol_type - make_COMMENT (YY_COPY (location_type) l); - - static - symbol_type - make_SUBNET (YY_COPY (location_type) l); - - static - symbol_type - make_INTERFACE (YY_COPY (location_type) l); - - static - symbol_type - make_INTERFACE_ID (YY_COPY (location_type) l); - - static - symbol_type - make_ID (YY_COPY (location_type) l); - - static - symbol_type - make_RAPID_COMMIT (YY_COPY (location_type) l); - - static - symbol_type - make_RESERVATION_MODE (YY_COPY (location_type) l); - - static - symbol_type - make_DISABLED (YY_COPY (location_type) l); - - static - symbol_type - make_OUT_OF_POOL (YY_COPY (location_type) l); - - static - symbol_type - make_GLOBAL (YY_COPY (location_type) l); - - static - symbol_type - make_ALL (YY_COPY (location_type) l); - - static - symbol_type - make_SHARED_NETWORKS (YY_COPY (location_type) l); - - static - symbol_type - make_MAC_SOURCES (YY_COPY (location_type) l); - - static - symbol_type - make_RELAY_SUPPLIED_OPTIONS (YY_COPY (location_type) l); - - static - symbol_type - make_HOST_RESERVATION_IDENTIFIERS (YY_COPY (location_type) l); - - static - symbol_type - make_SANITY_CHECKS (YY_COPY (location_type) l); - - static - symbol_type - make_LEASE_CHECKS (YY_COPY (location_type) l); - - static - symbol_type - make_CLIENT_CLASSES (YY_COPY (location_type) l); - - static - symbol_type - make_REQUIRE_CLIENT_CLASSES (YY_COPY (location_type) l); - - static - symbol_type - make_TEST (YY_COPY (location_type) l); - - static - symbol_type - make_ONLY_IF_REQUIRED (YY_COPY (location_type) l); - - static - symbol_type - make_CLIENT_CLASS (YY_COPY (location_type) l); - - static - symbol_type - make_RESERVATIONS (YY_COPY (location_type) l); - - static - symbol_type - make_IP_ADDRESSES (YY_COPY (location_type) l); - - static - symbol_type - make_PREFIXES (YY_COPY (location_type) l); - - static - symbol_type - make_DUID (YY_COPY (location_type) l); - - static - symbol_type - make_HW_ADDRESS (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTNAME (YY_COPY (location_type) l); - - static - symbol_type - make_FLEX_ID (YY_COPY (location_type) l); - - static - symbol_type - make_RELAY (YY_COPY (location_type) l); - - static - symbol_type - make_IP_ADDRESS (YY_COPY (location_type) l); - - static - symbol_type - make_HOOKS_LIBRARIES (YY_COPY (location_type) l); - - static - symbol_type - make_LIBRARY (YY_COPY (location_type) l); - - static - symbol_type - make_PARAMETERS (YY_COPY (location_type) l); - - static - symbol_type - make_EXPIRED_LEASES_PROCESSING (YY_COPY (location_type) l); - - static - symbol_type - make_RECLAIM_TIMER_WAIT_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_HOLD_RECLAIMED_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_RECLAIM_LEASES (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_RECLAIM_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_UNWARNED_RECLAIM_CYCLES (YY_COPY (location_type) l); - - static - symbol_type - make_SERVER_ID (YY_COPY (location_type) l); - - static - symbol_type - make_LLT (YY_COPY (location_type) l); - - static - symbol_type - make_EN (YY_COPY (location_type) l); - - static - symbol_type - make_LL (YY_COPY (location_type) l); - - static - symbol_type - make_IDENTIFIER (YY_COPY (location_type) l); - - static - symbol_type - make_HTYPE (YY_COPY (location_type) l); - - static - symbol_type - make_TIME (YY_COPY (location_type) l); - - static - symbol_type - make_ENTERPRISE_ID (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP4O6_PORT (YY_COPY (location_type) l); - - static - symbol_type - make_CONTROL_SOCKET (YY_COPY (location_type) l); - - static - symbol_type - make_SOCKET_TYPE (YY_COPY (location_type) l); - - static - symbol_type - make_SOCKET_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP_QUEUE_CONTROL (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP_DDNS (YY_COPY (location_type) l); - - static - symbol_type - make_ENABLE_UPDATES (YY_COPY (location_type) l); - - static - symbol_type - make_QUALIFYING_SUFFIX (YY_COPY (location_type) l); - - static - symbol_type - make_SERVER_IP (YY_COPY (location_type) l); - - static - symbol_type - make_SERVER_PORT (YY_COPY (location_type) l); - - static - symbol_type - make_SENDER_IP (YY_COPY (location_type) l); - - static - symbol_type - make_SENDER_PORT (YY_COPY (location_type) l); - - static - symbol_type - make_MAX_QUEUE_SIZE (YY_COPY (location_type) l); - - static - symbol_type - make_NCR_PROTOCOL (YY_COPY (location_type) l); - - static - symbol_type - make_NCR_FORMAT (YY_COPY (location_type) l); - - static - symbol_type - make_OVERRIDE_NO_UPDATE (YY_COPY (location_type) l); - - static - symbol_type - make_OVERRIDE_CLIENT_UPDATE (YY_COPY (location_type) l); - - static - symbol_type - make_REPLACE_CLIENT_NAME (YY_COPY (location_type) l); - - static - symbol_type - make_GENERATED_PREFIX (YY_COPY (location_type) l); - - static - symbol_type - make_UDP (YY_COPY (location_type) l); - - static - symbol_type - make_TCP (YY_COPY (location_type) l); - - static - symbol_type - make_JSON (YY_COPY (location_type) l); - - static - symbol_type - make_WHEN_PRESENT (YY_COPY (location_type) l); - - static - symbol_type - make_NEVER (YY_COPY (location_type) l); - - static - symbol_type - make_ALWAYS (YY_COPY (location_type) l); - - static - symbol_type - make_WHEN_NOT_PRESENT (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTNAME_CHAR_SET (YY_COPY (location_type) l); - - static - symbol_type - make_HOSTNAME_CHAR_REPLACEMENT (YY_COPY (location_type) l); - - static - symbol_type - make_LOGGING (YY_COPY (location_type) l); - - static - symbol_type - make_LOGGERS (YY_COPY (location_type) l); - - static - symbol_type - make_OUTPUT_OPTIONS (YY_COPY (location_type) l); - - static - symbol_type - make_OUTPUT (YY_COPY (location_type) l); - - static - symbol_type - make_DEBUGLEVEL (YY_COPY (location_type) l); - - static - symbol_type - make_SEVERITY (YY_COPY (location_type) l); - - static - symbol_type - make_FLUSH (YY_COPY (location_type) l); - - static - symbol_type - make_MAXSIZE (YY_COPY (location_type) l); - - static - symbol_type - make_MAXVER (YY_COPY (location_type) l); - - static - symbol_type - make_PATTERN (YY_COPY (location_type) l); - - static - symbol_type - make_DHCP4 (YY_COPY (location_type) l); - - static - symbol_type - make_DHCPDDNS (YY_COPY (location_type) l); - - static - symbol_type - make_CONTROL_AGENT (YY_COPY (location_type) l); - - static - symbol_type - make_TOPLEVEL_JSON (YY_COPY (location_type) l); - - static - symbol_type - make_TOPLEVEL_DHCP6 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_DHCP6 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_INTERFACES6 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_SUBNET6 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_POOL6 (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_PD_POOL (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_RESERVATION (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_OPTION_DEFS (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_OPTION_DEF (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_OPTION_DATA (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_HOOKS_LIBRARY (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_DHCP_DDNS (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_LOGGING (YY_COPY (location_type) l); - - static - symbol_type - make_SUB_CONFIG_CONTROL (YY_COPY (location_type) l); - - static - symbol_type - make_STRING (YY_COPY (std::string) v, YY_COPY (location_type) l); - - static - symbol_type - make_INTEGER (YY_COPY (int64_t) v, YY_COPY (location_type) l); - - static - symbol_type - make_FLOAT (YY_COPY (double) v, YY_COPY (location_type) l); - - static - symbol_type - make_BOOLEAN (YY_COPY (bool) v, YY_COPY (location_type) l); - - - - 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 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 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 yydefact_[]; - - // YYPGOTO[NTERM-NUM]. - static const short yypgoto_[]; - - // YYDEFGOTO[NTERM-NUM]. - static const short 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 yytable_[]; - - static const short yycheck_[]; - - // YYSTOS[STATE-NUM] -- The (internal number of the) accessing - // symbol of state STATE-NUM. - static const unsigned short yystos_[]; - - // YYR1[YYN] -- Symbol number of symbol that rule YYN derives. - static const unsigned short 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 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 level. - int yydebug_; - /// Debug stream. - 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; -#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 (); - /// 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 !defined __cplusplus || __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 - }; - - /// 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 sym the symbol - /// \warning the contents of \a s.value is stolen. - void yypush_ (const char* m, YY_MOVE_REF (stack_symbol_type) sym); - - /// 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); - - /// Pop \a n symbols from the stack. - void yypop_ (int n = 1); - - /// Constants. - enum - { - yyeof_ = 0, - yylast_ = 1107, ///< Last index in yytable_. - yynnts_ = 406, ///< Number of nonterminal symbols. - yyfinal_ = 32, ///< Termination state number. - yyterror_ = 1, - yyerrcode_ = 256, - yyntokens_ = 187 ///< 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, 177, 178, 179, 180, 181, 182, 183, 184, - 185, 186 - }; - const unsigned user_token_number_max_ = 441; - 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 - Dhcp6Parser::basic_symbol::basic_symbol () - : value () - , location () - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (YY_RVREF (basic_symbol) other) - : Base (YY_MOVE (other)) - , value () - , location (YY_MOVE (other.location)) - { - switch (other.type_get ()) - { - case 204: // value - case 208: // map_value - case 269: // db_type - case 363: // hr_mode - case 499: // duid_type - case 534: // ncr_protocol_value - case 541: // replace_client_name_value - value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (other.value)); - break; - - case 186: // "boolean" - value.YY_MOVE_OR_COPY< bool > (YY_MOVE (other.value)); - break; - - case 185: // "floating point" - value.YY_MOVE_OR_COPY< double > (YY_MOVE (other.value)); - break; - - case 184: // "integer" - value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (other.value)); - break; - - case 183: // "constant string" - value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (other.value)); - break; - - default: - break; - } - - } - - - // Implementation of basic_symbol constructor for each type. - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l) - : Base (t) - , location (YY_MOVE (l)) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - template - Dhcp6Parser::basic_symbol::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l) - : Base (t) - , value (YY_MOVE (v)) - , location (YY_MOVE (l)) - {} - - - - template - Dhcp6Parser::basic_symbol::~basic_symbol () - { - clear (); - } - - template - 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 204: // value - case 208: // map_value - case 269: // db_type - case 363: // hr_mode - case 499: // duid_type - case 534: // ncr_protocol_value - case 541: // replace_client_name_value - value.template destroy< ElementPtr > (); - break; - - case 186: // "boolean" - value.template destroy< bool > (); - break; - - case 185: // "floating point" - value.template destroy< double > (); - break; - - case 184: // "integer" - value.template destroy< int64_t > (); - break; - - case 183: // "constant string" - value.template destroy< std::string > (); - break; - - default: - break; - } - - Base::clear (); - } - - template - bool - Dhcp6Parser::basic_symbol::empty () const - { - return Base::type_get () == empty_symbol; - } - - template - void - Dhcp6Parser::basic_symbol::move (basic_symbol& s) - { - super_type::move (s); - switch (this->type_get ()) - { - case 204: // value - case 208: // map_value - case 269: // db_type - case 363: // hr_mode - case 499: // duid_type - case 534: // ncr_protocol_value - case 541: // replace_client_name_value - value.move< ElementPtr > (YY_MOVE (s.value)); - break; - - case 186: // "boolean" - value.move< bool > (YY_MOVE (s.value)); - break; - - case 185: // "floating point" - value.move< double > (YY_MOVE (s.value)); - break; - - case 184: // "integer" - value.move< int64_t > (YY_MOVE (s.value)); - break; - - case 183: // "constant string" - value.move< std::string > (YY_MOVE (s.value)); - break; - - default: - break; - } - - location = YY_MOVE (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 - 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, 432, 433, 434, - 435, 436, 437, 438, 439, 440, 441 - }; - return static_cast (yytoken_number_[type]); - } - - // Implementation of make_symbol for each symbol type. - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_END (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_END, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_COMMA (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_COMMA, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_COLON (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_COLON, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LSQUARE_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LSQUARE_BRACKET, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RSQUARE_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RSQUARE_BRACKET, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LCURLY_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LCURLY_BRACKET, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RCURLY_BRACKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RCURLY_BRACKET, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_NULL_TYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NULL_TYPE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCP6 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP6, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DATA_DIRECTORY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DATA_DIRECTORY, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONFIG_CONTROL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONFIG_CONTROL, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONFIG_DATABASES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONFIG_DATABASES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONFIG_FETCH_WAIT_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONFIG_FETCH_WAIT_TIME, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_INTERFACES_CONFIG (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_INTERFACES_CONFIG, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_INTERFACES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_INTERFACES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RE_DETECT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RE_DETECT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LEASE_DATABASE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LEASE_DATABASE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOSTS_DATABASE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTS_DATABASE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOSTS_DATABASES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTS_DATABASES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TYPE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MEMFILE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MEMFILE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MYSQL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MYSQL, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_POSTGRESQL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_POSTGRESQL, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CQL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CQL, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_USER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_USER, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PASSWORD (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PASSWORD, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOST (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOST, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PORT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PORT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PERSIST (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PERSIST, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LFC_INTERVAL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LFC_INTERVAL, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_READONLY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_READONLY, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONNECT_TIMEOUT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONNECT_TIMEOUT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONTACT_POINTS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONTACT_POINTS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_RECONNECT_TRIES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RECONNECT_WAIT_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_KEYSPACE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_KEYSPACE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONSISTENCY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONSISTENCY, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SERIAL_CONSISTENCY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERIAL_CONSISTENCY, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_REQUEST_TIMEOUT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_REQUEST_TIMEOUT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TCP_KEEPALIVE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TCP_KEEPALIVE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TCP_NODELAY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TCP_NODELAY, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_ROW_ERRORS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_ROW_ERRORS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PREFERRED_LIFETIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PREFERRED_LIFETIME, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MIN_PREFERRED_LIFETIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MIN_PREFERRED_LIFETIME, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_PREFERRED_LIFETIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_PREFERRED_LIFETIME, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_VALID_LIFETIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_VALID_LIFETIME, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MIN_VALID_LIFETIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MIN_VALID_LIFETIME, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_VALID_LIFETIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_VALID_LIFETIME, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RENEW_TIMER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RENEW_TIMER, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_REBIND_TIMER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_REBIND_TIMER, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CALCULATE_TEE_TIMES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CALCULATE_TEE_TIMES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_T1_PERCENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_T1_PERCENT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_T2_PERCENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_T2_PERCENT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DECLINE_PROBATION_PERIOD (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SERVER_TAG (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERVER_TAG, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUBNET6 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUBNET6, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OPTION_DEF (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OPTION_DEF, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OPTION_DATA (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OPTION_DATA, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NAME, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DATA (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DATA, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CODE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CODE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SPACE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SPACE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CSV_FORMAT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CSV_FORMAT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ALWAYS_SEND (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ALWAYS_SEND, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RECORD_TYPES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RECORD_TYPES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ENCAPSULATE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ENCAPSULATE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ARRAY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ARRAY, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_POOLS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_POOLS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_POOL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_POOL, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PD_POOLS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PD_POOLS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PREFIX (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PREFIX, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PREFIX_LEN (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PREFIX_LEN, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_EXCLUDED_PREFIX (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_EXCLUDED_PREFIX, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_EXCLUDED_PREFIX_LEN (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_EXCLUDED_PREFIX_LEN, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DELEGATED_LEN (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DELEGATED_LEN, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_USER_CONTEXT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_USER_CONTEXT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_COMMENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_COMMENT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUBNET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUBNET, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_INTERFACE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_INTERFACE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_INTERFACE_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_INTERFACE_ID, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ID, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RAPID_COMMIT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RAPID_COMMIT, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RESERVATION_MODE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RESERVATION_MODE, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DISABLED (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DISABLED, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OUT_OF_POOL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OUT_OF_POOL, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_GLOBAL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_GLOBAL, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ALL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ALL, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SHARED_NETWORKS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SHARED_NETWORKS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAC_SOURCES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAC_SOURCES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RELAY_SUPPLIED_OPTIONS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RELAY_SUPPLIED_OPTIONS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOST_RESERVATION_IDENTIFIERS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SANITY_CHECKS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SANITY_CHECKS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LEASE_CHECKS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LEASE_CHECKS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CLIENT_CLASSES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CLIENT_CLASSES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_REQUIRE_CLIENT_CLASSES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TEST (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TEST, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ONLY_IF_REQUIRED (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CLIENT_CLASS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CLIENT_CLASS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RESERVATIONS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RESERVATIONS, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_IP_ADDRESSES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_IP_ADDRESSES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PREFIXES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PREFIXES, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DUID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DUID, YY_MOVE (l)); - } - - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HW_ADDRESS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HW_ADDRESS, YY_MOVE (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 +#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_CONFIG_FETCH_WAIT_TIME (location_type l) + { + return symbol_type (token::TOKEN_CONFIG_FETCH_WAIT_TIME, std::move (l)); + } +#else + static + symbol_type + make_CONFIG_FETCH_WAIT_TIME (const location_type& l) + { + return symbol_type (token::TOKEN_CONFIG_FETCH_WAIT_TIME, 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_MAX_ROW_ERRORS (location_type l) + { + return symbol_type (token::TOKEN_MAX_ROW_ERRORS, std::move (l)); + } +#else + static + symbol_type + make_MAX_ROW_ERRORS (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_ROW_ERRORS, 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_MIN_PREFERRED_LIFETIME (location_type l) + { + return symbol_type (token::TOKEN_MIN_PREFERRED_LIFETIME, std::move (l)); + } +#else + static + symbol_type + make_MIN_PREFERRED_LIFETIME (const location_type& l) + { + return symbol_type (token::TOKEN_MIN_PREFERRED_LIFETIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_PREFERRED_LIFETIME (location_type l) + { + return symbol_type (token::TOKEN_MAX_PREFERRED_LIFETIME, std::move (l)); + } +#else + static + symbol_type + make_MAX_PREFERRED_LIFETIME (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_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_MIN_VALID_LIFETIME (location_type l) + { + return symbol_type (token::TOKEN_MIN_VALID_LIFETIME, std::move (l)); + } +#else + static + symbol_type + make_MIN_VALID_LIFETIME (const location_type& l) + { + return symbol_type (token::TOKEN_MIN_VALID_LIFETIME, l); + } +#endif +#if 201103L <= YY_CPLUSPLUS + static + symbol_type + make_MAX_VALID_LIFETIME (location_type l) + { + return symbol_type (token::TOKEN_MAX_VALID_LIFETIME, std::move (l)); + } +#else + static + symbol_type + make_MAX_VALID_LIFETIME (const location_type& l) + { + return symbol_type (token::TOKEN_MAX_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_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_PATTERN (location_type l) + { + return symbol_type (token::TOKEN_PATTERN, std::move (l)); + } +#else + static + symbol_type + make_PATTERN (const location_type& l) + { + return symbol_type (token::TOKEN_PATTERN, 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 - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOSTNAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTNAME, YY_MOVE (l)); - } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_FLEX_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_FLEX_ID, YY_MOVE (l)); - } + private: + /// This class is not copyable. + Dhcp6Parser (const Dhcp6Parser&); + Dhcp6Parser& operator= (const Dhcp6Parser&); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RELAY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RELAY, YY_MOVE (l)); - } + /// State numbers. + typedef int state_type; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_IP_ADDRESS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_IP_ADDRESS, YY_MOVE (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; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOOKS_LIBRARIES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOOKS_LIBRARIES, YY_MOVE (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); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LIBRARY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LIBRARY, YY_MOVE (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); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PARAMETERS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PARAMETERS, YY_MOVE (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); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_EXPIRED_LEASES_PROCESSING (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, YY_MOVE (l)); - } + static const short yypact_ninf_; + static const signed char yytable_ninf_; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_RECLAIM_TIMER_WAIT_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, YY_MOVE (l)); - } + /// Convert a scanner token number \a t to a symbol number. + static token_number_type yytranslate_ (token_type t); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, YY_MOVE (l)); - } + // Tables. + // YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + // STATE-NUM. + static const short yypact_[]; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOLD_RECLAIMED_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, YY_MOVE (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_[]; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_RECLAIM_LEASES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, YY_MOVE (l)); - } + // YYPGOTO[NTERM-NUM]. + static const short yypgoto_[]; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_RECLAIM_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, YY_MOVE (l)); - } + // YYDEFGOTO[NTERM-NUM]. + static const short yydefgoto_[]; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_UNWARNED_RECLAIM_CYCLES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, YY_MOVE (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_[]; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SERVER_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERVER_ID, YY_MOVE (l)); - } + static const short yycheck_[]; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LLT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LLT, YY_MOVE (l)); - } + // YYSTOS[STATE-NUM] -- The (internal number of the) accessing + // symbol of state STATE-NUM. + static const unsigned short yystos_[]; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_EN (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_EN, YY_MOVE (l)); - } + // YYR1[YYN] -- Symbol number of symbol that rule YYN derives. + static const unsigned short yyr1_[]; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LL, YY_MOVE (l)); - } + // YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. + static const unsigned char yyr2_[]; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_IDENTIFIER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_IDENTIFIER, YY_MOVE (l)); - } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HTYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HTYPE, YY_MOVE (l)); - } + /// Convert the symbol name \a n to a form suitable for a diagnostic. + static std::string yytnamerr_ (const char *n); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TIME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TIME, YY_MOVE (l)); - } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ENTERPRISE_ID (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ENTERPRISE_ID, YY_MOVE (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_ (); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCP4O6_PORT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP4O6_PORT, YY_MOVE (l)); - } + /// Debugging level. + int yydebug_; + /// Debug stream. + std::ostream* yycdebug_; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONTROL_SOCKET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONTROL_SOCKET, YY_MOVE (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 - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SOCKET_TYPE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SOCKET_TYPE, YY_MOVE (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; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SOCKET_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SOCKET_NAME, YY_MOVE (l)); - } + private: + /// Type access provider for state based symbols. + struct by_state + { + /// Default constructor. + by_state () YY_NOEXCEPT; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCP_QUEUE_CONTROL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, YY_MOVE (l)); - } + /// The symbol type as needed by the constructor. + typedef state_type kind_type; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCP_DDNS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCP_DDNS, YY_MOVE (l)); - } + /// Constructor. + by_state (kind_type s) YY_NOEXCEPT; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ENABLE_UPDATES (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ENABLE_UPDATES, YY_MOVE (l)); - } + /// Copy constructor. + by_state (const by_state& that) YY_NOEXCEPT; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_QUALIFYING_SUFFIX (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, YY_MOVE (l)); - } + /// Record that this symbol is empty. + void clear () YY_NOEXCEPT; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SERVER_IP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERVER_IP, YY_MOVE (l)); - } + /// Steal the symbol type from \a that. + void move (by_state& that); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SERVER_PORT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SERVER_PORT, YY_MOVE (l)); - } + /// The (internal) type number (corresponding to \a state). + /// \a empty_symbol when empty. + symbol_number_type type_get () const YY_NOEXCEPT; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SENDER_IP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SENDER_IP, YY_MOVE (l)); - } + /// The state number used to denote an empty symbol. + enum { empty_state = -1 }; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SENDER_PORT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SENDER_PORT, YY_MOVE (l)); - } + /// The state. + /// \a empty when empty. + state_type state; + }; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAX_QUEUE_SIZE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, YY_MOVE (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 + }; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_NCR_PROTOCOL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NCR_PROTOCOL, YY_MOVE (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); + } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_NCR_FORMAT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NCR_FORMAT, YY_MOVE (l)); - } + /// Pop elements from the stack. + void + pop (int n = 1) YY_NOEXCEPT + { + for (; 0 < n; --n) + seq_.pop_back (); + } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OVERRIDE_NO_UPDATE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, YY_MOVE (l)); - } + /// Pop all elements from the stack. + void + clear () YY_NOEXCEPT + { + seq_.clear (); + } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OVERRIDE_CLIENT_UPDATE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, YY_MOVE (l)); - } + /// Number of elements on the stack. + size_type + size () const YY_NOEXCEPT + { + return seq_.size (); + } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_REPLACE_CLIENT_NAME (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, YY_MOVE (l)); - } + /// Iterator on top of the stack (going downwards). + const_iterator + begin () const YY_NOEXCEPT + { + return seq_.rbegin (); + } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_GENERATED_PREFIX (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_GENERATED_PREFIX, YY_MOVE (l)); - } + /// Bottom of the stack. + const_iterator + end () const YY_NOEXCEPT + { + return seq_.rend (); + } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_UDP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_UDP, YY_MOVE (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_; + }; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TCP (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TCP, YY_MOVE (l)); - } + private: + stack (const stack&); + stack& operator= (const stack&); + /// The wrapped container. + S seq_; + }; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_JSON (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_JSON, YY_MOVE (l)); - } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_WHEN_PRESENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_WHEN_PRESENT, YY_MOVE (l)); - } + /// Stack type. + typedef stack stack_type; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_NEVER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_NEVER, YY_MOVE (l)); - } + /// The stack. + stack_type yystack_; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_ALWAYS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_ALWAYS, YY_MOVE (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); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_WHEN_NOT_PRESENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, YY_MOVE (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); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOSTNAME_CHAR_SET (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, YY_MOVE (l)); - } + /// Pop \a n symbols from the stack. + void yypop_ (int n = 1); - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_HOSTNAME_CHAR_REPLACEMENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, YY_MOVE (l)); - } + /// Constants. + enum + { + yyeof_ = 0, + yylast_ = 1107, ///< Last index in yytable_. + yynnts_ = 406, ///< Number of nonterminal symbols. + yyfinal_ = 32, ///< Termination state number. + yyterror_ = 1, + yyerrcode_ = 256, + yyntokens_ = 187 ///< Number of tokens. + }; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LOGGING (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_LOGGING, YY_MOVE (l)); - } + + // User arguments. + isc::dhcp::Parser6Context& ctx; + }; inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_LOGGERS (YY_COPY (location_type) l) + Dhcp6Parser::token_number_type + Dhcp6Parser::yytranslate_ (token_type t) { - return symbol_type (token::TOKEN_LOGGERS, YY_MOVE (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, 177, 178, 179, 180, 181, 182, 183, 184, + 185, 186 + }; + const unsigned user_token_number_max_ = 441; + const token_number_type undef_token_ = 2; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OUTPUT_OPTIONS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_OUTPUT_OPTIONS, YY_MOVE (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_; } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_OUTPUT (YY_COPY (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_OUTPUT, YY_MOVE (l)); - } + switch (this->type_get ()) + { + case 204: // value + case 208: // map_value + case 269: // db_type + case 363: // hr_mode + case 499: // duid_type + case 534: // ncr_protocol_value + case 541: // replace_client_name_value + value.move< ElementPtr > (std::move (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DEBUGLEVEL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DEBUGLEVEL, YY_MOVE (l)); - } + case 186: // "boolean" + value.move< bool > (std::move (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SEVERITY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SEVERITY, YY_MOVE (l)); - } + case 185: // "floating point" + value.move< double > (std::move (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_FLUSH (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_FLUSH, YY_MOVE (l)); - } + case 184: // "integer" + value.move< int64_t > (std::move (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAXSIZE (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAXSIZE, YY_MOVE (l)); - } + case 183: // "constant string" + value.move< std::string > (std::move (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_MAXVER (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_MAXVER, YY_MOVE (l)); - } + default: + break; + } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_PATTERN (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_PATTERN, YY_MOVE (l)); } +#endif - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCP4 (YY_COPY (location_type) l) + template + Dhcp6Parser::basic_symbol::basic_symbol (const basic_symbol& that) + : Base (that) + , value () + , location (that.location) { - return symbol_type (token::TOKEN_DHCP4, YY_MOVE (l)); - } + switch (this->type_get ()) + { + case 204: // value + case 208: // map_value + case 269: // db_type + case 363: // hr_mode + case 499: // duid_type + case 534: // ncr_protocol_value + case 541: // replace_client_name_value + value.copy< ElementPtr > (YY_MOVE (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_DHCPDDNS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_DHCPDDNS, YY_MOVE (l)); - } + case 186: // "boolean" + value.copy< bool > (YY_MOVE (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_CONTROL_AGENT (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_CONTROL_AGENT, YY_MOVE (l)); - } + case 185: // "floating point" + value.copy< double > (YY_MOVE (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TOPLEVEL_JSON (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TOPLEVEL_JSON, YY_MOVE (l)); - } + case 184: // "integer" + value.copy< int64_t > (YY_MOVE (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_TOPLEVEL_DHCP6 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_TOPLEVEL_DHCP6, YY_MOVE (l)); - } + case 183: // "constant string" + value.copy< std::string > (YY_MOVE (that.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_DHCP6 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_DHCP6, YY_MOVE (l)); - } + default: + break; + } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_INTERFACES6 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_INTERFACES6, YY_MOVE (l)); } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_SUBNET6 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_SUBNET6, YY_MOVE (l)); - } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_POOL6 (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_POOL6, YY_MOVE (l)); - } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_PD_POOL (YY_COPY (location_type) l) + template + bool + Dhcp6Parser::basic_symbol::empty () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_SUB_PD_POOL, YY_MOVE (l)); + return Base::type_get () == empty_symbol; } - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_RESERVATION (YY_COPY (location_type) l) + template + void + Dhcp6Parser::basic_symbol::move (basic_symbol& s) { - return symbol_type (token::TOKEN_SUB_RESERVATION, YY_MOVE (l)); - } + super_type::move (s); + switch (this->type_get ()) + { + case 204: // value + case 208: // map_value + case 269: // db_type + case 363: // hr_mode + case 499: // duid_type + case 534: // ncr_protocol_value + case 541: // replace_client_name_value + value.move< ElementPtr > (YY_MOVE (s.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_OPTION_DEFS (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DEFS, YY_MOVE (l)); - } + case 186: // "boolean" + value.move< bool > (YY_MOVE (s.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_OPTION_DEF (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DEF, YY_MOVE (l)); - } + case 185: // "floating point" + value.move< double > (YY_MOVE (s.value)); + break; - inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_OPTION_DATA (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_OPTION_DATA, YY_MOVE (l)); + case 184: // "integer" + value.move< int64_t > (YY_MOVE (s.value)); + break; + + case 183: // "constant string" + value.move< std::string > (YY_MOVE (s.value)); + break; + + default: + break; + } + + location = YY_MOVE (s.location); } + // by_type. inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_HOOKS_LIBRARY (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, YY_MOVE (l)); - } + Dhcp6Parser::by_type::by_type () + : type (empty_symbol) + {} +#if 201103L <= YY_CPLUSPLUS inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_DHCP_DDNS (YY_COPY (location_type) l) + Dhcp6Parser::by_type::by_type (by_type&& that) + : type (that.type) { - return symbol_type (token::TOKEN_SUB_DHCP_DDNS, YY_MOVE (l)); + that.clear (); } +#endif inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_LOGGING (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_LOGGING, YY_MOVE (l)); - } + Dhcp6Parser::by_type::by_type (const by_type& that) + : type (that.type) + {} inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_SUB_CONFIG_CONTROL (YY_COPY (location_type) l) - { - return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, YY_MOVE (l)); - } + Dhcp6Parser::by_type::by_type (token_type t) + : type (yytranslate_ (t)) + {} inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_STRING (YY_COPY (std::string) v, YY_COPY (location_type) l) + void + Dhcp6Parser::by_type::clear () { - return symbol_type (token::TOKEN_STRING, YY_MOVE (v), YY_MOVE (l)); + type = empty_symbol; } inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_INTEGER (YY_COPY (int64_t) v, YY_COPY (location_type) l) + void + Dhcp6Parser::by_type::move (by_type& that) { - return symbol_type (token::TOKEN_INTEGER, YY_MOVE (v), YY_MOVE (l)); + type = that.type; + that.clear (); } inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_FLOAT (YY_COPY (double) v, YY_COPY (location_type) l) + int + Dhcp6Parser::by_type::type_get () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_FLOAT, YY_MOVE (v), YY_MOVE (l)); + return type; } inline - Dhcp6Parser::symbol_type - Dhcp6Parser::make_BOOLEAN (YY_COPY (bool) v, YY_COPY (location_type) l) + Dhcp6Parser::token_type + Dhcp6Parser::by_type::token () const YY_NOEXCEPT { - return symbol_type (token::TOKEN_BOOLEAN, YY_MOVE (v), YY_MOVE (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, 432, 433, 434, + 435, 436, 437, 438, 439, 440, 441 + }; + return token_type (yytoken_number_[type]); } - -#line 14 "dhcp6_parser.yy" // lalr1.cc:404 +#line 14 "dhcp6_parser.yy" } } // isc::dhcp -#line 3436 "dhcp6_parser.h" // lalr1.cc:404 +#line 4359 "dhcp6_parser.h" + diff --git a/src/bin/dhcp6/location.hh b/src/bin/dhcp6/location.hh index 94d877060d..238ec59552 100644 --- a/src/bin/dhcp6/location.hh +++ b/src/bin/dhcp6/location.hh @@ -1,8 +1,9 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// Generated 201908191238 +// A Bison parser, made by GNU Bison 3.4.1. // Locations for Bison parsers in C++ -// Copyright (C) 2002-2015, 2018 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 @@ -54,9 +55,10 @@ # endif # endif -#line 14 "dhcp6_parser.yy" // location.cc:339 +#line 14 "dhcp6_parser.yy" namespace isc { namespace dhcp { -#line 60 "location.hh" // location.cc:339 +#line 60 "location.hh" + /// A point in a source file. class position { @@ -316,7 +318,8 @@ namespace isc { namespace dhcp { return ostr; } -#line 14 "dhcp6_parser.yy" // location.cc:339 +#line 14 "dhcp6_parser.yy" } } // isc::dhcp -#line 322 "location.hh" // location.cc:339 +#line 323 "location.hh" + #endif // !YY_PARSER6_LOCATION_HH_INCLUDED diff --git a/src/bin/dhcp6/position.hh b/src/bin/dhcp6/position.hh index 22ef35f744..c202e38cf4 100644 --- a/src/bin/dhcp6/position.hh +++ b/src/bin/dhcp6/position.hh @@ -1,4 +1,5 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// Generated 201908191238 +// A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it // used to define is now defined in "location.hh". diff --git a/src/bin/dhcp6/stack.hh b/src/bin/dhcp6/stack.hh index 81e152d836..42822f6530 100644 --- a/src/bin/dhcp6/stack.hh +++ b/src/bin/dhcp6/stack.hh @@ -1,4 +1,5 @@ -// A Bison parser, made by GNU Bison 3.2.1. +// Generated 201908191238 +// A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it // used to define is now defined with the parser itself. diff --git a/src/bin/netconf/location.hh b/src/bin/netconf/location.hh index d203990043..d7b844da13 100644 --- a/src/bin/netconf/location.hh +++ b/src/bin/netconf/location.hh @@ -1,3 +1,4 @@ +// Generated 201908191239 // A Bison parser, made by GNU Bison 3.4.1. // Locations for Bison parsers in C++ diff --git a/src/bin/netconf/position.hh b/src/bin/netconf/position.hh index c1280f1a34..5bdc0c9dfa 100644 --- a/src/bin/netconf/position.hh +++ b/src/bin/netconf/position.hh @@ -1,3 +1,4 @@ +// Generated 201908191239 // A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it diff --git a/src/bin/netconf/stack.hh b/src/bin/netconf/stack.hh index 0f7aafe529..6da8bd8837 100644 --- a/src/bin/netconf/stack.hh +++ b/src/bin/netconf/stack.hh @@ -1,3 +1,4 @@ +// Generated 201908191239 // A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it diff --git a/src/lib/eval/location.hh b/src/lib/eval/location.hh index cf3341af9b..3db20ccbb7 100644 --- a/src/lib/eval/location.hh +++ b/src/lib/eval/location.hh @@ -1,3 +1,4 @@ +// Generated 201908191239 // A Bison parser, made by GNU Bison 3.4.1. // Locations for Bison parsers in C++ diff --git a/src/lib/eval/position.hh b/src/lib/eval/position.hh index c1280f1a34..5bdc0c9dfa 100644 --- a/src/lib/eval/position.hh +++ b/src/lib/eval/position.hh @@ -1,3 +1,4 @@ +// Generated 201908191239 // A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it diff --git a/src/lib/eval/stack.hh b/src/lib/eval/stack.hh index 0f7aafe529..6da8bd8837 100644 --- a/src/lib/eval/stack.hh +++ b/src/lib/eval/stack.hh @@ -1,3 +1,4 @@ +// Generated 201908191239 // A Bison parser, made by GNU Bison 3.4.1. // Starting with Bison 3.2, this file is useless: the structure it