-Copyright (C) 2009-2018 Internet Systems Consortium, Inc. ("ISC")
+Copyright (C) 2009-2019 Internet Systems Consortium, Inc. ("ISC")
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
+Kea 1.5.0-P1 released on Aug 28, 2019
+
1511. [build] marcin
Bumped up libraries version numbers for Kea 1.5.0-P1 release.
(Gitlab #841,!15-p, git e0ed69041ad06f58f129aad73d087411176c51f2)
# For GIT versions, this is x.y.z-git, where x.y.z denotes the software
# version that was used as a base + changes that were made later, but
# are not released yet.
-AC_INIT(kea,1.5.0, kea-dev@lists.isc.org)
+AC_INIT(kea,1.5.0-P1, kea-dev@lists.isc.org)
AC_CONFIG_SRCDIR(README)
# serial-tests is not available in automake version before 1.13, so
<releaseinfo>This is the reference guide for Kea version &keaversion;.</releaseinfo>
<copyright>
- <year>2010-2018</year>
+ <year>2010-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
<refentry>
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author><personname/><contrib>The Kea software has been written by a number of
engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
Siodelski, Thomas Markwalder, Francis Dupont, Jeremy C. Reed,
<docinfo>
<copyright>
- <year>2014-2018</year>
+ <year>2014-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
-// 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
// Unqualified %code blocks.
-#line 33 "agent_parser.yy" // lalr1.cc:438
+#line 33 "agent_parser.yy"
#include <agent/parser_context.h>
-#line 51 "agent_parser.cc" // lalr1.cc:438
+#line 51 "agent_parser.cc"
#ifndef YY_
{ \
(Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
} \
- while (/*CONSTCOND*/ false)
+ while (false)
# endif
#define YYERROR goto yyerrorlab
#define YYRECOVERING() (!!yyerrstatus_)
-#line 14 "agent_parser.yy" // lalr1.cc:513
+#line 14 "agent_parser.yy"
namespace isc { namespace agent {
-#line 146 "agent_parser.cc" // lalr1.cc:513
+#line 146 "agent_parser.cc"
+
/* Return YYSTR after stripping away unnecessary quotes and
backslashes, so that it's suitable for yyerror. The heuristic is
{
if (*yystr == '"')
{
- std::string yyr = "";
+ std::string yyr;
char const *yyp = yystr;
for (;;)
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
- // Fall through.
+ else
+ goto append;
+
+ append:
default:
yyr += *yyp;
break;
AgentParser::~AgentParser ()
{}
+ AgentParser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW
+ {}
/*---------------.
| Symbol types. |
// by_state.
- AgentParser::by_state::by_state ()
+ AgentParser::by_state::by_state () YY_NOEXCEPT
: state (empty_state)
{}
- AgentParser::by_state::by_state (const by_state& other)
- : state (other.state)
+ AgentParser::by_state::by_state (const by_state& that) YY_NOEXCEPT
+ : state (that.state)
{}
void
- AgentParser::by_state::clear ()
+ AgentParser::by_state::clear () YY_NOEXCEPT
{
state = empty_state;
}
that.clear ();
}
- AgentParser::by_state::by_state (state_type s)
+ AgentParser::by_state::by_state (state_type s) YY_NOEXCEPT
: state (s)
{}
AgentParser::symbol_number_type
- AgentParser::by_state::type_get () const
+ AgentParser::by_state::type_get () const YY_NOEXCEPT
{
if (state == empty_state)
return empty_symbol;
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 41: // "constant string"
-
-#line 103 "agent_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 386 "agent_parser.cc" // lalr1.cc:672
+ case 41: // "constant string"
+#line 103 "agent_parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 393 "agent_parser.cc"
break;
case 42: // "integer"
-
-#line 103 "agent_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< int64_t > (); }
-#line 393 "agent_parser.cc" // lalr1.cc:672
+#line 103 "agent_parser.yy"
+ { yyoutput << yysym.value.template as < int64_t > (); }
+#line 399 "agent_parser.cc"
break;
case 43: // "floating point"
-
-#line 103 "agent_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< double > (); }
-#line 400 "agent_parser.cc" // lalr1.cc:672
+#line 103 "agent_parser.yy"
+ { yyoutput << yysym.value.template as < double > (); }
+#line 405 "agent_parser.cc"
break;
case 44: // "boolean"
-
-#line 103 "agent_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< bool > (); }
-#line 407 "agent_parser.cc" // lalr1.cc:672
+#line 103 "agent_parser.yy"
+ { yyoutput << yysym.value.template as < bool > (); }
+#line 411 "agent_parser.cc"
break;
case 53: // value
-
-#line 103 "agent_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 414 "agent_parser.cc" // lalr1.cc:672
+#line 103 "agent_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 417 "agent_parser.cc"
break;
case 56: // map_value
-
-#line 103 "agent_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 421 "agent_parser.cc" // lalr1.cc:672
+#line 103 "agent_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 423 "agent_parser.cc"
break;
case 107: // socket_type_value
-
-#line 103 "agent_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 428 "agent_parser.cc" // lalr1.cc:672
+#line 103 "agent_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 429 "agent_parser.cc"
break;
-
default:
break;
}
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];
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
goto yyerrlab1;
}
yypush_ ("Shifting", yyn, YY_MOVE (yyla));
goto yynewstate;
+
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
goto yyerrlab;
goto yyreduce;
+
/*-----------------------------.
- | yyreduce -- Do a reduction. |
+ | yyreduce -- do a reduction. |
`-----------------------------*/
yyreduce:
yylen = yyr2_[yyn];
// Default location.
{
- slice<stack_symbol_type, stack_type> 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;
}
switch (yyn)
{
case 2:
-#line 114 "agent_parser.yy" // lalr1.cc:907
+#line 114 "agent_parser.yy"
{ ctx.ctx_ = ctx.NO_KEYWORDS; }
-#line 683 "agent_parser.cc" // lalr1.cc:907
+#line 691 "agent_parser.cc"
break;
case 4:
-#line 115 "agent_parser.yy" // lalr1.cc:907
+#line 115 "agent_parser.yy"
{ ctx.ctx_ = ctx.CONFIG; }
-#line 689 "agent_parser.cc" // lalr1.cc:907
+#line 697 "agent_parser.cc"
break;
case 6:
-#line 116 "agent_parser.yy" // lalr1.cc:907
+#line 116 "agent_parser.yy"
{ ctx.ctx_ = ctx.AGENT; }
-#line 695 "agent_parser.cc" // lalr1.cc:907
+#line 703 "agent_parser.cc"
break;
case 8:
-#line 124 "agent_parser.yy" // lalr1.cc:907
+#line 124 "agent_parser.yy"
{
// Parse the Control-agent map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 705 "agent_parser.cc" // lalr1.cc:907
+#line 713 "agent_parser.cc"
break;
case 9:
-#line 128 "agent_parser.yy" // lalr1.cc:907
+#line 128 "agent_parser.yy"
{
// parsing completed
}
-#line 713 "agent_parser.cc" // lalr1.cc:907
+#line 721 "agent_parser.cc"
break;
case 10:
-#line 135 "agent_parser.yy" // lalr1.cc:907
+#line 135 "agent_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 722 "agent_parser.cc" // lalr1.cc:907
+#line 730 "agent_parser.cc"
break;
case 11:
-#line 141 "agent_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); }
-#line 728 "agent_parser.cc" // lalr1.cc:907
+#line 141 "agent_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); }
+#line 736 "agent_parser.cc"
break;
case 12:
-#line 142 "agent_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); }
-#line 734 "agent_parser.cc" // lalr1.cc:907
+#line 142 "agent_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); }
+#line 742 "agent_parser.cc"
break;
case 13:
-#line 143 "agent_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); }
-#line 740 "agent_parser.cc" // lalr1.cc:907
+#line 143 "agent_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); }
+#line 748 "agent_parser.cc"
break;
case 14:
-#line 144 "agent_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); }
-#line 746 "agent_parser.cc" // lalr1.cc:907
+#line 144 "agent_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); }
+#line 754 "agent_parser.cc"
break;
case 15:
-#line 145 "agent_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
-#line 752 "agent_parser.cc" // lalr1.cc:907
+#line 145 "agent_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
+#line 760 "agent_parser.cc"
break;
case 16:
-#line 146 "agent_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 758 "agent_parser.cc" // lalr1.cc:907
+#line 146 "agent_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 766 "agent_parser.cc"
break;
case 17:
-#line 147 "agent_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 764 "agent_parser.cc" // lalr1.cc:907
+#line 147 "agent_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 772 "agent_parser.cc"
break;
case 18:
-#line 151 "agent_parser.yy" // lalr1.cc:907
+#line 151 "agent_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 775 "agent_parser.cc" // lalr1.cc:907
+#line 783 "agent_parser.cc"
break;
case 19:
-#line 156 "agent_parser.yy" // lalr1.cc:907
+#line 156 "agent_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 785 "agent_parser.cc" // lalr1.cc:907
+#line 793 "agent_parser.cc"
break;
case 20:
-#line 162 "agent_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 791 "agent_parser.cc" // lalr1.cc:907
+#line 162 "agent_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 799 "agent_parser.cc"
break;
case 23:
-#line 176 "agent_parser.yy" // lalr1.cc:907
+#line 176 "agent_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 800 "agent_parser.cc" // lalr1.cc:907
+#line 808 "agent_parser.cc"
break;
case 24:
-#line 180 "agent_parser.yy" // lalr1.cc:907
+#line 180 "agent_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 810 "agent_parser.cc" // lalr1.cc:907
+#line 818 "agent_parser.cc"
break;
case 25:
-#line 187 "agent_parser.yy" // lalr1.cc:907
+#line 187 "agent_parser.yy"
{
ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(l);
}
-#line 819 "agent_parser.cc" // lalr1.cc:907
+#line 827 "agent_parser.cc"
break;
case 26:
-#line 190 "agent_parser.yy" // lalr1.cc:907
+#line 190 "agent_parser.yy"
{
}
-#line 826 "agent_parser.cc" // lalr1.cc:907
+#line 834 "agent_parser.cc"
break;
case 29:
-#line 197 "agent_parser.yy" // lalr1.cc:907
+#line 197 "agent_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 835 "agent_parser.cc" // lalr1.cc:907
+#line 843 "agent_parser.cc"
break;
case 30:
-#line 201 "agent_parser.yy" // lalr1.cc:907
+#line 201 "agent_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 844 "agent_parser.cc" // lalr1.cc:907
+#line 852 "agent_parser.cc"
break;
case 31:
-#line 214 "agent_parser.yy" // lalr1.cc:907
+#line 214 "agent_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 855 "agent_parser.cc" // lalr1.cc:907
+#line 863 "agent_parser.cc"
break;
case 32:
-#line 223 "agent_parser.yy" // lalr1.cc:907
+#line 223 "agent_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 866 "agent_parser.cc" // lalr1.cc:907
+#line 874 "agent_parser.cc"
break;
case 33:
-#line 228 "agent_parser.yy" // lalr1.cc:907
+#line 228 "agent_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 876 "agent_parser.cc" // lalr1.cc:907
+#line 884 "agent_parser.cc"
break;
case 42:
-#line 249 "agent_parser.yy" // lalr1.cc:907
+#line 249 "agent_parser.yy"
{
// Let's create a MapElement that will represent it, add it to the
ctx.stack_.push_back(m);
ctx.enter(ctx.AGENT);
}
-#line 892 "agent_parser.cc" // lalr1.cc:907
+#line 900 "agent_parser.cc"
break;
case 43:
-#line 259 "agent_parser.yy" // lalr1.cc:907
+#line 259 "agent_parser.yy"
{
// Ok, we're done with parsing control-agent. Let's take the map
// off the stack.
ctx.stack_.pop_back();
ctx.leave();
}
-#line 903 "agent_parser.cc" // lalr1.cc:907
+#line 911 "agent_parser.cc"
break;
case 53:
-#line 281 "agent_parser.yy" // lalr1.cc:907
+#line 281 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 911 "agent_parser.cc" // lalr1.cc:907
+#line 919 "agent_parser.cc"
break;
case 54:
-#line 283 "agent_parser.yy" // lalr1.cc:907
+#line 283 "agent_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("http-host", host);
ctx.leave();
}
-#line 921 "agent_parser.cc" // lalr1.cc:907
+#line 929 "agent_parser.cc"
break;
case 55:
-#line 289 "agent_parser.yy" // lalr1.cc:907
+#line 289 "agent_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("http-port", prf);
}
-#line 930 "agent_parser.cc" // lalr1.cc:907
+#line 938 "agent_parser.cc"
break;
case 56:
-#line 294 "agent_parser.yy" // lalr1.cc:907
+#line 294 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 938 "agent_parser.cc" // lalr1.cc:907
+#line 946 "agent_parser.cc"
break;
case 57:
-#line 296 "agent_parser.yy" // lalr1.cc:907
+#line 296 "agent_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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 965 "agent_parser.cc" // lalr1.cc:907
+#line 973 "agent_parser.cc"
break;
case 58:
-#line 319 "agent_parser.yy" // lalr1.cc:907
+#line 319 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 973 "agent_parser.cc" // lalr1.cc:907
+#line 981 "agent_parser.cc"
break;
case 59:
-#line 321 "agent_parser.yy" // lalr1.cc:907
+#line 321 "agent_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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 1002 "agent_parser.cc" // lalr1.cc:907
+#line 1010 "agent_parser.cc"
break;
case 60:
-#line 347 "agent_parser.yy" // lalr1.cc:907
+#line 347 "agent_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 1013 "agent_parser.cc" // lalr1.cc:907
+#line 1021 "agent_parser.cc"
break;
case 61:
-#line 352 "agent_parser.yy" // lalr1.cc:907
+#line 352 "agent_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1022 "agent_parser.cc" // lalr1.cc:907
+#line 1030 "agent_parser.cc"
break;
case 66:
-#line 365 "agent_parser.yy" // lalr1.cc:907
+#line 365 "agent_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1032 "agent_parser.cc" // lalr1.cc:907
+#line 1040 "agent_parser.cc"
break;
case 67:
-#line 369 "agent_parser.yy" // lalr1.cc:907
+#line 369 "agent_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1040 "agent_parser.cc" // lalr1.cc:907
+#line 1048 "agent_parser.cc"
break;
case 73:
-#line 382 "agent_parser.yy" // lalr1.cc:907
+#line 382 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1048 "agent_parser.cc" // lalr1.cc:907
+#line 1056 "agent_parser.cc"
break;
case 74:
-#line 384 "agent_parser.yy" // lalr1.cc:907
+#line 384 "agent_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 1058 "agent_parser.cc" // lalr1.cc:907
+#line 1066 "agent_parser.cc"
break;
case 75:
-#line 390 "agent_parser.yy" // lalr1.cc:907
+#line 390 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1066 "agent_parser.cc" // lalr1.cc:907
+#line 1074 "agent_parser.cc"
break;
case 76:
-#line 392 "agent_parser.yy" // lalr1.cc:907
+#line 392 "agent_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 1075 "agent_parser.cc" // lalr1.cc:907
+#line 1083 "agent_parser.cc"
break;
case 77:
-#line 400 "agent_parser.yy" // lalr1.cc:907
+#line 400 "agent_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[2].location)));
ctx.stack_.back()->set("control-sockets", m);
ctx.stack_.push_back(m);
ctx.enter(ctx.CONTROL_SOCKETS);
}
-#line 1086 "agent_parser.cc" // lalr1.cc:907
+#line 1094 "agent_parser.cc"
break;
case 78:
-#line 405 "agent_parser.yy" // lalr1.cc:907
+#line 405 "agent_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1095 "agent_parser.cc" // lalr1.cc:907
+#line 1103 "agent_parser.cc"
break;
case 85:
-#line 426 "agent_parser.yy" // lalr1.cc:907
+#line 426 "agent_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("dhcp4", m);
ctx.stack_.push_back(m);
ctx.enter(ctx.SERVER);
}
-#line 1106 "agent_parser.cc" // lalr1.cc:907
+#line 1114 "agent_parser.cc"
break;
case 86:
-#line 431 "agent_parser.yy" // lalr1.cc:907
+#line 431 "agent_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1115 "agent_parser.cc" // lalr1.cc:907
+#line 1123 "agent_parser.cc"
break;
case 87:
-#line 437 "agent_parser.yy" // lalr1.cc:907
+#line 437 "agent_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("dhcp6", m);
ctx.stack_.push_back(m);
ctx.enter(ctx.SERVER);
}
-#line 1126 "agent_parser.cc" // lalr1.cc:907
+#line 1134 "agent_parser.cc"
break;
case 88:
-#line 442 "agent_parser.yy" // lalr1.cc:907
+#line 442 "agent_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1135 "agent_parser.cc" // lalr1.cc:907
+#line 1143 "agent_parser.cc"
break;
case 89:
-#line 448 "agent_parser.yy" // lalr1.cc:907
+#line 448 "agent_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("d2", m);
ctx.stack_.push_back(m);
ctx.enter(ctx.SERVER);
}
-#line 1146 "agent_parser.cc" // lalr1.cc:907
+#line 1154 "agent_parser.cc"
break;
case 90:
-#line 453 "agent_parser.yy" // lalr1.cc:907
+#line 453 "agent_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1155 "agent_parser.cc" // lalr1.cc:907
+#line 1163 "agent_parser.cc"
break;
case 98:
-#line 472 "agent_parser.yy" // lalr1.cc:907
+#line 472 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1163 "agent_parser.cc" // lalr1.cc:907
+#line 1171 "agent_parser.cc"
break;
case 99:
-#line 474 "agent_parser.yy" // lalr1.cc:907
+#line 474 "agent_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 1173 "agent_parser.cc" // lalr1.cc:907
+#line 1181 "agent_parser.cc"
break;
case 100:
-#line 481 "agent_parser.yy" // lalr1.cc:907
+#line 481 "agent_parser.yy"
{
ctx.enter(ctx.SOCKET_TYPE);
}
-#line 1181 "agent_parser.cc" // lalr1.cc:907
+#line 1189 "agent_parser.cc"
break;
case 101:
-#line 483 "agent_parser.yy" // lalr1.cc:907
+#line 483 "agent_parser.yy"
{
- ctx.stack_.back()->set("socket-type", yystack_[0].value.as< ElementPtr > ());
+ ctx.stack_.back()->set("socket-type", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 1190 "agent_parser.cc" // lalr1.cc:907
+#line 1198 "agent_parser.cc"
break;
case 102:
-#line 489 "agent_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("unix", ctx.loc2pos(yystack_[0].location))); }
-#line 1196 "agent_parser.cc" // lalr1.cc:907
+#line 489 "agent_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("unix", ctx.loc2pos(yystack_[0].location))); }
+#line 1204 "agent_parser.cc"
break;
case 103:
-#line 495 "agent_parser.yy" // lalr1.cc:907
+#line 495 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1204 "agent_parser.cc" // lalr1.cc:907
+#line 1212 "agent_parser.cc"
break;
case 104:
-#line 497 "agent_parser.yy" // lalr1.cc:907
+#line 497 "agent_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 1213 "agent_parser.cc" // lalr1.cc:907
+#line 1221 "agent_parser.cc"
break;
case 105:
-#line 502 "agent_parser.yy" // lalr1.cc:907
+#line 502 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1221 "agent_parser.cc" // lalr1.cc:907
+#line 1229 "agent_parser.cc"
break;
case 106:
-#line 504 "agent_parser.yy" // lalr1.cc:907
+#line 504 "agent_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 1230 "agent_parser.cc" // lalr1.cc:907
+#line 1238 "agent_parser.cc"
break;
case 107:
-#line 509 "agent_parser.yy" // lalr1.cc:907
+#line 509 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1238 "agent_parser.cc" // lalr1.cc:907
+#line 1246 "agent_parser.cc"
break;
case 108:
-#line 511 "agent_parser.yy" // lalr1.cc:907
+#line 511 "agent_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 1247 "agent_parser.cc" // lalr1.cc:907
+#line 1255 "agent_parser.cc"
break;
case 109:
-#line 521 "agent_parser.yy" // lalr1.cc:907
+#line 521 "agent_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 1258 "agent_parser.cc" // lalr1.cc:907
+#line 1266 "agent_parser.cc"
break;
case 110:
-#line 526 "agent_parser.yy" // lalr1.cc:907
+#line 526 "agent_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1267 "agent_parser.cc" // lalr1.cc:907
+#line 1275 "agent_parser.cc"
break;
case 114:
-#line 543 "agent_parser.yy" // lalr1.cc:907
+#line 543 "agent_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 1278 "agent_parser.cc" // lalr1.cc:907
+#line 1286 "agent_parser.cc"
break;
case 115:
-#line 548 "agent_parser.yy" // lalr1.cc:907
+#line 548 "agent_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1287 "agent_parser.cc" // lalr1.cc:907
+#line 1295 "agent_parser.cc"
break;
case 118:
-#line 560 "agent_parser.yy" // lalr1.cc:907
+#line 560 "agent_parser.yy"
{
ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(l);
ctx.stack_.push_back(l);
}
-#line 1297 "agent_parser.cc" // lalr1.cc:907
+#line 1305 "agent_parser.cc"
break;
case 119:
-#line 564 "agent_parser.yy" // lalr1.cc:907
+#line 564 "agent_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1305 "agent_parser.cc" // lalr1.cc:907
+#line 1313 "agent_parser.cc"
break;
case 129:
-#line 581 "agent_parser.yy" // lalr1.cc:907
+#line 581 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1313 "agent_parser.cc" // lalr1.cc:907
+#line 1321 "agent_parser.cc"
break;
case 130:
-#line 583 "agent_parser.yy" // lalr1.cc:907
+#line 583 "agent_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 1323 "agent_parser.cc" // lalr1.cc:907
+#line 1331 "agent_parser.cc"
break;
case 131:
-#line 589 "agent_parser.yy" // lalr1.cc:907
+#line 589 "agent_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 1332 "agent_parser.cc" // lalr1.cc:907
+#line 1340 "agent_parser.cc"
break;
case 132:
-#line 594 "agent_parser.yy" // lalr1.cc:907
+#line 594 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1340 "agent_parser.cc" // lalr1.cc:907
+#line 1348 "agent_parser.cc"
break;
case 133:
-#line 596 "agent_parser.yy" // lalr1.cc:907
+#line 596 "agent_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 1350 "agent_parser.cc" // lalr1.cc:907
+#line 1358 "agent_parser.cc"
break;
case 134:
-#line 602 "agent_parser.yy" // lalr1.cc:907
+#line 602 "agent_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 1361 "agent_parser.cc" // lalr1.cc:907
+#line 1369 "agent_parser.cc"
break;
case 135:
-#line 607 "agent_parser.yy" // lalr1.cc:907
+#line 607 "agent_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1370 "agent_parser.cc" // lalr1.cc:907
+#line 1378 "agent_parser.cc"
break;
case 138:
-#line 616 "agent_parser.yy" // lalr1.cc:907
+#line 616 "agent_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1380 "agent_parser.cc" // lalr1.cc:907
+#line 1388 "agent_parser.cc"
break;
case 139:
-#line 620 "agent_parser.yy" // lalr1.cc:907
+#line 620 "agent_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1388 "agent_parser.cc" // lalr1.cc:907
+#line 1396 "agent_parser.cc"
break;
case 146:
-#line 634 "agent_parser.yy" // lalr1.cc:907
+#line 634 "agent_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1396 "agent_parser.cc" // lalr1.cc:907
+#line 1404 "agent_parser.cc"
break;
case 147:
-#line 636 "agent_parser.yy" // lalr1.cc:907
+#line 636 "agent_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 1406 "agent_parser.cc" // lalr1.cc:907
+#line 1414 "agent_parser.cc"
break;
case 148:
-#line 642 "agent_parser.yy" // lalr1.cc:907
+#line 642 "agent_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 1415 "agent_parser.cc" // lalr1.cc:907
+#line 1423 "agent_parser.cc"
break;
case 149:
-#line 647 "agent_parser.yy" // lalr1.cc:907
+#line 647 "agent_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 1424 "agent_parser.cc" // lalr1.cc:907
+#line 1432 "agent_parser.cc"
break;
case 150:
-#line 652 "agent_parser.yy" // lalr1.cc:907
+#line 652 "agent_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 1433 "agent_parser.cc" // lalr1.cc:907
+#line 1441 "agent_parser.cc"
break;
-#line 1437 "agent_parser.cc" // lalr1.cc:907
+#line 1445 "agent_parser.cc"
+
default:
break;
}
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
YYERROR;
}
}
goto yynewstate;
+
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
| 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. |
`-------------------------------------------------------------*/
}
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);
#endif // AGENT_DEBUG
-#line 14 "agent_parser.yy" // lalr1.cc:1218
+#line 14 "agent_parser.yy"
} } // isc::agent
-#line 2008 "agent_parser.cc" // lalr1.cc:1218
-#line 657 "agent_parser.yy" // lalr1.cc:1219
+#line 2029 "agent_parser.cc"
+
+#line 657 "agent_parser.yy"
void
-// 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
#ifndef YY_AGENT_AGENT_PARSER_H_INCLUDED
# define YY_AGENT_AGENT_PARSER_H_INCLUDED
// // "%code requires" blocks.
-#line 17 "agent_parser.yy" // lalr1.cc:404
+#line 17 "agent_parser.yy"
#include <string>
#include <cc/data.h>
using namespace isc::data;
using namespace std;
-#line 59 "agent_parser.h" // lalr1.cc:404
+#line 59 "agent_parser.h"
# include <cassert>
# include <cstdlib> // std::abort
# 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 <typeinfo>
#ifndef YYASSERT
# endif /* ! defined YYDEBUG */
#endif /* ! defined AGENT_DEBUG */
-#line 14 "agent_parser.yy" // lalr1.cc:404
+#line 14 "agent_parser.yy"
namespace isc { namespace agent {
-#line 167 "agent_parser.h" // lalr1.cc:404
-
- /// A stack with random access from its top.
- template <typename T, typename S = std::vector<T> >
- class stack
- {
- public:
- // Hide our reversed order.
- typedef typename S::reverse_iterator iterator;
- typedef typename S::const_reverse_iterator const_iterator;
- 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));
- }
+#line 183 "agent_parser.h"
- /// 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 ();
- }
-
- 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 <typename T, typename S = stack<T> >
- class slice
+ /// A Bison parser.
+ class AgentParser
{
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 AGENT_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 <size_t S>
- struct variant
+ /// via the current parser state.
+ class semantic_type
{
+ public:
/// Type of *this.
- typedef variant<S> self_type;
+ typedef semantic_type self_type;
/// Empty construction.
- variant ()
+ semantic_type () YY_NOEXCEPT
: yybuffer_ ()
, yytypeid_ (YY_NULLPTR)
{}
/// Construct and fill.
template <typename T>
- 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> ()) T (YY_MOVE (t));
}
/// Destruction, allowed only if empty.
- ~variant ()
+ ~semantic_type () YY_NOEXCEPT
{
YYASSERT (!yytypeid_);
}
- /// Instantiate an empty \a T in here.
- template <typename T>
+# if 201103L <= YY_CPLUSPLUS
+ /// Instantiate a \a T in here from \a t.
+ template <typename T, typename... U>
T&
- emplace ()
+ emplace (U&&... u)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T ();
+ return *new (yyas_<T> ()) T (std::forward <U>(u)...);
}
-
-# if 201103L <= YY_CPLUSPLUS
- /// Instantiate a \a T in here from \a t.
- template <typename T, typename U>
+# else
+ /// Instantiate an empty \a T in here.
+ template <typename T>
T&
- emplace (U&& u)
+ emplace ()
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T (std::forward <U>(u));
+ return *new (yyas_<T> ()) T ();
}
-# else
+
/// Instantiate a \a T in here from \a t.
template <typename T>
T&
emplace (const T& t)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_<T> ()) T (t);
}
/// Accessor to a built \a T.
template <typename T>
T&
- as ()
+ as () YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
/// Const accessor to a built \a T (for %printer).
template <typename T>
const T&
- as () const
+ as () const YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
- /// 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 <typename T>
void
- swap (self_type& other)
+ swap (self_type& that) YY_NOEXCEPT
{
YYASSERT (yytypeid_);
- YYASSERT (*yytypeid_ == *other.yytypeid_);
- std::swap (as<T> (), other.as<T> ());
+ YYASSERT (*yytypeid_ == *that.yytypeid_);
+ std::swap (as<T> (), that.as<T> ());
}
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
///
- /// Destroys \a other.
+ /// Destroys \a that.
template <typename T>
void
- move (self_type& other)
+ move (self_type& that)
{
# if 201103L <= YY_CPLUSPLUS
- emplace<T> (std::move (other.as<T> ()));
+ emplace<T> (std::move (that.as<T> ()));
# else
emplace<T> ();
- swap<T> (other);
+ swap<T> (that);
# endif
- other.destroy<T> ();
+ that.destroy<T> ();
}
# if 201103L <= YY_CPLUSPLUS
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
template <typename T>
void
- move (self_type&& other)
+ move (self_type&& that)
{
- emplace<T> (std::move (other.as<T> ()));
- other.destroy<T> ();
+ emplace<T> (std::move (that.as<T> ()));
+ that.destroy<T> ();
}
#endif
- /// Copy the content of \a other to this.
+ /// Copy the content of \a that to this.
template <typename T>
void
- copy (const self_type& other)
+ copy (const self_type& that)
{
- emplace<T> (other.as<T> ());
+ emplace<T> (that.as<T> ());
}
/// Destroy the stored \a T.
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 <typename T>
T*
- yyas_ ()
+ yyas_ () YY_NOEXCEPT
{
void *yyp = yybuffer_.yyraw;
return static_cast<T*> (yyp);
/// Const accessor to raw memory as \a T.
template <typename T>
const T*
- yyas_ () const
+ yyas_ () const YY_NOEXCEPT
{
const void *yyp = yybuffer_.yyraw;
return static_cast<const T*> (yyp);
}
- union
- {
- /// Strongest alignment constraints.
- long double yyalign_me;
- /// A buffer large enough to store any of the semantic values.
- char yyraw[S];
- } yybuffer_;
-
- /// Whether the content is built: if defined, the name of the stored type.
- const std::type_info *yytypeid_;
- };
-
-
- /// A Bison parser.
- class AgentParser
- {
- public:
-#ifndef AGENT_STYPE
/// An auxiliary type to compute the largest semantic type.
union union_type
{
// "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<sizeof (union_type)> semantic_type;
#else
typedef AGENT_STYPE semantic_type;
#endif
/// 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;
};
typedef Base super_type;
/// Default constructor.
- basic_symbol ();
+ basic_symbol ()
+ : value ()
+ , location ()
+ {}
- /// Move or copy constructor.
- basic_symbol (YY_RVREF (basic_symbol) other);
+#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.
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, 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);
+ 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);
+#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);
+ 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);
+#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);
+ 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);
+#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);
+ 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);
+#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);
+ 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);
+#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);
+ 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<Base>& yysym = *this;
+ (void) yysym;
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+
+ // Type destructor.
+switch (yytype)
+ {
+ case 53: // value
+ case 56: // map_value
+ case 107: // socket_type_value
+ value.template destroy< ElementPtr > ();
+ break;
+
+ case 44: // "boolean"
+ value.template destroy< bool > ();
+ break;
+
+ case 43: // "floating point"
+ value.template destroy< double > ();
+ break;
+
+ case 42: // "integer"
+ value.template destroy< int64_t > ();
+ break;
+
+ case 41: // "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);
private:
#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
- basic_symbol& operator= (const basic_symbol& other);
+ basic_symbol& operator= (const basic_symbol& that);
#endif
};
/// 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;
/// 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.
};
/// "External" symbols: returned by the scanner.
- typedef basic_symbol<by_type> symbol_type;
+ struct symbol_type : basic_symbol<by_type>
+ {
+ /// Superclass.
+ typedef basic_symbol<by_type> 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_CONTROL_AGENT || tok == token::TOKEN_HTTP_HOST || tok == token::TOKEN_HTTP_PORT || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_CONTROL_SOCKETS || tok == token::TOKEN_DHCP4_SERVER || tok == token::TOKEN_DHCP6_SERVER || tok == token::TOKEN_D2_SERVER || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_UNIX || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || 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_DHCP4 || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_START_JSON || tok == token::TOKEN_START_AGENT || tok == token::TOKEN_START_SUB_AGENT);
+ }
+#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_CONTROL_AGENT || tok == token::TOKEN_HTTP_HOST || tok == token::TOKEN_HTTP_PORT || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_CONTROL_SOCKETS || tok == token::TOKEN_DHCP4_SERVER || tok == token::TOKEN_DHCP6_SERVER || tok == token::TOKEN_D2_SERVER || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_UNIX || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || 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_DHCP4 || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_START_JSON || tok == token::TOKEN_START_AGENT || tok == token::TOKEN_START_SUB_AGENT);
+ }
+#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.
AgentParser (isc::agent::ParserContext& ctx_yyarg);
/// 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_CONTROL_AGENT (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_HTTP_HOST (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_HTTP_PORT (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_CONTROL_SOCKETS (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_DHCP4_SERVER (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_DHCP6_SERVER (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_D2_SERVER (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_SOCKET_NAME (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_SOCKET_TYPE (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_UNIX (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_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_DHCP4 (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_START_JSON (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_START_AGENT (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_START_SUB_AGENT (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_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_HTTP_HOST (location_type l)
+ {
+ return symbol_type (token::TOKEN_HTTP_HOST, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HTTP_HOST (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HTTP_HOST, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HTTP_PORT (location_type l)
+ {
+ return symbol_type (token::TOKEN_HTTP_PORT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HTTP_PORT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HTTP_PORT, 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_CONTROL_SOCKETS (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_SOCKETS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONTROL_SOCKETS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_SOCKETS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP4_SERVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP4_SERVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP4_SERVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP4_SERVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP6_SERVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP6_SERVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP6_SERVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP6_SERVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_D2_SERVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_D2_SERVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_D2_SERVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_D2_SERVER, 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_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_UNIX (location_type l)
+ {
+ return symbol_type (token::TOKEN_UNIX, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_UNIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_UNIX, 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_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_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_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_START_JSON (location_type l)
+ {
+ return symbol_type (token::TOKEN_START_JSON, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_START_JSON (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_START_JSON, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_START_AGENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_START_AGENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_START_AGENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_START_AGENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_START_SUB_AGENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_START_SUB_AGENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_START_SUB_AGENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_START_SUB_AGENT, 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:
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 };
#endif
};
+ /// A stack with random access from its top.
+ template <typename T, typename S = std::vector<T> >
+ class stack
+ {
+ public:
+ // Hide our reversed order.
+ typedef typename S::reverse_iterator iterator;
+ typedef typename S::const_reverse_iterator const_iterator;
+ 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_symbol_type> stack_type;
isc::agent::ParserContext& ctx;
};
- // Symbol number corresponding to token number t.
inline
AgentParser::token_number_type
AgentParser::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,
return undef_token_;
}
- inline
- AgentParser::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 <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol ()
- : value ()
- , location ()
- {}
-
- template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (YY_RVREF (basic_symbol) other)
- : Base (YY_MOVE (other))
+ AgentParser::basic_symbol<Base>::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 53: // value
case 56: // map_value
case 107: // socket_type_value
- value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (other.value));
+ value.move< ElementPtr > (std::move (that.value));
break;
case 44: // "boolean"
- value.YY_MOVE_OR_COPY< bool > (YY_MOVE (other.value));
+ value.move< bool > (std::move (that.value));
break;
case 43: // "floating point"
- value.YY_MOVE_OR_COPY< double > (YY_MOVE (other.value));
+ value.move< double > (std::move (that.value));
break;
case 42: // "integer"
- value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (other.value));
+ value.move< int64_t > (std::move (that.value));
break;
case 41: // "constant string"
- value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (other.value));
+ value.move< std::string > (std::move (that.value));
break;
default:
}
}
-
-
- // Implementation of basic_symbol constructor for each type.
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
- : Base (t)
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
- : Base (t)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- AgentParser::basic_symbol<Base>::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
- template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- AgentParser::basic_symbol<Base>::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
- template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, double&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- AgentParser::basic_symbol<Base>::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
- template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- AgentParser::basic_symbol<Base>::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
- template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
#endif
-
- template <typename Base>
- AgentParser::basic_symbol<Base>::~basic_symbol ()
- {
- clear ();
- }
-
template <typename Base>
- void
- AgentParser::basic_symbol<Base>::clear ()
+ AgentParser::basic_symbol<Base>::basic_symbol (const basic_symbol& that)
+ : Base (that)
+ , value ()
+ , location (that.location)
{
- // User destructor.
- symbol_number_type yytype = this->type_get ();
- basic_symbol<Base>& yysym = *this;
- (void) yysym;
- switch (yytype)
- {
- default:
- break;
- }
-
- // Type destructor.
- switch (yytype)
+ switch (this->type_get ())
{
case 53: // value
case 56: // map_value
case 107: // socket_type_value
- value.template destroy< ElementPtr > ();
+ value.copy< ElementPtr > (YY_MOVE (that.value));
break;
case 44: // "boolean"
- value.template destroy< bool > ();
+ value.copy< bool > (YY_MOVE (that.value));
break;
case 43: // "floating point"
- value.template destroy< double > ();
+ value.copy< double > (YY_MOVE (that.value));
break;
case 42: // "integer"
- value.template destroy< int64_t > ();
+ value.copy< int64_t > (YY_MOVE (that.value));
break;
case 41: // "constant string"
- value.template destroy< std::string > ();
+ value.copy< std::string > (YY_MOVE (that.value));
break;
default:
break;
}
- Base::clear ();
}
+
+
template <typename Base>
bool
- AgentParser::basic_symbol<Base>::empty () const
+ AgentParser::basic_symbol<Base>::empty () const YY_NOEXCEPT
{
return Base::type_get () == empty_symbol;
}
: type (empty_symbol)
{}
+#if 201103L <= YY_CPLUSPLUS
+ inline
+ AgentParser::by_type::by_type (by_type&& that)
+ : type (that.type)
+ {
+ that.clear ();
+ }
+#endif
+
inline
- AgentParser::by_type::by_type (const by_type& other)
- : type (other.type)
+ AgentParser::by_type::by_type (const by_type& that)
+ : type (that.type)
{}
inline
inline
int
- AgentParser::by_type::type_get () const
+ AgentParser::by_type::type_get () const YY_NOEXCEPT
{
return type;
}
inline
AgentParser::token_type
- AgentParser::by_type::token () const
+ AgentParser::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). */
285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
295, 296, 297, 298, 299
};
- return static_cast<token_type> (yytoken_number_[type]);
- }
-
- // Implementation of make_symbol for each symbol type.
- inline
- AgentParser::symbol_type
- AgentParser::make_END (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_END, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_COMMA (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_COMMA, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_COLON (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_COLON, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_LSQUARE_BRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LSQUARE_BRACKET, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_RSQUARE_BRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RSQUARE_BRACKET, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_LCURLY_BRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LCURLY_BRACKET, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_RCURLY_BRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RCURLY_BRACKET, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_NULL_TYPE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NULL_TYPE, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_CONTROL_AGENT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CONTROL_AGENT, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_HTTP_HOST (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HTTP_HOST, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_HTTP_PORT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HTTP_PORT, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_USER_CONTEXT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_USER_CONTEXT, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_COMMENT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_COMMENT, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_CONTROL_SOCKETS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CONTROL_SOCKETS, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_DHCP4_SERVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP4_SERVER, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_DHCP6_SERVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP6_SERVER, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_D2_SERVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_D2_SERVER, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_SOCKET_NAME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SOCKET_NAME, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_SOCKET_TYPE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SOCKET_TYPE, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_UNIX (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_UNIX, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_HOOKS_LIBRARIES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HOOKS_LIBRARIES, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_LIBRARY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LIBRARY, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_PARAMETERS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_PARAMETERS, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_LOGGING (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LOGGING, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_LOGGERS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LOGGERS, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_NAME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NAME, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_OUTPUT_OPTIONS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OUTPUT_OPTIONS, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_OUTPUT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OUTPUT, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_DEBUGLEVEL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DEBUGLEVEL, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_SEVERITY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SEVERITY, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_FLUSH (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_FLUSH, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_MAXSIZE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MAXSIZE, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_MAXVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MAXVER, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_DHCP4 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP4, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_DHCP6 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP6, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_DHCPDDNS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCPDDNS, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_START_JSON (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_START_JSON, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_START_AGENT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_START_AGENT, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::make_START_SUB_AGENT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_START_SUB_AGENT, YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::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
- AgentParser::symbol_type
- AgentParser::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
- AgentParser::symbol_type
- AgentParser::make_FLOAT (YY_COPY (double) v, YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_FLOAT, YY_MOVE (v), YY_MOVE (l));
- }
-
- inline
- AgentParser::symbol_type
- AgentParser::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 "agent_parser.yy" // lalr1.cc:404
+#line 14 "agent_parser.yy"
} } // isc::agent
-#line 1763 "agent_parser.h" // lalr1.cc:404
+#line 2037 "agent_parser.h"
+
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author>
<contrib>The Kea software has been written by a number of
engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
<docinfo>
<copyright>
- <year>2016-2018</year>
+ <year>2016-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
-// Generated 201811271343
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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
# endif
# endif
-#line 14 "agent_parser.yy" // location.cc:339
+#line 14 "agent_parser.yy"
namespace isc { namespace agent {
-#line 60 "location.hh" // location.cc:339
+#line 60 "location.hh"
+
/// A point in a source file.
class position
{
return ostr;
}
-#line 14 "agent_parser.yy" // location.cc:339
+#line 14 "agent_parser.yy"
} } // isc::agent
-#line 322 "location.hh" // location.cc:339
+#line 323 "location.hh"
+
#endif // !YY_AGENT_LOCATION_HH_INCLUDED
-// Generated 201811271343
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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".
-// Generated 201811271343
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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.
-// 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
// Unqualified %code blocks.
-#line 34 "d2_parser.yy" // lalr1.cc:438
+#line 34 "d2_parser.yy"
#include <d2/parser_context.h>
-#line 51 "d2_parser.cc" // lalr1.cc:438
+#line 51 "d2_parser.cc"
#ifndef YY_
{ \
(Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
} \
- while (/*CONSTCOND*/ false)
+ while (false)
# endif
#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
{
if (*yystr == '"')
{
- std::string yyr = "";
+ std::string yyr;
char const *yyp = yystr;
for (;;)
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
- // Fall through.
+ else
+ goto append;
+
+ append:
default:
yyr += *yyp;
break;
D2Parser::~D2Parser ()
{}
+ D2Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW
+ {}
/*---------------.
| Symbol types. |
// 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;
}
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;
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 53: // "constant string"
-
-#line 111 "d2_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 386 "d2_parser.cc" // lalr1.cc:672
+ case 53: // "constant string"
+#line 111 "d2_parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 393 "d2_parser.cc"
break;
case 54: // "integer"
-
-#line 111 "d2_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< int64_t > (); }
-#line 393 "d2_parser.cc" // lalr1.cc:672
+#line 111 "d2_parser.yy"
+ { yyoutput << yysym.value.template as < int64_t > (); }
+#line 399 "d2_parser.cc"
break;
case 55: // "floating point"
-
-#line 111 "d2_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< double > (); }
-#line 400 "d2_parser.cc" // lalr1.cc:672
+#line 111 "d2_parser.yy"
+ { yyoutput << yysym.value.template as < double > (); }
+#line 405 "d2_parser.cc"
break;
case 56: // "boolean"
-
-#line 111 "d2_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< bool > (); }
-#line 407 "d2_parser.cc" // lalr1.cc:672
+#line 111 "d2_parser.yy"
+ { yyoutput << yysym.value.template as < bool > (); }
+#line 411 "d2_parser.cc"
break;
case 68: // value
-
-#line 111 "d2_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 414 "d2_parser.cc" // lalr1.cc:672
+#line 111 "d2_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 417 "d2_parser.cc"
break;
case 72: // map_value
-
-#line 111 "d2_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 421 "d2_parser.cc" // lalr1.cc:672
+#line 111 "d2_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 423 "d2_parser.cc"
break;
case 96: // ncr_protocol_value
-
-#line 111 "d2_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 428 "d2_parser.cc" // lalr1.cc:672
+#line 111 "d2_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 429 "d2_parser.cc"
break;
-
default:
break;
}
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];
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
goto yyerrlab1;
}
yypush_ ("Shifting", yyn, YY_MOVE (yyla));
goto yynewstate;
+
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
goto yyerrlab;
goto yyreduce;
+
/*-----------------------------.
- | yyreduce -- Do a reduction. |
+ | yyreduce -- do a reduction. |
`-----------------------------*/
yyreduce:
yylen = yyr2_[yyn];
// Default location.
{
- slice<stack_symbol_type, stack_type> 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;
}
switch (yyn)
{
case 2:
-#line 120 "d2_parser.yy" // lalr1.cc:907
+#line 120 "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 121 "d2_parser.yy" // lalr1.cc:907
+#line 121 "d2_parser.yy"
{ ctx.ctx_ = ctx.CONFIG; }
-#line 689 "d2_parser.cc" // lalr1.cc:907
+#line 697 "d2_parser.cc"
break;
case 6:
-#line 122 "d2_parser.yy" // lalr1.cc:907
+#line 122 "d2_parser.yy"
{ ctx.ctx_ = ctx.DHCPDDNS; }
-#line 695 "d2_parser.cc" // lalr1.cc:907
+#line 703 "d2_parser.cc"
break;
case 8:
-#line 123 "d2_parser.yy" // lalr1.cc:907
+#line 123 "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 124 "d2_parser.yy" // lalr1.cc:907
+#line 124 "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 125 "d2_parser.yy" // lalr1.cc:907
+#line 125 "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 126 "d2_parser.yy" // lalr1.cc:907
+#line 126 "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 127 "d2_parser.yy" // lalr1.cc:907
+#line 127 "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 128 "d2_parser.yy" // lalr1.cc:907
+#line 128 "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 136 "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 136 "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 137 "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 137 "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 138 "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 138 "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 139 "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 139 "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 140 "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 140 "d2_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
+#line 769 "d2_parser.cc"
break;
case 25:
-#line 141 "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 141 "d2_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 775 "d2_parser.cc"
break;
case 26:
-#line 142 "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 142 "d2_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 781 "d2_parser.cc"
break;
case 27:
-#line 145 "d2_parser.yy" // lalr1.cc:907
+#line 145 "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 150 "d2_parser.yy" // lalr1.cc:907
+#line 150 "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 155 "d2_parser.yy" // lalr1.cc:907
+#line 155 "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 161 "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 161 "d2_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 817 "d2_parser.cc"
break;
case 33:
-#line 168 "d2_parser.yy" // lalr1.cc:907
+#line 168 "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 172 "d2_parser.yy" // lalr1.cc:907
+#line 172 "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 179 "d2_parser.yy" // lalr1.cc:907
+#line 179 "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 182 "d2_parser.yy" // lalr1.cc:907
+#line 182 "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 190 "d2_parser.yy" // lalr1.cc:907
+#line 190 "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 194 "d2_parser.yy" // lalr1.cc:907
+#line 194 "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 205 "d2_parser.yy" // lalr1.cc:907
+#line 205 "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 215 "d2_parser.yy" // lalr1.cc:907
+#line 215 "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 220 "d2_parser.yy" // lalr1.cc:907
+#line 220 "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 242 "d2_parser.yy" // lalr1.cc:907
+#line 242 "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 247 "d2_parser.yy" // lalr1.cc:907
+#line 247 "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 252 "d2_parser.yy" // lalr1.cc:907
+#line 252 "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 256 "d2_parser.yy" // lalr1.cc:907
+#line 256 "d2_parser.yy"
{
// parsing completed
}
-#line 933 "d2_parser.cc" // lalr1.cc:907
+#line 941 "d2_parser.cc"
break;
case 69:
-#line 278 "d2_parser.yy" // lalr1.cc:907
+#line 278 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 941 "d2_parser.cc" // lalr1.cc:907
+#line 949 "d2_parser.cc"
break;
case 70:
-#line 280 "d2_parser.yy" // lalr1.cc:907
+#line 280 "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 71:
-#line 286 "d2_parser.yy" // lalr1.cc:907
+#line 286 "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 72:
-#line 294 "d2_parser.yy" // lalr1.cc:907
+#line 294 "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 73:
-#line 303 "d2_parser.yy" // lalr1.cc:907
+#line 303 "d2_parser.yy"
{
ctx.enter(ctx.NCR_PROTOCOL);
}
-#line 984 "d2_parser.cc" // lalr1.cc:907
+#line 992 "d2_parser.cc"
break;
case 74:
-#line 305 "d2_parser.yy" // lalr1.cc:907
+#line 305 "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 75:
-#line 311 "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 311 "d2_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); }
+#line 1007 "d2_parser.cc"
break;
case 76:
-#line 312 "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 312 "d2_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); }
+#line 1013 "d2_parser.cc"
break;
case 77:
-#line 315 "d2_parser.yy" // lalr1.cc:907
+#line 315 "d2_parser.yy"
{
ctx.enter(ctx.NCR_FORMAT);
}
-#line 1013 "d2_parser.cc" // lalr1.cc:907
+#line 1021 "d2_parser.cc"
break;
case 78:
-#line 317 "d2_parser.yy" // lalr1.cc:907
+#line 317 "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 79:
-#line 323 "d2_parser.yy" // lalr1.cc:907
+#line 323 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1031 "d2_parser.cc" // lalr1.cc:907
+#line 1039 "d2_parser.cc"
break;
case 80:
-#line 325 "d2_parser.yy" // lalr1.cc:907
+#line 325 "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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 1058 "d2_parser.cc" // lalr1.cc:907
+#line 1066 "d2_parser.cc"
break;
case 81:
-#line 348 "d2_parser.yy" // lalr1.cc:907
+#line 348 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1066 "d2_parser.cc" // lalr1.cc:907
+#line 1074 "d2_parser.cc"
break;
case 82:
-#line 350 "d2_parser.yy" // lalr1.cc:907
+#line 350 "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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 1095 "d2_parser.cc" // lalr1.cc:907
+#line 1103 "d2_parser.cc"
break;
case 83:
-#line 375 "d2_parser.yy" // lalr1.cc:907
+#line 375 "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 84:
-#line 380 "d2_parser.yy" // lalr1.cc:907
+#line 380 "d2_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1115 "d2_parser.cc" // lalr1.cc:907
+#line 1123 "d2_parser.cc"
break;
case 85:
-#line 385 "d2_parser.yy" // lalr1.cc:907
+#line 385 "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 86:
-#line 390 "d2_parser.yy" // lalr1.cc:907
+#line 390 "d2_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1135 "d2_parser.cc" // lalr1.cc:907
+#line 1143 "d2_parser.cc"
break;
case 93:
-#line 409 "d2_parser.yy" // lalr1.cc:907
+#line 409 "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 94:
-#line 414 "d2_parser.yy" // lalr1.cc:907
+#line 414 "d2_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1155 "d2_parser.cc" // lalr1.cc:907
+#line 1163 "d2_parser.cc"
break;
case 95:
-#line 419 "d2_parser.yy" // lalr1.cc:907
+#line 419 "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 96:
-#line 422 "d2_parser.yy" // lalr1.cc:907
+#line 422 "d2_parser.yy"
{
// parsing completed
}
-#line 1172 "d2_parser.cc" // lalr1.cc:907
+#line 1180 "d2_parser.cc"
break;
case 101:
-#line 434 "d2_parser.yy" // lalr1.cc:907
+#line 434 "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 102:
-#line 438 "d2_parser.yy" // lalr1.cc:907
+#line 438 "d2_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1190 "d2_parser.cc" // lalr1.cc:907
+#line 1198 "d2_parser.cc"
break;
case 103:
-#line 442 "d2_parser.yy" // lalr1.cc:907
+#line 442 "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 104:
-#line 445 "d2_parser.yy" // lalr1.cc:907
+#line 445 "d2_parser.yy"
{
// parsing completed
}
-#line 1207 "d2_parser.cc" // lalr1.cc:907
+#line 1215 "d2_parser.cc"
break;
case 113:
-#line 462 "d2_parser.yy" // lalr1.cc:907
+#line 462 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1215 "d2_parser.cc" // lalr1.cc:907
+#line 1223 "d2_parser.cc"
break;
case 114:
-#line 464 "d2_parser.yy" // lalr1.cc:907
+#line 464 "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 115:
-#line 474 "d2_parser.yy" // lalr1.cc:907
+#line 474 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1237 "d2_parser.cc" // lalr1.cc:907
+#line 1245 "d2_parser.cc"
break;
case 116:
-#line 476 "d2_parser.yy" // lalr1.cc:907
+#line 476 "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 117:
-#line 486 "d2_parser.yy" // lalr1.cc:907
+#line 486 "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 118:
-#line 491 "d2_parser.yy" // lalr1.cc:907
+#line 491 "d2_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1268 "d2_parser.cc" // lalr1.cc:907
+#line 1276 "d2_parser.cc"
break;
case 119:
-#line 496 "d2_parser.yy" // lalr1.cc:907
+#line 496 "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 120:
-#line 499 "d2_parser.yy" // lalr1.cc:907
+#line 499 "d2_parser.yy"
{
// parsing completed
}
-#line 1285 "d2_parser.cc" // lalr1.cc:907
+#line 1293 "d2_parser.cc"
break;
case 123:
-#line 507 "d2_parser.yy" // lalr1.cc:907
+#line 507 "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 124:
-#line 511 "d2_parser.yy" // lalr1.cc:907
+#line 511 "d2_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1303 "d2_parser.cc" // lalr1.cc:907
+#line 1311 "d2_parser.cc"
break;
case 125:
-#line 515 "d2_parser.yy" // lalr1.cc:907
+#line 515 "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 126:
-#line 518 "d2_parser.yy" // lalr1.cc:907
+#line 518 "d2_parser.yy"
{
// parsing completed
}
-#line 1320 "d2_parser.cc" // lalr1.cc:907
+#line 1328 "d2_parser.cc"
break;
case 135:
-#line 534 "d2_parser.yy" // lalr1.cc:907
+#line 534 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1328 "d2_parser.cc" // lalr1.cc:907
+#line 1336 "d2_parser.cc"
break;
case 136:
-#line 536 "d2_parser.yy" // lalr1.cc:907
+#line 536 "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 137:
-#line 546 "d2_parser.yy" // lalr1.cc:907
+#line 546 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1350 "d2_parser.cc" // lalr1.cc:907
+#line 1358 "d2_parser.cc"
break;
case 138:
-#line 548 "d2_parser.yy" // lalr1.cc:907
+#line 548 "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 139:
-#line 554 "d2_parser.yy" // lalr1.cc:907
+#line 554 "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 140:
-#line 568 "d2_parser.yy" // lalr1.cc:907
+#line 568 "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 141:
-#line 573 "d2_parser.yy" // lalr1.cc:907
+#line 573 "d2_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1392 "d2_parser.cc" // lalr1.cc:907
+#line 1400 "d2_parser.cc"
break;
case 142:
-#line 578 "d2_parser.yy" // lalr1.cc:907
+#line 578 "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 143:
-#line 581 "d2_parser.yy" // lalr1.cc:907
+#line 581 "d2_parser.yy"
{
// parsing completed
}
-#line 1409 "d2_parser.cc" // lalr1.cc:907
+#line 1417 "d2_parser.cc"
break;
case 148:
-#line 593 "d2_parser.yy" // lalr1.cc:907
+#line 593 "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 149:
-#line 597 "d2_parser.yy" // lalr1.cc:907
+#line 597 "d2_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1427 "d2_parser.cc" // lalr1.cc:907
+#line 1435 "d2_parser.cc"
break;
case 150:
-#line 601 "d2_parser.yy" // lalr1.cc:907
+#line 601 "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 151:
-#line 605 "d2_parser.yy" // lalr1.cc:907
+#line 605 "d2_parser.yy"
{
// parsing completed
}
-#line 1445 "d2_parser.cc" // lalr1.cc:907
+#line 1453 "d2_parser.cc"
break;
case 161:
-#line 623 "d2_parser.yy" // lalr1.cc:907
+#line 623 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1453 "d2_parser.cc" // lalr1.cc:907
+#line 1461 "d2_parser.cc"
break;
case 162:
-#line 625 "d2_parser.yy" // lalr1.cc:907
+#line 625 "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 163:
-#line 635 "d2_parser.yy" // lalr1.cc:907
+#line 635 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1475 "d2_parser.cc" // lalr1.cc:907
+#line 1483 "d2_parser.cc"
break;
case 164:
-#line 637 "d2_parser.yy" // lalr1.cc:907
+#line 637 "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 165:
-#line 646 "d2_parser.yy" // lalr1.cc:907
+#line 646 "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 166:
-#line 654 "d2_parser.yy" // lalr1.cc:907
+#line 654 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1508 "d2_parser.cc" // lalr1.cc:907
+#line 1516 "d2_parser.cc"
break;
case 167:
-#line 656 "d2_parser.yy" // lalr1.cc:907
+#line 656 "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 168:
-#line 669 "d2_parser.yy" // lalr1.cc:907
+#line 669 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1529 "d2_parser.cc" // lalr1.cc:907
+#line 1537 "d2_parser.cc"
break;
case 169:
-#line 671 "d2_parser.yy" // lalr1.cc:907
+#line 671 "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 1538 "d2_parser.cc" // lalr1.cc:907
+#line 1546 "d2_parser.cc"
break;
case 170:
-#line 676 "d2_parser.yy" // lalr1.cc:907
+#line 676 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1546 "d2_parser.cc" // lalr1.cc:907
+#line 1554 "d2_parser.cc"
break;
case 171:
-#line 678 "d2_parser.yy" // lalr1.cc:907
+#line 678 "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 1555 "d2_parser.cc" // lalr1.cc:907
+#line 1563 "d2_parser.cc"
break;
case 172:
-#line 683 "d2_parser.yy" // lalr1.cc:907
+#line 683 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1563 "d2_parser.cc" // lalr1.cc:907
+#line 1571 "d2_parser.cc"
break;
case 173:
-#line 685 "d2_parser.yy" // lalr1.cc:907
+#line 685 "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 1572 "d2_parser.cc" // lalr1.cc:907
+#line 1580 "d2_parser.cc"
break;
case 174:
-#line 695 "d2_parser.yy" // lalr1.cc:907
+#line 695 "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 1583 "d2_parser.cc" // lalr1.cc:907
+#line 1591 "d2_parser.cc"
break;
case 175:
-#line 700 "d2_parser.yy" // lalr1.cc:907
+#line 700 "d2_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1592 "d2_parser.cc" // lalr1.cc:907
+#line 1600 "d2_parser.cc"
break;
case 179:
-#line 717 "d2_parser.yy" // lalr1.cc:907
+#line 717 "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 1603 "d2_parser.cc" // lalr1.cc:907
+#line 1611 "d2_parser.cc"
break;
case 180:
-#line 722 "d2_parser.yy" // lalr1.cc:907
+#line 722 "d2_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1612 "d2_parser.cc" // lalr1.cc:907
+#line 1620 "d2_parser.cc"
break;
case 183:
-#line 734 "d2_parser.yy" // lalr1.cc:907
+#line 734 "d2_parser.yy"
{
ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(l);
ctx.stack_.push_back(l);
}
-#line 1622 "d2_parser.cc" // lalr1.cc:907
+#line 1630 "d2_parser.cc"
break;
case 184:
-#line 738 "d2_parser.yy" // lalr1.cc:907
+#line 738 "d2_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1630 "d2_parser.cc" // lalr1.cc:907
+#line 1638 "d2_parser.cc"
break;
case 194:
-#line 755 "d2_parser.yy" // lalr1.cc:907
+#line 755 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1638 "d2_parser.cc" // lalr1.cc:907
+#line 1646 "d2_parser.cc"
break;
case 195:
-#line 757 "d2_parser.yy" // lalr1.cc:907
+#line 757 "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 1648 "d2_parser.cc" // lalr1.cc:907
+#line 1656 "d2_parser.cc"
break;
case 196:
-#line 763 "d2_parser.yy" // lalr1.cc:907
+#line 763 "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 1657 "d2_parser.cc" // lalr1.cc:907
+#line 1665 "d2_parser.cc"
break;
case 197:
-#line 767 "d2_parser.yy" // lalr1.cc:907
+#line 767 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1665 "d2_parser.cc" // lalr1.cc:907
+#line 1673 "d2_parser.cc"
break;
case 198:
-#line 769 "d2_parser.yy" // lalr1.cc:907
+#line 769 "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 1675 "d2_parser.cc" // lalr1.cc:907
+#line 1683 "d2_parser.cc"
break;
case 199:
-#line 775 "d2_parser.yy" // lalr1.cc:907
+#line 775 "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 1686 "d2_parser.cc" // lalr1.cc:907
+#line 1694 "d2_parser.cc"
break;
case 200:
-#line 780 "d2_parser.yy" // lalr1.cc:907
+#line 780 "d2_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1695 "d2_parser.cc" // lalr1.cc:907
+#line 1703 "d2_parser.cc"
break;
case 203:
-#line 789 "d2_parser.yy" // lalr1.cc:907
+#line 789 "d2_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1705 "d2_parser.cc" // lalr1.cc:907
+#line 1713 "d2_parser.cc"
break;
case 204:
-#line 793 "d2_parser.yy" // lalr1.cc:907
+#line 793 "d2_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1713 "d2_parser.cc" // lalr1.cc:907
+#line 1721 "d2_parser.cc"
break;
case 211:
-#line 807 "d2_parser.yy" // lalr1.cc:907
+#line 807 "d2_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1721 "d2_parser.cc" // lalr1.cc:907
+#line 1729 "d2_parser.cc"
break;
case 212:
-#line 809 "d2_parser.yy" // lalr1.cc:907
+#line 809 "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 1731 "d2_parser.cc" // lalr1.cc:907
+#line 1739 "d2_parser.cc"
break;
case 213:
-#line 815 "d2_parser.yy" // lalr1.cc:907
+#line 815 "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 1740 "d2_parser.cc" // lalr1.cc:907
+#line 1748 "d2_parser.cc"
break;
case 214:
-#line 820 "d2_parser.yy" // lalr1.cc:907
+#line 820 "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 1749 "d2_parser.cc" // lalr1.cc:907
+#line 1757 "d2_parser.cc"
break;
case 215:
-#line 825 "d2_parser.yy" // lalr1.cc:907
+#line 825 "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 1758 "d2_parser.cc" // lalr1.cc:907
+#line 1766 "d2_parser.cc"
break;
-#line 1762 "d2_parser.cc" // lalr1.cc:907
+#line 1770 "d2_parser.cc"
+
default:
break;
}
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
YYERROR;
}
}
goto yynewstate;
+
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
| 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. |
`-------------------------------------------------------------*/
}
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);
#endif // D2_PARSER_DEBUG
-#line 14 "d2_parser.yy" // lalr1.cc:1218
+#line 14 "d2_parser.yy"
} } // isc::d2
-#line 2419 "d2_parser.cc" // lalr1.cc:1218
-#line 830 "d2_parser.yy" // lalr1.cc:1219
+#line 2440 "d2_parser.cc"
+
+#line 830 "d2_parser.yy"
void
-// 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
#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 <string>
#include <cc/data.h>
using namespace isc::data;
using namespace std;
-#line 60 "d2_parser.h" // lalr1.cc:404
+#line 60 "d2_parser.h"
# include <cassert>
# include <cstdlib> // std::abort
# 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 <typeinfo>
#ifndef YYASSERT
# 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 168 "d2_parser.h" // lalr1.cc:404
-
- /// A stack with random access from its top.
- template <typename T, typename S = std::vector<T> >
- class stack
- {
- public:
- // Hide our reversed order.
- typedef typename S::reverse_iterator iterator;
- typedef typename S::const_reverse_iterator const_iterator;
- 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));
- }
+#line 184 "d2_parser.h"
- /// 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 ();
- }
-
- 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 <typename T, typename S = stack<T> >
- 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 <size_t S>
- struct variant
+ /// via the current parser state.
+ class semantic_type
{
+ public:
/// Type of *this.
- typedef variant<S> self_type;
+ typedef semantic_type self_type;
/// Empty construction.
- variant ()
+ semantic_type () YY_NOEXCEPT
: yybuffer_ ()
, yytypeid_ (YY_NULLPTR)
{}
/// Construct and fill.
template <typename T>
- 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> ()) T (YY_MOVE (t));
}
/// Destruction, allowed only if empty.
- ~variant ()
+ ~semantic_type () YY_NOEXCEPT
{
YYASSERT (!yytypeid_);
}
- /// Instantiate an empty \a T in here.
- template <typename T>
+# if 201103L <= YY_CPLUSPLUS
+ /// Instantiate a \a T in here from \a t.
+ template <typename T, typename... U>
T&
- emplace ()
+ emplace (U&&... u)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T ();
+ return *new (yyas_<T> ()) T (std::forward <U>(u)...);
}
-
-# if 201103L <= YY_CPLUSPLUS
- /// Instantiate a \a T in here from \a t.
- template <typename T, typename U>
+# else
+ /// Instantiate an empty \a T in here.
+ template <typename T>
T&
- emplace (U&& u)
+ emplace ()
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T (std::forward <U>(u));
+ return *new (yyas_<T> ()) T ();
}
-# else
+
/// Instantiate a \a T in here from \a t.
template <typename T>
T&
emplace (const T& t)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_<T> ()) T (t);
}
/// Accessor to a built \a T.
template <typename T>
T&
- as ()
+ as () YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
/// Const accessor to a built \a T (for %printer).
template <typename T>
const T&
- as () const
+ as () const YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
- /// 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 <typename T>
void
- swap (self_type& other)
+ swap (self_type& that) YY_NOEXCEPT
{
YYASSERT (yytypeid_);
- YYASSERT (*yytypeid_ == *other.yytypeid_);
- std::swap (as<T> (), other.as<T> ());
+ YYASSERT (*yytypeid_ == *that.yytypeid_);
+ std::swap (as<T> (), that.as<T> ());
}
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
///
- /// Destroys \a other.
+ /// Destroys \a that.
template <typename T>
void
- move (self_type& other)
+ move (self_type& that)
{
# if 201103L <= YY_CPLUSPLUS
- emplace<T> (std::move (other.as<T> ()));
+ emplace<T> (std::move (that.as<T> ()));
# else
emplace<T> ();
- swap<T> (other);
+ swap<T> (that);
# endif
- other.destroy<T> ();
+ that.destroy<T> ();
}
# if 201103L <= YY_CPLUSPLUS
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
template <typename T>
void
- move (self_type&& other)
+ move (self_type&& that)
{
- emplace<T> (std::move (other.as<T> ()));
- other.destroy<T> ();
+ emplace<T> (std::move (that.as<T> ()));
+ that.destroy<T> ();
}
#endif
- /// Copy the content of \a other to this.
+ /// Copy the content of \a that to this.
template <typename T>
void
- copy (const self_type& other)
+ copy (const self_type& that)
{
- emplace<T> (other.as<T> ());
+ emplace<T> (that.as<T> ());
}
/// Destroy the stored \a T.
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 <typename T>
T*
- yyas_ ()
+ yyas_ () YY_NOEXCEPT
{
void *yyp = yybuffer_.yyraw;
return static_cast<T*> (yyp);
/// Const accessor to raw memory as \a T.
template <typename T>
const T*
- yyas_ () const
+ yyas_ () const YY_NOEXCEPT
{
const void *yyp = yybuffer_.yyraw;
return static_cast<const T*> (yyp);
}
- union
- {
- /// Strongest alignment constraints.
- long double yyalign_me;
- /// A buffer large enough to store any of the semantic values.
- char yyraw[S];
- } yybuffer_;
-
- /// Whether the content is built: if defined, the name of the stored type.
- const std::type_info *yytypeid_;
- };
-
-
- /// A Bison parser.
- class D2Parser
- {
- public:
-#ifndef D2_PARSER_STYPE
/// An auxiliary type to compute the largest semantic type.
union union_type
{
// "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<sizeof (union_type)> semantic_type;
#else
typedef D2_PARSER_STYPE semantic_type;
#endif
/// 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;
};
typedef Base super_type;
/// Default constructor.
- basic_symbol ();
+ basic_symbol ()
+ : value ()
+ , location ()
+ {}
- /// Move or copy constructor.
- basic_symbol (YY_RVREF (basic_symbol) other);
+#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.
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, 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);
+ 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);
+#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);
+ 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);
+#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);
+ 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);
+#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);
+ 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);
+#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);
+ 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);
+#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);
+ 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<Base>& yysym = *this;
+ (void) yysym;
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+
+ // Type destructor.
+switch (yytype)
+ {
+ case 68: // value
+ case 72: // map_value
+ case 96: // ncr_protocol_value
+ value.template destroy< ElementPtr > ();
+ break;
+
+ case 56: // "boolean"
+ value.template destroy< bool > ();
+ break;
+
+ case 55: // "floating point"
+ value.template destroy< double > ();
+ break;
+
+ case 54: // "integer"
+ value.template destroy< int64_t > ();
+ break;
+
+ case 53: // "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);
private:
#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
- basic_symbol& operator= (const basic_symbol& other);
+ basic_symbol& operator= (const basic_symbol& that);
#endif
};
/// 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;
/// 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.
};
/// "External" symbols: returned by the scanner.
- typedef basic_symbol<by_type> symbol_type;
+ struct symbol_type : basic_symbol<by_type>
+ {
+ /// Superclass.
+ typedef basic_symbol<by_type> 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_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_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_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_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);
/// 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_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_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_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_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:
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 };
#endif
};
+ /// A stack with random access from its top.
+ template <typename T, typename S = std::vector<T> >
+ class stack
+ {
+ public:
+ // Hide our reversed order.
+ typedef typename S::reverse_iterator iterator;
+ typedef typename S::const_reverse_iterator const_iterator;
+ 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_symbol_type> stack_type;
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,
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 <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol ()
- : value ()
- , location ()
- {}
-
- template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (YY_RVREF (basic_symbol) other)
- : Base (YY_MOVE (other))
+ D2Parser::basic_symbol<Base>::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 68: // value
case 72: // map_value
case 96: // ncr_protocol_value
- value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (other.value));
+ value.move< ElementPtr > (std::move (that.value));
break;
case 56: // "boolean"
- value.YY_MOVE_OR_COPY< bool > (YY_MOVE (other.value));
- break;
-
- case 55: // "floating point"
- value.YY_MOVE_OR_COPY< double > (YY_MOVE (other.value));
- break;
-
- case 54: // "integer"
- value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (other.value));
+ value.move< bool > (std::move (that.value));
break;
- case 53: // "constant string"
- value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (other.value));
- break;
-
- default:
- break;
- }
-
- }
-
-
- // Implementation of basic_symbol constructor for each type.
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
- : Base (t)
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
- : Base (t)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- D2Parser::basic_symbol<Base>::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
- template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- D2Parser::basic_symbol<Base>::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
- template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, double&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- D2Parser::basic_symbol<Base>::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
- template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- D2Parser::basic_symbol<Base>::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
- template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
+ case 55: // "floating point"
+ value.move< double > (std::move (that.value));
+ break;
+ case 54: // "integer"
+ value.move< int64_t > (std::move (that.value));
+ break;
+
+ case 53: // "constant string"
+ value.move< std::string > (std::move (that.value));
+ break;
+
+ default:
+ break;
+ }
- template <typename Base>
- D2Parser::basic_symbol<Base>::~basic_symbol ()
- {
- clear ();
}
+#endif
template <typename Base>
- void
- D2Parser::basic_symbol<Base>::clear ()
+ D2Parser::basic_symbol<Base>::basic_symbol (const basic_symbol& that)
+ : Base (that)
+ , value ()
+ , location (that.location)
{
- // User destructor.
- symbol_number_type yytype = this->type_get ();
- basic_symbol<Base>& yysym = *this;
- (void) yysym;
- switch (yytype)
- {
- default:
- break;
- }
-
- // Type destructor.
- switch (yytype)
+ switch (this->type_get ())
{
case 68: // value
case 72: // map_value
case 96: // ncr_protocol_value
- value.template destroy< ElementPtr > ();
+ value.copy< ElementPtr > (YY_MOVE (that.value));
break;
case 56: // "boolean"
- value.template destroy< bool > ();
+ value.copy< bool > (YY_MOVE (that.value));
break;
case 55: // "floating point"
- value.template destroy< double > ();
+ value.copy< double > (YY_MOVE (that.value));
break;
case 54: // "integer"
- value.template destroy< int64_t > ();
+ value.copy< int64_t > (YY_MOVE (that.value));
break;
case 53: // "constant string"
- value.template destroy< std::string > ();
+ value.copy< std::string > (YY_MOVE (that.value));
break;
default:
break;
}
- Base::clear ();
}
+
+
template <typename Base>
bool
- D2Parser::basic_symbol<Base>::empty () const
+ D2Parser::basic_symbol<Base>::empty () const YY_NOEXCEPT
{
return Base::type_get () == empty_symbol;
}
: 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
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). */
295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
305, 306, 307, 308, 309, 310, 311
};
- return static_cast<token_type> (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_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_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 1911 "d2_parser.h" // lalr1.cc:404
+#line 2233 "d2_parser.h"
+
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author>
<contrib>The Kea software has been written by a number of
engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
<docinfo>
<copyright>
- <year>2013-2018</year>
+ <year>2013-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
-// Generated 201811271344
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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
# 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
{
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
-// Generated 201811271344
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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".
-// Generated 201811271344
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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.
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "dhcp4_lexer.ll"
-/* Copyright (C) 2016-2018 Internet Systems Consortium, Inc. ("ISC")
+/* Copyright (C) 2016-2019 Internet Systems Consortium, Inc. ("ISC")
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
-// 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
// Unqualified %code blocks.
-#line 34 "dhcp4_parser.yy" // lalr1.cc:438
+#line 34 "dhcp4_parser.yy"
#include <dhcp4/parser_context.h>
-#line 51 "dhcp4_parser.cc" // lalr1.cc:438
+#line 51 "dhcp4_parser.cc"
#ifndef YY_
{ \
(Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
} \
- while (/*CONSTCOND*/ false)
+ while (false)
# endif
#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
{
if (*yystr == '"')
{
- std::string yyr = "";
+ std::string yyr;
char const *yyp = yystr;
for (;;)
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
- // Fall through.
+ else
+ goto append;
+
+ append:
default:
yyr += *yyp;
break;
Dhcp4Parser::~Dhcp4Parser ()
{}
+ Dhcp4Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW
+ {}
/*---------------.
| Symbol types. |
// 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;
}
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;
break;
}
-#if defined __cplusplus && 201103L <= __cplusplus
+#if 201103L <= YY_CPLUSPLUS
// that is emptied.
that.state = empty_state;
#endif
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)
{
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 166: // "constant string"
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 401 "dhcp4_parser.cc" // lalr1.cc:672
+ case 166: // "constant string"
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 408 "dhcp4_parser.cc"
break;
case 167: // "integer"
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< int64_t > (); }
-#line 408 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < int64_t > (); }
+#line 414 "dhcp4_parser.cc"
break;
case 168: // "floating point"
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< double > (); }
-#line 415 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < double > (); }
+#line 420 "dhcp4_parser.cc"
break;
case 169: // "boolean"
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< bool > (); }
-#line 422 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < bool > (); }
+#line 426 "dhcp4_parser.cc"
break;
case 186: // value
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 429 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 432 "dhcp4_parser.cc"
break;
case 190: // map_value
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 436 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 438 "dhcp4_parser.cc"
break;
case 231: // socket_type
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 443 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 444 "dhcp4_parser.cc"
break;
case 234: // outbound_interface_value
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 450 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 450 "dhcp4_parser.cc"
break;
case 256: // db_type
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 457 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 456 "dhcp4_parser.cc"
break;
case 339: // hr_mode
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 464 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 462 "dhcp4_parser.cc"
break;
case 488: // ncr_protocol_value
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 471 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 468 "dhcp4_parser.cc"
break;
case 495: // replace_client_name_value
-
-#line 246 "dhcp4_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 478 "dhcp4_parser.cc" // lalr1.cc:672
+#line 246 "dhcp4_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 474 "dhcp4_parser.cc"
break;
-
default:
break;
}
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);
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];
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
goto yyerrlab1;
}
yypush_ ("Shifting", yyn, YY_MOVE (yyla));
goto yynewstate;
+
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
goto yyerrlab;
goto yyreduce;
+
/*-----------------------------.
- | yyreduce -- Do a reduction. |
+ | yyreduce -- do a reduction. |
`-----------------------------*/
yyreduce:
yylen = yyr2_[yyn];
// Default location.
{
- slice<stack_symbol_type, stack_type> 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;
}
switch (yyn)
{
case 2:
-#line 255 "dhcp4_parser.yy" // lalr1.cc:907
+#line 255 "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 256 "dhcp4_parser.yy" // lalr1.cc:907
+#line 256 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.CONFIG; }
-#line 744 "dhcp4_parser.cc" // lalr1.cc:907
+#line 747 "dhcp4_parser.cc"
break;
case 6:
-#line 257 "dhcp4_parser.yy" // lalr1.cc:907
+#line 257 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.DHCP4; }
-#line 750 "dhcp4_parser.cc" // lalr1.cc:907
+#line 753 "dhcp4_parser.cc"
break;
case 8:
-#line 258 "dhcp4_parser.yy" // lalr1.cc:907
+#line 258 "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 259 "dhcp4_parser.yy" // lalr1.cc:907
+#line 259 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.SUBNET4; }
-#line 762 "dhcp4_parser.cc" // lalr1.cc:907
+#line 765 "dhcp4_parser.cc"
break;
case 12:
-#line 260 "dhcp4_parser.yy" // lalr1.cc:907
+#line 260 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.POOLS; }
-#line 768 "dhcp4_parser.cc" // lalr1.cc:907
+#line 771 "dhcp4_parser.cc"
break;
case 14:
-#line 261 "dhcp4_parser.yy" // lalr1.cc:907
+#line 261 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.RESERVATIONS; }
-#line 774 "dhcp4_parser.cc" // lalr1.cc:907
+#line 777 "dhcp4_parser.cc"
break;
case 16:
-#line 262 "dhcp4_parser.yy" // lalr1.cc:907
+#line 262 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.DHCP4; }
-#line 780 "dhcp4_parser.cc" // lalr1.cc:907
+#line 783 "dhcp4_parser.cc"
break;
case 18:
-#line 263 "dhcp4_parser.yy" // lalr1.cc:907
+#line 263 "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 264 "dhcp4_parser.yy" // lalr1.cc:907
+#line 264 "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 265 "dhcp4_parser.yy" // lalr1.cc:907
+#line 265 "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 266 "dhcp4_parser.yy" // lalr1.cc:907
+#line 266 "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 267 "dhcp4_parser.yy" // lalr1.cc:907
+#line 267 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.LOGGING; }
-#line 810 "dhcp4_parser.cc" // lalr1.cc:907
+#line 813 "dhcp4_parser.cc"
break;
case 28:
-#line 268 "dhcp4_parser.yy" // lalr1.cc:907
+#line 268 "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 276 "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 276 "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 277 "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 277 "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 278 "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 278 "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 279 "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 279 "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 280 "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 280 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
+#line 849 "dhcp4_parser.cc"
break;
case 35:
-#line 281 "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 281 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 855 "dhcp4_parser.cc"
break;
case 36:
-#line 282 "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 282 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 861 "dhcp4_parser.cc"
break;
case 37:
-#line 285 "dhcp4_parser.yy" // lalr1.cc:907
+#line 285 "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 290 "dhcp4_parser.yy" // lalr1.cc:907
+#line 290 "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 295 "dhcp4_parser.yy" // lalr1.cc:907
+#line 295 "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 301 "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 301 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 897 "dhcp4_parser.cc"
break;
case 43:
-#line 308 "dhcp4_parser.yy" // lalr1.cc:907
+#line 308 "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 312 "dhcp4_parser.yy" // lalr1.cc:907
+#line 312 "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 319 "dhcp4_parser.yy" // lalr1.cc:907
+#line 319 "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 322 "dhcp4_parser.yy" // lalr1.cc:907
+#line 322 "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 330 "dhcp4_parser.yy" // lalr1.cc:907
+#line 330 "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 334 "dhcp4_parser.yy" // lalr1.cc:907
+#line 334 "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 341 "dhcp4_parser.yy" // lalr1.cc:907
+#line 341 "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 343 "dhcp4_parser.yy" // lalr1.cc:907
+#line 343 "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 352 "dhcp4_parser.yy" // lalr1.cc:907
+#line 352 "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 356 "dhcp4_parser.yy" // lalr1.cc:907
+#line 356 "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 367 "dhcp4_parser.yy" // lalr1.cc:907
+#line 367 "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 377 "dhcp4_parser.yy" // lalr1.cc:907
+#line 377 "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 382 "dhcp4_parser.yy" // lalr1.cc:907
+#line 382 "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
// 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 406 "dhcp4_parser.yy" // lalr1.cc:907
+#line 406 "dhcp4_parser.yy"
{
// This code is executed when we're about to start parsing
// the content of the map
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 413 "dhcp4_parser.yy" // lalr1.cc:907
+#line 413 "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 421 "dhcp4_parser.yy" // lalr1.cc:907
+#line 421 "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 425 "dhcp4_parser.yy" // lalr1.cc:907
+#line 425 "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 108:
-#line 472 "dhcp4_parser.yy" // lalr1.cc:907
+#line 472 "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 109:
-#line 477 "dhcp4_parser.yy" // lalr1.cc:907
+#line 477 "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 1078 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1081 "dhcp4_parser.cc"
break;
case 110:
-#line 482 "dhcp4_parser.yy" // lalr1.cc:907
+#line 482 "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 1087 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1090 "dhcp4_parser.cc"
break;
case 111:
-#line 487 "dhcp4_parser.yy" // lalr1.cc:907
+#line 487 "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 1096 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1099 "dhcp4_parser.cc"
break;
case 112:
-#line 492 "dhcp4_parser.yy" // lalr1.cc:907
+#line 492 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1104 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1107 "dhcp4_parser.cc"
break;
case 113:
-#line 494 "dhcp4_parser.yy" // lalr1.cc:907
+#line 494 "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 1114 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1117 "dhcp4_parser.cc"
break;
case 114:
-#line 500 "dhcp4_parser.yy" // lalr1.cc:907
+#line 500 "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 1123 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1126 "dhcp4_parser.cc"
break;
case 115:
-#line 505 "dhcp4_parser.yy" // lalr1.cc:907
+#line 505 "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 1132 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1135 "dhcp4_parser.cc"
break;
case 116:
-#line 510 "dhcp4_parser.yy" // lalr1.cc:907
+#line 510 "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 1141 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1144 "dhcp4_parser.cc"
break;
case 117:
-#line 516 "dhcp4_parser.yy" // lalr1.cc:907
+#line 516 "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 1152 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1155 "dhcp4_parser.cc"
break;
case 118:
-#line 521 "dhcp4_parser.yy" // lalr1.cc:907
+#line 521 "dhcp4_parser.yy"
{
// No interfaces config param is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1162 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1165 "dhcp4_parser.cc"
break;
case 128:
-#line 540 "dhcp4_parser.yy" // lalr1.cc:907
+#line 540 "dhcp4_parser.yy"
{
// Parse the interfaces-config map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1172 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1175 "dhcp4_parser.cc"
break;
case 129:
-#line 544 "dhcp4_parser.yy" // lalr1.cc:907
+#line 544 "dhcp4_parser.yy"
{
// No interfaces config param is required
// parsing completed
}
-#line 1181 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1184 "dhcp4_parser.cc"
break;
case 130:
-#line 549 "dhcp4_parser.yy" // lalr1.cc:907
+#line 549 "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 1192 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1195 "dhcp4_parser.cc"
break;
case 131:
-#line 554 "dhcp4_parser.yy" // lalr1.cc:907
+#line 554 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1201 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1204 "dhcp4_parser.cc"
break;
case 132:
-#line 559 "dhcp4_parser.yy" // lalr1.cc:907
+#line 559 "dhcp4_parser.yy"
{
ctx.enter(ctx.DHCP_SOCKET_TYPE);
}
-#line 1209 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1212 "dhcp4_parser.cc"
break;
case 133:
-#line 561 "dhcp4_parser.yy" // lalr1.cc:907
+#line 561 "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 1218 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1221 "dhcp4_parser.cc"
break;
case 134:
-#line 566 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("raw", ctx.loc2pos(yystack_[0].location))); }
-#line 1224 "dhcp4_parser.cc" // lalr1.cc:907
+#line 566 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("raw", ctx.loc2pos(yystack_[0].location))); }
+#line 1227 "dhcp4_parser.cc"
break;
case 135:
-#line 567 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("udp", ctx.loc2pos(yystack_[0].location))); }
-#line 1230 "dhcp4_parser.cc" // lalr1.cc:907
+#line 567 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("udp", ctx.loc2pos(yystack_[0].location))); }
+#line 1233 "dhcp4_parser.cc"
break;
case 136:
-#line 570 "dhcp4_parser.yy" // lalr1.cc:907
+#line 570 "dhcp4_parser.yy"
{
ctx.enter(ctx.OUTBOUND_INTERFACE);
}
-#line 1238 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1241 "dhcp4_parser.cc"
break;
case 137:
-#line 572 "dhcp4_parser.yy" // lalr1.cc:907
+#line 572 "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 1247 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1250 "dhcp4_parser.cc"
break;
case 138:
-#line 577 "dhcp4_parser.yy" // lalr1.cc:907
+#line 577 "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 1255 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1258 "dhcp4_parser.cc"
break;
case 139:
-#line 579 "dhcp4_parser.yy" // lalr1.cc:907
+#line 579 "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 1263 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1266 "dhcp4_parser.cc"
break;
case 140:
-#line 583 "dhcp4_parser.yy" // lalr1.cc:907
+#line 583 "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 1272 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1275 "dhcp4_parser.cc"
break;
case 141:
-#line 589 "dhcp4_parser.yy" // lalr1.cc:907
+#line 589 "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 1283 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1286 "dhcp4_parser.cc"
break;
case 142:
-#line 594 "dhcp4_parser.yy" // lalr1.cc:907
+#line 594 "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 1294 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1297 "dhcp4_parser.cc"
break;
case 143:
-#line 601 "dhcp4_parser.yy" // lalr1.cc:907
+#line 601 "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 1305 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1308 "dhcp4_parser.cc"
break;
case 144:
-#line 606 "dhcp4_parser.yy" // lalr1.cc:907
+#line 606 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1314 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1317 "dhcp4_parser.cc"
break;
case 148:
-#line 616 "dhcp4_parser.yy" // lalr1.cc:907
+#line 616 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1322 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1325 "dhcp4_parser.cc"
break;
case 149:
-#line 618 "dhcp4_parser.yy" // lalr1.cc:907
+#line 618 "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 1342 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1345 "dhcp4_parser.cc"
break;
case 150:
-#line 634 "dhcp4_parser.yy" // lalr1.cc:907
+#line 634 "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 1353 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1356 "dhcp4_parser.cc"
break;
case 151:
-#line 639 "dhcp4_parser.yy" // lalr1.cc:907
+#line 639 "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 1364 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1367 "dhcp4_parser.cc"
break;
case 152:
-#line 646 "dhcp4_parser.yy" // lalr1.cc:907
+#line 646 "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 1375 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1378 "dhcp4_parser.cc"
break;
case 153:
-#line 651 "dhcp4_parser.yy" // lalr1.cc:907
+#line 651 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1384 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1387 "dhcp4_parser.cc"
break;
case 158:
-#line 664 "dhcp4_parser.yy" // lalr1.cc:907
+#line 664 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1394 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1397 "dhcp4_parser.cc"
break;
case 159:
-#line 668 "dhcp4_parser.yy" // lalr1.cc:907
+#line 668 "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 1404 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1407 "dhcp4_parser.cc"
break;
case 181:
-#line 699 "dhcp4_parser.yy" // lalr1.cc:907
+#line 699 "dhcp4_parser.yy"
{
ctx.enter(ctx.DATABASE_TYPE);
}
-#line 1412 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1415 "dhcp4_parser.cc"
break;
case 182:
-#line 701 "dhcp4_parser.yy" // lalr1.cc:907
+#line 701 "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 1421 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1424 "dhcp4_parser.cc"
break;
case 183:
-#line 706 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); }
-#line 1427 "dhcp4_parser.cc" // lalr1.cc:907
+#line 706 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); }
+#line 1430 "dhcp4_parser.cc"
break;
case 184:
-#line 707 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); }
-#line 1433 "dhcp4_parser.cc" // lalr1.cc:907
+#line 707 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); }
+#line 1436 "dhcp4_parser.cc"
break;
case 185:
-#line 708 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); }
-#line 1439 "dhcp4_parser.cc" // lalr1.cc:907
+#line 708 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); }
+#line 1442 "dhcp4_parser.cc"
break;
case 186:
-#line 709 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); }
-#line 1445 "dhcp4_parser.cc" // lalr1.cc:907
+#line 709 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); }
+#line 1448 "dhcp4_parser.cc"
break;
case 187:
-#line 712 "dhcp4_parser.yy" // lalr1.cc:907
+#line 712 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1453 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1456 "dhcp4_parser.cc"
break;
case 188:
-#line 714 "dhcp4_parser.yy" // lalr1.cc:907
+#line 714 "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 1463 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1466 "dhcp4_parser.cc"
break;
case 189:
-#line 720 "dhcp4_parser.yy" // lalr1.cc:907
+#line 720 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1471 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1474 "dhcp4_parser.cc"
break;
case 190:
-#line 722 "dhcp4_parser.yy" // lalr1.cc:907
+#line 722 "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 1481 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1484 "dhcp4_parser.cc"
break;
case 191:
-#line 728 "dhcp4_parser.yy" // lalr1.cc:907
+#line 728 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1489 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1492 "dhcp4_parser.cc"
break;
case 192:
-#line 730 "dhcp4_parser.yy" // lalr1.cc:907
+#line 730 "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 1499 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1502 "dhcp4_parser.cc"
break;
case 193:
-#line 736 "dhcp4_parser.yy" // lalr1.cc:907
+#line 736 "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 1508 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1511 "dhcp4_parser.cc"
break;
case 194:
-#line 741 "dhcp4_parser.yy" // lalr1.cc:907
+#line 741 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1516 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1519 "dhcp4_parser.cc"
break;
case 195:
-#line 743 "dhcp4_parser.yy" // lalr1.cc:907
+#line 743 "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 1526 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1529 "dhcp4_parser.cc"
break;
case 196:
-#line 749 "dhcp4_parser.yy" // lalr1.cc:907
+#line 749 "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 1535 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1538 "dhcp4_parser.cc"
break;
case 197:
-#line 754 "dhcp4_parser.yy" // lalr1.cc:907
+#line 754 "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 1544 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1547 "dhcp4_parser.cc"
break;
case 198:
-#line 759 "dhcp4_parser.yy" // lalr1.cc:907
+#line 759 "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 1553 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1556 "dhcp4_parser.cc"
break;
case 199:
-#line 764 "dhcp4_parser.yy" // lalr1.cc:907
+#line 764 "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 1562 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1565 "dhcp4_parser.cc"
break;
case 200:
-#line 769 "dhcp4_parser.yy" // lalr1.cc:907
+#line 769 "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 1571 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1574 "dhcp4_parser.cc"
break;
case 201:
-#line 774 "dhcp4_parser.yy" // lalr1.cc:907
+#line 774 "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 1580 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1583 "dhcp4_parser.cc"
break;
case 202:
-#line 779 "dhcp4_parser.yy" // lalr1.cc:907
+#line 779 "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 1589 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1592 "dhcp4_parser.cc"
break;
case 203:
-#line 784 "dhcp4_parser.yy" // lalr1.cc:907
+#line 784 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1597 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1600 "dhcp4_parser.cc"
break;
case 204:
-#line 786 "dhcp4_parser.yy" // lalr1.cc:907
+#line 786 "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 1607 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1610 "dhcp4_parser.cc"
break;
case 205:
-#line 792 "dhcp4_parser.yy" // lalr1.cc:907
+#line 792 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1615 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1618 "dhcp4_parser.cc"
break;
case 206:
-#line 794 "dhcp4_parser.yy" // lalr1.cc:907
+#line 794 "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 1625 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1628 "dhcp4_parser.cc"
break;
case 207:
-#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("max-reconnect-tries", n);
}
-#line 1634 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1637 "dhcp4_parser.cc"
break;
case 208:
-#line 805 "dhcp4_parser.yy" // lalr1.cc:907
+#line 805 "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 1643 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1646 "dhcp4_parser.cc"
break;
case 209:
-#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("max-row-errors", n);
}
-#line 1652 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1655 "dhcp4_parser.cc"
break;
case 210:
-#line 815 "dhcp4_parser.yy" // lalr1.cc:907
+#line 815 "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 1663 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1666 "dhcp4_parser.cc"
break;
case 211:
-#line 820 "dhcp4_parser.yy" // lalr1.cc:907
+#line 820 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1672 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1675 "dhcp4_parser.cc"
break;
case 219:
-#line 836 "dhcp4_parser.yy" // lalr1.cc:907
+#line 836 "dhcp4_parser.yy"
{
ElementPtr duid(new StringElement("duid", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(duid);
}
-#line 1681 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1684 "dhcp4_parser.cc"
break;
case 220:
-#line 841 "dhcp4_parser.yy" // lalr1.cc:907
+#line 841 "dhcp4_parser.yy"
{
ElementPtr hwaddr(new StringElement("hw-address", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(hwaddr);
}
-#line 1690 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1693 "dhcp4_parser.cc"
break;
case 221:
-#line 846 "dhcp4_parser.yy" // lalr1.cc:907
+#line 846 "dhcp4_parser.yy"
{
ElementPtr circuit(new StringElement("circuit-id", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(circuit);
}
-#line 1699 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1702 "dhcp4_parser.cc"
break;
case 222:
-#line 851 "dhcp4_parser.yy" // lalr1.cc:907
+#line 851 "dhcp4_parser.yy"
{
ElementPtr client(new StringElement("client-id", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(client);
}
-#line 1708 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1711 "dhcp4_parser.cc"
break;
case 223:
-#line 856 "dhcp4_parser.yy" // lalr1.cc:907
+#line 856 "dhcp4_parser.yy"
{
ElementPtr flex_id(new StringElement("flex-id", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(flex_id);
}
-#line 1717 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1720 "dhcp4_parser.cc"
break;
case 224:
-#line 861 "dhcp4_parser.yy" // lalr1.cc:907
+#line 861 "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 1728 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1731 "dhcp4_parser.cc"
break;
case 225:
-#line 866 "dhcp4_parser.yy" // lalr1.cc:907
+#line 866 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1737 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1740 "dhcp4_parser.cc"
break;
case 230:
-#line 879 "dhcp4_parser.yy" // lalr1.cc:907
+#line 879 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1747 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1750 "dhcp4_parser.cc"
break;
case 231:
-#line 883 "dhcp4_parser.yy" // lalr1.cc:907
+#line 883 "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 1757 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1760 "dhcp4_parser.cc"
break;
case 232:
-#line 889 "dhcp4_parser.yy" // lalr1.cc:907
+#line 889 "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 1767 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1770 "dhcp4_parser.cc"
break;
case 233:
-#line 893 "dhcp4_parser.yy" // lalr1.cc:907
+#line 893 "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 1777 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1780 "dhcp4_parser.cc"
break;
case 239:
-#line 908 "dhcp4_parser.yy" // lalr1.cc:907
+#line 908 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1785 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1788 "dhcp4_parser.cc"
break;
case 240:
-#line 910 "dhcp4_parser.yy" // lalr1.cc:907
+#line 910 "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 1795 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1798 "dhcp4_parser.cc"
break;
case 241:
-#line 916 "dhcp4_parser.yy" // lalr1.cc:907
+#line 916 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1803 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1806 "dhcp4_parser.cc"
break;
case 242:
-#line 918 "dhcp4_parser.yy" // lalr1.cc:907
+#line 918 "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 1812 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1815 "dhcp4_parser.cc"
break;
case 243:
-#line 924 "dhcp4_parser.yy" // lalr1.cc:907
+#line 924 "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 1823 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1826 "dhcp4_parser.cc"
break;
case 244:
-#line 929 "dhcp4_parser.yy" // lalr1.cc:907
+#line 929 "dhcp4_parser.yy"
{
// No expired lease parameter is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1833 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1836 "dhcp4_parser.cc"
break;
case 253:
-#line 947 "dhcp4_parser.yy" // lalr1.cc:907
+#line 947 "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 1842 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1845 "dhcp4_parser.cc"
break;
case 254:
-#line 952 "dhcp4_parser.yy" // lalr1.cc:907
+#line 952 "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 1851 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1854 "dhcp4_parser.cc"
break;
case 255:
-#line 957 "dhcp4_parser.yy" // lalr1.cc:907
+#line 957 "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 1860 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1863 "dhcp4_parser.cc"
break;
case 256:
-#line 962 "dhcp4_parser.yy" // lalr1.cc:907
+#line 962 "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 1869 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1872 "dhcp4_parser.cc"
break;
case 257:
-#line 967 "dhcp4_parser.yy" // lalr1.cc:907
+#line 967 "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 1878 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1881 "dhcp4_parser.cc"
break;
case 258:
-#line 972 "dhcp4_parser.yy" // lalr1.cc:907
+#line 972 "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 1887 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1890 "dhcp4_parser.cc"
break;
case 259:
-#line 980 "dhcp4_parser.yy" // lalr1.cc:907
+#line 980 "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 1898 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1901 "dhcp4_parser.cc"
break;
case 260:
-#line 985 "dhcp4_parser.yy" // lalr1.cc:907
+#line 985 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1907 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1910 "dhcp4_parser.cc"
break;
case 265:
-#line 1005 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1005 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1917 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1920 "dhcp4_parser.cc"
break;
case 266:
-#line 1009 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1009 "dhcp4_parser.yy"
{
// Once we reached this place, the subnet parsing is now complete.
// If we want to, we can implement default values here.
ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 1943 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1946 "dhcp4_parser.cc"
break;
case 267:
-#line 1031 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1031 "dhcp4_parser.yy"
{
// Parse the subnet4 list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1953 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1956 "dhcp4_parser.cc"
break;
case 268:
-#line 1035 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1035 "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 1963 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1966 "dhcp4_parser.cc"
break;
case 295:
-#line 1073 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1073 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1971 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1974 "dhcp4_parser.cc"
break;
case 296:
-#line 1075 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1075 "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 1981 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1984 "dhcp4_parser.cc"
break;
case 297:
-#line 1081 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1081 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1989 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1992 "dhcp4_parser.cc"
break;
case 298:
-#line 1083 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1083 "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 1999 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2002 "dhcp4_parser.cc"
break;
case 299:
-#line 1089 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1089 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2007 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2010 "dhcp4_parser.cc"
break;
case 300:
-#line 1091 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1091 "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 2017 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2020 "dhcp4_parser.cc"
break;
case 301:
-#line 1097 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1097 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2025 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2028 "dhcp4_parser.cc"
break;
case 302:
-#line 1099 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1099 "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 2035 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2038 "dhcp4_parser.cc"
break;
case 303:
-#line 1105 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1105 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2043 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2046 "dhcp4_parser.cc"
break;
case 304:
-#line 1107 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1107 "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 2053 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2056 "dhcp4_parser.cc"
break;
case 305:
-#line 1113 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1113 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2061 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2064 "dhcp4_parser.cc"
break;
case 306:
-#line 1115 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1115 "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 2071 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2074 "dhcp4_parser.cc"
break;
case 307:
-#line 1121 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1121 "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 2082 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2085 "dhcp4_parser.cc"
break;
case 308:
-#line 1126 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1126 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2091 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2094 "dhcp4_parser.cc"
break;
case 309:
-#line 1131 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1131 "dhcp4_parser.yy"
{
ctx.enter(ctx.RESERVATION_MODE);
}
-#line 2099 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2102 "dhcp4_parser.cc"
break;
case 310:
-#line 1133 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1133 "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 2108 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2111 "dhcp4_parser.cc"
break;
case 311:
-#line 1138 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); }
-#line 2114 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1138 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); }
+#line 2117 "dhcp4_parser.cc"
break;
case 312:
-#line 1139 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); }
-#line 2120 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1139 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); }
+#line 2123 "dhcp4_parser.cc"
break;
case 313:
-#line 1140 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); }
-#line 2126 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1140 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); }
+#line 2129 "dhcp4_parser.cc"
break;
case 314:
-#line 1141 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); }
-#line 2132 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1141 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); }
+#line 2135 "dhcp4_parser.cc"
break;
case 315:
-#line 1144 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1144 "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 2141 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2144 "dhcp4_parser.cc"
break;
case 316:
-#line 1151 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1151 "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 2152 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2155 "dhcp4_parser.cc"
break;
case 317:
-#line 1156 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1156 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2161 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2164 "dhcp4_parser.cc"
break;
case 322:
-#line 1171 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1171 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2171 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2174 "dhcp4_parser.cc"
break;
case 323:
-#line 1175 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1175 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 2179 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2182 "dhcp4_parser.cc"
break;
case 345:
-#line 1208 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1208 "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 2190 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2193 "dhcp4_parser.cc"
break;
case 346:
-#line 1213 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1213 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2199 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2202 "dhcp4_parser.cc"
break;
case 347:
-#line 1221 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1221 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2208 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2211 "dhcp4_parser.cc"
break;
case 348:
-#line 1224 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1224 "dhcp4_parser.yy"
{
// parsing completed
}
-#line 2216 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2219 "dhcp4_parser.cc"
break;
case 353:
-#line 1240 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1240 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2226 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2229 "dhcp4_parser.cc"
break;
case 354:
-#line 1244 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1244 "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));
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 2238 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2241 "dhcp4_parser.cc"
break;
case 355:
-#line 1255 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1255 "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 2248 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2251 "dhcp4_parser.cc"
break;
case 356:
-#line 1259 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1259 "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));
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2260 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2263 "dhcp4_parser.cc"
break;
case 372:
-#line 1291 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1291 "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 2269 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2272 "dhcp4_parser.cc"
break;
case 374:
-#line 1298 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1298 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2277 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2280 "dhcp4_parser.cc"
break;
case 375:
-#line 1300 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1300 "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 2287 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2290 "dhcp4_parser.cc"
break;
case 376:
-#line 1306 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1306 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2295 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2298 "dhcp4_parser.cc"
break;
case 377:
-#line 1308 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1308 "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 2305 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2308 "dhcp4_parser.cc"
break;
case 378:
-#line 1314 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1314 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2313 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2316 "dhcp4_parser.cc"
break;
case 379:
-#line 1316 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1316 "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 2323 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2326 "dhcp4_parser.cc"
break;
case 381:
-#line 1324 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1324 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2331 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2334 "dhcp4_parser.cc"
break;
case 382:
-#line 1326 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1326 "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 2341 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2344 "dhcp4_parser.cc"
break;
case 383:
-#line 1332 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1332 "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 2350 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2353 "dhcp4_parser.cc"
break;
case 384:
-#line 1341 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1341 "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 2361 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2364 "dhcp4_parser.cc"
break;
case 385:
-#line 1346 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1346 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2370 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2373 "dhcp4_parser.cc"
break;
case 390:
-#line 1365 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1365 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2380 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2383 "dhcp4_parser.cc"
break;
case 391:
-#line 1369 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1369 "dhcp4_parser.yy"
{
/// @todo: the code or name parameters are required.
ctx.stack_.pop_back();
}
-#line 2389 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2392 "dhcp4_parser.cc"
break;
case 392:
-#line 1377 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1377 "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 2399 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2402 "dhcp4_parser.cc"
break;
case 393:
-#line 1381 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1381 "dhcp4_parser.yy"
{
/// @todo: the code or name parameters are required.
// parsing completed
}
-#line 2408 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2411 "dhcp4_parser.cc"
break;
case 408:
-#line 1414 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1414 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2416 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2419 "dhcp4_parser.cc"
break;
case 409:
-#line 1416 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1416 "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 2426 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2429 "dhcp4_parser.cc"
break;
case 412:
-#line 1426 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1426 "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 2435 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2438 "dhcp4_parser.cc"
break;
case 413:
-#line 1431 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1431 "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 2444 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2447 "dhcp4_parser.cc"
break;
case 414:
-#line 1439 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1439 "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 2455 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2458 "dhcp4_parser.cc"
break;
case 415:
-#line 1444 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1444 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2464 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2467 "dhcp4_parser.cc"
break;
case 420:
-#line 1459 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1459 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2474 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2477 "dhcp4_parser.cc"
break;
case 421:
-#line 1463 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1463 "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 2484 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2487 "dhcp4_parser.cc"
break;
case 422:
-#line 1469 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1469 "dhcp4_parser.yy"
{
// Parse the pool list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2494 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2497 "dhcp4_parser.cc"
break;
case 423:
-#line 1473 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1473 "dhcp4_parser.yy"
{
// The pool parameter is required.
ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2504 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2507 "dhcp4_parser.cc"
break;
case 433:
-#line 1492 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1492 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2512 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2515 "dhcp4_parser.cc"
break;
case 434:
-#line 1494 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1494 "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 2522 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2525 "dhcp4_parser.cc"
break;
case 435:
-#line 1500 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1500 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2530 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2533 "dhcp4_parser.cc"
break;
case 436:
-#line 1502 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1502 "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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 2557 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2560 "dhcp4_parser.cc"
break;
case 437:
-#line 1525 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1525 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2565 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2568 "dhcp4_parser.cc"
break;
case 438:
-#line 1527 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1527 "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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 2594 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2597 "dhcp4_parser.cc"
break;
case 439:
-#line 1555 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1555 "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 2605 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2608 "dhcp4_parser.cc"
break;
case 440:
-#line 1560 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1560 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2614 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2617 "dhcp4_parser.cc"
break;
case 445:
-#line 1573 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1573 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2624 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2627 "dhcp4_parser.cc"
break;
case 446:
-#line 1577 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1577 "dhcp4_parser.yy"
{
/// @todo: an identifier parameter is required.
ctx.stack_.pop_back();
}
-#line 2633 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2636 "dhcp4_parser.cc"
break;
case 447:
-#line 1582 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1582 "dhcp4_parser.yy"
{
// Parse the reservations list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2643 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2646 "dhcp4_parser.cc"
break;
case 448:
-#line 1586 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1586 "dhcp4_parser.yy"
{
/// @todo: an identifier parameter is required.
// parsing completed
}
-#line 2652 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2655 "dhcp4_parser.cc"
break;
case 468:
-#line 1617 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1617 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2660 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2663 "dhcp4_parser.cc"
break;
case 469:
-#line 1619 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1619 "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 2670 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2673 "dhcp4_parser.cc"
break;
case 470:
-#line 1625 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1625 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2678 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2681 "dhcp4_parser.cc"
break;
case 471:
-#line 1627 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1627 "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 2688 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2691 "dhcp4_parser.cc"
break;
case 472:
-#line 1633 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1633 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2696 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2699 "dhcp4_parser.cc"
break;
case 473:
-#line 1635 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1635 "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 2706 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2709 "dhcp4_parser.cc"
break;
case 474:
-#line 1641 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1641 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2714 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2717 "dhcp4_parser.cc"
break;
case 475:
-#line 1643 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1643 "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 2724 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2727 "dhcp4_parser.cc"
break;
case 476:
-#line 1649 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1649 "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 2735 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2738 "dhcp4_parser.cc"
break;
case 477:
-#line 1654 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1654 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2744 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2747 "dhcp4_parser.cc"
break;
case 478:
-#line 1659 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1659 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2752 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2755 "dhcp4_parser.cc"
break;
case 479:
-#line 1661 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1661 "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 2762 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2765 "dhcp4_parser.cc"
break;
case 480:
-#line 1667 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1667 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2770 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2773 "dhcp4_parser.cc"
break;
case 481:
-#line 1669 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1669 "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 2780 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2783 "dhcp4_parser.cc"
break;
case 482:
-#line 1675 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1675 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2788 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2791 "dhcp4_parser.cc"
break;
case 483:
-#line 1677 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1677 "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 2798 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2801 "dhcp4_parser.cc"
break;
case 484:
-#line 1683 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1683 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2806 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2809 "dhcp4_parser.cc"
break;
case 485:
-#line 1685 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1685 "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 2816 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2819 "dhcp4_parser.cc"
break;
case 486:
-#line 1691 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1691 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2824 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2827 "dhcp4_parser.cc"
break;
case 487:
-#line 1693 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1693 "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 2834 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2837 "dhcp4_parser.cc"
break;
case 488:
-#line 1699 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1699 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2842 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2845 "dhcp4_parser.cc"
break;
case 489:
-#line 1701 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1701 "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 2852 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2855 "dhcp4_parser.cc"
break;
case 490:
-#line 1707 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1707 "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 2863 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2866 "dhcp4_parser.cc"
break;
case 491:
-#line 1712 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1712 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2872 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2875 "dhcp4_parser.cc"
break;
case 492:
-#line 1720 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1720 "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 2883 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2886 "dhcp4_parser.cc"
break;
case 493:
-#line 1725 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1725 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2892 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2895 "dhcp4_parser.cc"
break;
case 496:
-#line 1737 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1737 "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 2903 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2906 "dhcp4_parser.cc"
break;
case 497:
-#line 1742 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1742 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2912 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2915 "dhcp4_parser.cc"
break;
case 500:
-#line 1751 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1751 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2922 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2925 "dhcp4_parser.cc"
break;
case 501:
-#line 1755 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1755 "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 2932 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2935 "dhcp4_parser.cc"
break;
case 518:
-#line 1784 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1784 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2940 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2943 "dhcp4_parser.cc"
break;
case 519:
-#line 1786 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1786 "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 2950 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2953 "dhcp4_parser.cc"
break;
case 520:
-#line 1792 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1792 "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 2959 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2962 "dhcp4_parser.cc"
break;
case 521:
-#line 1801 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1801 "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 2968 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2971 "dhcp4_parser.cc"
break;
case 522:
-#line 1808 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1808 "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 2979 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2982 "dhcp4_parser.cc"
break;
case 523:
-#line 1813 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1813 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2988 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2991 "dhcp4_parser.cc"
break;
case 531:
-#line 1829 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1829 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2996 "dhcp4_parser.cc" // lalr1.cc:907
+#line 2999 "dhcp4_parser.cc"
break;
case 532:
-#line 1831 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1831 "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 3006 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3009 "dhcp4_parser.cc"
break;
case 533:
-#line 1837 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1837 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3014 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3017 "dhcp4_parser.cc"
break;
case 534:
-#line 1839 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1839 "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 3024 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3027 "dhcp4_parser.cc"
break;
case 535:
-#line 1848 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1848 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3032 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3035 "dhcp4_parser.cc"
break;
case 536:
-#line 1850 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1850 "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
ctx.leave();
}
-#line 3070 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3073 "dhcp4_parser.cc"
break;
case 537:
-#line 1886 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1886 "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 3081 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3084 "dhcp4_parser.cc"
break;
case 538:
-#line 1891 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1891 "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 3092 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3095 "dhcp4_parser.cc"
break;
case 539:
-#line 1898 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1898 "dhcp4_parser.yy"
{
// Parse the dhcp-ddns map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3102 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3105 "dhcp4_parser.cc"
break;
case 540:
-#line 1902 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1902 "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 3112 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3115 "dhcp4_parser.cc"
break;
case 561:
-#line 1932 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1932 "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 3121 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3124 "dhcp4_parser.cc"
break;
case 562:
-#line 1937 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1937 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3129 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3132 "dhcp4_parser.cc"
break;
case 563:
-#line 1939 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1939 "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 3139 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3142 "dhcp4_parser.cc"
break;
case 564:
-#line 1945 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1945 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3147 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3150 "dhcp4_parser.cc"
break;
case 565:
-#line 1947 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1947 "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 3157 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3160 "dhcp4_parser.cc"
break;
case 566:
-#line 1953 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1953 "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 3166 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3169 "dhcp4_parser.cc"
break;
case 567:
-#line 1958 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1958 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3174 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3177 "dhcp4_parser.cc"
break;
case 568:
-#line 1960 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1960 "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 3184 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3187 "dhcp4_parser.cc"
break;
case 569:
-#line 1966 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1966 "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 3193 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3196 "dhcp4_parser.cc"
break;
case 570:
-#line 1971 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1971 "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 3202 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3205 "dhcp4_parser.cc"
break;
case 571:
-#line 1976 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1976 "dhcp4_parser.yy"
{
ctx.enter(ctx.NCR_PROTOCOL);
}
-#line 3210 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3213 "dhcp4_parser.cc"
break;
case 572:
-#line 1978 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1978 "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 3219 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3222 "dhcp4_parser.cc"
break;
case 573:
-#line 1984 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); }
-#line 3225 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1984 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); }
+#line 3228 "dhcp4_parser.cc"
break;
case 574:
-#line 1985 "dhcp4_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); }
-#line 3231 "dhcp4_parser.cc" // lalr1.cc:907
+#line 1985 "dhcp4_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); }
+#line 3234 "dhcp4_parser.cc"
break;
case 575:
-#line 1988 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1988 "dhcp4_parser.yy"
{
ctx.enter(ctx.NCR_FORMAT);
}
-#line 3239 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3242 "dhcp4_parser.cc"
break;
case 576:
-#line 1990 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1990 "dhcp4_parser.yy"
{
ElementPtr json(new StringElement("JSON", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ncr-format", json);
ctx.leave();
}
-#line 3249 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3252 "dhcp4_parser.cc"
break;
case 577:
-#line 1996 "dhcp4_parser.yy" // lalr1.cc:907
+#line 1996 "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 3258 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3261 "dhcp4_parser.cc"
break;
case 578:
-#line 2001 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2001 "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 3267 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3270 "dhcp4_parser.cc"
break;
case 579:
-#line 2006 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2006 "dhcp4_parser.yy"
{
ctx.enter(ctx.REPLACE_CLIENT_NAME);
}
-#line 3275 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3278 "dhcp4_parser.cc"
break;
case 580:
-#line 2008 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2008 "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 3284 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3287 "dhcp4_parser.cc"
break;
case 581:
-#line 2014 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2014 "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 3292 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3295 "dhcp4_parser.cc"
break;
case 582:
-#line 2017 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2017 "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 3300 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3303 "dhcp4_parser.cc"
break;
case 583:
-#line 2020 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2020 "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 3308 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3311 "dhcp4_parser.cc"
break;
case 584:
-#line 2023 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2023 "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 3316 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3319 "dhcp4_parser.cc"
break;
case 585:
-#line 2026 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2026 "dhcp4_parser.yy"
{
error(yystack_[0].location, "boolean values for the replace-client-name are "
"no longer supported");
}
-#line 3325 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3328 "dhcp4_parser.cc"
break;
case 586:
-#line 2032 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2032 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3333 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3336 "dhcp4_parser.cc"
break;
case 587:
-#line 2034 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2034 "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 3343 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3346 "dhcp4_parser.cc"
break;
case 588:
-#line 2040 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2040 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3351 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3354 "dhcp4_parser.cc"
break;
case 589:
-#line 2042 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2042 "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 3361 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3364 "dhcp4_parser.cc"
break;
case 590:
-#line 2048 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2048 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3369 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3372 "dhcp4_parser.cc"
break;
case 591:
-#line 2050 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2050 "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 3379 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3382 "dhcp4_parser.cc"
break;
case 592:
-#line 2059 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2059 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3387 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3390 "dhcp4_parser.cc"
break;
case 593:
-#line 2061 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2061 "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 3396 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3399 "dhcp4_parser.cc"
break;
case 594:
-#line 2066 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2066 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3404 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3407 "dhcp4_parser.cc"
break;
case 595:
-#line 2068 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2068 "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 3413 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3416 "dhcp4_parser.cc"
break;
case 596:
-#line 2073 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2073 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3421 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3424 "dhcp4_parser.cc"
break;
case 597:
-#line 2075 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2075 "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 3430 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3433 "dhcp4_parser.cc"
break;
case 598:
-#line 2080 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2080 "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 3441 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3444 "dhcp4_parser.cc"
break;
case 599:
-#line 2085 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2085 "dhcp4_parser.yy"
{
// No config control params are required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3451 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3454 "dhcp4_parser.cc"
break;
case 600:
-#line 2091 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2091 "dhcp4_parser.yy"
{
// Parse the config-control map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3461 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3464 "dhcp4_parser.cc"
break;
case 601:
-#line 2095 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2095 "dhcp4_parser.yy"
{
// No config_control params are required
// parsing completed
}
-#line 3470 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3473 "dhcp4_parser.cc"
break;
case 605:
-#line 2109 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2109 "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 3481 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3484 "dhcp4_parser.cc"
break;
case 606:
-#line 2114 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2114 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3490 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3493 "dhcp4_parser.cc"
break;
case 607:
-#line 2124 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2124 "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 3501 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3504 "dhcp4_parser.cc"
break;
case 608:
-#line 2129 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2129 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3510 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3513 "dhcp4_parser.cc"
break;
case 609:
-#line 2134 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2134 "dhcp4_parser.yy"
{
// Parse the Logging map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3520 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3523 "dhcp4_parser.cc"
break;
case 610:
-#line 2138 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2138 "dhcp4_parser.yy"
{
// parsing completed
}
-#line 3528 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3531 "dhcp4_parser.cc"
break;
case 614:
-#line 2154 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2154 "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 3539 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3542 "dhcp4_parser.cc"
break;
case 615:
-#line 2159 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2159 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3548 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3551 "dhcp4_parser.cc"
break;
case 618:
-#line 2171 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2171 "dhcp4_parser.yy"
{
ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(l);
ctx.stack_.push_back(l);
}
-#line 3558 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3561 "dhcp4_parser.cc"
break;
case 619:
-#line 2175 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2175 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 3566 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3569 "dhcp4_parser.cc"
break;
case 629:
-#line 2192 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2192 "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 3575 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3578 "dhcp4_parser.cc"
break;
case 630:
-#line 2197 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2197 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3583 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3586 "dhcp4_parser.cc"
break;
case 631:
-#line 2199 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2199 "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 3593 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3596 "dhcp4_parser.cc"
break;
case 632:
-#line 2205 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2205 "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 3604 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3607 "dhcp4_parser.cc"
break;
case 633:
-#line 2210 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2210 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3613 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3616 "dhcp4_parser.cc"
break;
case 636:
-#line 2219 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2219 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3623 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3626 "dhcp4_parser.cc"
break;
case 637:
-#line 2223 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2223 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 3631 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3634 "dhcp4_parser.cc"
break;
case 644:
-#line 2237 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2237 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3639 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3642 "dhcp4_parser.cc"
break;
case 645:
-#line 2239 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2239 "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 3649 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3652 "dhcp4_parser.cc"
break;
case 646:
-#line 2245 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2245 "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 3658 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3661 "dhcp4_parser.cc"
break;
case 647:
-#line 2250 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2250 "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 3667 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3670 "dhcp4_parser.cc"
break;
case 648:
-#line 2255 "dhcp4_parser.yy" // lalr1.cc:907
+#line 2255 "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 3676 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3679 "dhcp4_parser.cc"
break;
-#line 3680 "dhcp4_parser.cc" // lalr1.cc:907
+#line 3683 "dhcp4_parser.cc"
+
default:
break;
}
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
YYERROR;
}
}
goto yynewstate;
+
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
| 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. |
`-------------------------------------------------------------*/
}
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);
#endif // PARSER4_DEBUG
-#line 14 "dhcp4_parser.yy" // lalr1.cc:1218
+#line 14 "dhcp4_parser.yy"
} } // isc::dhcp
-#line 4959 "dhcp4_parser.cc" // lalr1.cc:1218
-#line 2260 "dhcp4_parser.yy" // lalr1.cc:1219
+#line 4975 "dhcp4_parser.cc"
+
+#line 2260 "dhcp4_parser.yy"
void
-// 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
#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 <string>
#include <cc/data.h>
using namespace isc::data;
using namespace std;
-#line 60 "dhcp4_parser.h" // lalr1.cc:404
+#line 60 "dhcp4_parser.h"
# include <cassert>
# include <cstdlib> // std::abort
# include <string>
# include <vector>
+#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&&
# 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 <typeinfo>
#ifndef YYASSERT
# 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 <typename T, typename S = std::vector<T> >
- class stack
- {
- public:
- // Hide our reversed order.
- typedef typename S::reverse_iterator iterator;
- typedef typename S::const_reverse_iterator const_iterator;
- 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 <typename T, typename S = stack<T> >
- 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 <size_t S>
- struct variant
+ /// via the current parser state.
+ class semantic_type
{
+ public:
/// Type of *this.
- typedef variant<S> self_type;
+ typedef semantic_type self_type;
/// Empty construction.
- variant ()
+ semantic_type () YY_NOEXCEPT
: yybuffer_ ()
, yytypeid_ (YY_NULLPTR)
{}
/// Construct and fill.
template <typename T>
- 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> ()) T (YY_MOVE (t));
}
/// Destruction, allowed only if empty.
- ~variant ()
+ ~semantic_type () YY_NOEXCEPT
{
YYASSERT (!yytypeid_);
}
- /// Instantiate an empty \a T in here.
- template <typename T>
+# if 201103L <= YY_CPLUSPLUS
+ /// Instantiate a \a T in here from \a t.
+ template <typename T, typename... U>
T&
- emplace ()
+ emplace (U&&... u)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T ();
+ return *new (yyas_<T> ()) T (std::forward <U>(u)...);
}
-
-# if defined __cplusplus && 201103L <= __cplusplus
- /// Instantiate a \a T in here from \a t.
- template <typename T, typename U>
+# else
+ /// Instantiate an empty \a T in here.
+ template <typename T>
T&
- emplace (U&& u)
+ emplace ()
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T (std::forward <U>(u));
+ return *new (yyas_<T> ()) T ();
}
-# else
+
/// Instantiate a \a T in here from \a t.
template <typename T>
T&
emplace (const T& t)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_<T> ()) T (t);
}
/// Accessor to a built \a T.
template <typename T>
T&
- as ()
+ as () YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
/// Const accessor to a built \a T (for %printer).
template <typename T>
const T&
- as () const
+ as () const YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
- /// 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 <typename T>
void
- swap (self_type& other)
+ swap (self_type& that) YY_NOEXCEPT
{
YYASSERT (yytypeid_);
- YYASSERT (*yytypeid_ == *other.yytypeid_);
- std::swap (as<T> (), other.as<T> ());
+ YYASSERT (*yytypeid_ == *that.yytypeid_);
+ std::swap (as<T> (), that.as<T> ());
}
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
///
- /// Destroys \a other.
+ /// Destroys \a that.
template <typename T>
void
- move (self_type& other)
+ move (self_type& that)
{
-# if defined __cplusplus && 201103L <= __cplusplus
- emplace<T> (std::move (other.as<T> ()));
+# if 201103L <= YY_CPLUSPLUS
+ emplace<T> (std::move (that.as<T> ()));
# else
emplace<T> ();
- swap<T> (other);
+ swap<T> (that);
# endif
- other.destroy<T> ();
+ that.destroy<T> ();
}
-# 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 <typename T>
void
- move (self_type&& other)
+ move (self_type&& that)
{
- emplace<T> (std::move (other.as<T> ()));
- other.destroy<T> ();
+ emplace<T> (std::move (that.as<T> ()));
+ that.destroy<T> ();
}
#endif
- /// Copy the content of \a other to this.
+ /// Copy the content of \a that to this.
template <typename T>
void
- copy (const self_type& other)
+ copy (const self_type& that)
{
- emplace<T> (other.as<T> ());
+ emplace<T> (that.as<T> ());
}
/// Destroy the stored \a T.
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 <typename T>
T*
- yyas_ ()
+ yyas_ () YY_NOEXCEPT
{
void *yyp = yybuffer_.yyraw;
return static_cast<T*> (yyp);
/// Const accessor to raw memory as \a T.
template <typename T>
const T*
- yyas_ () const
+ yyas_ () const YY_NOEXCEPT
{
const void *yyp = yybuffer_.yyraw;
return static_cast<const T*> (yyp);
}
- union
- {
- /// Strongest alignment constraints.
- long double yyalign_me;
- /// A buffer large enough to store any of the semantic values.
- char yyraw[S];
- } yybuffer_;
-
- /// Whether the content is built: if defined, the name of the stored type.
- const std::type_info *yytypeid_;
- };
-
-
- /// A Bison parser.
- class Dhcp4Parser
- {
- public:
-#ifndef PARSER4_STYPE
/// An auxiliary type to compute the largest semantic type.
union union_type
{
// "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<sizeof (union_type)> semantic_type;
#else
typedef PARSER4_STYPE semantic_type;
#endif
/// 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;
};
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<Base>& yysym = *this;
+ (void) yysym;
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+
+ // Type destructor.
+switch (yytype)
+ {
+ case 186: // value
+ case 190: // map_value
+ case 231: // socket_type
+ case 234: // outbound_interface_value
+ case 256: // db_type
+ case 339: // hr_mode
+ case 488: // ncr_protocol_value
+ case 495: // replace_client_name_value
+ value.template destroy< ElementPtr > ();
+ break;
+
+ case 169: // "boolean"
+ value.template destroy< bool > ();
+ break;
+
+ case 168: // "floating point"
+ value.template destroy< double > ();
+ break;
+
+ case 167: // "integer"
+ value.template destroy< int64_t > ();
+ break;
+
+ case 166: // "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);
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
};
/// 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;
/// 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.
};
/// "External" symbols: returned by the scanner.
- typedef basic_symbol<by_type> symbol_type;
+ struct symbol_type : basic_symbol<by_type>
+ {
+ /// Superclass.
+ typedef basic_symbol<by_type> 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_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_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_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_SUBNET4 || tok == token::TOKEN_SUBNET_4O6_INTERFACE || tok == token::TOKEN_SUBNET_4O6_INTERFACE_ID || tok == token::TOKEN_SUBNET_4O6_SUBNET || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_ID || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_CIRCUIT_ID || tok == token::TOKEN_CLIENT_ID || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP4 || tok == token::TOKEN_SUB_DHCP4 || tok == token::TOKEN_SUB_INTERFACES4 || tok == token::TOKEN_SUB_SUBNET4 || tok == token::TOKEN_SUB_POOL4 || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_LOGGING || tok == token::TOKEN_SUB_CONFIG_CONTROL);
+ }
+#else
+ symbol_type (int tok, const location_type& l)
+ : super_type(token_type (tok), l)
+ {
+ YYASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP4 || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_DHCP_SOCKET_TYPE || tok == token::TOKEN_RAW || tok == token::TOKEN_UDP || tok == token::TOKEN_OUTBOUND_INTERFACE || tok == token::TOKEN_SAME_AS_INBOUND || tok == token::TOKEN_USE_ROUTING || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_ECHO_CLIENT_ID || tok == token::TOKEN_MATCH_CLIENT_ID || tok == token::TOKEN_AUTHORITATIVE || tok == token::TOKEN_NEXT_SERVER || tok == token::TOKEN_SERVER_HOSTNAME || tok == token::TOKEN_BOOT_FILE_NAME || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_CQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_CONTACT_POINTS || tok == token::TOKEN_KEYSPACE || tok == token::TOKEN_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_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_SUBNET4 || tok == token::TOKEN_SUBNET_4O6_INTERFACE || tok == token::TOKEN_SUBNET_4O6_INTERFACE_ID || tok == token::TOKEN_SUBNET_4O6_SUBNET || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_ID || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_CIRCUIT_ID || tok == token::TOKEN_CLIENT_ID || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP4 || tok == token::TOKEN_SUB_DHCP4 || tok == token::TOKEN_SUB_INTERFACES4 || tok == token::TOKEN_SUB_SUBNET4 || tok == token::TOKEN_SUB_POOL4 || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_LOGGING || tok == token::TOKEN_SUB_CONFIG_CONTROL);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ symbol_type (int tok, bool v, location_type l)
+ : super_type(token_type (tok), std::move (v), std::move (l))
+ {
+ YYASSERT (tok == token::TOKEN_BOOLEAN);
+ }
+#else
+ symbol_type (int tok, const bool& v, const location_type& l)
+ : super_type(token_type (tok), v, l)
+ {
+ YYASSERT (tok == token::TOKEN_BOOLEAN);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ symbol_type (int tok, double v, location_type l)
+ : super_type(token_type (tok), std::move (v), std::move (l))
+ {
+ YYASSERT (tok == token::TOKEN_FLOAT);
+ }
+#else
+ symbol_type (int tok, const double& v, const location_type& l)
+ : super_type(token_type (tok), v, l)
+ {
+ YYASSERT (tok == token::TOKEN_FLOAT);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ symbol_type (int tok, int64_t v, location_type l)
+ : super_type(token_type (tok), std::move (v), std::move (l))
+ {
+ YYASSERT (tok == token::TOKEN_INTEGER);
+ }
+#else
+ symbol_type (int tok, const int64_t& v, const location_type& l)
+ : super_type(token_type (tok), v, l)
+ {
+ YYASSERT (tok == token::TOKEN_INTEGER);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ symbol_type (int tok, std::string v, location_type l)
+ : super_type(token_type (tok), std::move (v), std::move (l))
+ {
+ YYASSERT (tok == token::TOKEN_STRING);
+ }
+#else
+ symbol_type (int tok, const std::string& v, const location_type& l)
+ : super_type(token_type (tok), v, l)
+ {
+ YYASSERT (tok == token::TOKEN_STRING);
+ }
+#endif
+ };
/// Build a parser object.
Dhcp4Parser (isc::dhcp::Parser4Context& ctx_yyarg);
/// 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_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_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_RENEW_TIMER (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_REBIND_TIMER (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_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 <typename Base>
- void yy_print_ (std::ostream& yyo, const basic_symbol<Base>& yysym) const;
-#endif
-
- /// \brief Reclaim the memory associated to a symbol.
- /// \param yymsg Why this token is reclaimed.
- /// If null, print nothing.
- /// \param yysym The symbol.
- template <typename Base>
- void yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const;
-
- private:
- /// Type access provider for state based symbols.
- struct by_state
- {
- /// Default constructor.
- by_state ();
-
- /// The symbol type as needed by the constructor.
- typedef state_type kind_type;
-
- /// Constructor.
- by_state (kind_type s);
-
- /// Copy constructor.
- by_state (const by_state& other);
-
- /// Record that this symbol is empty.
- void clear ();
-
- /// Steal the symbol type from \a that.
- void move (by_state& that);
-
- /// The (internal) type number (corresponding to \a state).
- /// \a empty_symbol when empty.
- symbol_number_type type_get () const;
-
- /// The state number used to denote an empty symbol.
- enum { empty_state = -1 };
-
- /// The state.
- /// \a empty when empty.
- state_type state;
- };
-
- /// "Internal" symbol: element of the stack.
- struct stack_symbol_type : basic_symbol<by_state>
- {
- /// Superclass.
- typedef basic_symbol<by_state> super_type;
- /// Construct an empty symbol.
- stack_symbol_type ();
- /// 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_symbol_type> stack_type;
-
- /// The stack.
- stack_type yystack_;
-
- /// Push a new state on the stack.
- /// \param m a debug message to display
- /// if null, no trace is output.
- /// \param 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_ = 1004, ///< Last index in yytable_.
- yynnts_ = 374, ///< Number of nonterminal symbols.
- yyfinal_ = 30, ///< Termination state number.
- yyterror_ = 1,
- yyerrcode_ = 256,
- yyntokens_ = 170 ///< 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
- };
- const unsigned user_token_number_max_ = 424;
- const token_number_type undef_token_ = 2;
-
- if (static_cast<int> (t) <= yyeof_)
- return yyeof_;
- else if (static_cast<unsigned> (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 <typename Base>
- Dhcp4Parser::basic_symbol<Base>::basic_symbol ()
- : value ()
- , location ()
- {}
-
- template <typename Base>
- Dhcp4Parser::basic_symbol<Base>::basic_symbol (YY_RVREF (basic_symbol) other)
- : Base (YY_MOVE (other))
- , value ()
- , location (YY_MOVE (other.location))
- {
- switch (other.type_get ())
- {
- case 186: // value
- case 190: // map_value
- case 231: // socket_type
- case 234: // outbound_interface_value
- case 256: // db_type
- case 339: // hr_mode
- case 488: // ncr_protocol_value
- case 495: // replace_client_name_value
- value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (other.value));
- break;
-
- case 169: // "boolean"
- value.YY_MOVE_OR_COPY< bool > (YY_MOVE (other.value));
- break;
-
- case 168: // "floating point"
- value.YY_MOVE_OR_COPY< double > (YY_MOVE (other.value));
- break;
-
- case 167: // "integer"
- value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (other.value));
- break;
-
- case 166: // "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 <typename Base>
- Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l)
- : Base (t)
- , location (YY_MOVE (l))
- {}
-
- template <typename Base>
- Dhcp4Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp4Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp4Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp4Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp4Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp4Parser::basic_symbol<Base>::~basic_symbol ()
- {
- clear ();
- }
-
- template <typename Base>
- void
- Dhcp4Parser::basic_symbol<Base>::clear ()
- {
- // User destructor.
- symbol_number_type yytype = this->type_get ();
- basic_symbol<Base>& yysym = *this;
- (void) yysym;
- switch (yytype)
- {
- default:
- break;
- }
-
- // Type destructor.
- switch (yytype)
- {
- case 186: // value
- case 190: // map_value
- case 231: // socket_type
- case 234: // outbound_interface_value
- case 256: // db_type
- case 339: // hr_mode
- case 488: // ncr_protocol_value
- case 495: // replace_client_name_value
- value.template destroy< ElementPtr > ();
- break;
-
- case 169: // "boolean"
- value.template destroy< bool > ();
- break;
-
- case 168: // "floating point"
- value.template destroy< double > ();
- break;
-
- case 167: // "integer"
- value.template destroy< int64_t > ();
- break;
-
- case 166: // "constant string"
- value.template destroy< std::string > ();
- break;
-
- default:
- break;
- }
-
- Base::clear ();
- }
-
- template <typename Base>
- bool
- Dhcp4Parser::basic_symbol<Base>::empty () const
- {
- return Base::type_get () == empty_symbol;
- }
-
- template <typename Base>
- void
- Dhcp4Parser::basic_symbol<Base>::move (basic_symbol& s)
- {
- super_type::move (s);
- switch (this->type_get ())
- {
- case 186: // value
- case 190: // map_value
- case 231: // socket_type
- case 234: // outbound_interface_value
- case 256: // db_type
- case 339: // hr_mode
- case 488: // ncr_protocol_value
- case 495: // replace_client_name_value
- value.move< ElementPtr > (YY_MOVE (s.value));
- break;
-
- case 169: // "boolean"
- value.move< bool > (YY_MOVE (s.value));
- break;
-
- case 168: // "floating point"
- value.move< double > (YY_MOVE (s.value));
- break;
-
- case 167: // "integer"
- value.move< int64_t > (YY_MOVE (s.value));
- break;
-
- case 166: // "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
- };
- return static_cast<token_type> (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_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_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_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_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));
- }
-
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_ALL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ALL, 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_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_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_RENEW_TIMER (location_type l)
+ {
+ return symbol_type (token::TOKEN_RENEW_TIMER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RENEW_TIMER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RENEW_TIMER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_REBIND_TIMER (location_type l)
+ {
+ return symbol_type (token::TOKEN_REBIND_TIMER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_REBIND_TIMER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_REBIND_TIMER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DECLINE_PROBATION_PERIOD (location_type l)
+ {
+ return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DECLINE_PROBATION_PERIOD (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SERVER_TAG (location_type l)
+ {
+ return symbol_type (token::TOKEN_SERVER_TAG, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SERVER_TAG (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SERVER_TAG, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUBNET4 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUBNET4, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUBNET4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBNET4, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUBNET_4O6_INTERFACE (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUBNET_4O6_INTERFACE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUBNET_4O6_INTERFACE_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUBNET_4O6_INTERFACE_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBNET_4O6_INTERFACE_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUBNET_4O6_SUBNET (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUBNET_4O6_SUBNET, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUBNET_4O6_SUBNET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBNET_4O6_SUBNET, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OPTION_DEF (location_type l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DEF, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OPTION_DEF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DEF, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OPTION_DATA (location_type l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DATA, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OPTION_DATA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DATA, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_NAME (location_type l)
+ {
+ return symbol_type (token::TOKEN_NAME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NAME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DATA (location_type l)
+ {
+ return symbol_type (token::TOKEN_DATA, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DATA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DATA, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CODE (location_type l)
+ {
+ return symbol_type (token::TOKEN_CODE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CODE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CODE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SPACE (location_type l)
+ {
+ return symbol_type (token::TOKEN_SPACE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SPACE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SPACE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CSV_FORMAT (location_type l)
+ {
+ return symbol_type (token::TOKEN_CSV_FORMAT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CSV_FORMAT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CSV_FORMAT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ALWAYS_SEND (location_type l)
+ {
+ return symbol_type (token::TOKEN_ALWAYS_SEND, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ALWAYS_SEND (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ALWAYS_SEND, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RECORD_TYPES (location_type l)
+ {
+ return symbol_type (token::TOKEN_RECORD_TYPES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RECORD_TYPES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RECORD_TYPES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ENCAPSULATE (location_type l)
+ {
+ return symbol_type (token::TOKEN_ENCAPSULATE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ENCAPSULATE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ENCAPSULATE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ARRAY (location_type l)
+ {
+ return symbol_type (token::TOKEN_ARRAY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ARRAY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ARRAY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SHARED_NETWORKS (location_type l)
+ {
+ return symbol_type (token::TOKEN_SHARED_NETWORKS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SHARED_NETWORKS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SHARED_NETWORKS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_POOLS (location_type l)
+ {
+ return symbol_type (token::TOKEN_POOLS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_POOLS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_POOLS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_POOL (location_type l)
+ {
+ return symbol_type (token::TOKEN_POOL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_POOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_POOL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_USER_CONTEXT (location_type l)
+ {
+ return symbol_type (token::TOKEN_USER_CONTEXT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_USER_CONTEXT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_USER_CONTEXT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_COMMENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_COMMENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_COMMENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_COMMENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUBNET (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUBNET, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUBNET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBNET, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_INTERFACE (location_type l)
+ {
+ return symbol_type (token::TOKEN_INTERFACE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_INTERFACE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTERFACE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RESERVATION_MODE (location_type l)
+ {
+ return symbol_type (token::TOKEN_RESERVATION_MODE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RESERVATION_MODE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RESERVATION_MODE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DISABLED (location_type l)
+ {
+ return symbol_type (token::TOKEN_DISABLED, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DISABLED (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DISABLED, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OUT_OF_POOL (location_type l)
+ {
+ return symbol_type (token::TOKEN_OUT_OF_POOL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OUT_OF_POOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OUT_OF_POOL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_GLOBAL (location_type l)
+ {
+ return symbol_type (token::TOKEN_GLOBAL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_GLOBAL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_GLOBAL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ALL (location_type l)
+ {
+ return symbol_type (token::TOKEN_ALL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ALL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ALL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOST_RESERVATION_IDENTIFIERS (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOST_RESERVATION_IDENTIFIERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CLIENT_CLASSES (location_type l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASSES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CLIENT_CLASSES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASSES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_REQUIRE_CLIENT_CLASSES (location_type l)
+ {
+ return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_REQUIRE_CLIENT_CLASSES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TEST (location_type l)
+ {
+ return symbol_type (token::TOKEN_TEST, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TEST (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TEST, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ONLY_IF_REQUIRED (location_type l)
+ {
+ return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ONLY_IF_REQUIRED (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CLIENT_CLASS (location_type l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CLIENT_CLASS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RESERVATIONS (location_type l)
+ {
+ return symbol_type (token::TOKEN_RESERVATIONS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RESERVATIONS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RESERVATIONS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DUID (location_type l)
+ {
+ return symbol_type (token::TOKEN_DUID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DUID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DUID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HW_ADDRESS (location_type l)
+ {
+ return symbol_type (token::TOKEN_HW_ADDRESS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HW_ADDRESS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HW_ADDRESS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CIRCUIT_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_CIRCUIT_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CIRCUIT_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CIRCUIT_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CLIENT_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CLIENT_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOSTNAME (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOSTNAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_FLEX_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_FLEX_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_FLEX_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_FLEX_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RELAY (location_type l)
+ {
+ return symbol_type (token::TOKEN_RELAY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RELAY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RELAY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_IP_ADDRESS (location_type l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_IP_ADDRESS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_IP_ADDRESSES (location_type l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESSES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_IP_ADDRESSES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESSES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOOKS_LIBRARIES (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOOKS_LIBRARIES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOOKS_LIBRARIES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOOKS_LIBRARIES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LIBRARY (location_type l)
+ {
+ return symbol_type (token::TOKEN_LIBRARY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LIBRARY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LIBRARY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PARAMETERS (location_type l)
+ {
+ return symbol_type (token::TOKEN_PARAMETERS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PARAMETERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PARAMETERS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_EXPIRED_LEASES_PROCESSING (location_type l)
+ {
+ return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_EXPIRED_LEASES_PROCESSING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RECLAIM_TIMER_WAIT_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RECLAIM_TIMER_WAIT_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOLD_RECLAIMED_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOLD_RECLAIMED_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAX_RECLAIM_LEASES (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAX_RECLAIM_LEASES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAX_RECLAIM_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAX_RECLAIM_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_UNWARNED_RECLAIM_CYCLES (location_type l)
+ {
+ return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_UNWARNED_RECLAIM_CYCLES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP4O6_PORT (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP4O6_PORT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP4O6_PORT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP4O6_PORT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CONTROL_SOCKET (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_SOCKET, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONTROL_SOCKET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_SOCKET, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SOCKET_TYPE (location_type l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_TYPE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SOCKET_TYPE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_TYPE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SOCKET_NAME (location_type l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_NAME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SOCKET_NAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_NAME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP_QUEUE_CONTROL (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP_QUEUE_CONTROL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP_DDNS (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP_DDNS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP_DDNS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP_DDNS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ENABLE_UPDATES (location_type l)
+ {
+ return symbol_type (token::TOKEN_ENABLE_UPDATES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ENABLE_UPDATES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ENABLE_UPDATES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_QUALIFYING_SUFFIX (location_type l)
+ {
+ return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_QUALIFYING_SUFFIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SERVER_IP (location_type l)
+ {
+ return symbol_type (token::TOKEN_SERVER_IP, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SERVER_IP (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SERVER_IP, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SERVER_PORT (location_type l)
+ {
+ return symbol_type (token::TOKEN_SERVER_PORT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SERVER_PORT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SERVER_PORT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SENDER_IP (location_type l)
+ {
+ return symbol_type (token::TOKEN_SENDER_IP, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SENDER_IP (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SENDER_IP, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SENDER_PORT (location_type l)
+ {
+ return symbol_type (token::TOKEN_SENDER_PORT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SENDER_PORT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SENDER_PORT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAX_QUEUE_SIZE (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAX_QUEUE_SIZE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_NCR_PROTOCOL (location_type l)
+ {
+ return symbol_type (token::TOKEN_NCR_PROTOCOL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NCR_PROTOCOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NCR_PROTOCOL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_NCR_FORMAT (location_type l)
+ {
+ return symbol_type (token::TOKEN_NCR_FORMAT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NCR_FORMAT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NCR_FORMAT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OVERRIDE_NO_UPDATE (location_type l)
+ {
+ return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OVERRIDE_NO_UPDATE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OVERRIDE_CLIENT_UPDATE (location_type l)
+ {
+ return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OVERRIDE_CLIENT_UPDATE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_REPLACE_CLIENT_NAME (location_type l)
+ {
+ return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_REPLACE_CLIENT_NAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_GENERATED_PREFIX (location_type l)
+ {
+ return symbol_type (token::TOKEN_GENERATED_PREFIX, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_GENERATED_PREFIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_GENERATED_PREFIX, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TCP (location_type l)
+ {
+ return symbol_type (token::TOKEN_TCP, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TCP (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TCP, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_JSON (location_type l)
+ {
+ return symbol_type (token::TOKEN_JSON, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_JSON (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_JSON, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_WHEN_PRESENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_WHEN_PRESENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_WHEN_PRESENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_WHEN_PRESENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_NEVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_NEVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NEVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NEVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ALWAYS (location_type l)
+ {
+ return symbol_type (token::TOKEN_ALWAYS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ALWAYS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ALWAYS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_WHEN_NOT_PRESENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_WHEN_NOT_PRESENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOSTNAME_CHAR_SET (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOSTNAME_CHAR_SET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOSTNAME_CHAR_REPLACEMENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOSTNAME_CHAR_REPLACEMENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LOGGING (location_type l)
+ {
+ return symbol_type (token::TOKEN_LOGGING, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LOGGING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LOGGING, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LOGGERS (location_type l)
+ {
+ return symbol_type (token::TOKEN_LOGGERS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LOGGERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LOGGERS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OUTPUT_OPTIONS (location_type l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT_OPTIONS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OUTPUT_OPTIONS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT_OPTIONS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OUTPUT (location_type l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OUTPUT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DEBUGLEVEL (location_type l)
+ {
+ return symbol_type (token::TOKEN_DEBUGLEVEL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DEBUGLEVEL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DEBUGLEVEL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SEVERITY (location_type l)
+ {
+ return symbol_type (token::TOKEN_SEVERITY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SEVERITY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SEVERITY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_FLUSH (location_type l)
+ {
+ return symbol_type (token::TOKEN_FLUSH, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_FLUSH (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_FLUSH, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAXSIZE (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAXSIZE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAXSIZE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAXSIZE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAXVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAXVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAXVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAXVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP6 (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP6, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP6, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCPDDNS (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCPDDNS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCPDDNS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCPDDNS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CONTROL_AGENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_AGENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONTROL_AGENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_AGENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TOPLEVEL_JSON (location_type l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_JSON, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TOPLEVEL_JSON (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_JSON, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TOPLEVEL_DHCP4 (location_type l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_DHCP4, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TOPLEVEL_DHCP4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_DHCP4, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_DHCP4 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_DHCP4, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_DHCP4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_DHCP4, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_INTERFACES4 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_INTERFACES4, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_INTERFACES4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_INTERFACES4, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_SUBNET4 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_SUBNET4, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_SUBNET4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_SUBNET4, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_POOL4 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_POOL4, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_POOL4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_POOL4, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_RESERVATION (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_RESERVATION, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_RESERVATION (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_RESERVATION, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_OPTION_DEFS (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DEFS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_OPTION_DEFS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DEFS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_OPTION_DEF (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DEF, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_OPTION_DEF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DEF, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_OPTION_DATA (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DATA, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_OPTION_DATA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DATA, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_HOOKS_LIBRARY (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_HOOKS_LIBRARY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_DHCP_DDNS (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_DHCP_DDNS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_DHCP_DDNS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_LOGGING (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_LOGGING, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_LOGGING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_LOGGING, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_CONFIG_CONTROL (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_CONFIG_CONTROL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_STRING (std::string v, location_type l)
+ {
+ return symbol_type (token::TOKEN_STRING, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_STRING (const std::string& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_STRING, v, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_INTEGER (int64_t v, location_type l)
+ {
+ return symbol_type (token::TOKEN_INTEGER, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_INTEGER (const int64_t& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTEGER, v, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_FLOAT (double v, location_type l)
+ {
+ return symbol_type (token::TOKEN_FLOAT, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_FLOAT (const double& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_FLOAT, v, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_BOOLEAN (bool v, location_type l)
+ {
+ return symbol_type (token::TOKEN_BOOLEAN, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_BOOLEAN (const bool& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_BOOLEAN, v, l);
+ }
+#endif
- 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));
- }
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_CLIENT_CLASSES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CLIENT_CLASSES, YY_MOVE (l));
- }
+ private:
+ /// This class is not copyable.
+ Dhcp4Parser (const Dhcp4Parser&);
+ Dhcp4Parser& operator= (const Dhcp4Parser&);
- 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));
- }
+ /// State numbers.
+ typedef int state_type;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_TEST (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TEST, 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_ONLY_IF_REQUIRED (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, 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_CLIENT_CLASS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CLIENT_CLASS, 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_RESERVATIONS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RESERVATIONS, 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_DUID (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DUID, YY_MOVE (l));
- }
+ static const short yypact_ninf_;
+ static const signed char yytable_ninf_;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_HW_ADDRESS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HW_ADDRESS, 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_CIRCUIT_ID (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CIRCUIT_ID, 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_CLIENT_ID (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CLIENT_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_HOSTNAME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HOSTNAME, YY_MOVE (l));
- }
+ // YYPGOTO[NTERM-NUM].
+ static const short yypgoto_[];
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_FLEX_ID (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_FLEX_ID, YY_MOVE (l));
- }
+ // YYDEFGOTO[NTERM-NUM].
+ static const short yydefgoto_[];
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_RELAY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RELAY, 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_IP_ADDRESS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_IP_ADDRESS, YY_MOVE (l));
- }
+ static const short yycheck_[];
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_IP_ADDRESSES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_IP_ADDRESSES, 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_HOOKS_LIBRARIES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HOOKS_LIBRARIES, YY_MOVE (l));
- }
+ // YYR1[YYN] -- Symbol number of symbol that rule YYN derives.
+ static const unsigned short yyr1_[];
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_LIBRARY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LIBRARY, 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_PARAMETERS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_PARAMETERS, YY_MOVE (l));
- }
- 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));
- }
+ /// 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_RECLAIM_TIMER_WAIT_TIME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, YY_MOVE (l));
- }
- 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));
- }
+ /// 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_HOLD_RECLAIMED_TIME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, YY_MOVE (l));
- }
+ /// Debugging level.
+ int yydebug_;
+ /// Debug stream.
+ std::ostream* yycdebug_;
- 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 Display a symbol type, value and location.
+ /// \param yyo The output stream.
+ /// \param yysym The symbol.
+ template <typename Base>
+ void yy_print_ (std::ostream& yyo, const basic_symbol<Base>& yysym) const;
+#endif
- 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));
- }
+ /// \brief Reclaim the memory associated to a symbol.
+ /// \param yymsg Why this token is reclaimed.
+ /// If null, print nothing.
+ /// \param yysym The symbol.
+ template <typename Base>
+ void yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const;
- 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));
- }
+ private:
+ /// Type access provider for state based symbols.
+ struct by_state
+ {
+ /// Default constructor.
+ by_state () YY_NOEXCEPT;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_DHCP4O6_PORT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP4O6_PORT, YY_MOVE (l));
- }
+ /// The symbol type as needed by the constructor.
+ typedef state_type kind_type;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_CONTROL_SOCKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CONTROL_SOCKET, YY_MOVE (l));
- }
+ /// Constructor.
+ by_state (kind_type s) 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));
- }
+ /// Copy constructor.
+ by_state (const by_state& that) 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));
- }
+ /// Record that this symbol is empty.
+ void clear () YY_NOEXCEPT;
- 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));
- }
+ /// Steal the symbol type from \a that.
+ void move (by_state& that);
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_DHCP_DDNS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP_DDNS, 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_ENABLE_UPDATES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ENABLE_UPDATES, YY_MOVE (l));
- }
+ /// The state number used to denote an empty symbol.
+ enum { empty_state = -1 };
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_QUALIFYING_SUFFIX (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, YY_MOVE (l));
- }
+ /// The state.
+ /// \a empty when empty.
+ state_type state;
+ };
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_SERVER_IP (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SERVER_IP, YY_MOVE (l));
- }
+ /// "Internal" symbol: element of the stack.
+ struct stack_symbol_type : basic_symbol<by_state>
+ {
+ /// Superclass.
+ typedef basic_symbol<by_state> super_type;
+ /// Construct an empty symbol.
+ stack_symbol_type ();
+ /// 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_PORT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SERVER_PORT, YY_MOVE (l));
- }
+ /// A stack with random access from its top.
+ template <typename T, typename S = std::vector<T> >
+ class stack
+ {
+ public:
+ // Hide our reversed order.
+ typedef typename S::reverse_iterator iterator;
+ typedef typename S::const_reverse_iterator const_iterator;
+ 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_SENDER_IP (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SENDER_IP, 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_PORT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SENDER_PORT, YY_MOVE (l));
- }
+ /// Pop all elements from the stack.
+ void
+ clear () YY_NOEXCEPT
+ {
+ seq_.clear ();
+ }
- 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));
- }
+ /// Number of elements on the stack.
+ size_type
+ size () const YY_NOEXCEPT
+ {
+ return seq_.size ();
+ }
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_NCR_PROTOCOL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NCR_PROTOCOL, 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_FORMAT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NCR_FORMAT, YY_MOVE (l));
- }
+ /// Bottom of the stack.
+ const_iterator
+ end () const YY_NOEXCEPT
+ {
+ return seq_.rend ();
+ }
- 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));
- }
+ /// 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_CLIENT_UPDATE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, YY_MOVE (l));
- }
+ private:
+ stack (const stack&);
+ stack& operator= (const stack&);
+ /// The wrapped container.
+ S seq_;
+ };
- 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));
- }
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_GENERATED_PREFIX (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_GENERATED_PREFIX, YY_MOVE (l));
- }
+ /// Stack type.
+ typedef stack<stack_symbol_type> stack_type;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_TCP (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TCP, YY_MOVE (l));
- }
+ /// The stack.
+ stack_type yystack_;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_JSON (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_JSON, 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_WHEN_PRESENT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_WHEN_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
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_NEVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NEVER, YY_MOVE (l));
- }
+ /// Pop \a n symbols from the stack.
+ void yypop_ (int n = 1);
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_ALWAYS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ALWAYS, YY_MOVE (l));
- }
+ /// Constants.
+ enum
+ {
+ yyeof_ = 0,
+ yylast_ = 1004, ///< Last index in yytable_.
+ yynnts_ = 374, ///< Number of nonterminal symbols.
+ yyfinal_ = 30, ///< Termination state number.
+ yyterror_ = 1,
+ yyerrcode_ = 256,
+ yyntokens_ = 170 ///< Number of tokens.
+ };
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_WHEN_NOT_PRESENT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, YY_MOVE (l));
- }
- 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));
- }
+ // User arguments.
+ isc::dhcp::Parser4Context& ctx;
+ };
inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_HOSTNAME_CHAR_REPLACEMENT (YY_COPY (location_type) l)
+ Dhcp4Parser::token_number_type
+ Dhcp4Parser::yytranslate_ (token_type t)
{
- return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, 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
+ };
+ const unsigned user_token_number_max_ = 424;
+ const token_number_type undef_token_ = 2;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_LOGGING (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LOGGING, YY_MOVE (l));
+ if (static_cast<int> (t) <= yyeof_)
+ return yyeof_;
+ else if (static_cast<unsigned> (t) <= user_token_number_max_)
+ return translate_table[t];
+ else
+ return undef_token_;
}
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_LOGGERS (YY_COPY (location_type) l)
+ // basic_symbol.
+#if 201103L <= YY_CPLUSPLUS
+ template <typename Base>
+ Dhcp4Parser::basic_symbol<Base>::basic_symbol (basic_symbol&& that)
+ : Base (std::move (that))
+ , value ()
+ , location (std::move (that.location))
{
- return symbol_type (token::TOKEN_LOGGERS, YY_MOVE (l));
- }
+ switch (this->type_get ())
+ {
+ case 186: // value
+ case 190: // map_value
+ case 231: // socket_type
+ case 234: // outbound_interface_value
+ case 256: // db_type
+ case 339: // hr_mode
+ case 488: // ncr_protocol_value
+ case 495: // replace_client_name_value
+ value.move< ElementPtr > (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 169: // "boolean"
+ value.move< bool > (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 168: // "floating point"
+ value.move< double > (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));
- }
+ case 167: // "integer"
+ value.move< int64_t > (std::move (that.value));
+ break;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_SEVERITY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SEVERITY, YY_MOVE (l));
- }
+ case 166: // "constant string"
+ value.move< std::string > (std::move (that.value));
+ break;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_FLUSH (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_FLUSH, YY_MOVE (l));
- }
+ default:
+ break;
+ }
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_MAXSIZE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MAXSIZE, YY_MOVE (l));
}
+#endif
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_MAXVER (YY_COPY (location_type) l)
+ template <typename Base>
+ Dhcp4Parser::basic_symbol<Base>::basic_symbol (const basic_symbol& that)
+ : Base (that)
+ , value ()
+ , location (that.location)
{
- return symbol_type (token::TOKEN_MAXVER, YY_MOVE (l));
- }
+ switch (this->type_get ())
+ {
+ case 186: // value
+ case 190: // map_value
+ case 231: // socket_type
+ case 234: // outbound_interface_value
+ case 256: // db_type
+ case 339: // hr_mode
+ case 488: // ncr_protocol_value
+ case 495: // replace_client_name_value
+ value.copy< ElementPtr > (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 169: // "boolean"
+ value.copy< bool > (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));
- }
+ case 168: // "floating point"
+ value.copy< double > (YY_MOVE (that.value));
+ break;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_CONTROL_AGENT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CONTROL_AGENT, YY_MOVE (l));
- }
+ case 167: // "integer"
+ value.copy< int64_t > (YY_MOVE (that.value));
+ break;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_TOPLEVEL_JSON (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TOPLEVEL_JSON, YY_MOVE (l));
- }
+ case 166: // "constant string"
+ value.copy< std::string > (YY_MOVE (that.value));
+ break;
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_TOPLEVEL_DHCP4 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TOPLEVEL_DHCP4, YY_MOVE (l));
- }
+ default:
+ break;
+ }
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_SUB_DHCP4 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SUB_DHCP4, YY_MOVE (l));
}
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_SUB_INTERFACES4 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SUB_INTERFACES4, YY_MOVE (l));
- }
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_SUB_SUBNET4 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SUB_SUBNET4, YY_MOVE (l));
- }
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_SUB_POOL4 (YY_COPY (location_type) l)
+ template <typename Base>
+ bool
+ Dhcp4Parser::basic_symbol<Base>::empty () const YY_NOEXCEPT
{
- return symbol_type (token::TOKEN_SUB_POOL4, YY_MOVE (l));
+ return Base::type_get () == empty_symbol;
}
- inline
- Dhcp4Parser::symbol_type
- Dhcp4Parser::make_SUB_RESERVATION (YY_COPY (location_type) l)
+ template <typename Base>
+ void
+ Dhcp4Parser::basic_symbol<Base>::move (basic_symbol& s)
{
- return symbol_type (token::TOKEN_SUB_RESERVATION, YY_MOVE (l));
- }
+ super_type::move (s);
+ switch (this->type_get ())
+ {
+ case 186: // value
+ case 190: // map_value
+ case 231: // socket_type
+ case 234: // outbound_interface_value
+ case 256: // db_type
+ case 339: // hr_mode
+ case 488: // ncr_protocol_value
+ case 495: // replace_client_name_value
+ value.move< ElementPtr > (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 169: // "boolean"
+ value.move< bool > (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));
- }
+ case 168: // "floating point"
+ value.move< double > (YY_MOVE (s.value));
+ 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));
+ case 167: // "integer"
+ value.move< int64_t > (YY_MOVE (s.value));
+ break;
+
+ case 166: // "constant string"
+ value.move< std::string > (YY_MOVE (s.value));
+ break;
+
+ default:
+ break;
+ }
+
+ 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
+ };
+ return token_type (yytoken_number_[type]);
}
-
-#line 14 "dhcp4_parser.yy" // lalr1.cc:404
+#line 14 "dhcp4_parser.yy"
} } // isc::dhcp
-#line 3232 "dhcp4_parser.h" // lalr1.cc:404
+#line 4088 "dhcp4_parser.h"
+
-// Copyright (C) 2011-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author>
<contrib>The Kea software has been written by a number of
engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
<docinfo>
<copyright>
- <year>2011-2018</year>
+ <year>2011-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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
# 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
{
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
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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".
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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.
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "dhcp6_lexer.ll"
-/* Copyright (C) 2016-2018 Internet Systems Consortium, Inc. ("ISC")
+/* Copyright (C) 2016-2019 Internet Systems Consortium, Inc. ("ISC")
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
-// 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
// Unqualified %code blocks.
-#line 34 "dhcp6_parser.yy" // lalr1.cc:438
+#line 34 "dhcp6_parser.yy"
#include <dhcp6/parser_context.h>
-#line 51 "dhcp6_parser.cc" // lalr1.cc:438
+#line 51 "dhcp6_parser.cc"
#ifndef YY_
{ \
(Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
} \
- while (/*CONSTCOND*/ false)
+ while (false)
# endif
#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
{
if (*yystr == '"')
{
- std::string yyr = "";
+ std::string yyr;
char const *yyp = yystr;
for (;;)
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
- // Fall through.
+ else
+ goto append;
+
+ append:
default:
yyr += *yyp;
break;
Dhcp6Parser::~Dhcp6Parser ()
{}
+ Dhcp6Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW
+ {}
/*---------------.
| Symbol types. |
// 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;
}
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;
break;
}
-#if defined __cplusplus && 201103L <= __cplusplus
+#if 201103L <= YY_CPLUSPLUS
// that is emptied.
that.state = empty_state;
#endif
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)
{
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 171: // "constant string"
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 398 "dhcp6_parser.cc" // lalr1.cc:672
+ case 171: // "constant string"
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 405 "dhcp6_parser.cc"
break;
case 172: // "integer"
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< int64_t > (); }
-#line 405 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < int64_t > (); }
+#line 411 "dhcp6_parser.cc"
break;
case 173: // "floating point"
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< double > (); }
-#line 412 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < double > (); }
+#line 417 "dhcp6_parser.cc"
break;
case 174: // "boolean"
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< bool > (); }
-#line 419 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < bool > (); }
+#line 423 "dhcp6_parser.cc"
break;
case 192: // value
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 426 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 429 "dhcp6_parser.cc"
break;
case 196: // map_value
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 433 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 435 "dhcp6_parser.cc"
break;
case 248: // db_type
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 440 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 441 "dhcp6_parser.cc"
break;
case 338: // hr_mode
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 447 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 447 "dhcp6_parser.cc"
break;
case 474: // duid_type
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 454 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 453 "dhcp6_parser.cc"
break;
case 509: // ncr_protocol_value
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 461 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 459 "dhcp6_parser.cc"
break;
case 516: // replace_client_name_value
-
-#line 249 "dhcp6_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 468 "dhcp6_parser.cc" // lalr1.cc:672
+#line 249 "dhcp6_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 465 "dhcp6_parser.cc"
break;
-
default:
break;
}
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);
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];
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
goto yyerrlab1;
}
yypush_ ("Shifting", yyn, YY_MOVE (yyla));
goto yynewstate;
+
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
goto yyerrlab;
goto yyreduce;
+
/*-----------------------------.
- | yyreduce -- Do a reduction. |
+ | yyreduce -- do a reduction. |
`-----------------------------*/
yyreduce:
yylen = yyr2_[yyn];
// Default location.
{
- slice<stack_symbol_type, stack_type> 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;
}
switch (yyn)
{
case 2:
-#line 258 "dhcp6_parser.yy" // lalr1.cc:907
+#line 258 "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 259 "dhcp6_parser.yy" // lalr1.cc:907
+#line 259 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.CONFIG; }
-#line 733 "dhcp6_parser.cc" // lalr1.cc:907
+#line 737 "dhcp6_parser.cc"
break;
case 6:
-#line 260 "dhcp6_parser.yy" // lalr1.cc:907
+#line 260 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.DHCP6; }
-#line 739 "dhcp6_parser.cc" // lalr1.cc:907
+#line 743 "dhcp6_parser.cc"
break;
case 8:
-#line 261 "dhcp6_parser.yy" // lalr1.cc:907
+#line 261 "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 262 "dhcp6_parser.yy" // lalr1.cc:907
+#line 262 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.SUBNET6; }
-#line 751 "dhcp6_parser.cc" // lalr1.cc:907
+#line 755 "dhcp6_parser.cc"
break;
case 12:
-#line 263 "dhcp6_parser.yy" // lalr1.cc:907
+#line 263 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.POOLS; }
-#line 757 "dhcp6_parser.cc" // lalr1.cc:907
+#line 761 "dhcp6_parser.cc"
break;
case 14:
-#line 264 "dhcp6_parser.yy" // lalr1.cc:907
+#line 264 "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 265 "dhcp6_parser.yy" // lalr1.cc:907
+#line 265 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.RESERVATIONS; }
-#line 769 "dhcp6_parser.cc" // lalr1.cc:907
+#line 773 "dhcp6_parser.cc"
break;
case 18:
-#line 266 "dhcp6_parser.yy" // lalr1.cc:907
+#line 266 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.DHCP6; }
-#line 775 "dhcp6_parser.cc" // lalr1.cc:907
+#line 779 "dhcp6_parser.cc"
break;
case 20:
-#line 267 "dhcp6_parser.yy" // lalr1.cc:907
+#line 267 "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 268 "dhcp6_parser.yy" // lalr1.cc:907
+#line 268 "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 269 "dhcp6_parser.yy" // lalr1.cc:907
+#line 269 "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 270 "dhcp6_parser.yy" // lalr1.cc:907
+#line 270 "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 271 "dhcp6_parser.yy" // lalr1.cc:907
+#line 271 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.LOGGING; }
-#line 805 "dhcp6_parser.cc" // lalr1.cc:907
+#line 809 "dhcp6_parser.cc"
break;
case 30:
-#line 272 "dhcp6_parser.yy" // lalr1.cc:907
+#line 272 "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 280 "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 280 "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 281 "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 281 "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 282 "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 282 "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 283 "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 283 "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 284 "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 284 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
+#line 845 "dhcp6_parser.cc"
break;
case 37:
-#line 285 "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 285 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 851 "dhcp6_parser.cc"
break;
case 38:
-#line 286 "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 286 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 857 "dhcp6_parser.cc"
break;
case 39:
-#line 289 "dhcp6_parser.yy" // lalr1.cc:907
+#line 289 "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 294 "dhcp6_parser.yy" // lalr1.cc:907
+#line 294 "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 299 "dhcp6_parser.yy" // lalr1.cc:907
+#line 299 "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 305 "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 305 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 893 "dhcp6_parser.cc"
break;
case 45:
-#line 312 "dhcp6_parser.yy" // lalr1.cc:907
+#line 312 "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 316 "dhcp6_parser.yy" // lalr1.cc:907
+#line 316 "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 323 "dhcp6_parser.yy" // lalr1.cc:907
+#line 323 "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 326 "dhcp6_parser.yy" // lalr1.cc:907
+#line 326 "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 334 "dhcp6_parser.yy" // lalr1.cc:907
+#line 334 "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 338 "dhcp6_parser.yy" // lalr1.cc:907
+#line 338 "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 345 "dhcp6_parser.yy" // lalr1.cc:907
+#line 345 "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 347 "dhcp6_parser.yy" // lalr1.cc:907
+#line 347 "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 356 "dhcp6_parser.yy" // lalr1.cc:907
+#line 356 "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 360 "dhcp6_parser.yy" // lalr1.cc:907
+#line 360 "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 371 "dhcp6_parser.yy" // lalr1.cc:907
+#line 371 "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 381 "dhcp6_parser.yy" // lalr1.cc:907
+#line 381 "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 386 "dhcp6_parser.yy" // lalr1.cc:907
+#line 386 "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
// 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 409 "dhcp6_parser.yy" // lalr1.cc:907
+#line 409 "dhcp6_parser.yy"
{
// This code is executed when we're about to start parsing
// the content of the map
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 416 "dhcp6_parser.yy" // lalr1.cc:907
+#line 416 "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 424 "dhcp6_parser.yy" // lalr1.cc:907
+#line 424 "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 428 "dhcp6_parser.yy" // lalr1.cc:907
+#line 428 "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 108:
-#line 473 "dhcp6_parser.yy" // lalr1.cc:907
+#line 473 "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 1064 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1068 "dhcp6_parser.cc"
break;
case 109:
-#line 478 "dhcp6_parser.yy" // lalr1.cc:907
+#line 478 "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 1073 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1077 "dhcp6_parser.cc"
break;
case 110:
-#line 483 "dhcp6_parser.yy" // lalr1.cc:907
+#line 483 "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 1082 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1086 "dhcp6_parser.cc"
break;
case 111:
-#line 488 "dhcp6_parser.yy" // lalr1.cc:907
+#line 488 "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 1091 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1095 "dhcp6_parser.cc"
break;
case 112:
-#line 493 "dhcp6_parser.yy" // lalr1.cc:907
+#line 493 "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 1100 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1104 "dhcp6_parser.cc"
break;
case 113:
-#line 498 "dhcp6_parser.yy" // lalr1.cc:907
+#line 498 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1108 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1112 "dhcp6_parser.cc"
break;
case 114:
-#line 500 "dhcp6_parser.yy" // lalr1.cc:907
+#line 500 "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 1118 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1122 "dhcp6_parser.cc"
break;
case 115:
-#line 506 "dhcp6_parser.yy" // lalr1.cc:907
+#line 506 "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 1129 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1133 "dhcp6_parser.cc"
break;
case 116:
-#line 511 "dhcp6_parser.yy" // lalr1.cc:907
+#line 511 "dhcp6_parser.yy"
{
// No interfaces config param is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1139 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1143 "dhcp6_parser.cc"
break;
case 117:
-#line 517 "dhcp6_parser.yy" // lalr1.cc:907
+#line 517 "dhcp6_parser.yy"
{
// Parse the interfaces-config map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1149 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1153 "dhcp6_parser.cc"
break;
case 118:
-#line 521 "dhcp6_parser.yy" // lalr1.cc:907
+#line 521 "dhcp6_parser.yy"
{
// No interfaces config param is required
// parsing completed
}
-#line 1158 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1162 "dhcp6_parser.cc"
break;
case 126:
-#line 537 "dhcp6_parser.yy" // lalr1.cc:907
+#line 537 "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 1169 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1173 "dhcp6_parser.cc"
break;
case 127:
-#line 542 "dhcp6_parser.yy" // lalr1.cc:907
+#line 542 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1178 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1182 "dhcp6_parser.cc"
break;
case 128:
-#line 547 "dhcp6_parser.yy" // lalr1.cc:907
+#line 547 "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 1187 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1191 "dhcp6_parser.cc"
break;
case 129:
-#line 553 "dhcp6_parser.yy" // lalr1.cc:907
+#line 553 "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 1198 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1202 "dhcp6_parser.cc"
break;
case 130:
-#line 558 "dhcp6_parser.yy" // lalr1.cc:907
+#line 558 "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 1209 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1213 "dhcp6_parser.cc"
break;
case 131:
-#line 565 "dhcp6_parser.yy" // lalr1.cc:907
+#line 565 "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 1220 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1224 "dhcp6_parser.cc"
break;
case 132:
-#line 570 "dhcp6_parser.yy" // lalr1.cc:907
+#line 570 "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 1231 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1235 "dhcp6_parser.cc"
break;
case 133:
-#line 577 "dhcp6_parser.yy" // lalr1.cc:907
+#line 577 "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 1242 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1246 "dhcp6_parser.cc"
break;
case 134:
-#line 582 "dhcp6_parser.yy" // lalr1.cc:907
+#line 582 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1251 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1255 "dhcp6_parser.cc"
break;
case 139:
-#line 595 "dhcp6_parser.yy" // lalr1.cc:907
+#line 595 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1261 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1265 "dhcp6_parser.cc"
break;
case 140:
-#line 599 "dhcp6_parser.yy" // lalr1.cc:907
+#line 599 "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 1271 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1275 "dhcp6_parser.cc"
break;
case 162:
-#line 630 "dhcp6_parser.yy" // lalr1.cc:907
+#line 630 "dhcp6_parser.yy"
{
ctx.enter(ctx.DATABASE_TYPE);
}
-#line 1279 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1283 "dhcp6_parser.cc"
break;
case 163:
-#line 632 "dhcp6_parser.yy" // lalr1.cc:907
+#line 632 "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 1288 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1292 "dhcp6_parser.cc"
break;
case 164:
-#line 637 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); }
-#line 1294 "dhcp6_parser.cc" // lalr1.cc:907
+#line 637 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); }
+#line 1298 "dhcp6_parser.cc"
break;
case 165:
-#line 638 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); }
-#line 1300 "dhcp6_parser.cc" // lalr1.cc:907
+#line 638 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); }
+#line 1304 "dhcp6_parser.cc"
break;
case 166:
-#line 639 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); }
-#line 1306 "dhcp6_parser.cc" // lalr1.cc:907
+#line 639 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); }
+#line 1310 "dhcp6_parser.cc"
break;
case 167:
-#line 640 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); }
-#line 1312 "dhcp6_parser.cc" // lalr1.cc:907
+#line 640 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("cql", ctx.loc2pos(yystack_[0].location))); }
+#line 1316 "dhcp6_parser.cc"
break;
case 168:
-#line 643 "dhcp6_parser.yy" // lalr1.cc:907
+#line 643 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1320 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1324 "dhcp6_parser.cc"
break;
case 169:
-#line 645 "dhcp6_parser.yy" // lalr1.cc:907
+#line 645 "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 1330 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1334 "dhcp6_parser.cc"
break;
case 170:
-#line 651 "dhcp6_parser.yy" // lalr1.cc:907
+#line 651 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1338 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1342 "dhcp6_parser.cc"
break;
case 171:
-#line 653 "dhcp6_parser.yy" // lalr1.cc:907
+#line 653 "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 1348 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1352 "dhcp6_parser.cc"
break;
case 172:
-#line 659 "dhcp6_parser.yy" // lalr1.cc:907
+#line 659 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1356 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1360 "dhcp6_parser.cc"
break;
case 173:
-#line 661 "dhcp6_parser.yy" // lalr1.cc:907
+#line 661 "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 1366 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1370 "dhcp6_parser.cc"
break;
case 174:
-#line 667 "dhcp6_parser.yy" // lalr1.cc:907
+#line 667 "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 1375 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1379 "dhcp6_parser.cc"
break;
case 175:
-#line 672 "dhcp6_parser.yy" // lalr1.cc:907
+#line 672 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1383 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1387 "dhcp6_parser.cc"
break;
case 176:
-#line 674 "dhcp6_parser.yy" // lalr1.cc:907
+#line 674 "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 1393 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1397 "dhcp6_parser.cc"
break;
case 177:
-#line 680 "dhcp6_parser.yy" // lalr1.cc:907
+#line 680 "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 1402 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1406 "dhcp6_parser.cc"
break;
case 178:
-#line 685 "dhcp6_parser.yy" // lalr1.cc:907
+#line 685 "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 1411 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1415 "dhcp6_parser.cc"
break;
case 179:
-#line 690 "dhcp6_parser.yy" // lalr1.cc:907
+#line 690 "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 1420 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1424 "dhcp6_parser.cc"
break;
case 180:
-#line 695 "dhcp6_parser.yy" // lalr1.cc:907
+#line 695 "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 1429 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1433 "dhcp6_parser.cc"
break;
case 181:
-#line 700 "dhcp6_parser.yy" // lalr1.cc:907
+#line 700 "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 1438 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1442 "dhcp6_parser.cc"
break;
case 182:
-#line 705 "dhcp6_parser.yy" // lalr1.cc:907
+#line 705 "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 1447 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1451 "dhcp6_parser.cc"
break;
case 183:
-#line 710 "dhcp6_parser.yy" // lalr1.cc:907
+#line 710 "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 1456 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1460 "dhcp6_parser.cc"
break;
case 184:
-#line 715 "dhcp6_parser.yy" // lalr1.cc:907
+#line 715 "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 1465 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1469 "dhcp6_parser.cc"
break;
case 185:
-#line 720 "dhcp6_parser.yy" // lalr1.cc:907
+#line 720 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1473 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1477 "dhcp6_parser.cc"
break;
case 186:
-#line 722 "dhcp6_parser.yy" // lalr1.cc:907
+#line 722 "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 1483 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1487 "dhcp6_parser.cc"
break;
case 187:
-#line 728 "dhcp6_parser.yy" // lalr1.cc:907
+#line 728 "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 1492 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1496 "dhcp6_parser.cc"
break;
case 188:
-#line 733 "dhcp6_parser.yy" // lalr1.cc:907
+#line 733 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1500 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1504 "dhcp6_parser.cc"
break;
case 189:
-#line 735 "dhcp6_parser.yy" // lalr1.cc:907
+#line 735 "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 1510 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1514 "dhcp6_parser.cc"
break;
case 190:
-#line 741 "dhcp6_parser.yy" // lalr1.cc:907
+#line 741 "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 1519 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1523 "dhcp6_parser.cc"
break;
case 191:
-#line 746 "dhcp6_parser.yy" // lalr1.cc:907
+#line 746 "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 1530 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1534 "dhcp6_parser.cc"
break;
case 192:
-#line 751 "dhcp6_parser.yy" // lalr1.cc:907
+#line 751 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1539 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1543 "dhcp6_parser.cc"
break;
case 196:
-#line 761 "dhcp6_parser.yy" // lalr1.cc:907
+#line 761 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1547 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1551 "dhcp6_parser.cc"
break;
case 197:
-#line 763 "dhcp6_parser.yy" // lalr1.cc:907
+#line 763 "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 1567 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1571 "dhcp6_parser.cc"
break;
case 198:
-#line 779 "dhcp6_parser.yy" // lalr1.cc:907
+#line 779 "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 1578 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1582 "dhcp6_parser.cc"
break;
case 199:
-#line 784 "dhcp6_parser.yy" // lalr1.cc:907
+#line 784 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1587 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1591 "dhcp6_parser.cc"
break;
case 204:
-#line 797 "dhcp6_parser.yy" // lalr1.cc:907
+#line 797 "dhcp6_parser.yy"
{
ElementPtr duid(new StringElement("duid", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(duid);
}
-#line 1596 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1600 "dhcp6_parser.cc"
break;
case 205:
-#line 802 "dhcp6_parser.yy" // lalr1.cc:907
+#line 802 "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 1605 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1609 "dhcp6_parser.cc"
break;
case 206:
-#line 807 "dhcp6_parser.yy" // lalr1.cc:907
+#line 807 "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 1616 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1620 "dhcp6_parser.cc"
break;
case 207:
-#line 812 "dhcp6_parser.yy" // lalr1.cc:907
+#line 812 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1625 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1629 "dhcp6_parser.cc"
break;
case 213:
-#line 826 "dhcp6_parser.yy" // lalr1.cc:907
+#line 826 "dhcp6_parser.yy"
{
ElementPtr hwaddr(new StringElement("hw-address", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(hwaddr);
}
-#line 1634 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1638 "dhcp6_parser.cc"
break;
case 214:
-#line 831 "dhcp6_parser.yy" // lalr1.cc:907
+#line 831 "dhcp6_parser.yy"
{
ElementPtr flex_id(new StringElement("flex-id", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(flex_id);
}
-#line 1643 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1647 "dhcp6_parser.cc"
break;
case 215:
-#line 838 "dhcp6_parser.yy" // lalr1.cc:907
+#line 838 "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 1654 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1658 "dhcp6_parser.cc"
break;
case 216:
-#line 843 "dhcp6_parser.yy" // lalr1.cc:907
+#line 843 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1663 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1667 "dhcp6_parser.cc"
break;
case 217:
-#line 848 "dhcp6_parser.yy" // lalr1.cc:907
+#line 848 "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 1674 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1678 "dhcp6_parser.cc"
break;
case 218:
-#line 853 "dhcp6_parser.yy" // lalr1.cc:907
+#line 853 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1683 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1687 "dhcp6_parser.cc"
break;
case 223:
-#line 866 "dhcp6_parser.yy" // lalr1.cc:907
+#line 866 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1693 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1697 "dhcp6_parser.cc"
break;
case 224:
-#line 870 "dhcp6_parser.yy" // lalr1.cc:907
+#line 870 "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 1703 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1707 "dhcp6_parser.cc"
break;
case 225:
-#line 876 "dhcp6_parser.yy" // lalr1.cc:907
+#line 876 "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 1713 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1717 "dhcp6_parser.cc"
break;
case 226:
-#line 880 "dhcp6_parser.yy" // lalr1.cc:907
+#line 880 "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 1723 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1727 "dhcp6_parser.cc"
break;
case 232:
-#line 895 "dhcp6_parser.yy" // lalr1.cc:907
+#line 895 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1731 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1735 "dhcp6_parser.cc"
break;
case 233:
-#line 897 "dhcp6_parser.yy" // lalr1.cc:907
+#line 897 "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 1741 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1745 "dhcp6_parser.cc"
break;
case 234:
-#line 903 "dhcp6_parser.yy" // lalr1.cc:907
+#line 903 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1749 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1753 "dhcp6_parser.cc"
break;
case 235:
-#line 905 "dhcp6_parser.yy" // lalr1.cc:907
+#line 905 "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 1758 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1762 "dhcp6_parser.cc"
break;
case 236:
-#line 911 "dhcp6_parser.yy" // lalr1.cc:907
+#line 911 "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 1769 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1773 "dhcp6_parser.cc"
break;
case 237:
-#line 916 "dhcp6_parser.yy" // lalr1.cc:907
+#line 916 "dhcp6_parser.yy"
{
// No expired lease parameter is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1779 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1783 "dhcp6_parser.cc"
break;
case 246:
-#line 934 "dhcp6_parser.yy" // lalr1.cc:907
+#line 934 "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 1788 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1792 "dhcp6_parser.cc"
break;
case 247:
-#line 939 "dhcp6_parser.yy" // lalr1.cc:907
+#line 939 "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 1797 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1801 "dhcp6_parser.cc"
break;
case 248:
-#line 944 "dhcp6_parser.yy" // lalr1.cc:907
+#line 944 "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 1806 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1810 "dhcp6_parser.cc"
break;
case 249:
-#line 949 "dhcp6_parser.yy" // lalr1.cc:907
+#line 949 "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 1815 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1819 "dhcp6_parser.cc"
break;
case 250:
-#line 954 "dhcp6_parser.yy" // lalr1.cc:907
+#line 954 "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 1824 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1828 "dhcp6_parser.cc"
break;
case 251:
-#line 959 "dhcp6_parser.yy" // lalr1.cc:907
+#line 959 "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 1833 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1837 "dhcp6_parser.cc"
break;
case 252:
-#line 967 "dhcp6_parser.yy" // lalr1.cc:907
+#line 967 "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 1844 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1848 "dhcp6_parser.cc"
break;
case 253:
-#line 972 "dhcp6_parser.yy" // lalr1.cc:907
+#line 972 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1853 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1857 "dhcp6_parser.cc"
break;
case 258:
-#line 992 "dhcp6_parser.yy" // lalr1.cc:907
+#line 992 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1863 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1867 "dhcp6_parser.cc"
break;
case 259:
-#line 996 "dhcp6_parser.yy" // lalr1.cc:907
+#line 996 "dhcp6_parser.yy"
{
// Once we reached this place, the subnet parsing is now complete.
// If we want to, we can implement default values here.
ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 1889 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1893 "dhcp6_parser.cc"
break;
case 260:
-#line 1018 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1018 "dhcp6_parser.yy"
{
// Parse the subnet6 list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1899 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1903 "dhcp6_parser.cc"
break;
case 261:
-#line 1022 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1022 "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 1909 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1913 "dhcp6_parser.cc"
break;
case 284:
-#line 1056 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1056 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1917 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1921 "dhcp6_parser.cc"
break;
case 285:
-#line 1058 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1058 "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 1927 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1931 "dhcp6_parser.cc"
break;
case 286:
-#line 1064 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1064 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1935 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1939 "dhcp6_parser.cc"
break;
case 287:
-#line 1066 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1066 "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 1945 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1949 "dhcp6_parser.cc"
break;
case 288:
-#line 1072 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1072 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1953 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1957 "dhcp6_parser.cc"
break;
case 289:
-#line 1074 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1074 "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 1963 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1967 "dhcp6_parser.cc"
break;
case 290:
-#line 1080 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1080 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1971 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1975 "dhcp6_parser.cc"
break;
case 291:
-#line 1082 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1082 "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 1981 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1985 "dhcp6_parser.cc"
break;
case 292:
-#line 1088 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1088 "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 1992 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1996 "dhcp6_parser.cc"
break;
case 293:
-#line 1093 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1093 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2001 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2005 "dhcp6_parser.cc"
break;
case 294:
-#line 1098 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1098 "dhcp6_parser.yy"
{
ctx.enter(ctx.RESERVATION_MODE);
}
-#line 2009 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2013 "dhcp6_parser.cc"
break;
case 295:
-#line 1100 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1100 "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 2018 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2022 "dhcp6_parser.cc"
break;
case 296:
-#line 1105 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); }
-#line 2024 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1105 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); }
+#line 2028 "dhcp6_parser.cc"
break;
case 297:
-#line 1106 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); }
-#line 2030 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1106 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); }
+#line 2034 "dhcp6_parser.cc"
break;
case 298:
-#line 1107 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); }
-#line 2036 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1107 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); }
+#line 2040 "dhcp6_parser.cc"
break;
case 299:
-#line 1108 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); }
-#line 2042 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1108 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); }
+#line 2046 "dhcp6_parser.cc"
break;
case 300:
-#line 1111 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1111 "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 2051 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2055 "dhcp6_parser.cc"
break;
case 301:
-#line 1116 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1116 "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 2060 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2064 "dhcp6_parser.cc"
break;
case 302:
-#line 1124 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1124 "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 2071 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2075 "dhcp6_parser.cc"
break;
case 303:
-#line 1129 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1129 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2080 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2084 "dhcp6_parser.cc"
break;
case 308:
-#line 1144 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1144 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2090 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2094 "dhcp6_parser.cc"
break;
case 309:
-#line 1148 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1148 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 2098 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2102 "dhcp6_parser.cc"
break;
case 329:
-#line 1179 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1179 "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 2109 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2113 "dhcp6_parser.cc"
break;
case 330:
-#line 1184 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1184 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2118 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2122 "dhcp6_parser.cc"
break;
case 331:
-#line 1192 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1192 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2127 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2131 "dhcp6_parser.cc"
break;
case 332:
-#line 1195 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1195 "dhcp6_parser.yy"
{
// parsing completed
}
-#line 2135 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2139 "dhcp6_parser.cc"
break;
case 337:
-#line 1211 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1211 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2145 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2149 "dhcp6_parser.cc"
break;
case 338:
-#line 1215 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1215 "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));
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 2157 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2161 "dhcp6_parser.cc"
break;
case 339:
-#line 1226 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1226 "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 2167 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2171 "dhcp6_parser.cc"
break;
case 340:
-#line 1230 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1230 "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));
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2179 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2183 "dhcp6_parser.cc"
break;
case 356:
-#line 1262 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1262 "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 2188 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2192 "dhcp6_parser.cc"
break;
case 358:
-#line 1269 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1269 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2196 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2200 "dhcp6_parser.cc"
break;
case 359:
-#line 1271 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1271 "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 2206 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2210 "dhcp6_parser.cc"
break;
case 360:
-#line 1277 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1277 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2214 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2218 "dhcp6_parser.cc"
break;
case 361:
-#line 1279 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1279 "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 2224 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2228 "dhcp6_parser.cc"
break;
case 362:
-#line 1285 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1285 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2232 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2236 "dhcp6_parser.cc"
break;
case 363:
-#line 1287 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1287 "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 2242 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2246 "dhcp6_parser.cc"
break;
case 365:
-#line 1295 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1295 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2250 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2254 "dhcp6_parser.cc"
break;
case 366:
-#line 1297 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1297 "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 2260 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2264 "dhcp6_parser.cc"
break;
case 367:
-#line 1303 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1303 "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 2269 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2273 "dhcp6_parser.cc"
break;
case 368:
-#line 1312 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1312 "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 2280 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2284 "dhcp6_parser.cc"
break;
case 369:
-#line 1317 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1317 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2289 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2293 "dhcp6_parser.cc"
break;
case 374:
-#line 1336 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1336 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2299 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2303 "dhcp6_parser.cc"
break;
case 375:
-#line 1340 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1340 "dhcp6_parser.yy"
{
/// @todo: the code or name parameters are required.
ctx.stack_.pop_back();
}
-#line 2308 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2312 "dhcp6_parser.cc"
break;
case 376:
-#line 1348 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1348 "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 2318 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2322 "dhcp6_parser.cc"
break;
case 377:
-#line 1352 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1352 "dhcp6_parser.yy"
{
/// @todo: the code or name parameters are required.
// parsing completed
}
-#line 2327 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2331 "dhcp6_parser.cc"
break;
case 392:
-#line 1385 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1385 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2335 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2339 "dhcp6_parser.cc"
break;
case 393:
-#line 1387 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1387 "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 2345 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2349 "dhcp6_parser.cc"
break;
case 396:
-#line 1397 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1397 "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 2354 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2358 "dhcp6_parser.cc"
break;
case 397:
-#line 1402 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1402 "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 2363 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2367 "dhcp6_parser.cc"
break;
case 398:
-#line 1410 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1410 "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 2374 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2378 "dhcp6_parser.cc"
break;
case 399:
-#line 1415 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1415 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2383 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2387 "dhcp6_parser.cc"
break;
case 404:
-#line 1430 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1430 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2393 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2397 "dhcp6_parser.cc"
break;
case 405:
-#line 1434 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1434 "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 2403 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2407 "dhcp6_parser.cc"
break;
case 406:
-#line 1440 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1440 "dhcp6_parser.yy"
{
// Parse the pool list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2413 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2417 "dhcp6_parser.cc"
break;
case 407:
-#line 1444 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1444 "dhcp6_parser.yy"
{
// The pool parameter is required.
ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
}
-#line 2422 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2426 "dhcp6_parser.cc"
break;
case 417:
-#line 1462 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1462 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2430 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2434 "dhcp6_parser.cc"
break;
case 418:
-#line 1464 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1464 "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 2440 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2444 "dhcp6_parser.cc"
break;
case 419:
-#line 1470 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1470 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2448 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2452 "dhcp6_parser.cc"
break;
case 420:
-#line 1472 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1472 "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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 2475 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2479 "dhcp6_parser.cc"
break;
case 421:
-#line 1495 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1495 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2483 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2487 "dhcp6_parser.cc"
break;
case 422:
-#line 1497 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1497 "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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 2512 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2516 "dhcp6_parser.cc"
break;
case 423:
-#line 1525 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1525 "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 2523 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2527 "dhcp6_parser.cc"
break;
case 424:
-#line 1530 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1530 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2532 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2536 "dhcp6_parser.cc"
break;
case 429:
-#line 1545 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1545 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2542 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2546 "dhcp6_parser.cc"
break;
case 430:
-#line 1549 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1549 "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));
ctx.require("delegated-len", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 2554 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2558 "dhcp6_parser.cc"
break;
case 431:
-#line 1557 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1557 "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 2564 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2568 "dhcp6_parser.cc"
break;
case 432:
-#line 1561 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1561 "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));
ctx.require("delegated-len", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2576 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2580 "dhcp6_parser.cc"
break;
case 446:
-#line 1586 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1586 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2584 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2588 "dhcp6_parser.cc"
break;
case 447:
-#line 1588 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1588 "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 2594 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2598 "dhcp6_parser.cc"
break;
case 448:
-#line 1594 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1594 "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 2603 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2607 "dhcp6_parser.cc"
break;
case 449:
-#line 1599 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1599 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2611 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2615 "dhcp6_parser.cc"
break;
case 450:
-#line 1601 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1601 "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 2621 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2625 "dhcp6_parser.cc"
break;
case 451:
-#line 1607 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1607 "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 2630 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2634 "dhcp6_parser.cc"
break;
case 452:
-#line 1612 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1612 "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 2639 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2643 "dhcp6_parser.cc"
break;
case 453:
-#line 1620 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1620 "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 2650 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2654 "dhcp6_parser.cc"
break;
case 454:
-#line 1625 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1625 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2659 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2663 "dhcp6_parser.cc"
break;
case 459:
-#line 1638 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1638 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2669 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2673 "dhcp6_parser.cc"
break;
case 460:
-#line 1642 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1642 "dhcp6_parser.yy"
{
/// @todo: an identifier parameter is required.
ctx.stack_.pop_back();
}
-#line 2678 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2682 "dhcp6_parser.cc"
break;
case 461:
-#line 1647 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1647 "dhcp6_parser.yy"
{
// Parse the reservations list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2688 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2692 "dhcp6_parser.cc"
break;
case 462:
-#line 1651 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1651 "dhcp6_parser.yy"
{
/// @todo: an identifier parameter is required.
// parsing completed
}
-#line 2697 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2701 "dhcp6_parser.cc"
break;
case 478:
-#line 1678 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1678 "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 2708 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2712 "dhcp6_parser.cc"
break;
case 479:
-#line 1683 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1683 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2717 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2721 "dhcp6_parser.cc"
break;
case 480:
-#line 1688 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1688 "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 2728 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2732 "dhcp6_parser.cc"
break;
case 481:
-#line 1693 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1693 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2737 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2741 "dhcp6_parser.cc"
break;
case 482:
-#line 1698 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1698 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2745 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2749 "dhcp6_parser.cc"
break;
case 483:
-#line 1700 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1700 "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 2755 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2759 "dhcp6_parser.cc"
break;
case 484:
-#line 1706 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1706 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2763 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2767 "dhcp6_parser.cc"
break;
case 485:
-#line 1708 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1708 "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 2773 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2777 "dhcp6_parser.cc"
break;
case 486:
-#line 1714 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1714 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2781 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2785 "dhcp6_parser.cc"
break;
case 487:
-#line 1716 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1716 "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 2791 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2795 "dhcp6_parser.cc"
break;
case 488:
-#line 1722 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1722 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2799 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2803 "dhcp6_parser.cc"
break;
case 489:
-#line 1724 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1724 "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 2809 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2813 "dhcp6_parser.cc"
break;
case 490:
-#line 1730 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1730 "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 2820 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2824 "dhcp6_parser.cc"
break;
case 491:
-#line 1735 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1735 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2829 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2833 "dhcp6_parser.cc"
break;
case 492:
-#line 1743 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1743 "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 2840 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2844 "dhcp6_parser.cc"
break;
case 493:
-#line 1748 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1748 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2849 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2853 "dhcp6_parser.cc"
break;
case 496:
-#line 1757 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1757 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2857 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2861 "dhcp6_parser.cc"
break;
case 497:
-#line 1759 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1759 "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 2867 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2871 "dhcp6_parser.cc"
break;
case 498:
-#line 1768 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1768 "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 2878 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2882 "dhcp6_parser.cc"
break;
case 499:
-#line 1773 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1773 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2887 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2891 "dhcp6_parser.cc"
break;
case 502:
-#line 1782 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1782 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2897 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2901 "dhcp6_parser.cc"
break;
case 503:
-#line 1786 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1786 "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 2907 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2911 "dhcp6_parser.cc"
break;
case 516:
-#line 1811 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1811 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2915 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2919 "dhcp6_parser.cc"
break;
case 517:
-#line 1813 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1813 "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 2925 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2929 "dhcp6_parser.cc"
break;
case 518:
-#line 1819 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1819 "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 2934 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2938 "dhcp6_parser.cc"
break;
case 519:
-#line 1827 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1827 "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 2945 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2949 "dhcp6_parser.cc"
break;
case 520:
-#line 1832 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1832 "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 2956 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2960 "dhcp6_parser.cc"
break;
case 532:
-#line 1854 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1854 "dhcp6_parser.yy"
{
ctx.enter(ctx.DUID_TYPE);
}
-#line 2964 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2968 "dhcp6_parser.cc"
break;
case 533:
-#line 1856 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1856 "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 2973 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2977 "dhcp6_parser.cc"
break;
case 534:
-#line 1861 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("LLT", ctx.loc2pos(yystack_[0].location))); }
-#line 2979 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1861 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("LLT", ctx.loc2pos(yystack_[0].location))); }
+#line 2983 "dhcp6_parser.cc"
break;
case 535:
-#line 1862 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("EN", ctx.loc2pos(yystack_[0].location))); }
-#line 2985 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1862 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("EN", ctx.loc2pos(yystack_[0].location))); }
+#line 2989 "dhcp6_parser.cc"
break;
case 536:
-#line 1863 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("LL", ctx.loc2pos(yystack_[0].location))); }
-#line 2991 "dhcp6_parser.cc" // lalr1.cc:907
+#line 1863 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("LL", ctx.loc2pos(yystack_[0].location))); }
+#line 2995 "dhcp6_parser.cc"
break;
case 537:
-#line 1866 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1866 "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 3000 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3004 "dhcp6_parser.cc"
break;
case 538:
-#line 1871 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1871 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3008 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3012 "dhcp6_parser.cc"
break;
case 539:
-#line 1873 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1873 "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 3018 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3022 "dhcp6_parser.cc"
break;
case 540:
-#line 1879 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1879 "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 3027 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3031 "dhcp6_parser.cc"
break;
case 541:
-#line 1884 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1884 "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 3036 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3040 "dhcp6_parser.cc"
break;
case 542:
-#line 1891 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1891 "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 3045 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3049 "dhcp6_parser.cc"
break;
case 543:
-#line 1898 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1898 "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 3056 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3060 "dhcp6_parser.cc"
break;
case 544:
-#line 1903 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1903 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3065 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3069 "dhcp6_parser.cc"
break;
case 552:
-#line 1919 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1919 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3073 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3077 "dhcp6_parser.cc"
break;
case 553:
-#line 1921 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1921 "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 3083 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3087 "dhcp6_parser.cc"
break;
case 554:
-#line 1927 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1927 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3091 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3095 "dhcp6_parser.cc"
break;
case 555:
-#line 1929 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1929 "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 3101 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3105 "dhcp6_parser.cc"
break;
case 556:
-#line 1937 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1937 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3109 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3113 "dhcp6_parser.cc"
break;
case 557:
-#line 1939 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1939 "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
ctx.leave();
}
-#line 3149 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3153 "dhcp6_parser.cc"
break;
case 558:
-#line 1977 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1977 "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 3160 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3164 "dhcp6_parser.cc"
break;
case 559:
-#line 1982 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1982 "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 3171 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3175 "dhcp6_parser.cc"
break;
case 560:
-#line 1989 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1989 "dhcp6_parser.yy"
{
// Parse the dhcp-ddns map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3181 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3185 "dhcp6_parser.cc"
break;
case 561:
-#line 1993 "dhcp6_parser.yy" // lalr1.cc:907
+#line 1993 "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 3191 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3195 "dhcp6_parser.cc"
break;
case 582:
-#line 2023 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2023 "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 3200 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3204 "dhcp6_parser.cc"
break;
case 583:
-#line 2028 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2028 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3208 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3212 "dhcp6_parser.cc"
break;
case 584:
-#line 2030 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2030 "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 3218 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3222 "dhcp6_parser.cc"
break;
case 585:
-#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 586:
-#line 2038 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2038 "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 3236 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3240 "dhcp6_parser.cc"
break;
case 587:
-#line 2044 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2044 "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 3245 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3249 "dhcp6_parser.cc"
break;
case 588:
-#line 2049 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2049 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3253 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3257 "dhcp6_parser.cc"
break;
case 589:
-#line 2051 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2051 "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 3263 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3267 "dhcp6_parser.cc"
break;
case 590:
-#line 2057 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2057 "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 3272 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3276 "dhcp6_parser.cc"
break;
case 591:
-#line 2062 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2062 "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 3281 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3285 "dhcp6_parser.cc"
break;
case 592:
-#line 2067 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2067 "dhcp6_parser.yy"
{
ctx.enter(ctx.NCR_PROTOCOL);
}
-#line 3289 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3293 "dhcp6_parser.cc"
break;
case 593:
-#line 2069 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2069 "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 3298 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3302 "dhcp6_parser.cc"
break;
case 594:
-#line 2075 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); }
-#line 3304 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2075 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); }
+#line 3308 "dhcp6_parser.cc"
break;
case 595:
-#line 2076 "dhcp6_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); }
-#line 3310 "dhcp6_parser.cc" // lalr1.cc:907
+#line 2076 "dhcp6_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); }
+#line 3314 "dhcp6_parser.cc"
break;
case 596:
-#line 2079 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2079 "dhcp6_parser.yy"
{
ctx.enter(ctx.NCR_FORMAT);
}
-#line 3318 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3322 "dhcp6_parser.cc"
break;
case 597:
-#line 2081 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2081 "dhcp6_parser.yy"
{
ElementPtr json(new StringElement("JSON", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ncr-format", json);
ctx.leave();
}
-#line 3328 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3332 "dhcp6_parser.cc"
break;
case 598:
-#line 2087 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2087 "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 3337 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3341 "dhcp6_parser.cc"
break;
case 599:
-#line 2092 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2092 "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 3346 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3350 "dhcp6_parser.cc"
break;
case 600:
-#line 2097 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2097 "dhcp6_parser.yy"
{
ctx.enter(ctx.REPLACE_CLIENT_NAME);
}
-#line 3354 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3358 "dhcp6_parser.cc"
break;
case 601:
-#line 2099 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2099 "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 3363 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3367 "dhcp6_parser.cc"
break;
case 602:
-#line 2105 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2105 "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 3371 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3375 "dhcp6_parser.cc"
break;
case 603:
-#line 2108 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2108 "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 3379 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3383 "dhcp6_parser.cc"
break;
case 604:
-#line 2111 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2111 "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 3387 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3391 "dhcp6_parser.cc"
break;
case 605:
-#line 2114 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2114 "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 3395 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3399 "dhcp6_parser.cc"
break;
case 606:
-#line 2117 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2117 "dhcp6_parser.yy"
{
error(yystack_[0].location, "boolean values for the replace-client-name are "
"no longer supported");
}
-#line 3404 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3408 "dhcp6_parser.cc"
break;
case 607:
-#line 2123 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2123 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3412 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3416 "dhcp6_parser.cc"
break;
case 608:
-#line 2125 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2125 "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 3422 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3426 "dhcp6_parser.cc"
break;
case 609:
-#line 2131 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2131 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3430 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3434 "dhcp6_parser.cc"
break;
case 610:
-#line 2133 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2133 "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 3440 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3444 "dhcp6_parser.cc"
break;
case 611:
-#line 2139 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2139 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3448 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3452 "dhcp6_parser.cc"
break;
case 612:
-#line 2141 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2141 "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 3458 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3462 "dhcp6_parser.cc"
break;
case 613:
-#line 2149 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2149 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3466 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3470 "dhcp6_parser.cc"
break;
case 614:
-#line 2151 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2151 "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 3475 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3479 "dhcp6_parser.cc"
break;
case 615:
-#line 2156 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2156 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3483 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3487 "dhcp6_parser.cc"
break;
case 616:
-#line 2158 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2158 "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 3492 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3496 "dhcp6_parser.cc"
break;
case 617:
-#line 2163 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2163 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3500 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3504 "dhcp6_parser.cc"
break;
case 618:
-#line 2165 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2165 "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 3509 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3513 "dhcp6_parser.cc"
break;
case 619:
-#line 2172 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2172 "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 3520 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3524 "dhcp6_parser.cc"
break;
case 620:
-#line 2177 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2177 "dhcp6_parser.yy"
{
// No config control params are required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3530 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3534 "dhcp6_parser.cc"
break;
case 621:
-#line 2183 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2183 "dhcp6_parser.yy"
{
// Parse the config-control map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3540 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3544 "dhcp6_parser.cc"
break;
case 622:
-#line 2187 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2187 "dhcp6_parser.yy"
{
// No config_control params are required
// parsing completed
}
-#line 3549 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3553 "dhcp6_parser.cc"
break;
case 626:
-#line 2201 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2201 "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 3560 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3564 "dhcp6_parser.cc"
break;
case 627:
-#line 2206 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2206 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3569 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3573 "dhcp6_parser.cc"
break;
case 628:
-#line 2216 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2216 "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 3580 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3584 "dhcp6_parser.cc"
break;
case 629:
-#line 2221 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2221 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3589 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3593 "dhcp6_parser.cc"
break;
case 630:
-#line 2226 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2226 "dhcp6_parser.yy"
{
// Parse the Logging map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3599 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3603 "dhcp6_parser.cc"
break;
case 631:
-#line 2230 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2230 "dhcp6_parser.yy"
{
// parsing completed
}
-#line 3607 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3611 "dhcp6_parser.cc"
break;
case 635:
-#line 2246 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2246 "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 3618 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3622 "dhcp6_parser.cc"
break;
case 636:
-#line 2251 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2251 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3627 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3631 "dhcp6_parser.cc"
break;
case 639:
-#line 2263 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2263 "dhcp6_parser.yy"
{
ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(l);
ctx.stack_.push_back(l);
}
-#line 3637 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3641 "dhcp6_parser.cc"
break;
case 640:
-#line 2267 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2267 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 3645 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3649 "dhcp6_parser.cc"
break;
case 650:
-#line 2284 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2284 "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 3654 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3658 "dhcp6_parser.cc"
break;
case 651:
-#line 2289 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2289 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3662 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3666 "dhcp6_parser.cc"
break;
case 652:
-#line 2291 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2291 "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 3672 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3676 "dhcp6_parser.cc"
break;
case 653:
-#line 2297 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2297 "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 3683 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3687 "dhcp6_parser.cc"
break;
case 654:
-#line 2302 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2302 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3692 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3696 "dhcp6_parser.cc"
break;
case 657:
-#line 2311 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2311 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3702 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3706 "dhcp6_parser.cc"
break;
case 658:
-#line 2315 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2315 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 3710 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3714 "dhcp6_parser.cc"
break;
case 665:
-#line 2329 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2329 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3718 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3722 "dhcp6_parser.cc"
break;
case 666:
-#line 2331 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2331 "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 3728 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3732 "dhcp6_parser.cc"
break;
case 667:
-#line 2337 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2337 "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 3737 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3741 "dhcp6_parser.cc"
break;
case 668:
-#line 2342 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2342 "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 3746 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3750 "dhcp6_parser.cc"
break;
case 669:
-#line 2347 "dhcp6_parser.yy" // lalr1.cc:907
+#line 2347 "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 3755 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3759 "dhcp6_parser.cc"
break;
-#line 3759 "dhcp6_parser.cc" // lalr1.cc:907
+#line 3763 "dhcp6_parser.cc"
+
default:
break;
}
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
YYERROR;
}
}
goto yynewstate;
+
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
| 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. |
`-------------------------------------------------------------*/
}
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);
#endif // PARSER6_DEBUG
-#line 14 "dhcp6_parser.yy" // lalr1.cc:1218
+#line 14 "dhcp6_parser.yy"
} } // isc::dhcp
-#line 5066 "dhcp6_parser.cc" // lalr1.cc:1218
-#line 2352 "dhcp6_parser.yy" // lalr1.cc:1219
+#line 5083 "dhcp6_parser.cc"
+
+#line 2352 "dhcp6_parser.yy"
void
-// 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
#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 <string>
#include <cc/data.h>
using namespace isc::data;
using namespace std;
-#line 60 "dhcp6_parser.h" // lalr1.cc:404
+#line 60 "dhcp6_parser.h"
# include <cassert>
# include <cstdlib> // std::abort
# include <string>
# include <vector>
+#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&&
# 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 <typeinfo>
#ifndef YYASSERT
# 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 <typename T, typename S = std::vector<T> >
- class stack
- {
- public:
- // Hide our reversed order.
- typedef typename S::reverse_iterator iterator;
- typedef typename S::const_reverse_iterator const_iterator;
- 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 <typename T, typename S = stack<T> >
- 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 <size_t S>
- struct variant
+ /// via the current parser state.
+ class semantic_type
{
+ public:
/// Type of *this.
- typedef variant<S> self_type;
+ typedef semantic_type self_type;
/// Empty construction.
- variant ()
+ semantic_type () YY_NOEXCEPT
: yybuffer_ ()
, yytypeid_ (YY_NULLPTR)
{}
/// Construct and fill.
template <typename T>
- 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> ()) T (YY_MOVE (t));
}
/// Destruction, allowed only if empty.
- ~variant ()
+ ~semantic_type () YY_NOEXCEPT
{
YYASSERT (!yytypeid_);
}
- /// Instantiate an empty \a T in here.
- template <typename T>
+# if 201103L <= YY_CPLUSPLUS
+ /// Instantiate a \a T in here from \a t.
+ template <typename T, typename... U>
T&
- emplace ()
+ emplace (U&&... u)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T ();
+ return *new (yyas_<T> ()) T (std::forward <U>(u)...);
}
-
-# if defined __cplusplus && 201103L <= __cplusplus
- /// Instantiate a \a T in here from \a t.
- template <typename T, typename U>
+# else
+ /// Instantiate an empty \a T in here.
+ template <typename T>
T&
- emplace (U&& u)
+ emplace ()
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T (std::forward <U>(u));
+ return *new (yyas_<T> ()) T ();
}
-# else
+
/// Instantiate a \a T in here from \a t.
template <typename T>
T&
emplace (const T& t)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_<T> ()) T (t);
}
/// Accessor to a built \a T.
template <typename T>
T&
- as ()
+ as () YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
/// Const accessor to a built \a T (for %printer).
template <typename T>
const T&
- as () const
+ as () const YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
- /// 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 <typename T>
void
- swap (self_type& other)
+ swap (self_type& that) YY_NOEXCEPT
{
YYASSERT (yytypeid_);
- YYASSERT (*yytypeid_ == *other.yytypeid_);
- std::swap (as<T> (), other.as<T> ());
+ YYASSERT (*yytypeid_ == *that.yytypeid_);
+ std::swap (as<T> (), that.as<T> ());
}
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
///
- /// Destroys \a other.
+ /// Destroys \a that.
template <typename T>
void
- move (self_type& other)
+ move (self_type& that)
{
-# if defined __cplusplus && 201103L <= __cplusplus
- emplace<T> (std::move (other.as<T> ()));
+# if 201103L <= YY_CPLUSPLUS
+ emplace<T> (std::move (that.as<T> ()));
# else
emplace<T> ();
- swap<T> (other);
+ swap<T> (that);
# endif
- other.destroy<T> ();
+ that.destroy<T> ();
}
-# 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 <typename T>
void
- move (self_type&& other)
+ move (self_type&& that)
{
- emplace<T> (std::move (other.as<T> ()));
- other.destroy<T> ();
+ emplace<T> (std::move (that.as<T> ()));
+ that.destroy<T> ();
}
#endif
- /// Copy the content of \a other to this.
+ /// Copy the content of \a that to this.
template <typename T>
void
- copy (const self_type& other)
+ copy (const self_type& that)
{
- emplace<T> (other.as<T> ());
+ emplace<T> (that.as<T> ());
}
/// Destroy the stored \a T.
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 <typename T>
T*
- yyas_ ()
+ yyas_ () YY_NOEXCEPT
{
void *yyp = yybuffer_.yyraw;
return static_cast<T*> (yyp);
/// Const accessor to raw memory as \a T.
template <typename T>
const T*
- yyas_ () const
+ yyas_ () const YY_NOEXCEPT
{
const void *yyp = yybuffer_.yyraw;
return static_cast<const T*> (yyp);
}
- union
- {
- /// Strongest alignment constraints.
- long double yyalign_me;
- /// A buffer large enough to store any of the semantic values.
- char yyraw[S];
- } yybuffer_;
-
- /// Whether the content is built: if defined, the name of the stored type.
- const std::type_info *yytypeid_;
- };
-
-
- /// A Bison parser.
- class Dhcp6Parser
- {
- public:
-#ifndef PARSER6_STYPE
/// An auxiliary type to compute the largest semantic type.
union union_type
{
// "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<sizeof (union_type)> semantic_type;
#else
typedef PARSER6_STYPE semantic_type;
#endif
/// 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;
};
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<Base>& yysym = *this;
+ (void) yysym;
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+
+ // Type destructor.
+switch (yytype)
+ {
+ case 192: // value
+ case 196: // map_value
+ case 248: // db_type
+ case 338: // hr_mode
+ case 474: // duid_type
+ case 509: // ncr_protocol_value
+ case 516: // replace_client_name_value
+ value.template destroy< ElementPtr > ();
+ break;
+
+ case 174: // "boolean"
+ value.template destroy< bool > ();
+ break;
+
+ case 173: // "floating point"
+ value.template destroy< double > ();
+ break;
+
+ case 172: // "integer"
+ value.template destroy< int64_t > ();
+ break;
+
+ case 171: // "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);
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
};
/// 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;
/// 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.
};
/// "External" symbols: returned by the scanner.
- typedef basic_symbol<by_type> symbol_type;
+ struct symbol_type : basic_symbol<by_type>
+ {
+ /// Superclass.
+ typedef basic_symbol<by_type> 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_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_CQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_CONTACT_POINTS || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_KEYSPACE || tok == token::TOKEN_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_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_SUBNET6 || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_PD_POOLS || tok == token::TOKEN_PREFIX || tok == token::TOKEN_PREFIX_LEN || tok == token::TOKEN_EXCLUDED_PREFIX || tok == token::TOKEN_EXCLUDED_PREFIX_LEN || tok == token::TOKEN_DELEGATED_LEN || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_INTERFACE_ID || tok == token::TOKEN_ID || tok == token::TOKEN_RAPID_COMMIT || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_MAC_SOURCES || tok == token::TOKEN_RELAY_SUPPLIED_OPTIONS || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_PREFIXES || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_SERVER_ID || tok == token::TOKEN_LLT || tok == token::TOKEN_EN || tok == token::TOKEN_LL || tok == token::TOKEN_IDENTIFIER || tok == token::TOKEN_HTYPE || tok == token::TOKEN_TIME || tok == token::TOKEN_ENTERPRISE_ID || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_UDP || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_DHCP4 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP6 || tok == token::TOKEN_SUB_DHCP6 || tok == token::TOKEN_SUB_INTERFACES6 || tok == token::TOKEN_SUB_SUBNET6 || tok == token::TOKEN_SUB_POOL6 || tok == token::TOKEN_SUB_PD_POOL || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_LOGGING || tok == token::TOKEN_SUB_CONFIG_CONTROL);
+ }
+#else
+ symbol_type (int tok, const location_type& l)
+ : super_type(token_type (tok), l)
+ {
+ YYASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_CQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_CONTACT_POINTS || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_KEYSPACE || tok == token::TOKEN_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_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_SUBNET6 || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_PD_POOLS || tok == token::TOKEN_PREFIX || tok == token::TOKEN_PREFIX_LEN || tok == token::TOKEN_EXCLUDED_PREFIX || tok == token::TOKEN_EXCLUDED_PREFIX_LEN || tok == token::TOKEN_DELEGATED_LEN || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_INTERFACE_ID || tok == token::TOKEN_ID || tok == token::TOKEN_RAPID_COMMIT || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_MAC_SOURCES || tok == token::TOKEN_RELAY_SUPPLIED_OPTIONS || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_PREFIXES || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_SERVER_ID || tok == token::TOKEN_LLT || tok == token::TOKEN_EN || tok == token::TOKEN_LL || tok == token::TOKEN_IDENTIFIER || tok == token::TOKEN_HTYPE || tok == token::TOKEN_TIME || tok == token::TOKEN_ENTERPRISE_ID || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_UDP || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_LOGGING || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_DHCP4 || tok == token::TOKEN_DHCPDDNS || tok == token::TOKEN_CONTROL_AGENT || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP6 || tok == token::TOKEN_SUB_DHCP6 || tok == token::TOKEN_SUB_INTERFACES6 || tok == token::TOKEN_SUB_SUBNET6 || tok == token::TOKEN_SUB_POOL6 || tok == token::TOKEN_SUB_PD_POOL || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_LOGGING || tok == token::TOKEN_SUB_CONFIG_CONTROL);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ symbol_type (int tok, bool v, location_type l)
+ : super_type(token_type (tok), std::move (v), std::move (l))
+ {
+ YYASSERT (tok == token::TOKEN_BOOLEAN);
+ }
+#else
+ symbol_type (int tok, const bool& v, const location_type& l)
+ : super_type(token_type (tok), v, l)
+ {
+ YYASSERT (tok == token::TOKEN_BOOLEAN);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ symbol_type (int tok, double v, location_type l)
+ : super_type(token_type (tok), std::move (v), std::move (l))
+ {
+ YYASSERT (tok == token::TOKEN_FLOAT);
+ }
+#else
+ symbol_type (int tok, const double& v, const location_type& l)
+ : super_type(token_type (tok), v, l)
+ {
+ YYASSERT (tok == token::TOKEN_FLOAT);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ symbol_type (int tok, int64_t v, location_type l)
+ : super_type(token_type (tok), std::move (v), std::move (l))
+ {
+ YYASSERT (tok == token::TOKEN_INTEGER);
+ }
+#else
+ symbol_type (int tok, const int64_t& v, const location_type& l)
+ : super_type(token_type (tok), v, l)
+ {
+ YYASSERT (tok == token::TOKEN_INTEGER);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ symbol_type (int tok, std::string v, location_type l)
+ : super_type(token_type (tok), std::move (v), std::move (l))
+ {
+ YYASSERT (tok == token::TOKEN_STRING);
+ }
+#else
+ symbol_type (int tok, const std::string& v, const location_type& l)
+ : super_type(token_type (tok), v, l)
+ {
+ YYASSERT (tok == token::TOKEN_STRING);
+ }
+#endif
+ };
/// Build a parser object.
Dhcp6Parser (isc::dhcp::Parser6Context& ctx_yyarg);
/// 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_CONFIG_CONTROL (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_CONFIG_DATABASES (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_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_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_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_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 <typename Base>
- void yy_print_ (std::ostream& yyo, const basic_symbol<Base>& yysym) const;
-#endif
-
- /// \brief Reclaim the memory associated to a symbol.
- /// \param yymsg Why this token is reclaimed.
- /// If null, print nothing.
- /// \param yysym The symbol.
- template <typename Base>
- void yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const;
-
- private:
- /// Type access provider for state based symbols.
- struct by_state
- {
- /// Default constructor.
- by_state ();
-
- /// The symbol type as needed by the constructor.
- typedef state_type kind_type;
-
- /// Constructor.
- by_state (kind_type s);
-
- /// Copy constructor.
- by_state (const by_state& other);
-
- /// Record that this symbol is empty.
- void clear ();
-
- /// Steal the symbol type from \a that.
- void move (by_state& that);
-
- /// The (internal) type number (corresponding to \a state).
- /// \a empty_symbol when empty.
- symbol_number_type type_get () const;
-
- /// The state number used to denote an empty symbol.
- enum { empty_state = -1 };
-
- /// The state.
- /// \a empty when empty.
- state_type state;
- };
-
- /// "Internal" symbol: element of the stack.
- struct stack_symbol_type : basic_symbol<by_state>
- {
- /// Superclass.
- typedef basic_symbol<by_state> super_type;
- /// Construct an empty symbol.
- stack_symbol_type ();
- /// 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_symbol_type> stack_type;
-
- /// The stack.
- stack_type yystack_;
-
- /// Push a new state on the stack.
- /// \param m a debug message to display
- /// if null, no trace is output.
- /// \param 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_ = 1024, ///< Last index in yytable_.
- yynnts_ = 390, ///< Number of nonterminal symbols.
- yyfinal_ = 32, ///< Termination state number.
- yyterror_ = 1,
- yyerrcode_ = 256,
- yyntokens_ = 175 ///< 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
- };
- const unsigned user_token_number_max_ = 429;
- const token_number_type undef_token_ = 2;
-
- if (static_cast<int> (t) <= yyeof_)
- return yyeof_;
- else if (static_cast<unsigned> (t) <= user_token_number_max_)
- return translate_table[t];
- else
- return undef_token_;
- }
-
- inline
- Dhcp6Parser::syntax_error::syntax_error (const location_type& l, const std::string& m)
- : std::runtime_error (m)
- , location (l)
- {}
-
- // basic_symbol.
- template <typename Base>
- Dhcp6Parser::basic_symbol<Base>::basic_symbol ()
- : value ()
- , location ()
- {}
-
- template <typename Base>
- Dhcp6Parser::basic_symbol<Base>::basic_symbol (YY_RVREF (basic_symbol) other)
- : Base (YY_MOVE (other))
- , value ()
- , location (YY_MOVE (other.location))
- {
- switch (other.type_get ())
- {
- case 192: // value
- case 196: // map_value
- case 248: // db_type
- case 338: // hr_mode
- case 474: // duid_type
- case 509: // ncr_protocol_value
- case 516: // replace_client_name_value
- value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (other.value));
- break;
-
- case 174: // "boolean"
- value.YY_MOVE_OR_COPY< bool > (YY_MOVE (other.value));
- break;
-
- case 173: // "floating point"
- value.YY_MOVE_OR_COPY< double > (YY_MOVE (other.value));
- break;
-
- case 172: // "integer"
- value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (other.value));
- break;
-
- case 171: // "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 <typename Base>
- Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l)
- : Base (t)
- , location (YY_MOVE (l))
- {}
-
- template <typename Base>
- Dhcp6Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp6Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp6Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp6Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp6Parser::basic_symbol<Base>::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 <typename Base>
- Dhcp6Parser::basic_symbol<Base>::~basic_symbol ()
- {
- clear ();
- }
-
- template <typename Base>
- void
- Dhcp6Parser::basic_symbol<Base>::clear ()
- {
- // User destructor.
- symbol_number_type yytype = this->type_get ();
- basic_symbol<Base>& yysym = *this;
- (void) yysym;
- switch (yytype)
- {
- default:
- break;
- }
-
- // Type destructor.
- switch (yytype)
- {
- case 192: // value
- case 196: // map_value
- case 248: // db_type
- case 338: // hr_mode
- case 474: // duid_type
- case 509: // ncr_protocol_value
- case 516: // replace_client_name_value
- value.template destroy< ElementPtr > ();
- break;
-
- case 174: // "boolean"
- value.template destroy< bool > ();
- break;
-
- case 173: // "floating point"
- value.template destroy< double > ();
- break;
-
- case 172: // "integer"
- value.template destroy< int64_t > ();
- break;
-
- case 171: // "constant string"
- value.template destroy< std::string > ();
- break;
-
- default:
- break;
- }
-
- Base::clear ();
- }
-
- template <typename Base>
- bool
- Dhcp6Parser::basic_symbol<Base>::empty () const
- {
- return Base::type_get () == empty_symbol;
- }
-
- template <typename Base>
- void
- Dhcp6Parser::basic_symbol<Base>::move (basic_symbol& s)
- {
- super_type::move (s);
- switch (this->type_get ())
- {
- case 192: // value
- case 196: // map_value
- case 248: // db_type
- case 338: // hr_mode
- case 474: // duid_type
- case 509: // ncr_protocol_value
- case 516: // replace_client_name_value
- value.move< ElementPtr > (YY_MOVE (s.value));
- break;
-
- case 174: // "boolean"
- value.move< bool > (YY_MOVE (s.value));
- break;
-
- case 173: // "floating point"
- value.move< double > (YY_MOVE (s.value));
- break;
-
- case 172: // "integer"
- value.move< int64_t > (YY_MOVE (s.value));
- break;
-
- case 171: // "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
- };
- return static_cast<token_type> (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_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_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_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_VALID_LIFETIME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_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_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));
- }
+ // 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_CONFIG_CONTROL (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONFIG_CONTROL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONFIG_CONTROL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONFIG_CONTROL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CONFIG_DATABASES (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONFIG_DATABASES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONFIG_DATABASES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONFIG_DATABASES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_INTERFACES_CONFIG (location_type l)
+ {
+ return symbol_type (token::TOKEN_INTERFACES_CONFIG, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_INTERFACES_CONFIG (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTERFACES_CONFIG, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_INTERFACES (location_type l)
+ {
+ return symbol_type (token::TOKEN_INTERFACES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_INTERFACES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTERFACES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RE_DETECT (location_type l)
+ {
+ return symbol_type (token::TOKEN_RE_DETECT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RE_DETECT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RE_DETECT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LEASE_DATABASE (location_type l)
+ {
+ return symbol_type (token::TOKEN_LEASE_DATABASE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LEASE_DATABASE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LEASE_DATABASE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOSTS_DATABASE (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOSTS_DATABASE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOSTS_DATABASE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTS_DATABASE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOSTS_DATABASES (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOSTS_DATABASES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOSTS_DATABASES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTS_DATABASES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TYPE (location_type l)
+ {
+ return symbol_type (token::TOKEN_TYPE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TYPE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TYPE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MEMFILE (location_type l)
+ {
+ return symbol_type (token::TOKEN_MEMFILE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MEMFILE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MEMFILE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MYSQL (location_type l)
+ {
+ return symbol_type (token::TOKEN_MYSQL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MYSQL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MYSQL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_POSTGRESQL (location_type l)
+ {
+ return symbol_type (token::TOKEN_POSTGRESQL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_POSTGRESQL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_POSTGRESQL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CQL (location_type l)
+ {
+ return symbol_type (token::TOKEN_CQL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CQL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CQL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_USER (location_type l)
+ {
+ return symbol_type (token::TOKEN_USER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_USER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_USER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PASSWORD (location_type l)
+ {
+ return symbol_type (token::TOKEN_PASSWORD, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PASSWORD (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PASSWORD, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOST (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOST, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOST (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOST, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PORT (location_type l)
+ {
+ return symbol_type (token::TOKEN_PORT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PORT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PORT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PERSIST (location_type l)
+ {
+ return symbol_type (token::TOKEN_PERSIST, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PERSIST (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PERSIST, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LFC_INTERVAL (location_type l)
+ {
+ return symbol_type (token::TOKEN_LFC_INTERVAL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LFC_INTERVAL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LFC_INTERVAL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_READONLY (location_type l)
+ {
+ return symbol_type (token::TOKEN_READONLY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_READONLY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_READONLY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CONNECT_TIMEOUT (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONNECT_TIMEOUT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONNECT_TIMEOUT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONNECT_TIMEOUT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CONTACT_POINTS (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONTACT_POINTS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONTACT_POINTS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONTACT_POINTS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAX_RECONNECT_TRIES (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAX_RECONNECT_TRIES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECONNECT_TRIES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RECONNECT_WAIT_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RECONNECT_WAIT_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_KEYSPACE (location_type l)
+ {
+ return symbol_type (token::TOKEN_KEYSPACE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_KEYSPACE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_KEYSPACE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_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_VALID_LIFETIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_VALID_LIFETIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_VALID_LIFETIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_VALID_LIFETIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RENEW_TIMER (location_type l)
+ {
+ return symbol_type (token::TOKEN_RENEW_TIMER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RENEW_TIMER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RENEW_TIMER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_REBIND_TIMER (location_type l)
+ {
+ return symbol_type (token::TOKEN_REBIND_TIMER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_REBIND_TIMER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_REBIND_TIMER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DECLINE_PROBATION_PERIOD (location_type l)
+ {
+ return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DECLINE_PROBATION_PERIOD (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DECLINE_PROBATION_PERIOD, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SERVER_TAG (location_type l)
+ {
+ return symbol_type (token::TOKEN_SERVER_TAG, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SERVER_TAG (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SERVER_TAG, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUBNET6 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUBNET6, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUBNET6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBNET6, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OPTION_DEF (location_type l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DEF, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OPTION_DEF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DEF, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OPTION_DATA (location_type l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DATA, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OPTION_DATA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OPTION_DATA, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_NAME (location_type l)
+ {
+ return symbol_type (token::TOKEN_NAME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NAME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DATA (location_type l)
+ {
+ return symbol_type (token::TOKEN_DATA, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DATA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DATA, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CODE (location_type l)
+ {
+ return symbol_type (token::TOKEN_CODE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CODE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CODE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SPACE (location_type l)
+ {
+ return symbol_type (token::TOKEN_SPACE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SPACE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SPACE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CSV_FORMAT (location_type l)
+ {
+ return symbol_type (token::TOKEN_CSV_FORMAT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CSV_FORMAT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CSV_FORMAT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ALWAYS_SEND (location_type l)
+ {
+ return symbol_type (token::TOKEN_ALWAYS_SEND, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ALWAYS_SEND (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ALWAYS_SEND, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RECORD_TYPES (location_type l)
+ {
+ return symbol_type (token::TOKEN_RECORD_TYPES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RECORD_TYPES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RECORD_TYPES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ENCAPSULATE (location_type l)
+ {
+ return symbol_type (token::TOKEN_ENCAPSULATE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ENCAPSULATE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ENCAPSULATE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ARRAY (location_type l)
+ {
+ return symbol_type (token::TOKEN_ARRAY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ARRAY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ARRAY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_POOLS (location_type l)
+ {
+ return symbol_type (token::TOKEN_POOLS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_POOLS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_POOLS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_POOL (location_type l)
+ {
+ return symbol_type (token::TOKEN_POOL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_POOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_POOL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PD_POOLS (location_type l)
+ {
+ return symbol_type (token::TOKEN_PD_POOLS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PD_POOLS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PD_POOLS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PREFIX (location_type l)
+ {
+ return symbol_type (token::TOKEN_PREFIX, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PREFIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PREFIX, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PREFIX_LEN (location_type l)
+ {
+ return symbol_type (token::TOKEN_PREFIX_LEN, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PREFIX_LEN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PREFIX_LEN, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_EXCLUDED_PREFIX (location_type l)
+ {
+ return symbol_type (token::TOKEN_EXCLUDED_PREFIX, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_EXCLUDED_PREFIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EXCLUDED_PREFIX, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_EXCLUDED_PREFIX_LEN (location_type l)
+ {
+ return symbol_type (token::TOKEN_EXCLUDED_PREFIX_LEN, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_EXCLUDED_PREFIX_LEN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EXCLUDED_PREFIX_LEN, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DELEGATED_LEN (location_type l)
+ {
+ return symbol_type (token::TOKEN_DELEGATED_LEN, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DELEGATED_LEN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DELEGATED_LEN, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_USER_CONTEXT (location_type l)
+ {
+ return symbol_type (token::TOKEN_USER_CONTEXT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_USER_CONTEXT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_USER_CONTEXT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_COMMENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_COMMENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_COMMENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_COMMENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUBNET (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUBNET, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUBNET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBNET, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_INTERFACE (location_type l)
+ {
+ return symbol_type (token::TOKEN_INTERFACE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_INTERFACE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTERFACE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_INTERFACE_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_INTERFACE_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_INTERFACE_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTERFACE_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RAPID_COMMIT (location_type l)
+ {
+ return symbol_type (token::TOKEN_RAPID_COMMIT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RAPID_COMMIT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RAPID_COMMIT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RESERVATION_MODE (location_type l)
+ {
+ return symbol_type (token::TOKEN_RESERVATION_MODE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RESERVATION_MODE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RESERVATION_MODE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DISABLED (location_type l)
+ {
+ return symbol_type (token::TOKEN_DISABLED, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DISABLED (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DISABLED, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OUT_OF_POOL (location_type l)
+ {
+ return symbol_type (token::TOKEN_OUT_OF_POOL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OUT_OF_POOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OUT_OF_POOL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_GLOBAL (location_type l)
+ {
+ return symbol_type (token::TOKEN_GLOBAL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_GLOBAL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_GLOBAL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ALL (location_type l)
+ {
+ return symbol_type (token::TOKEN_ALL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ALL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ALL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SHARED_NETWORKS (location_type l)
+ {
+ return symbol_type (token::TOKEN_SHARED_NETWORKS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SHARED_NETWORKS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SHARED_NETWORKS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAC_SOURCES (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAC_SOURCES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAC_SOURCES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAC_SOURCES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RELAY_SUPPLIED_OPTIONS (location_type l)
+ {
+ return symbol_type (token::TOKEN_RELAY_SUPPLIED_OPTIONS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RELAY_SUPPLIED_OPTIONS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RELAY_SUPPLIED_OPTIONS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOST_RESERVATION_IDENTIFIERS (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOST_RESERVATION_IDENTIFIERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOST_RESERVATION_IDENTIFIERS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SANITY_CHECKS (location_type l)
+ {
+ return symbol_type (token::TOKEN_SANITY_CHECKS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SANITY_CHECKS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SANITY_CHECKS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LEASE_CHECKS (location_type l)
+ {
+ return symbol_type (token::TOKEN_LEASE_CHECKS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LEASE_CHECKS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LEASE_CHECKS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CLIENT_CLASSES (location_type l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASSES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CLIENT_CLASSES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASSES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_REQUIRE_CLIENT_CLASSES (location_type l)
+ {
+ return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_REQUIRE_CLIENT_CLASSES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_REQUIRE_CLIENT_CLASSES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TEST (location_type l)
+ {
+ return symbol_type (token::TOKEN_TEST, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TEST (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TEST, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ONLY_IF_REQUIRED (location_type l)
+ {
+ return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ONLY_IF_REQUIRED (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ONLY_IF_REQUIRED, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CLIENT_CLASS (location_type l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CLIENT_CLASS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CLIENT_CLASS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RESERVATIONS (location_type l)
+ {
+ return symbol_type (token::TOKEN_RESERVATIONS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RESERVATIONS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RESERVATIONS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_IP_ADDRESSES (location_type l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESSES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_IP_ADDRESSES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESSES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PREFIXES (location_type l)
+ {
+ return symbol_type (token::TOKEN_PREFIXES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PREFIXES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PREFIXES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DUID (location_type l)
+ {
+ return symbol_type (token::TOKEN_DUID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DUID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DUID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HW_ADDRESS (location_type l)
+ {
+ return symbol_type (token::TOKEN_HW_ADDRESS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HW_ADDRESS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HW_ADDRESS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOSTNAME (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOSTNAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_FLEX_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_FLEX_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_FLEX_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_FLEX_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RELAY (location_type l)
+ {
+ return symbol_type (token::TOKEN_RELAY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RELAY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RELAY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_IP_ADDRESS (location_type l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_IP_ADDRESS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOOKS_LIBRARIES (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOOKS_LIBRARIES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOOKS_LIBRARIES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOOKS_LIBRARIES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LIBRARY (location_type l)
+ {
+ return symbol_type (token::TOKEN_LIBRARY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LIBRARY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LIBRARY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PARAMETERS (location_type l)
+ {
+ return symbol_type (token::TOKEN_PARAMETERS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PARAMETERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PARAMETERS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_EXPIRED_LEASES_PROCESSING (location_type l)
+ {
+ return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_EXPIRED_LEASES_PROCESSING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RECLAIM_TIMER_WAIT_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RECLAIM_TIMER_WAIT_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_FLUSH_RECLAIMED_TIMER_WAIT_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOLD_RECLAIMED_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOLD_RECLAIMED_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOLD_RECLAIMED_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAX_RECLAIM_LEASES (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAX_RECLAIM_LEASES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAX_RECLAIM_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAX_RECLAIM_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAX_RECLAIM_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_UNWARNED_RECLAIM_CYCLES (location_type l)
+ {
+ return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_UNWARNED_RECLAIM_CYCLES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SERVER_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_SERVER_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SERVER_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SERVER_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LLT (location_type l)
+ {
+ return symbol_type (token::TOKEN_LLT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LLT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LLT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_EN (location_type l)
+ {
+ return symbol_type (token::TOKEN_EN, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_EN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EN, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LL (location_type l)
+ {
+ return symbol_type (token::TOKEN_LL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_IDENTIFIER (location_type l)
+ {
+ return symbol_type (token::TOKEN_IDENTIFIER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_IDENTIFIER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IDENTIFIER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HTYPE (location_type l)
+ {
+ return symbol_type (token::TOKEN_HTYPE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HTYPE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HTYPE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TIME (location_type l)
+ {
+ return symbol_type (token::TOKEN_TIME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TIME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TIME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ENTERPRISE_ID (location_type l)
+ {
+ return symbol_type (token::TOKEN_ENTERPRISE_ID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ENTERPRISE_ID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ENTERPRISE_ID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP4O6_PORT (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP4O6_PORT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP4O6_PORT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP4O6_PORT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CONTROL_SOCKET (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_SOCKET, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONTROL_SOCKET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_SOCKET, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SOCKET_TYPE (location_type l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_TYPE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SOCKET_TYPE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_TYPE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SOCKET_NAME (location_type l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_NAME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SOCKET_NAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_NAME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP_QUEUE_CONTROL (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP_QUEUE_CONTROL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP_QUEUE_CONTROL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP_DDNS (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP_DDNS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP_DDNS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP_DDNS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ENABLE_UPDATES (location_type l)
+ {
+ return symbol_type (token::TOKEN_ENABLE_UPDATES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ENABLE_UPDATES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ENABLE_UPDATES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_QUALIFYING_SUFFIX (location_type l)
+ {
+ return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_QUALIFYING_SUFFIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SERVER_IP (location_type l)
+ {
+ return symbol_type (token::TOKEN_SERVER_IP, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SERVER_IP (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SERVER_IP, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SERVER_PORT (location_type l)
+ {
+ return symbol_type (token::TOKEN_SERVER_PORT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SERVER_PORT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SERVER_PORT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SENDER_IP (location_type l)
+ {
+ return symbol_type (token::TOKEN_SENDER_IP, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SENDER_IP (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SENDER_IP, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SENDER_PORT (location_type l)
+ {
+ return symbol_type (token::TOKEN_SENDER_PORT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SENDER_PORT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SENDER_PORT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAX_QUEUE_SIZE (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAX_QUEUE_SIZE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_NCR_PROTOCOL (location_type l)
+ {
+ return symbol_type (token::TOKEN_NCR_PROTOCOL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NCR_PROTOCOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NCR_PROTOCOL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_NCR_FORMAT (location_type l)
+ {
+ return symbol_type (token::TOKEN_NCR_FORMAT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NCR_FORMAT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NCR_FORMAT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OVERRIDE_NO_UPDATE (location_type l)
+ {
+ return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OVERRIDE_NO_UPDATE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OVERRIDE_CLIENT_UPDATE (location_type l)
+ {
+ return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OVERRIDE_CLIENT_UPDATE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OVERRIDE_CLIENT_UPDATE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_REPLACE_CLIENT_NAME (location_type l)
+ {
+ return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_REPLACE_CLIENT_NAME (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_GENERATED_PREFIX (location_type l)
+ {
+ return symbol_type (token::TOKEN_GENERATED_PREFIX, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_GENERATED_PREFIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_GENERATED_PREFIX, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_UDP (location_type l)
+ {
+ return symbol_type (token::TOKEN_UDP, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_UDP (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_UDP, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TCP (location_type l)
+ {
+ return symbol_type (token::TOKEN_TCP, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TCP (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TCP, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_JSON (location_type l)
+ {
+ return symbol_type (token::TOKEN_JSON, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_JSON (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_JSON, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_WHEN_PRESENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_WHEN_PRESENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_WHEN_PRESENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_WHEN_PRESENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_NEVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_NEVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NEVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NEVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ALWAYS (location_type l)
+ {
+ return symbol_type (token::TOKEN_ALWAYS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ALWAYS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ALWAYS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_WHEN_NOT_PRESENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_WHEN_NOT_PRESENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_WHEN_NOT_PRESENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOSTNAME_CHAR_SET (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOSTNAME_CHAR_SET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME_CHAR_SET, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HOSTNAME_CHAR_REPLACEMENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HOSTNAME_CHAR_REPLACEMENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LOGGING (location_type l)
+ {
+ return symbol_type (token::TOKEN_LOGGING, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LOGGING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LOGGING, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LOGGERS (location_type l)
+ {
+ return symbol_type (token::TOKEN_LOGGERS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LOGGERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LOGGERS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OUTPUT_OPTIONS (location_type l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT_OPTIONS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OUTPUT_OPTIONS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT_OPTIONS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OUTPUT (location_type l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OUTPUT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OUTPUT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DEBUGLEVEL (location_type l)
+ {
+ return symbol_type (token::TOKEN_DEBUGLEVEL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DEBUGLEVEL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DEBUGLEVEL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SEVERITY (location_type l)
+ {
+ return symbol_type (token::TOKEN_SEVERITY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SEVERITY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SEVERITY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_FLUSH (location_type l)
+ {
+ return symbol_type (token::TOKEN_FLUSH, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_FLUSH (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_FLUSH, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAXSIZE (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAXSIZE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAXSIZE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAXSIZE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MAXVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_MAXVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MAXVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MAXVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP4 (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP4, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP4, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCPDDNS (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCPDDNS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCPDDNS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCPDDNS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CONTROL_AGENT (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_AGENT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONTROL_AGENT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONTROL_AGENT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TOPLEVEL_JSON (location_type l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_JSON, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TOPLEVEL_JSON (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_JSON, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TOPLEVEL_DHCP6 (location_type l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_DHCP6, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TOPLEVEL_DHCP6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_DHCP6, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_DHCP6 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_DHCP6, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_DHCP6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_DHCP6, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_INTERFACES6 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_INTERFACES6, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_INTERFACES6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_INTERFACES6, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_SUBNET6 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_SUBNET6, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_SUBNET6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_SUBNET6, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_POOL6 (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_POOL6, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_POOL6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_POOL6, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_PD_POOL (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_PD_POOL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_PD_POOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_PD_POOL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_RESERVATION (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_RESERVATION, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_RESERVATION (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_RESERVATION, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_OPTION_DEFS (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DEFS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_OPTION_DEFS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DEFS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_OPTION_DEF (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DEF, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_OPTION_DEF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DEF, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_OPTION_DATA (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DATA, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_OPTION_DATA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_OPTION_DATA, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_HOOKS_LIBRARY (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_HOOKS_LIBRARY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_HOOKS_LIBRARY, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_DHCP_DDNS (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_DHCP_DDNS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_DHCP_DDNS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_LOGGING (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_LOGGING, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_LOGGING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_LOGGING, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUB_CONFIG_CONTROL (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUB_CONFIG_CONTROL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUB_CONFIG_CONTROL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_STRING (std::string v, location_type l)
+ {
+ return symbol_type (token::TOKEN_STRING, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_STRING (const std::string& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_STRING, v, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_INTEGER (int64_t v, location_type l)
+ {
+ return symbol_type (token::TOKEN_INTEGER, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_INTEGER (const int64_t& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTEGER, v, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_FLOAT (double v, location_type l)
+ {
+ return symbol_type (token::TOKEN_FLOAT, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_FLOAT (const double& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_FLOAT, v, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_BOOLEAN (bool v, location_type l)
+ {
+ return symbol_type (token::TOKEN_BOOLEAN, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_BOOLEAN (const bool& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_BOOLEAN, v, l);
+ }
+#endif
- 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));
- }
+ private:
+ /// This class is not copyable.
+ Dhcp6Parser (const Dhcp6Parser&);
+ Dhcp6Parser& operator= (const Dhcp6Parser&);
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_HW_ADDRESS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HW_ADDRESS, YY_MOVE (l));
- }
+ /// State numbers.
+ typedef int state_type;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_HOSTNAME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HOSTNAME, 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_FLEX_ID (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_FLEX_ID, 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_RELAY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RELAY, 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_IP_ADDRESS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_IP_ADDRESS, 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_HOOKS_LIBRARIES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HOOKS_LIBRARIES, YY_MOVE (l));
- }
+ static const short yypact_ninf_;
+ static const signed char yytable_ninf_;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_LIBRARY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LIBRARY, 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_PARAMETERS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_PARAMETERS, 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_EXPIRED_LEASES_PROCESSING (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_EXPIRED_LEASES_PROCESSING, 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_RECLAIM_TIMER_WAIT_TIME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RECLAIM_TIMER_WAIT_TIME, YY_MOVE (l));
- }
+ // YYPGOTO[NTERM-NUM].
+ static const short yypgoto_[];
- 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));
- }
+ // YYDEFGOTO[NTERM-NUM].
+ static const short yydefgoto_[];
- 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));
- }
+ // 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_MAX_RECLAIM_LEASES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MAX_RECLAIM_LEASES, YY_MOVE (l));
- }
+ static const short yycheck_[];
- 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));
- }
+ // 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_UNWARNED_RECLAIM_CYCLES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_UNWARNED_RECLAIM_CYCLES, YY_MOVE (l));
- }
+ // YYR1[YYN] -- Symbol number of symbol that rule YYN derives.
+ static const unsigned short yyr1_[];
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_SERVER_ID (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SERVER_ID, 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_LLT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LLT, YY_MOVE (l));
- }
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_EN (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_EN, 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_LL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LL, YY_MOVE (l));
- }
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_IDENTIFIER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_IDENTIFIER, 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_HTYPE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HTYPE, YY_MOVE (l));
- }
+ /// Debugging level.
+ int yydebug_;
+ /// Debug stream.
+ std::ostream* yycdebug_;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_TIME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TIME, YY_MOVE (l));
- }
+ /// \brief Display a symbol type, value and location.
+ /// \param yyo The output stream.
+ /// \param yysym The symbol.
+ template <typename Base>
+ void yy_print_ (std::ostream& yyo, const basic_symbol<Base>& yysym) const;
+#endif
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_ENTERPRISE_ID (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ENTERPRISE_ID, 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 <typename Base>
+ void yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_DHCP4O6_PORT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP4O6_PORT, 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_CONTROL_SOCKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CONTROL_SOCKET, YY_MOVE (l));
- }
+ /// The symbol type as needed by the constructor.
+ typedef state_type kind_type;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_SOCKET_TYPE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SOCKET_TYPE, YY_MOVE (l));
- }
+ /// Constructor.
+ by_state (kind_type s) YY_NOEXCEPT;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_SOCKET_NAME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SOCKET_NAME, YY_MOVE (l));
- }
+ /// Copy constructor.
+ by_state (const by_state& that) 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));
- }
+ /// Record that this symbol is empty.
+ void clear () YY_NOEXCEPT;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_DHCP_DDNS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP_DDNS, YY_MOVE (l));
- }
+ /// Steal the symbol type from \a that.
+ void move (by_state& that);
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_ENABLE_UPDATES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ENABLE_UPDATES, 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_QUALIFYING_SUFFIX (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_QUALIFYING_SUFFIX, YY_MOVE (l));
- }
+ /// The state number used to denote an empty symbol.
+ enum { empty_state = -1 };
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_SERVER_IP (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SERVER_IP, YY_MOVE (l));
- }
+ /// The state.
+ /// \a empty when empty.
+ state_type state;
+ };
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_SERVER_PORT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SERVER_PORT, YY_MOVE (l));
- }
+ /// "Internal" symbol: element of the stack.
+ struct stack_symbol_type : basic_symbol<by_state>
+ {
+ /// Superclass.
+ typedef basic_symbol<by_state> super_type;
+ /// Construct an empty symbol.
+ stack_symbol_type ();
+ /// 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_SENDER_IP (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SENDER_IP, YY_MOVE (l));
- }
+ /// A stack with random access from its top.
+ template <typename T, typename S = std::vector<T> >
+ class stack
+ {
+ public:
+ // Hide our reversed order.
+ typedef typename S::reverse_iterator iterator;
+ typedef typename S::const_reverse_iterator const_iterator;
+ 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_SENDER_PORT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SENDER_PORT, 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_MAX_QUEUE_SIZE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MAX_QUEUE_SIZE, YY_MOVE (l));
- }
+ /// Pop all elements from the stack.
+ void
+ clear () YY_NOEXCEPT
+ {
+ seq_.clear ();
+ }
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_NCR_PROTOCOL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NCR_PROTOCOL, YY_MOVE (l));
- }
+ /// Number of elements on the stack.
+ size_type
+ size () const YY_NOEXCEPT
+ {
+ return seq_.size ();
+ }
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_NCR_FORMAT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NCR_FORMAT, 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_OVERRIDE_NO_UPDATE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OVERRIDE_NO_UPDATE, YY_MOVE (l));
- }
+ /// Bottom of the stack.
+ const_iterator
+ end () const YY_NOEXCEPT
+ {
+ return seq_.rend ();
+ }
- 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));
- }
+ /// 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_REPLACE_CLIENT_NAME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_REPLACE_CLIENT_NAME, YY_MOVE (l));
- }
+ private:
+ stack (const stack&);
+ stack& operator= (const stack&);
+ /// The wrapped container.
+ S seq_;
+ };
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_GENERATED_PREFIX (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_GENERATED_PREFIX, YY_MOVE (l));
- }
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_UDP (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_UDP, YY_MOVE (l));
- }
+ /// Stack type.
+ typedef stack<stack_symbol_type> stack_type;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_TCP (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TCP, YY_MOVE (l));
- }
+ /// The stack.
+ stack_type yystack_;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_JSON (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_JSON, 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_PRESENT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_WHEN_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_NEVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NEVER, YY_MOVE (l));
- }
+ /// Pop \a n symbols from the stack.
+ void yypop_ (int n = 1);
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_ALWAYS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ALWAYS, YY_MOVE (l));
- }
+ /// Constants.
+ enum
+ {
+ yyeof_ = 0,
+ yylast_ = 1024, ///< Last index in yytable_.
+ yynnts_ = 390, ///< Number of nonterminal symbols.
+ yyfinal_ = 32, ///< Termination state number.
+ yyterror_ = 1,
+ yyerrcode_ = 256,
+ yyntokens_ = 175 ///< Number of tokens.
+ };
- 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));
- }
- 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));
- }
+ // User arguments.
+ isc::dhcp::Parser6Context& ctx;
+ };
inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_HOSTNAME_CHAR_REPLACEMENT (YY_COPY (location_type) l)
+ Dhcp6Parser::token_number_type
+ Dhcp6Parser::yytranslate_ (token_type t)
{
- return symbol_type (token::TOKEN_HOSTNAME_CHAR_REPLACEMENT, 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
+ };
+ const unsigned user_token_number_max_ = 429;
+ const token_number_type undef_token_ = 2;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_LOGGING (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LOGGING, YY_MOVE (l));
+ if (static_cast<int> (t) <= yyeof_)
+ return yyeof_;
+ else if (static_cast<unsigned> (t) <= user_token_number_max_)
+ return translate_table[t];
+ else
+ return undef_token_;
}
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_LOGGERS (YY_COPY (location_type) l)
+ // basic_symbol.
+#if 201103L <= YY_CPLUSPLUS
+ template <typename Base>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (basic_symbol&& that)
+ : Base (std::move (that))
+ , value ()
+ , location (std::move (that.location))
{
- return symbol_type (token::TOKEN_LOGGERS, YY_MOVE (l));
- }
+ switch (this->type_get ())
+ {
+ case 192: // value
+ case 196: // map_value
+ case 248: // db_type
+ case 338: // hr_mode
+ case 474: // duid_type
+ case 509: // ncr_protocol_value
+ case 516: // replace_client_name_value
+ value.move< ElementPtr > (std::move (that.value));
+ break;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_OUTPUT_OPTIONS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OUTPUT_OPTIONS, YY_MOVE (l));
- }
+ case 174: // "boolean"
+ value.move< bool > (std::move (that.value));
+ break;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_OUTPUT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OUTPUT, YY_MOVE (l));
- }
+ case 173: // "floating point"
+ value.move< double > (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 172: // "integer"
+ value.move< int64_t > (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 171: // "constant string"
+ value.move< std::string > (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));
- }
+ default:
+ break;
+ }
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_MAXSIZE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MAXSIZE, YY_MOVE (l));
}
+#endif
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_MAXVER (YY_COPY (location_type) l)
+ template <typename Base>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (const basic_symbol& that)
+ : Base (that)
+ , value ()
+ , location (that.location)
{
- return symbol_type (token::TOKEN_MAXVER, YY_MOVE (l));
- }
+ switch (this->type_get ())
+ {
+ case 192: // value
+ case 196: // map_value
+ case 248: // db_type
+ case 338: // hr_mode
+ case 474: // duid_type
+ case 509: // ncr_protocol_value
+ case 516: // replace_client_name_value
+ value.copy< ElementPtr > (YY_MOVE (that.value));
+ break;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_DHCP4 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP4, YY_MOVE (l));
- }
+ case 174: // "boolean"
+ value.copy< bool > (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 173: // "floating point"
+ value.copy< double > (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 172: // "integer"
+ value.copy< int64_t > (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 171: // "constant string"
+ value.copy< std::string > (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));
- }
+ default:
+ break;
+ }
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_SUB_DHCP6 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SUB_DHCP6, YY_MOVE (l));
}
- 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)
+ template <typename Base>
+ bool
+ Dhcp6Parser::basic_symbol<Base>::empty () const YY_NOEXCEPT
{
- return symbol_type (token::TOKEN_SUB_POOL6, YY_MOVE (l));
+ return Base::type_get () == empty_symbol;
}
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_SUB_PD_POOL (YY_COPY (location_type) l)
+ template <typename Base>
+ void
+ Dhcp6Parser::basic_symbol<Base>::move (basic_symbol& s)
{
- return symbol_type (token::TOKEN_SUB_PD_POOL, YY_MOVE (l));
- }
+ super_type::move (s);
+ switch (this->type_get ())
+ {
+ case 192: // value
+ case 196: // map_value
+ case 248: // db_type
+ case 338: // hr_mode
+ case 474: // duid_type
+ case 509: // ncr_protocol_value
+ case 516: // replace_client_name_value
+ value.move< ElementPtr > (YY_MOVE (s.value));
+ break;
- inline
- Dhcp6Parser::symbol_type
- Dhcp6Parser::make_SUB_RESERVATION (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SUB_RESERVATION, YY_MOVE (l));
- }
+ case 174: // "boolean"
+ value.move< bool > (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 173: // "floating point"
+ value.move< double > (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 172: // "integer"
+ value.move< int64_t > (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 171: // "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
+ };
+ return token_type (yytoken_number_[type]);
}
-
-#line 14 "dhcp6_parser.yy" // lalr1.cc:404
+#line 14 "dhcp6_parser.yy"
} } // isc::dhcp
-#line 3289 "dhcp6_parser.h" // lalr1.cc:404
+#line 4164 "dhcp6_parser.h"
+
-// Copyright (C) 2011-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author>
<contrib>The Kea software has been written by a number of
engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
<docinfo>
<copyright>
- <year>2011-2018</year>
+ <year>2011-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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
# 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
{
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
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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".
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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.
-// Copyright (C) 2011-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
-// Copyright (C) 2013-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
<refentry>
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author>
<personname/>
<contrib>The Kea software has been written by a number of
<docinfo>
<copyright>
- <year>2014-2018</year>
+ <year>2014-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author><personname/><contrib>The Kea software has been written by a number of
engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
Siodelski, Thomas Markwalder, Francis Dupont, Jeremy C. Reed,
<docinfo>
<copyright>
- <year>2015-2018</year>
+ <year>2015-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author>
<contrib>The Kea software has been written by a number of
engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
-// Generated 201811271344
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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
# endif
# endif
-#line 14 "netconf_parser.yy" // location.cc:339
+#line 14 "netconf_parser.yy"
namespace isc { namespace netconf {
-#line 60 "location.hh" // location.cc:339
+#line 60 "location.hh"
+
/// A point in a source file.
class position
{
return ostr;
}
-#line 14 "netconf_parser.yy" // location.cc:339
+#line 14 "netconf_parser.yy"
} } // isc::netconf
-#line 322 "location.hh" // location.cc:339
+#line 323 "location.hh"
+
#endif // !YY_NETCONF_LOCATION_HH_INCLUDED
-// 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
// Unqualified %code blocks.
-#line 33 "netconf_parser.yy" // lalr1.cc:438
+#line 33 "netconf_parser.yy"
#include <netconf/parser_context.h>
-#line 51 "netconf_parser.cc" // lalr1.cc:438
+#line 51 "netconf_parser.cc"
#ifndef YY_
{ \
(Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
} \
- while (/*CONSTCOND*/ false)
+ while (false)
# endif
#define YYERROR goto yyerrorlab
#define YYRECOVERING() (!!yyerrstatus_)
-#line 14 "netconf_parser.yy" // lalr1.cc:513
+#line 14 "netconf_parser.yy"
namespace isc { namespace netconf {
-#line 146 "netconf_parser.cc" // lalr1.cc:513
+#line 146 "netconf_parser.cc"
+
/* Return YYSTR after stripping away unnecessary quotes and
backslashes, so that it's suitable for yyerror. The heuristic is
{
if (*yystr == '"')
{
- std::string yyr = "";
+ std::string yyr;
char const *yyp = yystr;
for (;;)
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
- // Fall through.
+ else
+ goto append;
+
+ append:
default:
yyr += *yyp;
break;
NetconfParser::~NetconfParser ()
{}
+ NetconfParser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW
+ {}
/*---------------.
| Symbol types. |
// by_state.
- NetconfParser::by_state::by_state ()
+ NetconfParser::by_state::by_state () YY_NOEXCEPT
: state (empty_state)
{}
- NetconfParser::by_state::by_state (const by_state& other)
- : state (other.state)
+ NetconfParser::by_state::by_state (const by_state& that) YY_NOEXCEPT
+ : state (that.state)
{}
void
- NetconfParser::by_state::clear ()
+ NetconfParser::by_state::clear () YY_NOEXCEPT
{
state = empty_state;
}
that.clear ();
}
- NetconfParser::by_state::by_state (state_type s)
+ NetconfParser::by_state::by_state (state_type s) YY_NOEXCEPT
: state (s)
{}
NetconfParser::symbol_number_type
- NetconfParser::by_state::type_get () const
+ NetconfParser::by_state::type_get () const YY_NOEXCEPT
{
if (state == empty_state)
return empty_symbol;
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 45: // "constant string"
-
-#line 107 "netconf_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 386 "netconf_parser.cc" // lalr1.cc:672
+ case 45: // "constant string"
+#line 107 "netconf_parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 393 "netconf_parser.cc"
break;
case 46: // "integer"
-
-#line 107 "netconf_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< int64_t > (); }
-#line 393 "netconf_parser.cc" // lalr1.cc:672
+#line 107 "netconf_parser.yy"
+ { yyoutput << yysym.value.template as < int64_t > (); }
+#line 399 "netconf_parser.cc"
break;
case 47: // "floating point"
-
-#line 107 "netconf_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< double > (); }
-#line 400 "netconf_parser.cc" // lalr1.cc:672
+#line 107 "netconf_parser.yy"
+ { yyoutput << yysym.value.template as < double > (); }
+#line 405 "netconf_parser.cc"
break;
case 48: // "boolean"
-
-#line 107 "netconf_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< bool > (); }
-#line 407 "netconf_parser.cc" // lalr1.cc:672
+#line 107 "netconf_parser.yy"
+ { yyoutput << yysym.value.template as < bool > (); }
+#line 411 "netconf_parser.cc"
break;
case 57: // value
-
-#line 107 "netconf_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 414 "netconf_parser.cc" // lalr1.cc:672
+#line 107 "netconf_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 417 "netconf_parser.cc"
break;
case 60: // map_value
-
-#line 107 "netconf_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 421 "netconf_parser.cc" // lalr1.cc:672
+#line 107 "netconf_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 423 "netconf_parser.cc"
break;
case 119: // socket_type_value
-
-#line 107 "netconf_parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< ElementPtr > (); }
-#line 428 "netconf_parser.cc" // lalr1.cc:672
+#line 107 "netconf_parser.yy"
+ { yyoutput << yysym.value.template as < ElementPtr > (); }
+#line 429 "netconf_parser.cc"
break;
-
default:
break;
}
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];
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
goto yyerrlab1;
}
yypush_ ("Shifting", yyn, YY_MOVE (yyla));
goto yynewstate;
+
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
goto yyerrlab;
goto yyreduce;
+
/*-----------------------------.
- | yyreduce -- Do a reduction. |
+ | yyreduce -- do a reduction. |
`-----------------------------*/
yyreduce:
yylen = yyr2_[yyn];
// Default location.
{
- slice<stack_symbol_type, stack_type> 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;
}
switch (yyn)
{
case 2:
-#line 118 "netconf_parser.yy" // lalr1.cc:907
+#line 118 "netconf_parser.yy"
{ ctx.ctx_ = ctx.NO_KEYWORDS; }
-#line 683 "netconf_parser.cc" // lalr1.cc:907
+#line 691 "netconf_parser.cc"
break;
case 4:
-#line 119 "netconf_parser.yy" // lalr1.cc:907
+#line 119 "netconf_parser.yy"
{ ctx.ctx_ = ctx.CONFIG; }
-#line 689 "netconf_parser.cc" // lalr1.cc:907
+#line 697 "netconf_parser.cc"
break;
case 6:
-#line 120 "netconf_parser.yy" // lalr1.cc:907
+#line 120 "netconf_parser.yy"
{ ctx.ctx_ = ctx.NETCONF; }
-#line 695 "netconf_parser.cc" // lalr1.cc:907
+#line 703 "netconf_parser.cc"
break;
case 8:
-#line 128 "netconf_parser.yy" // lalr1.cc:907
+#line 128 "netconf_parser.yy"
{
// Parse the Netconf map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 705 "netconf_parser.cc" // lalr1.cc:907
+#line 713 "netconf_parser.cc"
break;
case 9:
-#line 132 "netconf_parser.yy" // lalr1.cc:907
+#line 132 "netconf_parser.yy"
{
// parsing completed
}
-#line 713 "netconf_parser.cc" // lalr1.cc:907
+#line 721 "netconf_parser.cc"
break;
case 10:
-#line 139 "netconf_parser.yy" // lalr1.cc:907
+#line 139 "netconf_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 722 "netconf_parser.cc" // lalr1.cc:907
+#line 730 "netconf_parser.cc"
break;
case 11:
-#line 145 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location))); }
-#line 728 "netconf_parser.cc" // lalr1.cc:907
+#line 145 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); }
+#line 736 "netconf_parser.cc"
break;
case 12:
-#line 146 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as< double > (), ctx.loc2pos(yystack_[0].location))); }
-#line 734 "netconf_parser.cc" // lalr1.cc:907
+#line 146 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); }
+#line 742 "netconf_parser.cc"
break;
case 13:
-#line 147 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location))); }
-#line 740 "netconf_parser.cc" // lalr1.cc:907
+#line 147 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); }
+#line 748 "netconf_parser.cc"
break;
case 14:
-#line 148 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location))); }
-#line 746 "netconf_parser.cc" // lalr1.cc:907
+#line 148 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); }
+#line 754 "netconf_parser.cc"
break;
case 15:
-#line 149 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
-#line 752 "netconf_parser.cc" // lalr1.cc:907
+#line 149 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
+#line 760 "netconf_parser.cc"
break;
case 16:
-#line 150 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 758 "netconf_parser.cc" // lalr1.cc:907
+#line 150 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 766 "netconf_parser.cc"
break;
case 17:
-#line 151 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 764 "netconf_parser.cc" // lalr1.cc:907
+#line 151 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 772 "netconf_parser.cc"
break;
case 18:
-#line 155 "netconf_parser.yy" // lalr1.cc:907
+#line 155 "netconf_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 775 "netconf_parser.cc" // lalr1.cc:907
+#line 783 "netconf_parser.cc"
break;
case 19:
-#line 160 "netconf_parser.yy" // lalr1.cc:907
+#line 160 "netconf_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 785 "netconf_parser.cc" // lalr1.cc:907
+#line 793 "netconf_parser.cc"
break;
case 20:
-#line 166 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 791 "netconf_parser.cc" // lalr1.cc:907
+#line 166 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
+#line 799 "netconf_parser.cc"
break;
case 23:
-#line 180 "netconf_parser.yy" // lalr1.cc:907
+#line 180 "netconf_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 800 "netconf_parser.cc" // lalr1.cc:907
+#line 808 "netconf_parser.cc"
break;
case 24:
-#line 184 "netconf_parser.yy" // lalr1.cc:907
+#line 184 "netconf_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 810 "netconf_parser.cc" // lalr1.cc:907
+#line 818 "netconf_parser.cc"
break;
case 25:
-#line 191 "netconf_parser.yy" // lalr1.cc:907
+#line 191 "netconf_parser.yy"
{
ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(l);
}
-#line 819 "netconf_parser.cc" // lalr1.cc:907
+#line 827 "netconf_parser.cc"
break;
case 26:
-#line 194 "netconf_parser.yy" // lalr1.cc:907
+#line 194 "netconf_parser.yy"
{
}
-#line 826 "netconf_parser.cc" // lalr1.cc:907
+#line 834 "netconf_parser.cc"
break;
case 29:
-#line 201 "netconf_parser.yy" // lalr1.cc:907
+#line 201 "netconf_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 835 "netconf_parser.cc" // lalr1.cc:907
+#line 843 "netconf_parser.cc"
break;
case 30:
-#line 205 "netconf_parser.yy" // lalr1.cc:907
+#line 205 "netconf_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 844 "netconf_parser.cc" // lalr1.cc:907
+#line 852 "netconf_parser.cc"
break;
case 31:
-#line 218 "netconf_parser.yy" // lalr1.cc:907
+#line 218 "netconf_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 855 "netconf_parser.cc" // lalr1.cc:907
+#line 863 "netconf_parser.cc"
break;
case 32:
-#line 226 "netconf_parser.yy" // lalr1.cc:907
+#line 226 "netconf_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 866 "netconf_parser.cc" // lalr1.cc:907
+#line 874 "netconf_parser.cc"
break;
case 33:
-#line 231 "netconf_parser.yy" // lalr1.cc:907
+#line 231 "netconf_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 876 "netconf_parser.cc" // lalr1.cc:907
+#line 884 "netconf_parser.cc"
break;
case 38:
-#line 248 "netconf_parser.yy" // lalr1.cc:907
+#line 248 "netconf_parser.yy"
{
// Let's create a MapElement that will represent it, add it to the
ctx.stack_.push_back(m);
ctx.enter(ctx.NETCONF);
}
-#line 892 "netconf_parser.cc" // lalr1.cc:907
+#line 900 "netconf_parser.cc"
break;
case 39:
-#line 258 "netconf_parser.yy" // lalr1.cc:907
+#line 258 "netconf_parser.yy"
{
// Ok, we're done with parsing Netconf. Let's take the map
// off the stack.
ctx.stack_.pop_back();
ctx.leave();
}
-#line 903 "netconf_parser.cc" // lalr1.cc:907
+#line 911 "netconf_parser.cc"
break;
case 52:
-#line 285 "netconf_parser.yy" // lalr1.cc:907
+#line 285 "netconf_parser.yy"
{
- ElementPtr flag(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location)));
+ ElementPtr flag(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("boot-update", flag);
}
-#line 912 "netconf_parser.cc" // lalr1.cc:907
+#line 920 "netconf_parser.cc"
break;
case 53:
-#line 290 "netconf_parser.yy" // lalr1.cc:907
+#line 290 "netconf_parser.yy"
{
- ElementPtr flag(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location)));
+ ElementPtr flag(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("subscribe-changes", flag);
}
-#line 921 "netconf_parser.cc" // lalr1.cc:907
+#line 929 "netconf_parser.cc"
break;
case 54:
-#line 295 "netconf_parser.yy" // lalr1.cc:907
+#line 295 "netconf_parser.yy"
{
- ElementPtr flag(new BoolElement(yystack_[0].value.as< bool > (), ctx.loc2pos(yystack_[0].location)));
+ ElementPtr flag(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("validate-changes", flag);
}
-#line 930 "netconf_parser.cc" // lalr1.cc:907
+#line 938 "netconf_parser.cc"
break;
case 55:
-#line 300 "netconf_parser.yy" // lalr1.cc:907
+#line 300 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 938 "netconf_parser.cc" // lalr1.cc:907
+#line 946 "netconf_parser.cc"
break;
case 56:
-#line 302 "netconf_parser.yy" // lalr1.cc:907
+#line 302 "netconf_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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 965 "netconf_parser.cc" // lalr1.cc:907
+#line 973 "netconf_parser.cc"
break;
case 57:
-#line 325 "netconf_parser.yy" // lalr1.cc:907
+#line 325 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 973 "netconf_parser.cc" // lalr1.cc:907
+#line 981 "netconf_parser.cc"
break;
case 58:
-#line 327 "netconf_parser.yy" // lalr1.cc:907
+#line 327 "netconf_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
parent->set("user-context", user_context);
ctx.leave();
}
-#line 1002 "netconf_parser.cc" // lalr1.cc:907
+#line 1010 "netconf_parser.cc"
break;
case 59:
-#line 353 "netconf_parser.yy" // lalr1.cc:907
+#line 353 "netconf_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 1013 "netconf_parser.cc" // lalr1.cc:907
+#line 1021 "netconf_parser.cc"
break;
case 60:
-#line 358 "netconf_parser.yy" // lalr1.cc:907
+#line 358 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1022 "netconf_parser.cc" // lalr1.cc:907
+#line 1030 "netconf_parser.cc"
break;
case 65:
-#line 371 "netconf_parser.yy" // lalr1.cc:907
+#line 371 "netconf_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1032 "netconf_parser.cc" // lalr1.cc:907
+#line 1040 "netconf_parser.cc"
break;
case 66:
-#line 375 "netconf_parser.yy" // lalr1.cc:907
+#line 375 "netconf_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1040 "netconf_parser.cc" // lalr1.cc:907
+#line 1048 "netconf_parser.cc"
break;
case 72:
-#line 388 "netconf_parser.yy" // lalr1.cc:907
+#line 388 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1048 "netconf_parser.cc" // lalr1.cc:907
+#line 1056 "netconf_parser.cc"
break;
case 73:
-#line 390 "netconf_parser.yy" // lalr1.cc:907
+#line 390 "netconf_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 1058 "netconf_parser.cc" // lalr1.cc:907
+#line 1066 "netconf_parser.cc"
break;
case 74:
-#line 396 "netconf_parser.yy" // lalr1.cc:907
+#line 396 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1066 "netconf_parser.cc" // lalr1.cc:907
+#line 1074 "netconf_parser.cc"
break;
case 75:
-#line 398 "netconf_parser.yy" // lalr1.cc:907
+#line 398 "netconf_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 1075 "netconf_parser.cc" // lalr1.cc:907
+#line 1083 "netconf_parser.cc"
break;
case 76:
-#line 406 "netconf_parser.yy" // lalr1.cc:907
+#line 406 "netconf_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[2].location)));
ctx.stack_.back()->set("managed-servers", m);
ctx.stack_.push_back(m);
ctx.enter(ctx.MANAGED_SERVERS);
}
-#line 1086 "netconf_parser.cc" // lalr1.cc:907
+#line 1094 "netconf_parser.cc"
break;
case 77:
-#line 411 "netconf_parser.yy" // lalr1.cc:907
+#line 411 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1095 "netconf_parser.cc" // lalr1.cc:907
+#line 1103 "netconf_parser.cc"
break;
case 87:
-#line 435 "netconf_parser.yy" // lalr1.cc:907
+#line 435 "netconf_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("dhcp4", m);
ctx.stack_.push_back(m);
ctx.enter(ctx.SERVER);
}
-#line 1106 "netconf_parser.cc" // lalr1.cc:907
+#line 1114 "netconf_parser.cc"
break;
case 88:
-#line 440 "netconf_parser.yy" // lalr1.cc:907
+#line 440 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1115 "netconf_parser.cc" // lalr1.cc:907
+#line 1123 "netconf_parser.cc"
break;
case 89:
-#line 446 "netconf_parser.yy" // lalr1.cc:907
+#line 446 "netconf_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("dhcp6", m);
ctx.stack_.push_back(m);
ctx.enter(ctx.SERVER);
}
-#line 1126 "netconf_parser.cc" // lalr1.cc:907
+#line 1134 "netconf_parser.cc"
break;
case 90:
-#line 451 "netconf_parser.yy" // lalr1.cc:907
+#line 451 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1135 "netconf_parser.cc" // lalr1.cc:907
+#line 1143 "netconf_parser.cc"
break;
case 91:
-#line 457 "netconf_parser.yy" // lalr1.cc:907
+#line 457 "netconf_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("d2", m);
ctx.stack_.push_back(m);
ctx.enter(ctx.SERVER);
}
-#line 1146 "netconf_parser.cc" // lalr1.cc:907
+#line 1154 "netconf_parser.cc"
break;
case 92:
-#line 462 "netconf_parser.yy" // lalr1.cc:907
+#line 462 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1155 "netconf_parser.cc" // lalr1.cc:907
+#line 1163 "netconf_parser.cc"
break;
case 93:
-#line 468 "netconf_parser.yy" // lalr1.cc:907
+#line 468 "netconf_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ca", m);
ctx.stack_.push_back(m);
ctx.enter(ctx.SERVER);
}
-#line 1166 "netconf_parser.cc" // lalr1.cc:907
+#line 1174 "netconf_parser.cc"
break;
case 94:
-#line 473 "netconf_parser.yy" // lalr1.cc:907
+#line 473 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1175 "netconf_parser.cc" // lalr1.cc:907
+#line 1183 "netconf_parser.cc"
break;
case 105:
-#line 495 "netconf_parser.yy" // lalr1.cc:907
+#line 495 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1183 "netconf_parser.cc" // lalr1.cc:907
+#line 1191 "netconf_parser.cc"
break;
case 106:
-#line 497 "netconf_parser.yy" // lalr1.cc:907
+#line 497 "netconf_parser.yy"
{
- ElementPtr model(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ElementPtr model(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("model", model);
ctx.leave();
}
-#line 1193 "netconf_parser.cc" // lalr1.cc:907
+#line 1201 "netconf_parser.cc"
break;
case 107:
-#line 504 "netconf_parser.yy" // lalr1.cc:907
+#line 504 "netconf_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 1204 "netconf_parser.cc" // lalr1.cc:907
+#line 1212 "netconf_parser.cc"
break;
case 108:
-#line 509 "netconf_parser.yy" // lalr1.cc:907
+#line 509 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1213 "netconf_parser.cc" // lalr1.cc:907
+#line 1221 "netconf_parser.cc"
break;
case 117:
-#line 527 "netconf_parser.yy" // lalr1.cc:907
+#line 527 "netconf_parser.yy"
{
ctx.enter(ctx.SOCKET_TYPE);
}
-#line 1221 "netconf_parser.cc" // lalr1.cc:907
+#line 1229 "netconf_parser.cc"
break;
case 118:
-#line 529 "netconf_parser.yy" // lalr1.cc:907
+#line 529 "netconf_parser.yy"
{
- ctx.stack_.back()->set("socket-type", yystack_[0].value.as< ElementPtr > ());
+ ctx.stack_.back()->set("socket-type", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 1230 "netconf_parser.cc" // lalr1.cc:907
+#line 1238 "netconf_parser.cc"
break;
case 119:
-#line 535 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("unix", ctx.loc2pos(yystack_[0].location))); }
-#line 1236 "netconf_parser.cc" // lalr1.cc:907
+#line 535 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("unix", ctx.loc2pos(yystack_[0].location))); }
+#line 1244 "netconf_parser.cc"
break;
case 120:
-#line 536 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("http", ctx.loc2pos(yystack_[0].location))); }
-#line 1242 "netconf_parser.cc" // lalr1.cc:907
+#line 536 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("http", ctx.loc2pos(yystack_[0].location))); }
+#line 1250 "netconf_parser.cc"
break;
case 121:
-#line 537 "netconf_parser.yy" // lalr1.cc:907
- { yylhs.value.as< ElementPtr > () = ElementPtr(new StringElement("stdout", ctx.loc2pos(yystack_[0].location))); }
-#line 1248 "netconf_parser.cc" // lalr1.cc:907
+#line 537 "netconf_parser.yy"
+ { yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("stdout", ctx.loc2pos(yystack_[0].location))); }
+#line 1256 "netconf_parser.cc"
break;
case 122:
-#line 540 "netconf_parser.yy" // lalr1.cc:907
+#line 540 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1256 "netconf_parser.cc" // lalr1.cc:907
+#line 1264 "netconf_parser.cc"
break;
case 123:
-#line 542 "netconf_parser.yy" // lalr1.cc:907
+#line 542 "netconf_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 1266 "netconf_parser.cc" // lalr1.cc:907
+#line 1274 "netconf_parser.cc"
break;
case 124:
-#line 549 "netconf_parser.yy" // lalr1.cc:907
+#line 549 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1274 "netconf_parser.cc" // lalr1.cc:907
+#line 1282 "netconf_parser.cc"
break;
case 125:
-#line 551 "netconf_parser.yy" // lalr1.cc:907
+#line 551 "netconf_parser.yy"
{
- ElementPtr url(new StringElement(yystack_[0].value.as< std::string > (), ctx.loc2pos(yystack_[0].location)));
+ ElementPtr url(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("socket-url", url);
ctx.leave();
}
-#line 1284 "netconf_parser.cc" // lalr1.cc:907
+#line 1292 "netconf_parser.cc"
break;
case 126:
-#line 564 "netconf_parser.yy" // lalr1.cc:907
+#line 564 "netconf_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 1295 "netconf_parser.cc" // lalr1.cc:907
+#line 1303 "netconf_parser.cc"
break;
case 127:
-#line 569 "netconf_parser.yy" // lalr1.cc:907
+#line 569 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1304 "netconf_parser.cc" // lalr1.cc:907
+#line 1312 "netconf_parser.cc"
break;
case 131:
-#line 586 "netconf_parser.yy" // lalr1.cc:907
+#line 586 "netconf_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 1315 "netconf_parser.cc" // lalr1.cc:907
+#line 1323 "netconf_parser.cc"
break;
case 132:
-#line 591 "netconf_parser.yy" // lalr1.cc:907
+#line 591 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1324 "netconf_parser.cc" // lalr1.cc:907
+#line 1332 "netconf_parser.cc"
break;
case 135:
-#line 603 "netconf_parser.yy" // lalr1.cc:907
+#line 603 "netconf_parser.yy"
{
ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(l);
ctx.stack_.push_back(l);
}
-#line 1334 "netconf_parser.cc" // lalr1.cc:907
+#line 1342 "netconf_parser.cc"
break;
case 136:
-#line 607 "netconf_parser.yy" // lalr1.cc:907
+#line 607 "netconf_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1342 "netconf_parser.cc" // lalr1.cc:907
+#line 1350 "netconf_parser.cc"
break;
case 146:
-#line 624 "netconf_parser.yy" // lalr1.cc:907
+#line 624 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1350 "netconf_parser.cc" // lalr1.cc:907
+#line 1358 "netconf_parser.cc"
break;
case 147:
-#line 626 "netconf_parser.yy" // lalr1.cc:907
+#line 626 "netconf_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 1360 "netconf_parser.cc" // lalr1.cc:907
+#line 1368 "netconf_parser.cc"
break;
case 148:
-#line 632 "netconf_parser.yy" // lalr1.cc:907
+#line 632 "netconf_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 1369 "netconf_parser.cc" // lalr1.cc:907
+#line 1377 "netconf_parser.cc"
break;
case 149:
-#line 637 "netconf_parser.yy" // lalr1.cc:907
+#line 637 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1377 "netconf_parser.cc" // lalr1.cc:907
+#line 1385 "netconf_parser.cc"
break;
case 150:
-#line 639 "netconf_parser.yy" // lalr1.cc:907
+#line 639 "netconf_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 1387 "netconf_parser.cc" // lalr1.cc:907
+#line 1395 "netconf_parser.cc"
break;
case 151:
-#line 645 "netconf_parser.yy" // lalr1.cc:907
+#line 645 "netconf_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 1398 "netconf_parser.cc" // lalr1.cc:907
+#line 1406 "netconf_parser.cc"
break;
case 152:
-#line 650 "netconf_parser.yy" // lalr1.cc:907
+#line 650 "netconf_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1407 "netconf_parser.cc" // lalr1.cc:907
+#line 1415 "netconf_parser.cc"
break;
case 155:
-#line 659 "netconf_parser.yy" // lalr1.cc:907
+#line 659 "netconf_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1417 "netconf_parser.cc" // lalr1.cc:907
+#line 1425 "netconf_parser.cc"
break;
case 156:
-#line 663 "netconf_parser.yy" // lalr1.cc:907
+#line 663 "netconf_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 1425 "netconf_parser.cc" // lalr1.cc:907
+#line 1433 "netconf_parser.cc"
break;
case 163:
-#line 677 "netconf_parser.yy" // lalr1.cc:907
+#line 677 "netconf_parser.yy"
{
ctx.enter(ctx.NO_KEYWORDS);
}
-#line 1433 "netconf_parser.cc" // lalr1.cc:907
+#line 1441 "netconf_parser.cc"
break;
case 164:
-#line 679 "netconf_parser.yy" // lalr1.cc:907
+#line 679 "netconf_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 1443 "netconf_parser.cc" // lalr1.cc:907
+#line 1451 "netconf_parser.cc"
break;
case 165:
-#line 685 "netconf_parser.yy" // lalr1.cc:907
+#line 685 "netconf_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 1452 "netconf_parser.cc" // lalr1.cc:907
+#line 1460 "netconf_parser.cc"
break;
case 166:
-#line 690 "netconf_parser.yy" // lalr1.cc:907
+#line 690 "netconf_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 1461 "netconf_parser.cc" // lalr1.cc:907
+#line 1469 "netconf_parser.cc"
break;
case 167:
-#line 695 "netconf_parser.yy" // lalr1.cc:907
+#line 695 "netconf_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 1470 "netconf_parser.cc" // lalr1.cc:907
+#line 1478 "netconf_parser.cc"
break;
-#line 1474 "netconf_parser.cc" // lalr1.cc:907
+#line 1482 "netconf_parser.cc"
+
default:
break;
}
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
YYERROR;
}
}
goto yynewstate;
+
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
| 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. |
`-------------------------------------------------------------*/
}
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);
#endif // NETCONF_DEBUG
-#line 14 "netconf_parser.yy" // lalr1.cc:1218
+#line 14 "netconf_parser.yy"
} } // isc::netconf
-#line 2067 "netconf_parser.cc" // lalr1.cc:1218
-#line 700 "netconf_parser.yy" // lalr1.cc:1219
+#line 2088 "netconf_parser.cc"
+
+#line 700 "netconf_parser.yy"
void
-// 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
#ifndef YY_NETCONF_NETCONF_PARSER_H_INCLUDED
# define YY_NETCONF_NETCONF_PARSER_H_INCLUDED
// // "%code requires" blocks.
-#line 17 "netconf_parser.yy" // lalr1.cc:404
+#line 17 "netconf_parser.yy"
#include <string>
#include <cc/data.h>
using namespace isc::data;
using namespace std;
-#line 59 "netconf_parser.h" // lalr1.cc:404
+#line 59 "netconf_parser.h"
# include <cassert>
# include <cstdlib> // std::abort
# 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 <typeinfo>
#ifndef YYASSERT
# endif /* ! defined YYDEBUG */
#endif /* ! defined NETCONF_DEBUG */
-#line 14 "netconf_parser.yy" // lalr1.cc:404
+#line 14 "netconf_parser.yy"
namespace isc { namespace netconf {
-#line 167 "netconf_parser.h" // lalr1.cc:404
-
- /// A stack with random access from its top.
- template <typename T, typename S = std::vector<T> >
- class stack
- {
- public:
- // Hide our reversed order.
- typedef typename S::reverse_iterator iterator;
- typedef typename S::const_reverse_iterator const_iterator;
- 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));
- }
+#line 183 "netconf_parser.h"
- /// 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 ();
- }
-
- 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 <typename T, typename S = stack<T> >
- class slice
+ /// A Bison parser.
+ class NetconfParser
{
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 NETCONF_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 <size_t S>
- struct variant
+ /// via the current parser state.
+ class semantic_type
{
+ public:
/// Type of *this.
- typedef variant<S> self_type;
+ typedef semantic_type self_type;
/// Empty construction.
- variant ()
+ semantic_type () YY_NOEXCEPT
: yybuffer_ ()
, yytypeid_ (YY_NULLPTR)
{}
/// Construct and fill.
template <typename T>
- 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> ()) T (YY_MOVE (t));
}
/// Destruction, allowed only if empty.
- ~variant ()
+ ~semantic_type () YY_NOEXCEPT
{
YYASSERT (!yytypeid_);
}
- /// Instantiate an empty \a T in here.
- template <typename T>
+# if 201103L <= YY_CPLUSPLUS
+ /// Instantiate a \a T in here from \a t.
+ template <typename T, typename... U>
T&
- emplace ()
+ emplace (U&&... u)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T ();
+ return *new (yyas_<T> ()) T (std::forward <U>(u)...);
}
-
-# if 201103L <= YY_CPLUSPLUS
- /// Instantiate a \a T in here from \a t.
- template <typename T, typename U>
+# else
+ /// Instantiate an empty \a T in here.
+ template <typename T>
T&
- emplace (U&& u)
+ emplace ()
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T (std::forward <U>(u));
+ return *new (yyas_<T> ()) T ();
}
-# else
+
/// Instantiate a \a T in here from \a t.
template <typename T>
T&
emplace (const T& t)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_<T> ()) T (t);
}
/// Accessor to a built \a T.
template <typename T>
T&
- as ()
+ as () YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
/// Const accessor to a built \a T (for %printer).
template <typename T>
const T&
- as () const
+ as () const YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
- /// 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 <typename T>
void
- swap (self_type& other)
+ swap (self_type& that) YY_NOEXCEPT
{
YYASSERT (yytypeid_);
- YYASSERT (*yytypeid_ == *other.yytypeid_);
- std::swap (as<T> (), other.as<T> ());
+ YYASSERT (*yytypeid_ == *that.yytypeid_);
+ std::swap (as<T> (), that.as<T> ());
}
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
///
- /// Destroys \a other.
+ /// Destroys \a that.
template <typename T>
void
- move (self_type& other)
+ move (self_type& that)
{
# if 201103L <= YY_CPLUSPLUS
- emplace<T> (std::move (other.as<T> ()));
+ emplace<T> (std::move (that.as<T> ()));
# else
emplace<T> ();
- swap<T> (other);
+ swap<T> (that);
# endif
- other.destroy<T> ();
+ that.destroy<T> ();
}
# if 201103L <= YY_CPLUSPLUS
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
template <typename T>
void
- move (self_type&& other)
+ move (self_type&& that)
{
- emplace<T> (std::move (other.as<T> ()));
- other.destroy<T> ();
+ emplace<T> (std::move (that.as<T> ()));
+ that.destroy<T> ();
}
#endif
- /// Copy the content of \a other to this.
+ /// Copy the content of \a that to this.
template <typename T>
void
- copy (const self_type& other)
+ copy (const self_type& that)
{
- emplace<T> (other.as<T> ());
+ emplace<T> (that.as<T> ());
}
/// Destroy the stored \a T.
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 <typename T>
T*
- yyas_ ()
+ yyas_ () YY_NOEXCEPT
{
void *yyp = yybuffer_.yyraw;
return static_cast<T*> (yyp);
/// Const accessor to raw memory as \a T.
template <typename T>
const T*
- yyas_ () const
+ yyas_ () const YY_NOEXCEPT
{
const void *yyp = yybuffer_.yyraw;
return static_cast<const T*> (yyp);
}
- union
- {
- /// Strongest alignment constraints.
- long double yyalign_me;
- /// A buffer large enough to store any of the semantic values.
- char yyraw[S];
- } yybuffer_;
-
- /// Whether the content is built: if defined, the name of the stored type.
- const std::type_info *yytypeid_;
- };
-
-
- /// A Bison parser.
- class NetconfParser
- {
- public:
-#ifndef NETCONF_STYPE
/// An auxiliary type to compute the largest semantic type.
union union_type
{
// "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<sizeof (union_type)> semantic_type;
#else
typedef NETCONF_STYPE semantic_type;
#endif
/// 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;
};
typedef Base super_type;
/// Default constructor.
- basic_symbol ();
+ basic_symbol ()
+ : value ()
+ , location ()
+ {}
- /// Move or copy constructor.
- basic_symbol (YY_RVREF (basic_symbol) other);
+#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.
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, 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);
+ 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);
+#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);
+ 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);
+#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);
+ 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);
+#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);
+ 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);
+#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);
+ 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);
+#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);
+ 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<Base>& yysym = *this;
+ (void) yysym;
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+
+ // Type destructor.
+switch (yytype)
+ {
+ case 57: // value
+ case 60: // map_value
+ case 119: // socket_type_value
+ value.template destroy< ElementPtr > ();
+ break;
+
+ case 48: // "boolean"
+ value.template destroy< bool > ();
+ break;
+
+ case 47: // "floating point"
+ value.template destroy< double > ();
+ break;
+
+ case 46: // "integer"
+ value.template destroy< int64_t > ();
+ break;
+
+ case 45: // "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);
private:
#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
- basic_symbol& operator= (const basic_symbol& other);
+ basic_symbol& operator= (const basic_symbol& that);
#endif
};
/// 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;
/// 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.
};
/// "External" symbols: returned by the scanner.
- typedef basic_symbol<by_type> symbol_type;
+ struct symbol_type : basic_symbol<by_type>
+ {
+ /// Superclass.
+ typedef basic_symbol<by_type> 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_NETCONF || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_BOOT_UPDATE || tok == token::TOKEN_SUBSCRIBE_CHANGES || tok == token::TOKEN_VALIDATE_CHANGES || tok == token::TOKEN_MANAGED_SERVERS || tok == token::TOKEN_DHCP4_SERVER || tok == token::TOKEN_DHCP6_SERVER || tok == token::TOKEN_D2_SERVER || tok == token::TOKEN_CA_SERVER || tok == token::TOKEN_MODEL || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_UNIX || tok == token::TOKEN_HTTP || tok == token::TOKEN_STDOUT || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_SOCKET_URL || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || 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_START_JSON || tok == token::TOKEN_START_NETCONF || tok == token::TOKEN_START_SUB_NETCONF);
+ }
+#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_NETCONF || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_BOOT_UPDATE || tok == token::TOKEN_SUBSCRIBE_CHANGES || tok == token::TOKEN_VALIDATE_CHANGES || tok == token::TOKEN_MANAGED_SERVERS || tok == token::TOKEN_DHCP4_SERVER || tok == token::TOKEN_DHCP6_SERVER || tok == token::TOKEN_D2_SERVER || tok == token::TOKEN_CA_SERVER || tok == token::TOKEN_MODEL || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_UNIX || tok == token::TOKEN_HTTP || tok == token::TOKEN_STDOUT || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_SOCKET_URL || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || 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_START_JSON || tok == token::TOKEN_START_NETCONF || tok == token::TOKEN_START_SUB_NETCONF);
+ }
+#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.
NetconfParser (isc::netconf::ParserContext& ctx_yyarg);
/// 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_NETCONF (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_BOOT_UPDATE (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_SUBSCRIBE_CHANGES (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_VALIDATE_CHANGES (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_MANAGED_SERVERS (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_DHCP4_SERVER (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_DHCP6_SERVER (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_D2_SERVER (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_CA_SERVER (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_MODEL (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_UNIX (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_HTTP (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_STDOUT (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_SOCKET_NAME (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_SOCKET_URL (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_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_START_JSON (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_START_NETCONF (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_START_SUB_NETCONF (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_NETCONF (location_type l)
+ {
+ return symbol_type (token::TOKEN_NETCONF, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NETCONF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NETCONF, 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_BOOT_UPDATE (location_type l)
+ {
+ return symbol_type (token::TOKEN_BOOT_UPDATE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_BOOT_UPDATE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_BOOT_UPDATE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUBSCRIBE_CHANGES (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUBSCRIBE_CHANGES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUBSCRIBE_CHANGES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBSCRIBE_CHANGES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_VALIDATE_CHANGES (location_type l)
+ {
+ return symbol_type (token::TOKEN_VALIDATE_CHANGES, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_VALIDATE_CHANGES (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_VALIDATE_CHANGES, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MANAGED_SERVERS (location_type l)
+ {
+ return symbol_type (token::TOKEN_MANAGED_SERVERS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MANAGED_SERVERS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MANAGED_SERVERS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP4_SERVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP4_SERVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP4_SERVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP4_SERVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DHCP6_SERVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_DHCP6_SERVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DHCP6_SERVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DHCP6_SERVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_D2_SERVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_D2_SERVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_D2_SERVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_D2_SERVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CA_SERVER (location_type l)
+ {
+ return symbol_type (token::TOKEN_CA_SERVER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CA_SERVER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CA_SERVER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MODEL (location_type l)
+ {
+ return symbol_type (token::TOKEN_MODEL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MODEL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MODEL, 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_UNIX (location_type l)
+ {
+ return symbol_type (token::TOKEN_UNIX, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_UNIX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_UNIX, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HTTP (location_type l)
+ {
+ return symbol_type (token::TOKEN_HTTP, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HTTP (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HTTP, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_STDOUT (location_type l)
+ {
+ return symbol_type (token::TOKEN_STDOUT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_STDOUT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_STDOUT, 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_SOCKET_URL (location_type l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_URL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SOCKET_URL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SOCKET_URL, 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_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_START_JSON (location_type l)
+ {
+ return symbol_type (token::TOKEN_START_JSON, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_START_JSON (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_START_JSON, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_START_NETCONF (location_type l)
+ {
+ return symbol_type (token::TOKEN_START_NETCONF, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_START_NETCONF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_START_NETCONF, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_START_SUB_NETCONF (location_type l)
+ {
+ return symbol_type (token::TOKEN_START_SUB_NETCONF, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_START_SUB_NETCONF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_START_SUB_NETCONF, 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:
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 };
#endif
};
+ /// A stack with random access from its top.
+ template <typename T, typename S = std::vector<T> >
+ class stack
+ {
+ public:
+ // Hide our reversed order.
+ typedef typename S::reverse_iterator iterator;
+ typedef typename S::const_reverse_iterator const_iterator;
+ 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_symbol_type> stack_type;
isc::netconf::ParserContext& ctx;
};
- // Symbol number corresponding to token number t.
inline
NetconfParser::token_number_type
NetconfParser::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,
- 2, 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,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 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
- };
- const unsigned user_token_number_max_ = 303;
- const token_number_type undef_token_ = 2;
-
- if (static_cast<int> (t) <= yyeof_)
- return yyeof_;
- else if (static_cast<unsigned> (t) <= user_token_number_max_)
- return translate_table[t];
- else
- return undef_token_;
- }
-
- inline
- NetconfParser::syntax_error::syntax_error (const location_type& l, const std::string& m)
- : std::runtime_error (m)
- , location (l)
- {}
-
- // basic_symbol.
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol ()
- : value ()
- , location ()
- {}
-
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (YY_RVREF (basic_symbol) other)
- : Base (YY_MOVE (other))
- , value ()
- , location (YY_MOVE (other.location))
- {
- switch (other.type_get ())
- {
- case 57: // value
- case 60: // map_value
- case 119: // socket_type_value
- value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (other.value));
- break;
-
- case 48: // "boolean"
- value.YY_MOVE_OR_COPY< bool > (YY_MOVE (other.value));
- break;
-
- case 47: // "floating point"
- value.YY_MOVE_OR_COPY< double > (YY_MOVE (other.value));
- break;
-
- case 46: // "integer"
- value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (other.value));
- break;
-
- case 45: // "constant string"
- value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (other.value));
- break;
-
- default:
- break;
- }
-
- }
-
-
- // Implementation of basic_symbol constructor for each type.
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
- : Base (t)
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
- : Base (t)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- NetconfParser::basic_symbol<Base>::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
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- NetconfParser::basic_symbol<Base>::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
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, double&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- NetconfParser::basic_symbol<Base>::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
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- NetconfParser::basic_symbol<Base>::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
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
-
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 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
+ };
+ const unsigned user_token_number_max_ = 303;
+ const token_number_type undef_token_ = 2;
- template <typename Base>
- NetconfParser::basic_symbol<Base>::~basic_symbol ()
- {
- clear ();
+ if (static_cast<int> (t) <= yyeof_)
+ return yyeof_;
+ else if (static_cast<unsigned> (t) <= user_token_number_max_)
+ return translate_table[t];
+ else
+ return undef_token_;
}
+ // basic_symbol.
+#if 201103L <= YY_CPLUSPLUS
template <typename Base>
- void
- NetconfParser::basic_symbol<Base>::clear ()
+ NetconfParser::basic_symbol<Base>::basic_symbol (basic_symbol&& that)
+ : Base (std::move (that))
+ , value ()
+ , location (std::move (that.location))
{
- // User destructor.
- symbol_number_type yytype = this->type_get ();
- basic_symbol<Base>& yysym = *this;
- (void) yysym;
- switch (yytype)
+ switch (this->type_get ())
{
- default:
- break;
+ case 57: // value
+ case 60: // map_value
+ case 119: // socket_type_value
+ value.move< ElementPtr > (std::move (that.value));
+ break;
+
+ case 48: // "boolean"
+ value.move< bool > (std::move (that.value));
+ break;
+
+ case 47: // "floating point"
+ value.move< double > (std::move (that.value));
+ break;
+
+ case 46: // "integer"
+ value.move< int64_t > (std::move (that.value));
+ break;
+
+ case 45: // "constant string"
+ value.move< std::string > (std::move (that.value));
+ break;
+
+ default:
+ break;
}
- // Type destructor.
- switch (yytype)
+ }
+#endif
+
+ template <typename Base>
+ NetconfParser::basic_symbol<Base>::basic_symbol (const basic_symbol& that)
+ : Base (that)
+ , value ()
+ , location (that.location)
+ {
+ switch (this->type_get ())
{
case 57: // value
case 60: // map_value
case 119: // socket_type_value
- value.template destroy< ElementPtr > ();
+ value.copy< ElementPtr > (YY_MOVE (that.value));
break;
case 48: // "boolean"
- value.template destroy< bool > ();
+ value.copy< bool > (YY_MOVE (that.value));
break;
case 47: // "floating point"
- value.template destroy< double > ();
+ value.copy< double > (YY_MOVE (that.value));
break;
case 46: // "integer"
- value.template destroy< int64_t > ();
+ value.copy< int64_t > (YY_MOVE (that.value));
break;
case 45: // "constant string"
- value.template destroy< std::string > ();
+ value.copy< std::string > (YY_MOVE (that.value));
break;
default:
break;
}
- Base::clear ();
}
+
+
template <typename Base>
bool
- NetconfParser::basic_symbol<Base>::empty () const
+ NetconfParser::basic_symbol<Base>::empty () const YY_NOEXCEPT
{
return Base::type_get () == empty_symbol;
}
: type (empty_symbol)
{}
+#if 201103L <= YY_CPLUSPLUS
+ inline
+ NetconfParser::by_type::by_type (by_type&& that)
+ : type (that.type)
+ {
+ that.clear ();
+ }
+#endif
+
inline
- NetconfParser::by_type::by_type (const by_type& other)
- : type (other.type)
+ NetconfParser::by_type::by_type (const by_type& that)
+ : type (that.type)
{}
inline
inline
int
- NetconfParser::by_type::type_get () const
+ NetconfParser::by_type::type_get () const YY_NOEXCEPT
{
return type;
}
inline
NetconfParser::token_type
- NetconfParser::by_type::token () const
+ NetconfParser::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). */
285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
295, 296, 297, 298, 299, 300, 301, 302, 303
};
- return static_cast<token_type> (yytoken_number_[type]);
- }
-
- // Implementation of make_symbol for each symbol type.
- inline
- NetconfParser::symbol_type
- NetconfParser::make_END (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_END, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_COMMA (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_COMMA, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_COLON (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_COLON, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_LSQUARE_BRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LSQUARE_BRACKET, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_RSQUARE_BRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RSQUARE_BRACKET, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_LCURLY_BRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LCURLY_BRACKET, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_RCURLY_BRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RCURLY_BRACKET, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_NULL_TYPE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NULL_TYPE, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_NETCONF (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NETCONF, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_USER_CONTEXT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_USER_CONTEXT, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_COMMENT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_COMMENT, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_BOOT_UPDATE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_BOOT_UPDATE, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_SUBSCRIBE_CHANGES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SUBSCRIBE_CHANGES, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_VALIDATE_CHANGES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_VALIDATE_CHANGES, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_MANAGED_SERVERS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MANAGED_SERVERS, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_DHCP4_SERVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP4_SERVER, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_DHCP6_SERVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DHCP6_SERVER, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_D2_SERVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_D2_SERVER, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_CA_SERVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CA_SERVER, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_MODEL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MODEL, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_CONTROL_SOCKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CONTROL_SOCKET, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_SOCKET_TYPE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SOCKET_TYPE, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_UNIX (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_UNIX, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_HTTP (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HTTP, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_STDOUT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_STDOUT, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_SOCKET_NAME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SOCKET_NAME, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_SOCKET_URL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SOCKET_URL, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_HOOKS_LIBRARIES (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HOOKS_LIBRARIES, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_LIBRARY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LIBRARY, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_PARAMETERS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_PARAMETERS, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_LOGGING (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LOGGING, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_LOGGERS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LOGGERS, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_NAME (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NAME, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_OUTPUT_OPTIONS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OUTPUT_OPTIONS, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_OUTPUT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OUTPUT, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_DEBUGLEVEL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DEBUGLEVEL, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_SEVERITY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SEVERITY, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_FLUSH (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_FLUSH, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_MAXSIZE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MAXSIZE, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_MAXVER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MAXVER, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_START_JSON (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_START_JSON, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_START_NETCONF (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_START_NETCONF, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::make_START_SUB_NETCONF (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_START_SUB_NETCONF, YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::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
- NetconfParser::symbol_type
- NetconfParser::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
- NetconfParser::symbol_type
- NetconfParser::make_FLOAT (YY_COPY (double) v, YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_FLOAT, YY_MOVE (v), YY_MOVE (l));
- }
-
- inline
- NetconfParser::symbol_type
- NetconfParser::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 "netconf_parser.yy" // lalr1.cc:404
+#line 14 "netconf_parser.yy"
} } // isc::netconf
-#line 1812 "netconf_parser.h" // lalr1.cc:404
+#line 2102 "netconf_parser.h"
+
-// Generated 201811271344
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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".
-// Generated 201811271344
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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.
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author>
<personname/>
<contrib>The Kea software has been written by a number of
<docinfo>
<copyright>
- <year>2016-2018</year>
+ <year>2016-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
<info>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author>
<contrib>The Kea software has been written by a number of
engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
<docinfo>
<copyright>
- <year>2017-2018</year>
+ <year>2017-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
<refentryinfo>
<productname>ISC Kea</productname>
- <date>Dec 14, 2018</date>
- <edition>1.5.0</edition>
+ <date>Aug 28, 2019</date>
+ <edition>1.5.0-P1</edition>
<author>
<contrib>The Kea software has been written by a number of
engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
<docinfo>
<copyright>
- <year>2014-2018</year>
+ <year>2014-2019</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
-// Copyright (C) 2011-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
-// Copyright (C) 2013-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
-// Copyright (C) 2009-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2009-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
-// Generated 201811271344
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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
# endif
# endif
-#line 14 "parser.yy" // location.cc:339
+#line 14 "parser.yy"
namespace isc { namespace eval {
-#line 60 "location.hh" // location.cc:339
+#line 60 "location.hh"
+
/// A point in a source file.
class position
{
return ostr;
}
-#line 14 "parser.yy" // location.cc:339
+#line 14 "parser.yy"
} } // isc::eval
-#line 322 "location.hh" // location.cc:339
+#line 323 "location.hh"
+
#endif // !YY_EVAL_LOCATION_HH_INCLUDED
-// 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
// Unqualified %code blocks.
-#line 33 "parser.yy" // lalr1.cc:438
+#line 33 "parser.yy"
# include "eval_context.h"
-#line 51 "parser.cc" // lalr1.cc:438
+#line 51 "parser.cc"
#ifndef YY_
{ \
(Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
} \
- while (/*CONSTCOND*/ false)
+ while (false)
# endif
#define YYERROR goto yyerrorlab
#define YYRECOVERING() (!!yyerrstatus_)
-#line 14 "parser.yy" // lalr1.cc:513
+#line 14 "parser.yy"
namespace isc { namespace eval {
-#line 146 "parser.cc" // lalr1.cc:513
+#line 146 "parser.cc"
+
/* Return YYSTR after stripping away unnecessary quotes and
backslashes, so that it's suitable for yyerror. The heuristic is
{
if (*yystr == '"')
{
- std::string yyr = "";
+ std::string yyr;
char const *yyp = yystr;
for (;;)
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
- // Fall through.
+ else
+ goto append;
+
+ append:
default:
yyr += *yyp;
break;
EvalParser::~EvalParser ()
{}
+ EvalParser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW
+ {}
/*---------------.
| Symbol types. |
// by_state.
- EvalParser::by_state::by_state ()
+ EvalParser::by_state::by_state () YY_NOEXCEPT
: state (empty_state)
{}
- EvalParser::by_state::by_state (const by_state& other)
- : state (other.state)
+ EvalParser::by_state::by_state (const by_state& that) YY_NOEXCEPT
+ : state (that.state)
{}
void
- EvalParser::by_state::clear ()
+ EvalParser::by_state::clear () YY_NOEXCEPT
{
state = empty_state;
}
that.clear ();
}
- EvalParser::by_state::by_state (state_type s)
+ EvalParser::by_state::by_state (state_type s) YY_NOEXCEPT
: state (s)
{}
EvalParser::symbol_number_type
- EvalParser::by_state::type_get () const
+ EvalParser::by_state::type_get () const YY_NOEXCEPT
{
if (state == empty_state)
return empty_symbol;
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 50: // "constant string"
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 443 "parser.cc" // lalr1.cc:672
+ case 50: // "constant string"
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 450 "parser.cc"
break;
case 51: // "integer"
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 450 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 456 "parser.cc"
break;
case 52: // "constant hexstring"
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 457 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 462 "parser.cc"
break;
case 53: // "option name"
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 464 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 468 "parser.cc"
break;
case 54: // "ip address"
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< std::string > (); }
-#line 471 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < std::string > (); }
+#line 474 "parser.cc"
break;
case 60: // integer_expr
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< uint32_t > (); }
-#line 478 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < uint32_t > (); }
+#line 480 "parser.cc"
break;
case 61: // option_code
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< uint16_t > (); }
-#line 485 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < uint16_t > (); }
+#line 486 "parser.cc"
break;
case 62: // option_repr_type
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< TokenOption::RepresentationType > (); }
-#line 492 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < TokenOption::RepresentationType > (); }
+#line 492 "parser.cc"
break;
case 63: // nest_level
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< int8_t > (); }
-#line 499 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < int8_t > (); }
+#line 498 "parser.cc"
break;
case 64: // pkt_metadata
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< TokenPkt::MetadataType > (); }
-#line 506 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < TokenPkt::MetadataType > (); }
+#line 504 "parser.cc"
break;
case 65: // enterprise_id
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< uint32_t > (); }
-#line 513 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < uint32_t > (); }
+#line 510 "parser.cc"
break;
case 66: // pkt4_field
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< TokenPkt4::FieldType > (); }
-#line 520 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < TokenPkt4::FieldType > (); }
+#line 516 "parser.cc"
break;
case 67: // pkt6_field
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< TokenPkt6::FieldType > (); }
-#line 527 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < TokenPkt6::FieldType > (); }
+#line 522 "parser.cc"
break;
case 68: // relay6_field
-
-#line 111 "parser.yy" // lalr1.cc:672
- { yyoutput << yysym.value.template as< TokenRelay6Field::FieldType > (); }
-#line 534 "parser.cc" // lalr1.cc:672
+#line 111 "parser.yy"
+ { yyoutput << yysym.value.template as < TokenRelay6Field::FieldType > (); }
+#line 528 "parser.cc"
break;
-
default:
break;
}
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];
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
goto yyerrlab1;
}
yypush_ ("Shifting", yyn, YY_MOVE (yyla));
goto yynewstate;
+
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
goto yyerrlab;
goto yyreduce;
+
/*-----------------------------.
- | yyreduce -- Do a reduction. |
+ | yyreduce -- do a reduction. |
`-----------------------------*/
yyreduce:
yylen = yyr2_[yyn];
// Default location.
{
- slice<stack_symbol_type, stack_type> 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;
}
switch (yyn)
{
case 6:
-#line 131 "parser.yy" // lalr1.cc:907
+#line 131 "parser.yy"
{
TokenPtr neg(new TokenNot());
ctx.expression.push_back(neg);
}
-#line 811 "parser.cc" // lalr1.cc:907
+#line 812 "parser.cc"
break;
case 7:
-#line 136 "parser.yy" // lalr1.cc:907
+#line 136 "parser.yy"
{
TokenPtr neg(new TokenAnd());
ctx.expression.push_back(neg);
}
-#line 820 "parser.cc" // lalr1.cc:907
+#line 821 "parser.cc"
break;
case 8:
-#line 141 "parser.yy" // lalr1.cc:907
+#line 141 "parser.yy"
{
TokenPtr neg(new TokenOr());
ctx.expression.push_back(neg);
}
-#line 829 "parser.cc" // lalr1.cc:907
+#line 830 "parser.cc"
break;
case 9:
-#line 146 "parser.yy" // lalr1.cc:907
+#line 146 "parser.yy"
{
TokenPtr eq(new TokenEqual());
ctx.expression.push_back(eq);
}
-#line 838 "parser.cc" // lalr1.cc:907
+#line 839 "parser.cc"
break;
case 10:
-#line 151 "parser.yy" // lalr1.cc:907
+#line 151 "parser.yy"
{
- TokenPtr opt(new TokenOption(yystack_[3].value.as< uint16_t > (), TokenOption::EXISTS));
+ TokenPtr opt(new TokenOption(yystack_[3].value.as < uint16_t > (), TokenOption::EXISTS));
ctx.expression.push_back(opt);
}
-#line 847 "parser.cc" // lalr1.cc:907
+#line 848 "parser.cc"
break;
case 11:
-#line 156 "parser.yy" // lalr1.cc:907
+#line 156 "parser.yy"
{
switch (ctx.getUniverse()) {
case Option::V4:
{
- TokenPtr opt(new TokenRelay4Option(yystack_[3].value.as< uint16_t > (), TokenOption::EXISTS));
+ TokenPtr opt(new TokenRelay4Option(yystack_[3].value.as < uint16_t > (), TokenOption::EXISTS));
ctx.expression.push_back(opt);
break;
}
error(yystack_[5].location, "relay4 can only be used in DHCPv4.");
}
}
-#line 871 "parser.cc" // lalr1.cc:907
+#line 872 "parser.cc"
break;
case 12:
-#line 176 "parser.yy" // lalr1.cc:907
+#line 176 "parser.yy"
{
switch (ctx.getUniverse()) {
case Option::V6:
{
- TokenPtr opt(new TokenRelay6Option(yystack_[8].value.as< int8_t > (), yystack_[3].value.as< uint16_t > (), TokenOption::EXISTS));
+ TokenPtr opt(new TokenRelay6Option(yystack_[8].value.as < int8_t > (), yystack_[3].value.as < uint16_t > (), TokenOption::EXISTS));
ctx.expression.push_back(opt);
break;
}
error(yystack_[10].location, "relay6 can only be used in DHCPv6.");
}
}
-#line 889 "parser.cc" // lalr1.cc:907
+#line 890 "parser.cc"
break;
case 13:
-#line 190 "parser.yy" // lalr1.cc:907
+#line 190 "parser.yy"
{
// Expression: vendor-class[1234].exists
//
// This token will find option 124 (DHCPv4) or 16 (DHCPv6),
// and will check if enterprise-id equals specified value.
- TokenPtr exist(new TokenVendorClass(ctx.getUniverse(), yystack_[3].value.as< uint32_t > (), TokenOption::EXISTS));
+ TokenPtr exist(new TokenVendorClass(ctx.getUniverse(), yystack_[3].value.as < uint32_t > (), TokenOption::EXISTS));
ctx.expression.push_back(exist);
}
-#line 902 "parser.cc" // lalr1.cc:907
+#line 903 "parser.cc"
break;
case 14:
-#line 199 "parser.yy" // lalr1.cc:907
+#line 199 "parser.yy"
{
// Expression: vendor[1234].exists
//
// This token will find option 125 (DHCPv4) or 17 (DHCPv6),
// and will check if enterprise-id equals specified value.
- TokenPtr exist(new TokenVendor(ctx.getUniverse(), yystack_[3].value.as< uint32_t > (), TokenOption::EXISTS));
+ TokenPtr exist(new TokenVendor(ctx.getUniverse(), yystack_[3].value.as < uint32_t > (), TokenOption::EXISTS));
ctx.expression.push_back(exist);
}
-#line 915 "parser.cc" // lalr1.cc:907
+#line 916 "parser.cc"
break;
case 15:
-#line 208 "parser.yy" // lalr1.cc:907
+#line 208 "parser.yy"
{
// Expression vendor[1234].option[123].exists
//
// This token will check if specified vendor option
// exists, has specified enterprise-id and if has
// specified suboption.
- TokenPtr exist(new TokenVendor(ctx.getUniverse(), yystack_[8].value.as< uint32_t > (), TokenOption::EXISTS, yystack_[3].value.as< uint16_t > ()));
+ TokenPtr exist(new TokenVendor(ctx.getUniverse(), yystack_[8].value.as < uint32_t > (), TokenOption::EXISTS, yystack_[3].value.as < uint16_t > ()));
ctx.expression.push_back(exist);
}
-#line 929 "parser.cc" // lalr1.cc:907
+#line 930 "parser.cc"
break;
case 16:
-#line 218 "parser.yy" // lalr1.cc:907
+#line 218 "parser.yy"
{
// Expression member('foo')
//
// the specified client class.
// To avoid loops at evaluation only already defined and
// built-in classes are allowed.
- std::string cc = yystack_[1].value.as< std::string > ();
+ std::string cc = yystack_[1].value.as < std::string > ();
if (!ctx.isClientClassDefined(cc)) {
error(yystack_[1].location, "Not defined client class '" + cc + "'");
}
TokenPtr member(new TokenMember(cc));
ctx.expression.push_back(member);
}
-#line 948 "parser.cc" // lalr1.cc:907
+#line 949 "parser.cc"
break;
case 17:
-#line 235 "parser.yy" // lalr1.cc:907
+#line 235 "parser.yy"
{
- TokenPtr str(new TokenString(yystack_[0].value.as< std::string > ()));
+ TokenPtr str(new TokenString(yystack_[0].value.as < std::string > ()));
ctx.expression.push_back(str);
}
-#line 957 "parser.cc" // lalr1.cc:907
+#line 958 "parser.cc"
break;
case 18:
-#line 240 "parser.yy" // lalr1.cc:907
+#line 240 "parser.yy"
{
- TokenPtr hex(new TokenHexString(yystack_[0].value.as< std::string > ()));
+ TokenPtr hex(new TokenHexString(yystack_[0].value.as < std::string > ()));
ctx.expression.push_back(hex);
}
-#line 966 "parser.cc" // lalr1.cc:907
+#line 967 "parser.cc"
break;
case 19:
-#line 245 "parser.yy" // lalr1.cc:907
+#line 245 "parser.yy"
{
- TokenPtr ip(new TokenIpAddress(yystack_[0].value.as< std::string > ()));
+ TokenPtr ip(new TokenIpAddress(yystack_[0].value.as < std::string > ()));
ctx.expression.push_back(ip);
}
-#line 975 "parser.cc" // lalr1.cc:907
+#line 976 "parser.cc"
break;
case 20:
-#line 250 "parser.yy" // lalr1.cc:907
+#line 250 "parser.yy"
{
- TokenPtr opt(new TokenOption(yystack_[3].value.as< uint16_t > (), yystack_[0].value.as< TokenOption::RepresentationType > ()));
+ TokenPtr opt(new TokenOption(yystack_[3].value.as < uint16_t > (), yystack_[0].value.as < TokenOption::RepresentationType > ()));
ctx.expression.push_back(opt);
}
-#line 984 "parser.cc" // lalr1.cc:907
+#line 985 "parser.cc"
break;
case 21:
-#line 255 "parser.yy" // lalr1.cc:907
+#line 255 "parser.yy"
{
switch (ctx.getUniverse()) {
case Option::V4:
{
- TokenPtr opt(new TokenRelay4Option(yystack_[3].value.as< uint16_t > (), yystack_[0].value.as< TokenOption::RepresentationType > ()));
+ TokenPtr opt(new TokenRelay4Option(yystack_[3].value.as < uint16_t > (), yystack_[0].value.as < TokenOption::RepresentationType > ()));
ctx.expression.push_back(opt);
break;
}
error(yystack_[5].location, "relay4 can only be used in DHCPv4.");
}
}
-#line 1008 "parser.cc" // lalr1.cc:907
+#line 1009 "parser.cc"
break;
case 22:
-#line 276 "parser.yy" // lalr1.cc:907
+#line 276 "parser.yy"
{
switch (ctx.getUniverse()) {
case Option::V6:
{
- TokenPtr opt(new TokenRelay6Option(yystack_[8].value.as< int8_t > (), yystack_[3].value.as< uint16_t > (), yystack_[0].value.as< TokenOption::RepresentationType > ()));
+ TokenPtr opt(new TokenRelay6Option(yystack_[8].value.as < int8_t > (), yystack_[3].value.as < uint16_t > (), yystack_[0].value.as < TokenOption::RepresentationType > ()));
ctx.expression.push_back(opt);
break;
}
error(yystack_[10].location, "relay6 can only be used in DHCPv6.");
}
}
-#line 1026 "parser.cc" // lalr1.cc:907
+#line 1027 "parser.cc"
break;
case 23:
-#line 291 "parser.yy" // lalr1.cc:907
+#line 291 "parser.yy"
{
- TokenPtr pkt_metadata(new TokenPkt(yystack_[0].value.as< TokenPkt::MetadataType > ()));
+ TokenPtr pkt_metadata(new TokenPkt(yystack_[0].value.as < TokenPkt::MetadataType > ()));
ctx.expression.push_back(pkt_metadata);
}
-#line 1035 "parser.cc" // lalr1.cc:907
+#line 1036 "parser.cc"
break;
case 24:
-#line 296 "parser.yy" // lalr1.cc:907
+#line 296 "parser.yy"
{
switch (ctx.getUniverse()) {
case Option::V4:
{
- TokenPtr pkt4_field(new TokenPkt4(yystack_[0].value.as< TokenPkt4::FieldType > ()));
+ TokenPtr pkt4_field(new TokenPkt4(yystack_[0].value.as < TokenPkt4::FieldType > ()));
ctx.expression.push_back(pkt4_field);
break;
}
error(yystack_[2].location, "pkt4 can only be used in DHCPv4.");
}
}
-#line 1053 "parser.cc" // lalr1.cc:907
+#line 1054 "parser.cc"
break;
case 25:
-#line 310 "parser.yy" // lalr1.cc:907
+#line 310 "parser.yy"
{
switch (ctx.getUniverse()) {
case Option::V6:
{
- TokenPtr pkt6_field(new TokenPkt6(yystack_[0].value.as< TokenPkt6::FieldType > ()));
+ TokenPtr pkt6_field(new TokenPkt6(yystack_[0].value.as < TokenPkt6::FieldType > ()));
ctx.expression.push_back(pkt6_field);
break;
}
error(yystack_[2].location, "pkt6 can only be used in DHCPv6.");
}
}
-#line 1071 "parser.cc" // lalr1.cc:907
+#line 1072 "parser.cc"
break;
case 26:
-#line 324 "parser.yy" // lalr1.cc:907
+#line 324 "parser.yy"
{
switch (ctx.getUniverse()) {
case Option::V6:
{
- TokenPtr relay6field(new TokenRelay6Field(yystack_[3].value.as< int8_t > (), yystack_[0].value.as< TokenRelay6Field::FieldType > ()));
+ TokenPtr relay6field(new TokenRelay6Field(yystack_[3].value.as < int8_t > (), yystack_[0].value.as < TokenRelay6Field::FieldType > ()));
ctx.expression.push_back(relay6field);
break;
}
error(yystack_[5].location, "relay6 can only be used in DHCPv6.");
}
}
-#line 1089 "parser.cc" // lalr1.cc:907
+#line 1090 "parser.cc"
break;
case 27:
-#line 339 "parser.yy" // lalr1.cc:907
+#line 339 "parser.yy"
{
TokenPtr sub(new TokenSubstring());
ctx.expression.push_back(sub);
}
-#line 1098 "parser.cc" // lalr1.cc:907
+#line 1099 "parser.cc"
break;
case 28:
-#line 344 "parser.yy" // lalr1.cc:907
+#line 344 "parser.yy"
{
TokenPtr conc(new TokenConcat());
ctx.expression.push_back(conc);
}
-#line 1107 "parser.cc" // lalr1.cc:907
+#line 1108 "parser.cc"
break;
case 29:
-#line 349 "parser.yy" // lalr1.cc:907
+#line 349 "parser.yy"
{
TokenPtr cond(new TokenIfElse());
ctx.expression.push_back(cond);
}
-#line 1116 "parser.cc" // lalr1.cc:907
+#line 1117 "parser.cc"
break;
case 30:
-#line 354 "parser.yy" // lalr1.cc:907
+#line 354 "parser.yy"
{
TokenPtr tohex(new TokenToHexString());
ctx.expression.push_back(tohex);
}
-#line 1125 "parser.cc" // lalr1.cc:907
+#line 1126 "parser.cc"
break;
case 31:
-#line 359 "parser.yy" // lalr1.cc:907
+#line 359 "parser.yy"
{
// expression: vendor.enterprise
//
TokenPtr vendor(new TokenVendor(ctx.getUniverse(), 0, TokenVendor::ENTERPRISE_ID));
ctx.expression.push_back(vendor);
}
-#line 1138 "parser.cc" // lalr1.cc:907
+#line 1139 "parser.cc"
break;
case 32:
-#line 368 "parser.yy" // lalr1.cc:907
+#line 368 "parser.yy"
{
// expression: vendor-class.enterprise
//
TokenVendor::ENTERPRISE_ID));
ctx.expression.push_back(vendor);
}
-#line 1152 "parser.cc" // lalr1.cc:907
+#line 1153 "parser.cc"
break;
case 33:
-#line 378 "parser.yy" // lalr1.cc:907
+#line 378 "parser.yy"
{
// This token will search for vendor option with
// specified enterprise-id. If found, will search
// for specified suboption and finally will return
// its content.
- TokenPtr opt(new TokenVendor(ctx.getUniverse(), yystack_[8].value.as< uint32_t > (), yystack_[0].value.as< TokenOption::RepresentationType > (), yystack_[3].value.as< uint16_t > ()));
+ TokenPtr opt(new TokenVendor(ctx.getUniverse(), yystack_[8].value.as < uint32_t > (), yystack_[0].value.as < TokenOption::RepresentationType > (), yystack_[3].value.as < uint16_t > ()));
ctx.expression.push_back(opt);
}
-#line 1165 "parser.cc" // lalr1.cc:907
+#line 1166 "parser.cc"
break;
case 34:
-#line 387 "parser.yy" // lalr1.cc:907
+#line 387 "parser.yy"
{
// expression: vendor-class[1234].data
//
// structure allows multiple of them). If chunk
// offset is not specified, we assume the first (0th)
// is requested.
- TokenPtr vendor_class(new TokenVendorClass(ctx.getUniverse(), yystack_[3].value.as< uint32_t > (),
+ TokenPtr vendor_class(new TokenVendorClass(ctx.getUniverse(), yystack_[3].value.as < uint32_t > (),
TokenVendor::DATA, 0));
ctx.expression.push_back(vendor_class);
}
-#line 1182 "parser.cc" // lalr1.cc:907
+#line 1183 "parser.cc"
break;
case 35:
-#line 400 "parser.yy" // lalr1.cc:907
+#line 400 "parser.yy"
{
// expression: vendor-class[1234].data[5]
//
// but chunks of data (typically 1, but the option
// structure allows multiple of them). This syntax
// specifies which data chunk (tuple) we want.
- uint8_t index = ctx.convertUint8(yystack_[1].value.as< std::string > (), yystack_[1].location);
- TokenPtr vendor_class(new TokenVendorClass(ctx.getUniverse(), yystack_[6].value.as< uint32_t > (),
+ uint8_t index = ctx.convertUint8(yystack_[1].value.as < std::string > (), yystack_[1].location);
+ TokenPtr vendor_class(new TokenVendorClass(ctx.getUniverse(), yystack_[6].value.as < uint32_t > (),
TokenVendor::DATA, index));
ctx.expression.push_back(vendor_class);
}
-#line 1199 "parser.cc" // lalr1.cc:907
+#line 1200 "parser.cc"
break;
case 36:
-#line 413 "parser.yy" // lalr1.cc:907
+#line 413 "parser.yy"
{
- TokenPtr integer(new TokenInteger(yystack_[0].value.as< uint32_t > ()));
+ TokenPtr integer(new TokenInteger(yystack_[0].value.as < uint32_t > ()));
ctx.expression.push_back(integer);
}
-#line 1208 "parser.cc" // lalr1.cc:907
+#line 1209 "parser.cc"
break;
case 37:
-#line 420 "parser.yy" // lalr1.cc:907
+#line 420 "parser.yy"
{
- yylhs.value.as< uint32_t > () = ctx.convertUint32(yystack_[0].value.as< std::string > (), yystack_[0].location);
+ yylhs.value.as < uint32_t > () = ctx.convertUint32(yystack_[0].value.as < std::string > (), yystack_[0].location);
}
-#line 1216 "parser.cc" // lalr1.cc:907
+#line 1217 "parser.cc"
break;
case 38:
-#line 426 "parser.yy" // lalr1.cc:907
+#line 426 "parser.yy"
{
- yylhs.value.as< uint16_t > () = ctx.convertOptionCode(yystack_[0].value.as< std::string > (), yystack_[0].location);
+ yylhs.value.as < uint16_t > () = ctx.convertOptionCode(yystack_[0].value.as < std::string > (), yystack_[0].location);
}
-#line 1224 "parser.cc" // lalr1.cc:907
+#line 1225 "parser.cc"
break;
case 39:
-#line 430 "parser.yy" // lalr1.cc:907
+#line 430 "parser.yy"
{
- yylhs.value.as< uint16_t > () = ctx.convertOptionName(yystack_[0].value.as< std::string > (), yystack_[0].location);
+ yylhs.value.as < uint16_t > () = ctx.convertOptionName(yystack_[0].value.as < std::string > (), yystack_[0].location);
}
-#line 1232 "parser.cc" // lalr1.cc:907
+#line 1233 "parser.cc"
break;
case 40:
-#line 436 "parser.yy" // lalr1.cc:907
+#line 436 "parser.yy"
{
- yylhs.value.as< TokenOption::RepresentationType > () = TokenOption::TEXTUAL;
+ yylhs.value.as < TokenOption::RepresentationType > () = TokenOption::TEXTUAL;
}
-#line 1240 "parser.cc" // lalr1.cc:907
+#line 1241 "parser.cc"
break;
case 41:
-#line 440 "parser.yy" // lalr1.cc:907
+#line 440 "parser.yy"
{
- yylhs.value.as< TokenOption::RepresentationType > () = TokenOption::HEXADECIMAL;
+ yylhs.value.as < TokenOption::RepresentationType > () = TokenOption::HEXADECIMAL;
}
-#line 1248 "parser.cc" // lalr1.cc:907
+#line 1249 "parser.cc"
break;
case 42:
-#line 446 "parser.yy" // lalr1.cc:907
+#line 446 "parser.yy"
{
- yylhs.value.as< int8_t > () = ctx.convertNestLevelNumber(yystack_[0].value.as< std::string > (), yystack_[0].location);
+ yylhs.value.as < int8_t > () = ctx.convertNestLevelNumber(yystack_[0].value.as < std::string > (), yystack_[0].location);
}
-#line 1256 "parser.cc" // lalr1.cc:907
+#line 1257 "parser.cc"
break;
case 43:
-#line 455 "parser.yy" // lalr1.cc:907
+#line 455 "parser.yy"
{
- yylhs.value.as< TokenPkt::MetadataType > () = TokenPkt::IFACE;
+ yylhs.value.as < TokenPkt::MetadataType > () = TokenPkt::IFACE;
}
-#line 1264 "parser.cc" // lalr1.cc:907
+#line 1265 "parser.cc"
break;
case 44:
-#line 459 "parser.yy" // lalr1.cc:907
+#line 459 "parser.yy"
{
- yylhs.value.as< TokenPkt::MetadataType > () = TokenPkt::SRC;
+ yylhs.value.as < TokenPkt::MetadataType > () = TokenPkt::SRC;
}
-#line 1272 "parser.cc" // lalr1.cc:907
+#line 1273 "parser.cc"
break;
case 45:
-#line 463 "parser.yy" // lalr1.cc:907
+#line 463 "parser.yy"
{
- yylhs.value.as< TokenPkt::MetadataType > () = TokenPkt::DST;
+ yylhs.value.as < TokenPkt::MetadataType > () = TokenPkt::DST;
}
-#line 1280 "parser.cc" // lalr1.cc:907
+#line 1281 "parser.cc"
break;
case 46:
-#line 467 "parser.yy" // lalr1.cc:907
+#line 467 "parser.yy"
{
- yylhs.value.as< TokenPkt::MetadataType > () = TokenPkt::LEN;
+ yylhs.value.as < TokenPkt::MetadataType > () = TokenPkt::LEN;
}
-#line 1288 "parser.cc" // lalr1.cc:907
+#line 1289 "parser.cc"
break;
case 47:
-#line 473 "parser.yy" // lalr1.cc:907
+#line 473 "parser.yy"
{
- yylhs.value.as< uint32_t > () = ctx.convertUint32(yystack_[0].value.as< std::string > (), yystack_[0].location);
+ yylhs.value.as < uint32_t > () = ctx.convertUint32(yystack_[0].value.as < std::string > (), yystack_[0].location);
}
-#line 1296 "parser.cc" // lalr1.cc:907
+#line 1297 "parser.cc"
break;
case 48:
-#line 477 "parser.yy" // lalr1.cc:907
+#line 477 "parser.yy"
{
- yylhs.value.as< uint32_t > () = 0;
+ yylhs.value.as < uint32_t > () = 0;
}
-#line 1304 "parser.cc" // lalr1.cc:907
+#line 1305 "parser.cc"
break;
case 49:
-#line 483 "parser.yy" // lalr1.cc:907
+#line 483 "parser.yy"
{
- yylhs.value.as< TokenPkt4::FieldType > () = TokenPkt4::CHADDR;
+ yylhs.value.as < TokenPkt4::FieldType > () = TokenPkt4::CHADDR;
}
-#line 1312 "parser.cc" // lalr1.cc:907
+#line 1313 "parser.cc"
break;
case 50:
-#line 487 "parser.yy" // lalr1.cc:907
+#line 487 "parser.yy"
{
- yylhs.value.as< TokenPkt4::FieldType > () = TokenPkt4::HLEN;
+ yylhs.value.as < TokenPkt4::FieldType > () = TokenPkt4::HLEN;
}
-#line 1320 "parser.cc" // lalr1.cc:907
+#line 1321 "parser.cc"
break;
case 51:
-#line 491 "parser.yy" // lalr1.cc:907
+#line 491 "parser.yy"
{
- yylhs.value.as< TokenPkt4::FieldType > () = TokenPkt4::HTYPE;
+ yylhs.value.as < TokenPkt4::FieldType > () = TokenPkt4::HTYPE;
}
-#line 1328 "parser.cc" // lalr1.cc:907
+#line 1329 "parser.cc"
break;
case 52:
-#line 495 "parser.yy" // lalr1.cc:907
+#line 495 "parser.yy"
{
- yylhs.value.as< TokenPkt4::FieldType > () = TokenPkt4::CIADDR;
+ yylhs.value.as < TokenPkt4::FieldType > () = TokenPkt4::CIADDR;
}
-#line 1336 "parser.cc" // lalr1.cc:907
+#line 1337 "parser.cc"
break;
case 53:
-#line 499 "parser.yy" // lalr1.cc:907
+#line 499 "parser.yy"
{
- yylhs.value.as< TokenPkt4::FieldType > () = TokenPkt4::GIADDR;
+ yylhs.value.as < TokenPkt4::FieldType > () = TokenPkt4::GIADDR;
}
-#line 1344 "parser.cc" // lalr1.cc:907
+#line 1345 "parser.cc"
break;
case 54:
-#line 503 "parser.yy" // lalr1.cc:907
+#line 503 "parser.yy"
{
- yylhs.value.as< TokenPkt4::FieldType > () = TokenPkt4::YIADDR;
+ yylhs.value.as < TokenPkt4::FieldType > () = TokenPkt4::YIADDR;
}
-#line 1352 "parser.cc" // lalr1.cc:907
+#line 1353 "parser.cc"
break;
case 55:
-#line 507 "parser.yy" // lalr1.cc:907
+#line 507 "parser.yy"
{
- yylhs.value.as< TokenPkt4::FieldType > () = TokenPkt4::SIADDR;
+ yylhs.value.as < TokenPkt4::FieldType > () = TokenPkt4::SIADDR;
}
-#line 1360 "parser.cc" // lalr1.cc:907
+#line 1361 "parser.cc"
break;
case 56:
-#line 511 "parser.yy" // lalr1.cc:907
+#line 511 "parser.yy"
{
- yylhs.value.as< TokenPkt4::FieldType > () = TokenPkt4::MSGTYPE;
+ yylhs.value.as < TokenPkt4::FieldType > () = TokenPkt4::MSGTYPE;
}
-#line 1368 "parser.cc" // lalr1.cc:907
+#line 1369 "parser.cc"
break;
case 57:
-#line 515 "parser.yy" // lalr1.cc:907
+#line 515 "parser.yy"
{
- yylhs.value.as< TokenPkt4::FieldType > () = TokenPkt4::TRANSID;
+ yylhs.value.as < TokenPkt4::FieldType > () = TokenPkt4::TRANSID;
}
-#line 1376 "parser.cc" // lalr1.cc:907
+#line 1377 "parser.cc"
break;
case 58:
-#line 521 "parser.yy" // lalr1.cc:907
+#line 521 "parser.yy"
{
- yylhs.value.as< TokenPkt6::FieldType > () = TokenPkt6::MSGTYPE;
+ yylhs.value.as < TokenPkt6::FieldType > () = TokenPkt6::MSGTYPE;
}
-#line 1384 "parser.cc" // lalr1.cc:907
+#line 1385 "parser.cc"
break;
case 59:
-#line 525 "parser.yy" // lalr1.cc:907
+#line 525 "parser.yy"
{
- yylhs.value.as< TokenPkt6::FieldType > () = TokenPkt6::TRANSID;
+ yylhs.value.as < TokenPkt6::FieldType > () = TokenPkt6::TRANSID;
}
-#line 1392 "parser.cc" // lalr1.cc:907
+#line 1393 "parser.cc"
break;
case 60:
-#line 531 "parser.yy" // lalr1.cc:907
+#line 531 "parser.yy"
{
- yylhs.value.as< TokenRelay6Field::FieldType > () = TokenRelay6Field::PEERADDR;
+ yylhs.value.as < TokenRelay6Field::FieldType > () = TokenRelay6Field::PEERADDR;
}
-#line 1400 "parser.cc" // lalr1.cc:907
+#line 1401 "parser.cc"
break;
case 61:
-#line 535 "parser.yy" // lalr1.cc:907
+#line 535 "parser.yy"
{
- yylhs.value.as< TokenRelay6Field::FieldType > () = TokenRelay6Field::LINKADDR;
+ yylhs.value.as < TokenRelay6Field::FieldType > () = TokenRelay6Field::LINKADDR;
}
-#line 1408 "parser.cc" // lalr1.cc:907
+#line 1409 "parser.cc"
break;
case 62:
-#line 541 "parser.yy" // lalr1.cc:907
+#line 541 "parser.yy"
{
- TokenPtr str(new TokenString(yystack_[0].value.as< std::string > ()));
+ TokenPtr str(new TokenString(yystack_[0].value.as < std::string > ()));
ctx.expression.push_back(str);
}
-#line 1417 "parser.cc" // lalr1.cc:907
+#line 1418 "parser.cc"
break;
case 63:
-#line 548 "parser.yy" // lalr1.cc:907
+#line 548 "parser.yy"
{
- TokenPtr str(new TokenString(yystack_[0].value.as< std::string > ()));
+ TokenPtr str(new TokenString(yystack_[0].value.as < std::string > ()));
ctx.expression.push_back(str);
}
-#line 1426 "parser.cc" // lalr1.cc:907
+#line 1427 "parser.cc"
break;
case 64:
-#line 553 "parser.yy" // lalr1.cc:907
+#line 553 "parser.yy"
{
TokenPtr str(new TokenString("all"));
ctx.expression.push_back(str);
}
-#line 1435 "parser.cc" // lalr1.cc:907
+#line 1436 "parser.cc"
break;
-#line 1439 "parser.cc" // lalr1.cc:907
+#line 1440 "parser.cc"
+
default:
break;
}
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)
{
+ YYCDEBUG << "Caught exception: " << yyexc.what() << '\n';
error (yyexc);
YYERROR;
}
}
goto yynewstate;
+
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
| 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. |
`-------------------------------------------------------------*/
}
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);
#endif // EVALDEBUG
-#line 14 "parser.yy" // lalr1.cc:1218
+#line 14 "parser.yy"
} } // isc::eval
-#line 1930 "parser.cc" // lalr1.cc:1218
-#line 559 "parser.yy" // lalr1.cc:1219
+#line 1944 "parser.cc"
+
+#line 559 "parser.yy"
void
isc::eval::EvalParser::error(const location_type& loc,
-// 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
#ifndef YY_EVAL_PARSER_H_INCLUDED
# define YY_EVAL_PARSER_H_INCLUDED
// // "%code requires" blocks.
-#line 17 "parser.yy" // lalr1.cc:404
+#line 17 "parser.yy"
#include <string>
#include <eval/token.h>
using namespace isc::dhcp;
using namespace isc::eval;
-#line 59 "parser.h" // lalr1.cc:404
+#line 59 "parser.h"
# include <cassert>
# include <cstdlib> // std::abort
# 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 <typeinfo>
#ifndef YYASSERT
# endif /* ! defined YYDEBUG */
#endif /* ! defined EVALDEBUG */
-#line 14 "parser.yy" // lalr1.cc:404
+#line 14 "parser.yy"
namespace isc { namespace eval {
-#line 167 "parser.h" // lalr1.cc:404
-
- /// A stack with random access from its top.
- template <typename T, typename S = std::vector<T> >
- class stack
- {
- public:
- // Hide our reversed order.
- typedef typename S::reverse_iterator iterator;
- typedef typename S::const_reverse_iterator const_iterator;
- 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));
- }
+#line 183 "parser.h"
- /// 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 ();
- }
-
- 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 <typename T, typename S = stack<T> >
- class slice
+ /// A Bison parser.
+ class EvalParser
{
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 EVALSTYPE
+ /// 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 <size_t S>
- struct variant
+ /// via the current parser state.
+ class semantic_type
{
+ public:
/// Type of *this.
- typedef variant<S> self_type;
+ typedef semantic_type self_type;
/// Empty construction.
- variant ()
+ semantic_type () YY_NOEXCEPT
: yybuffer_ ()
, yytypeid_ (YY_NULLPTR)
{}
/// Construct and fill.
template <typename T>
- 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> ()) T (YY_MOVE (t));
}
/// Destruction, allowed only if empty.
- ~variant ()
+ ~semantic_type () YY_NOEXCEPT
{
YYASSERT (!yytypeid_);
}
- /// Instantiate an empty \a T in here.
- template <typename T>
+# if 201103L <= YY_CPLUSPLUS
+ /// Instantiate a \a T in here from \a t.
+ template <typename T, typename... U>
T&
- emplace ()
+ emplace (U&&... u)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T ();
+ return *new (yyas_<T> ()) T (std::forward <U>(u)...);
}
-
-# if 201103L <= YY_CPLUSPLUS
- /// Instantiate a \a T in here from \a t.
- template <typename T, typename U>
+# else
+ /// Instantiate an empty \a T in here.
+ template <typename T>
T&
- emplace (U&& u)
+ emplace ()
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
- return *new (yyas_<T> ()) T (std::forward <U>(u));
+ return *new (yyas_<T> ()) T ();
}
-# else
+
/// Instantiate a \a T in here from \a t.
template <typename T>
T&
emplace (const T& t)
{
YYASSERT (!yytypeid_);
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_<T> ()) T (t);
}
/// Accessor to a built \a T.
template <typename T>
T&
- as ()
+ as () YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
/// Const accessor to a built \a T (for %printer).
template <typename T>
const T&
- as () const
+ as () const YY_NOEXCEPT
{
YYASSERT (yytypeid_);
YYASSERT (*yytypeid_ == typeid (T));
- YYASSERT (sizeof (T) <= S);
+ YYASSERT (sizeof (T) <= size);
return *yyas_<T> ();
}
- /// 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 <typename T>
void
- swap (self_type& other)
+ swap (self_type& that) YY_NOEXCEPT
{
YYASSERT (yytypeid_);
- YYASSERT (*yytypeid_ == *other.yytypeid_);
- std::swap (as<T> (), other.as<T> ());
+ YYASSERT (*yytypeid_ == *that.yytypeid_);
+ std::swap (as<T> (), that.as<T> ());
}
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
///
- /// Destroys \a other.
+ /// Destroys \a that.
template <typename T>
void
- move (self_type& other)
+ move (self_type& that)
{
# if 201103L <= YY_CPLUSPLUS
- emplace<T> (std::move (other.as<T> ()));
+ emplace<T> (std::move (that.as<T> ()));
# else
emplace<T> ();
- swap<T> (other);
+ swap<T> (that);
# endif
- other.destroy<T> ();
+ that.destroy<T> ();
}
# if 201103L <= YY_CPLUSPLUS
- /// Move the content of \a other to this.
+ /// Move the content of \a that to this.
template <typename T>
void
- move (self_type&& other)
+ move (self_type&& that)
{
- emplace<T> (std::move (other.as<T> ()));
- other.destroy<T> ();
+ emplace<T> (std::move (that.as<T> ()));
+ that.destroy<T> ();
}
#endif
- /// Copy the content of \a other to this.
+ /// Copy the content of \a that to this.
template <typename T>
void
- copy (const self_type& other)
+ copy (const self_type& that)
{
- emplace<T> (other.as<T> ());
+ emplace<T> (that.as<T> ());
}
/// Destroy the stored \a T.
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 <typename T>
T*
- yyas_ ()
+ yyas_ () YY_NOEXCEPT
{
void *yyp = yybuffer_.yyraw;
return static_cast<T*> (yyp);
/// Const accessor to raw memory as \a T.
template <typename T>
const T*
- yyas_ () const
+ yyas_ () const YY_NOEXCEPT
{
const void *yyp = yybuffer_.yyraw;
return static_cast<const T*> (yyp);
}
- union
- {
- /// Strongest alignment constraints.
- long double yyalign_me;
- /// A buffer large enough to store any of the semantic values.
- char yyraw[S];
- } yybuffer_;
-
- /// Whether the content is built: if defined, the name of the stored type.
- const std::type_info *yytypeid_;
- };
-
-
- /// A Bison parser.
- class EvalParser
- {
- public:
-#ifndef EVALSTYPE
/// An auxiliary type to compute the largest semantic type.
union union_type
{
// integer_expr
// enterprise_id
char dummy9[sizeof (uint32_t)];
-};
+ };
+
+ /// 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<sizeof (union_type)> semantic_type;
#else
typedef EVALSTYPE semantic_type;
#endif
/// 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;
};
typedef Base super_type;
/// Default constructor.
- basic_symbol ();
+ basic_symbol ()
+ : value ()
+ , location ()
+ {}
- /// Move or copy constructor.
- basic_symbol (YY_RVREF (basic_symbol) other);
+#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.
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, 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);
+ 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, TokenOption::RepresentationType&& v, location_type&& l);
+#if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenOption::RepresentationType&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
#else
- basic_symbol (typename Base::kind_type t, const TokenOption::RepresentationType& v, const location_type& l);
+ basic_symbol (typename Base::kind_type t, const TokenOption::RepresentationType& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
#endif
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, TokenPkt4::FieldType&& v, location_type&& l);
+#if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenPkt4::FieldType&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
#else
- basic_symbol (typename Base::kind_type t, const TokenPkt4::FieldType& v, const location_type& l);
+ basic_symbol (typename Base::kind_type t, const TokenPkt4::FieldType& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
#endif
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, TokenPkt6::FieldType&& v, location_type&& l);
+#if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenPkt6::FieldType&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
#else
- basic_symbol (typename Base::kind_type t, const TokenPkt6::FieldType& v, const location_type& l);
+ basic_symbol (typename Base::kind_type t, const TokenPkt6::FieldType& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
#endif
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, TokenPkt::MetadataType&& v, location_type&& l);
+#if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenPkt::MetadataType&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
#else
- basic_symbol (typename Base::kind_type t, const TokenPkt::MetadataType& v, const location_type& l);
+ basic_symbol (typename Base::kind_type t, const TokenPkt::MetadataType& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
#endif
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, TokenRelay6Field::FieldType&& v, location_type&& l);
+#if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenRelay6Field::FieldType&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
#else
- basic_symbol (typename Base::kind_type t, const TokenRelay6Field::FieldType& v, const location_type& l);
+ basic_symbol (typename Base::kind_type t, const TokenRelay6Field::FieldType& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
#endif
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, int8_t&& v, location_type&& l);
+#if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, int8_t&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
#else
- basic_symbol (typename Base::kind_type t, const int8_t& v, const location_type& l);
+ basic_symbol (typename Base::kind_type t, const int8_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);
+#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);
+ basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
#endif
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, uint16_t&& v, location_type&& l);
+#if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, uint16_t&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
#else
- basic_symbol (typename Base::kind_type t, const uint16_t& v, const location_type& l);
+ basic_symbol (typename Base::kind_type t, const uint16_t& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
#endif
-# if 201103L <= YY_CPLUSPLUS
- basic_symbol (typename Base::kind_type t, uint32_t&& v, location_type&& l);
+#if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, uint32_t&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
#else
- basic_symbol (typename Base::kind_type t, const uint32_t& v, const location_type& l);
+ basic_symbol (typename Base::kind_type t, const uint32_t& 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<Base>& yysym = *this;
+ (void) yysym;
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+
+ // Type destructor.
+switch (yytype)
+ {
+ case 62: // option_repr_type
+ value.template destroy< TokenOption::RepresentationType > ();
+ break;
+
+ case 66: // pkt4_field
+ value.template destroy< TokenPkt4::FieldType > ();
+ break;
+
+ case 67: // pkt6_field
+ value.template destroy< TokenPkt6::FieldType > ();
+ break;
+
+ case 64: // pkt_metadata
+ value.template destroy< TokenPkt::MetadataType > ();
+ break;
+
+ case 68: // relay6_field
+ value.template destroy< TokenRelay6Field::FieldType > ();
+ break;
+
+ case 63: // nest_level
+ value.template destroy< int8_t > ();
+ break;
+
+ case 50: // "constant string"
+ case 51: // "integer"
+ case 52: // "constant hexstring"
+ case 53: // "option name"
+ case 54: // "ip address"
+ value.template destroy< std::string > ();
+ break;
+
+ case 61: // option_code
+ value.template destroy< uint16_t > ();
+ break;
+
+ case 60: // integer_expr
+ case 65: // enterprise_id
+ value.template destroy< uint32_t > ();
+ 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);
private:
#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
- basic_symbol& operator= (const basic_symbol& other);
+ basic_symbol& operator= (const basic_symbol& that);
#endif
};
/// 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;
/// 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.
};
/// "External" symbols: returned by the scanner.
- typedef basic_symbol<by_type> symbol_type;
+ struct symbol_type : basic_symbol<by_type>
+ {
+ /// Superclass.
+ typedef basic_symbol<by_type> 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_LPAREN || tok == token::TOKEN_RPAREN || tok == token::TOKEN_NOT || tok == token::TOKEN_AND || tok == token::TOKEN_OR || tok == token::TOKEN_EQUAL || tok == token::TOKEN_OPTION || tok == token::TOKEN_RELAY4 || tok == token::TOKEN_RELAY6 || tok == token::TOKEN_MEMBER || tok == token::TOKEN_PEERADDR || tok == token::TOKEN_LINKADDR || tok == token::TOKEN_LBRACKET || tok == token::TOKEN_RBRACKET || tok == token::TOKEN_DOT || tok == token::TOKEN_TEXT || tok == token::TOKEN_HEX || tok == token::TOKEN_EXISTS || tok == token::TOKEN_PKT || tok == token::TOKEN_IFACE || tok == token::TOKEN_SRC || tok == token::TOKEN_DST || tok == token::TOKEN_LEN || tok == token::TOKEN_PKT4 || tok == token::TOKEN_CHADDR || tok == token::TOKEN_HLEN || tok == token::TOKEN_HTYPE || tok == token::TOKEN_CIADDR || tok == token::TOKEN_GIADDR || tok == token::TOKEN_YIADDR || tok == token::TOKEN_SIADDR || tok == token::TOKEN_SUBSTRING || tok == token::TOKEN_ALL || tok == token::TOKEN_COMA || tok == token::TOKEN_CONCAT || tok == token::TOKEN_IFELSE || tok == token::TOKEN_TOHEXSTRING || tok == token::TOKEN_PKT6 || tok == token::TOKEN_MSGTYPE || tok == token::TOKEN_TRANSID || tok == token::TOKEN_VENDOR_CLASS || tok == token::TOKEN_VENDOR || tok == token::TOKEN_ANY || tok == token::TOKEN_DATA || tok == token::TOKEN_ENTERPRISE || tok == token::TOKEN_TOPLEVEL_BOOL || tok == token::TOKEN_TOPLEVEL_STRING);
+ }
+#else
+ symbol_type (int tok, const location_type& l)
+ : super_type(token_type (tok), l)
+ {
+ YYASSERT (tok == token::TOKEN_END || tok == token::TOKEN_LPAREN || tok == token::TOKEN_RPAREN || tok == token::TOKEN_NOT || tok == token::TOKEN_AND || tok == token::TOKEN_OR || tok == token::TOKEN_EQUAL || tok == token::TOKEN_OPTION || tok == token::TOKEN_RELAY4 || tok == token::TOKEN_RELAY6 || tok == token::TOKEN_MEMBER || tok == token::TOKEN_PEERADDR || tok == token::TOKEN_LINKADDR || tok == token::TOKEN_LBRACKET || tok == token::TOKEN_RBRACKET || tok == token::TOKEN_DOT || tok == token::TOKEN_TEXT || tok == token::TOKEN_HEX || tok == token::TOKEN_EXISTS || tok == token::TOKEN_PKT || tok == token::TOKEN_IFACE || tok == token::TOKEN_SRC || tok == token::TOKEN_DST || tok == token::TOKEN_LEN || tok == token::TOKEN_PKT4 || tok == token::TOKEN_CHADDR || tok == token::TOKEN_HLEN || tok == token::TOKEN_HTYPE || tok == token::TOKEN_CIADDR || tok == token::TOKEN_GIADDR || tok == token::TOKEN_YIADDR || tok == token::TOKEN_SIADDR || tok == token::TOKEN_SUBSTRING || tok == token::TOKEN_ALL || tok == token::TOKEN_COMA || tok == token::TOKEN_CONCAT || tok == token::TOKEN_IFELSE || tok == token::TOKEN_TOHEXSTRING || tok == token::TOKEN_PKT6 || tok == token::TOKEN_MSGTYPE || tok == token::TOKEN_TRANSID || tok == token::TOKEN_VENDOR_CLASS || tok == token::TOKEN_VENDOR || tok == token::TOKEN_ANY || tok == token::TOKEN_DATA || tok == token::TOKEN_ENTERPRISE || tok == token::TOKEN_TOPLEVEL_BOOL || tok == token::TOKEN_TOPLEVEL_STRING);
+ }
+#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 || tok == token::TOKEN_INTEGER || tok == token::TOKEN_HEXSTRING || tok == token::TOKEN_OPTION_NAME || tok == token::TOKEN_IP_ADDRESS);
+ }
+#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 || tok == token::TOKEN_INTEGER || tok == token::TOKEN_HEXSTRING || tok == token::TOKEN_OPTION_NAME || tok == token::TOKEN_IP_ADDRESS);
+ }
+#endif
+ };
/// Build a parser object.
EvalParser (EvalContext& ctx_yyarg);
/// 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_LPAREN (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_RPAREN (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_NOT (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_AND (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_OR (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_EQUAL (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_OPTION (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_RELAY4 (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_RELAY6 (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_MEMBER (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_PEERADDR (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_LINKADDR (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_LBRACKET (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_RBRACKET (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_DOT (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_TEXT (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_HEX (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_EXISTS (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_PKT (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_IFACE (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_SRC (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_DST (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_LEN (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_PKT4 (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_CHADDR (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_HLEN (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_HTYPE (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_CIADDR (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_GIADDR (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_YIADDR (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_SIADDR (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_SUBSTRING (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_ALL (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_COMA (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_CONCAT (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_IFELSE (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_TOHEXSTRING (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_PKT6 (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_MSGTYPE (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_TRANSID (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_VENDOR_CLASS (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_VENDOR (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_ANY (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_DATA (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_ENTERPRISE (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_TOPLEVEL_BOOL (YY_COPY (location_type) l);
-
- static
- symbol_type
- make_TOPLEVEL_STRING (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 (std::string) v, YY_COPY (location_type) l);
-
- static
- symbol_type
- make_HEXSTRING (YY_COPY (std::string) v, YY_COPY (location_type) l);
-
- static
- symbol_type
- make_OPTION_NAME (YY_COPY (std::string) v, YY_COPY (location_type) l);
-
- static
- symbol_type
- make_IP_ADDRESS (YY_COPY (std::string) 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_LPAREN (location_type l)
+ {
+ return symbol_type (token::TOKEN_LPAREN, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LPAREN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LPAREN, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RPAREN (location_type l)
+ {
+ return symbol_type (token::TOKEN_RPAREN, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RPAREN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RPAREN, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_NOT (location_type l)
+ {
+ return symbol_type (token::TOKEN_NOT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_NOT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_NOT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_AND (location_type l)
+ {
+ return symbol_type (token::TOKEN_AND, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_AND (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_AND, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OR (location_type l)
+ {
+ return symbol_type (token::TOKEN_OR, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OR (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OR, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_EQUAL (location_type l)
+ {
+ return symbol_type (token::TOKEN_EQUAL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_EQUAL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EQUAL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OPTION (location_type l)
+ {
+ return symbol_type (token::TOKEN_OPTION, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OPTION (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OPTION, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RELAY4 (location_type l)
+ {
+ return symbol_type (token::TOKEN_RELAY4, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RELAY4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RELAY4, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RELAY6 (location_type l)
+ {
+ return symbol_type (token::TOKEN_RELAY6, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RELAY6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RELAY6, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MEMBER (location_type l)
+ {
+ return symbol_type (token::TOKEN_MEMBER, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MEMBER (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MEMBER, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PEERADDR (location_type l)
+ {
+ return symbol_type (token::TOKEN_PEERADDR, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PEERADDR (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PEERADDR, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LINKADDR (location_type l)
+ {
+ return symbol_type (token::TOKEN_LINKADDR, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LINKADDR (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LINKADDR, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LBRACKET (location_type l)
+ {
+ return symbol_type (token::TOKEN_LBRACKET, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LBRACKET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LBRACKET, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_RBRACKET (location_type l)
+ {
+ return symbol_type (token::TOKEN_RBRACKET, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_RBRACKET (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_RBRACKET, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DOT (location_type l)
+ {
+ return symbol_type (token::TOKEN_DOT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DOT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DOT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TEXT (location_type l)
+ {
+ return symbol_type (token::TOKEN_TEXT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TEXT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TEXT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HEX (location_type l)
+ {
+ return symbol_type (token::TOKEN_HEX, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HEX (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HEX, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_EXISTS (location_type l)
+ {
+ return symbol_type (token::TOKEN_EXISTS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_EXISTS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_EXISTS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PKT (location_type l)
+ {
+ return symbol_type (token::TOKEN_PKT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PKT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PKT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_IFACE (location_type l)
+ {
+ return symbol_type (token::TOKEN_IFACE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_IFACE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IFACE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SRC (location_type l)
+ {
+ return symbol_type (token::TOKEN_SRC, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SRC (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SRC, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_DST (location_type l)
+ {
+ return symbol_type (token::TOKEN_DST, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_DST (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_DST, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_LEN (location_type l)
+ {
+ return symbol_type (token::TOKEN_LEN, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_LEN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_LEN, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PKT4 (location_type l)
+ {
+ return symbol_type (token::TOKEN_PKT4, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PKT4 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PKT4, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CHADDR (location_type l)
+ {
+ return symbol_type (token::TOKEN_CHADDR, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CHADDR (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CHADDR, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HLEN (location_type l)
+ {
+ return symbol_type (token::TOKEN_HLEN, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HLEN (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HLEN, 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_CIADDR (location_type l)
+ {
+ return symbol_type (token::TOKEN_CIADDR, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CIADDR (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CIADDR, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_GIADDR (location_type l)
+ {
+ return symbol_type (token::TOKEN_GIADDR, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_GIADDR (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_GIADDR, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_YIADDR (location_type l)
+ {
+ return symbol_type (token::TOKEN_YIADDR, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_YIADDR (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_YIADDR, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SIADDR (location_type l)
+ {
+ return symbol_type (token::TOKEN_SIADDR, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SIADDR (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SIADDR, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_SUBSTRING (location_type l)
+ {
+ return symbol_type (token::TOKEN_SUBSTRING, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_SUBSTRING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_SUBSTRING, 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_COMA (location_type l)
+ {
+ return symbol_type (token::TOKEN_COMA, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_COMA (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_COMA, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_CONCAT (location_type l)
+ {
+ return symbol_type (token::TOKEN_CONCAT, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_CONCAT (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_CONCAT, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_IFELSE (location_type l)
+ {
+ return symbol_type (token::TOKEN_IFELSE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_IFELSE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IFELSE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TOHEXSTRING (location_type l)
+ {
+ return symbol_type (token::TOKEN_TOHEXSTRING, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TOHEXSTRING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TOHEXSTRING, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PKT6 (location_type l)
+ {
+ return symbol_type (token::TOKEN_PKT6, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PKT6 (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PKT6, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_MSGTYPE (location_type l)
+ {
+ return symbol_type (token::TOKEN_MSGTYPE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_MSGTYPE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_MSGTYPE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TRANSID (location_type l)
+ {
+ return symbol_type (token::TOKEN_TRANSID, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TRANSID (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TRANSID, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_VENDOR_CLASS (location_type l)
+ {
+ return symbol_type (token::TOKEN_VENDOR_CLASS, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_VENDOR_CLASS (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_VENDOR_CLASS, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_VENDOR (location_type l)
+ {
+ return symbol_type (token::TOKEN_VENDOR, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_VENDOR (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_VENDOR, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_ANY (location_type l)
+ {
+ return symbol_type (token::TOKEN_ANY, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ANY (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ANY, 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_ENTERPRISE (location_type l)
+ {
+ return symbol_type (token::TOKEN_ENTERPRISE, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_ENTERPRISE (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_ENTERPRISE, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TOPLEVEL_BOOL (location_type l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_BOOL, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TOPLEVEL_BOOL (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_BOOL, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_TOPLEVEL_STRING (location_type l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_STRING, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_TOPLEVEL_STRING (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_TOPLEVEL_STRING, 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 (std::string v, location_type l)
+ {
+ return symbol_type (token::TOKEN_INTEGER, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_INTEGER (const std::string& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_INTEGER, v, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_HEXSTRING (std::string v, location_type l)
+ {
+ return symbol_type (token::TOKEN_HEXSTRING, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_HEXSTRING (const std::string& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_HEXSTRING, v, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_OPTION_NAME (std::string v, location_type l)
+ {
+ return symbol_type (token::TOKEN_OPTION_NAME, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_OPTION_NAME (const std::string& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_OPTION_NAME, v, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_IP_ADDRESS (std::string v, location_type l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESS, std::move (v), std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_IP_ADDRESS (const std::string& v, const location_type& l)
+ {
+ return symbol_type (token::TOKEN_IP_ADDRESS, v, l);
+ }
+#endif
private:
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 };
#endif
};
+ /// A stack with random access from its top.
+ template <typename T, typename S = std::vector<T> >
+ class stack
+ {
+ public:
+ // Hide our reversed order.
+ typedef typename S::reverse_iterator iterator;
+ typedef typename S::const_reverse_iterator const_iterator;
+ 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_symbol_type> stack_type;
EvalContext& ctx;
};
- // Symbol number corresponding to token number t.
inline
EvalParser::token_number_type
EvalParser::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,
return undef_token_;
}
- inline
- EvalParser::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 <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol ()
- : value ()
- , location ()
- {}
-
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (YY_RVREF (basic_symbol) other)
- : Base (YY_MOVE (other))
+ EvalParser::basic_symbol<Base>::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 62: // option_repr_type
- value.YY_MOVE_OR_COPY< TokenOption::RepresentationType > (YY_MOVE (other.value));
+ value.move< TokenOption::RepresentationType > (std::move (that.value));
break;
case 66: // pkt4_field
- value.YY_MOVE_OR_COPY< TokenPkt4::FieldType > (YY_MOVE (other.value));
+ value.move< TokenPkt4::FieldType > (std::move (that.value));
break;
case 67: // pkt6_field
- value.YY_MOVE_OR_COPY< TokenPkt6::FieldType > (YY_MOVE (other.value));
+ value.move< TokenPkt6::FieldType > (std::move (that.value));
break;
case 64: // pkt_metadata
- value.YY_MOVE_OR_COPY< TokenPkt::MetadataType > (YY_MOVE (other.value));
+ value.move< TokenPkt::MetadataType > (std::move (that.value));
break;
case 68: // relay6_field
- value.YY_MOVE_OR_COPY< TokenRelay6Field::FieldType > (YY_MOVE (other.value));
+ value.move< TokenRelay6Field::FieldType > (std::move (that.value));
break;
case 63: // nest_level
- value.YY_MOVE_OR_COPY< int8_t > (YY_MOVE (other.value));
+ value.move< int8_t > (std::move (that.value));
break;
case 50: // "constant string"
- case 51: // "integer"
- case 52: // "constant hexstring"
- case 53: // "option name"
- case 54: // "ip address"
- value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (other.value));
- break;
-
- case 61: // option_code
- value.YY_MOVE_OR_COPY< uint16_t > (YY_MOVE (other.value));
- break;
-
- case 60: // integer_expr
- case 65: // enterprise_id
- value.YY_MOVE_OR_COPY< uint32_t > (YY_MOVE (other.value));
- break;
-
- default:
- break;
- }
-
- }
-
-
- // Implementation of basic_symbol constructor for each type.
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
- : Base (t)
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
- : Base (t)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, TokenOption::RepresentationType&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const TokenOption::RepresentationType& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, TokenPkt4::FieldType&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const TokenPkt4::FieldType& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, TokenPkt6::FieldType&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const TokenPkt6::FieldType& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, TokenPkt::MetadataType&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const TokenPkt::MetadataType& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, TokenRelay6Field::FieldType&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const TokenRelay6Field::FieldType& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, int8_t&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const int8_t& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, uint16_t&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const uint16_t& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
-# if 201103L <= YY_CPLUSPLUS
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, uint32_t&& v, location_type&& l)
- : Base (t)
- , value (std::move (v))
- , location (std::move (l))
- {}
-#else
- template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const uint32_t& v, const location_type& l)
- : Base (t)
- , value (v)
- , location (l)
- {}
-#endif
+ case 51: // "integer"
+ case 52: // "constant hexstring"
+ case 53: // "option name"
+ case 54: // "ip address"
+ value.move< std::string > (std::move (that.value));
+ break;
+ case 61: // option_code
+ value.move< uint16_t > (std::move (that.value));
+ break;
+
+ case 60: // integer_expr
+ case 65: // enterprise_id
+ value.move< uint32_t > (std::move (that.value));
+ break;
+
+ default:
+ break;
+ }
- template <typename Base>
- EvalParser::basic_symbol<Base>::~basic_symbol ()
- {
- clear ();
}
+#endif
template <typename Base>
- void
- EvalParser::basic_symbol<Base>::clear ()
+ EvalParser::basic_symbol<Base>::basic_symbol (const basic_symbol& that)
+ : Base (that)
+ , value ()
+ , location (that.location)
{
- // User destructor.
- symbol_number_type yytype = this->type_get ();
- basic_symbol<Base>& yysym = *this;
- (void) yysym;
- switch (yytype)
- {
- default:
- break;
- }
-
- // Type destructor.
- switch (yytype)
+ switch (this->type_get ())
{
case 62: // option_repr_type
- value.template destroy< TokenOption::RepresentationType > ();
+ value.copy< TokenOption::RepresentationType > (YY_MOVE (that.value));
break;
case 66: // pkt4_field
- value.template destroy< TokenPkt4::FieldType > ();
+ value.copy< TokenPkt4::FieldType > (YY_MOVE (that.value));
break;
case 67: // pkt6_field
- value.template destroy< TokenPkt6::FieldType > ();
+ value.copy< TokenPkt6::FieldType > (YY_MOVE (that.value));
break;
case 64: // pkt_metadata
- value.template destroy< TokenPkt::MetadataType > ();
+ value.copy< TokenPkt::MetadataType > (YY_MOVE (that.value));
break;
case 68: // relay6_field
- value.template destroy< TokenRelay6Field::FieldType > ();
+ value.copy< TokenRelay6Field::FieldType > (YY_MOVE (that.value));
break;
case 63: // nest_level
- value.template destroy< int8_t > ();
+ value.copy< int8_t > (YY_MOVE (that.value));
break;
case 50: // "constant string"
case 52: // "constant hexstring"
case 53: // "option name"
case 54: // "ip address"
- value.template destroy< std::string > ();
+ value.copy< std::string > (YY_MOVE (that.value));
break;
case 61: // option_code
- value.template destroy< uint16_t > ();
+ value.copy< uint16_t > (YY_MOVE (that.value));
break;
case 60: // integer_expr
case 65: // enterprise_id
- value.template destroy< uint32_t > ();
+ value.copy< uint32_t > (YY_MOVE (that.value));
break;
default:
break;
}
- Base::clear ();
}
+
+
template <typename Base>
bool
- EvalParser::basic_symbol<Base>::empty () const
+ EvalParser::basic_symbol<Base>::empty () const YY_NOEXCEPT
{
return Base::type_get () == empty_symbol;
}
: type (empty_symbol)
{}
+#if 201103L <= YY_CPLUSPLUS
+ inline
+ EvalParser::by_type::by_type (by_type&& that)
+ : type (that.type)
+ {
+ that.clear ();
+ }
+#endif
+
inline
- EvalParser::by_type::by_type (const by_type& other)
- : type (other.type)
+ EvalParser::by_type::by_type (const by_type& that)
+ : type (that.type)
{}
inline
inline
int
- EvalParser::by_type::type_get () const
+ EvalParser::by_type::type_get () const YY_NOEXCEPT
{
return type;
}
inline
EvalParser::token_type
- EvalParser::by_type::token () const
+ EvalParser::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). */
295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
305, 306, 307, 308, 309
};
- return static_cast<token_type> (yytoken_number_[type]);
- }
-
- // Implementation of make_symbol for each symbol type.
- inline
- EvalParser::symbol_type
- EvalParser::make_END (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_END, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_LPAREN (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LPAREN, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_RPAREN (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RPAREN, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_NOT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_NOT, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_AND (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_AND, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_OR (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OR, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_EQUAL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_EQUAL, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_OPTION (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OPTION, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_RELAY4 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RELAY4, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_RELAY6 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RELAY6, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_MEMBER (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MEMBER, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_PEERADDR (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_PEERADDR, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_LINKADDR (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LINKADDR, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_LBRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LBRACKET, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_RBRACKET (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_RBRACKET, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_DOT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DOT, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_TEXT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TEXT, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_HEX (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HEX, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_EXISTS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_EXISTS, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_PKT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_PKT, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_IFACE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_IFACE, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_SRC (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SRC, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_DST (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DST, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_LEN (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_LEN, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_PKT4 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_PKT4, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_CHADDR (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CHADDR, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_HLEN (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HLEN, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_HTYPE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HTYPE, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_CIADDR (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CIADDR, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_GIADDR (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_GIADDR, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_YIADDR (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_YIADDR, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_SIADDR (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SIADDR, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_SUBSTRING (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_SUBSTRING, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_ALL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ALL, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_COMA (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_COMA, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_CONCAT (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_CONCAT, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_IFELSE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_IFELSE, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_TOHEXSTRING (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TOHEXSTRING, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_PKT6 (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_PKT6, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_MSGTYPE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_MSGTYPE, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_TRANSID (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TRANSID, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_VENDOR_CLASS (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_VENDOR_CLASS, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_VENDOR (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_VENDOR, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_ANY (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ANY, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_DATA (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_DATA, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_ENTERPRISE (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_ENTERPRISE, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_TOPLEVEL_BOOL (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TOPLEVEL_BOOL, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_TOPLEVEL_STRING (YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_TOPLEVEL_STRING, YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::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
- EvalParser::symbol_type
- EvalParser::make_INTEGER (YY_COPY (std::string) v, YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_INTEGER, YY_MOVE (v), YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_HEXSTRING (YY_COPY (std::string) v, YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_HEXSTRING, YY_MOVE (v), YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_OPTION_NAME (YY_COPY (std::string) v, YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_OPTION_NAME, YY_MOVE (v), YY_MOVE (l));
- }
-
- inline
- EvalParser::symbol_type
- EvalParser::make_IP_ADDRESS (YY_COPY (std::string) v, YY_COPY (location_type) l)
- {
- return symbol_type (token::TOKEN_IP_ADDRESS, YY_MOVE (v), YY_MOVE (l));
+ return token_type (yytoken_number_[type]);
}
-
-#line 14 "parser.yy" // lalr1.cc:404
+#line 14 "parser.yy"
} } // isc::eval
-#line 2037 "parser.h" // lalr1.cc:404
+#line 2303 "parser.h"
+
-// Generated 201811271344
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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".
-// Generated 201811271344
-// A Bison parser, made by GNU Bison 3.2.1.
+// Generated 201908191228
+// 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.
<title>Kea Messages Manual</title>\n\
\n\
<copyright>\n\
- <year>2011-2018</year>\n\
+ <year>2011-2019</year>\n\
<holder>Internet Systems Consortium, Inc. (\"ISC\")</holder>\n\
</copyright>\n\
\n\