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
AgentParser::stack_symbol_type&
AgentParser::stack_symbol_type::operator= (stack_symbol_type& that)
{
void
AgentParser::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);
# 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&&
#line 14 "agent_parser.yy" // lalr1.cc:404
namespace isc { namespace agent {
-#line 161 "agent_parser.h" // lalr1.cc:404
+#line 167 "agent_parser.h" // lalr1.cc:404
/// A stack with random access from its top.
template <typename T, typename S = std::vector<T> >
return *new (yyas_<T> ()) T ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Instantiate a \a T in here from \a t.
template <typename T, typename U>
T&
void
move (self_type& other)
{
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
emplace<T> (std::move (other.as<T> ()));
# else
emplace<T> ();
other.destroy<T> ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Move the content of \a other to this.
template <typename T>
void
/// 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);
+#else
+ basic_symbol (typename Base::kind_type t, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, double&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const double& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l);
+#endif
/// Destroy the symbol.
location_type location;
private:
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
basic_symbol& operator= (const basic_symbol& other);
#endif
stack_symbol_type (YY_RVREF (stack_symbol_type) that);
/// Steal the contents from \a sym to build this.
stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym);
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment, needed by push_back by some old implementations.
/// Moves the contents of that.
stack_symbol_type& operator= (stack_symbol_type& that);
// 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, YY_RVREF (location_type) l)
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
: Base (t)
- , location (YY_MOVE (l))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l)
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l)
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l)
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l)
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l)
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , 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>
#line 14 "agent_parser.yy" // lalr1.cc:404
} } // isc::agent
-#line 1686 "agent_parser.h" // lalr1.cc:404
+#line 1763 "agent_parser.h" // lalr1.cc:404
-// Generated 201811172153
+// Generated 201811271343
// A Bison parser, made by GNU Bison 3.2.1.
// Locations for Bison parsers in C++
-// Generated 201811172153
+// Generated 201811271343
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
-// Generated 201811172153
+// Generated 201811271343
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
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
D2Parser::stack_symbol_type&
D2Parser::stack_symbol_type::operator= (stack_symbol_type& that)
{
void
D2Parser::yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym)
{
-#if defined __cplusplus && 201103L <= __cplusplus
+#if 201103L <= YY_CPLUSPLUS
yypush_ (m, stack_symbol_type (s, std::move (sym)));
#else
stack_symbol_type ss (s, sym);
# 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&&
#line 14 "d2_parser.yy" // lalr1.cc:404
namespace isc { namespace d2 {
-#line 162 "d2_parser.h" // lalr1.cc:404
+#line 168 "d2_parser.h" // lalr1.cc:404
/// A stack with random access from its top.
template <typename T, typename S = std::vector<T> >
return *new (yyas_<T> ()) T ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Instantiate a \a T in here from \a t.
template <typename T, typename U>
T&
void
move (self_type& other)
{
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
emplace<T> (std::move (other.as<T> ()));
# else
emplace<T> ();
other.destroy<T> ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Move the content of \a other to this.
template <typename T>
void
/// 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);
+#else
+ basic_symbol (typename Base::kind_type t, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, double&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const double& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l);
+#endif
/// Destroy the symbol.
location_type location;
private:
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
basic_symbol& operator= (const basic_symbol& other);
#endif
stack_symbol_type (YY_RVREF (stack_symbol_type) that);
/// Steal the contents from \a sym to build this.
stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym);
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment, needed by push_back by some old implementations.
/// Moves the contents of that.
stack_symbol_type& operator= (stack_symbol_type& that);
// 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, YY_RVREF (location_type) l)
+ D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
: Base (t)
- , location (YY_MOVE (l))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l)
+ D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l)
+ D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l)
+ D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l)
+ D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l)
+ D2Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , 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
template <typename Base>
#line 14 "d2_parser.yy" // lalr1.cc:404
} } // isc::d2
-#line 1834 "d2_parser.h" // lalr1.cc:404
+#line 1911 "d2_parser.h" // lalr1.cc:404
-// Generated 201811172153
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Locations for Bison parsers in C++
-// Generated 201811172153
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
-// Generated 201811172153
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
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)
{
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);
# 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&&
#line 14 "dhcp4_parser.yy" // lalr1.cc:404
namespace isc { namespace dhcp {
-#line 162 "dhcp4_parser.h" // lalr1.cc:404
+#line 168 "dhcp4_parser.h" // lalr1.cc:404
/// A stack with random access from its top.
template <typename T, typename S = std::vector<T> >
return *new (yyas_<T> ()) T ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Instantiate a \a T in here from \a t.
template <typename T, typename U>
T&
void
move (self_type& other)
{
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
emplace<T> (std::move (other.as<T> ()));
# else
emplace<T> ();
other.destroy<T> ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Move the content of \a other to this.
template <typename T>
void
/// 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);
+#else
+ basic_symbol (typename Base::kind_type t, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, double&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const double& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l);
+#endif
/// Destroy the symbol.
location_type location;
private:
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
basic_symbol& operator= (const basic_symbol& other);
#endif
stack_symbol_type (YY_RVREF (stack_symbol_type) that);
/// Steal the contents from \a sym to build this.
stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym);
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment, needed by push_back by some old implementations.
/// Moves the contents of that.
stack_symbol_type& operator= (stack_symbol_type& that);
// Implementation of basic_symbol constructor for each type.
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l)
+ Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
: Base (t)
- , location (YY_MOVE (l))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l)
+ Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l)
+ Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l)
+ Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l)
+ Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l)
+ Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ template <typename Base>
+ Dhcp4Parser::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>
+ Dhcp4Parser::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>
+ Dhcp4Parser::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>
+ Dhcp4Parser::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>
+ Dhcp4Parser::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>
+ Dhcp4Parser::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>
#line 14 "dhcp4_parser.yy" // lalr1.cc:404
} } // isc::dhcp
-#line 3220 "dhcp4_parser.h" // lalr1.cc:404
+#line 3297 "dhcp4_parser.h" // lalr1.cc:404
-// Generated 201811202257
+// Generated 201811271343
// A Bison parser, made by GNU Bison 3.2.1.
// Locations for Bison parsers in C++
-// Generated 201811202257
+// Generated 201811271343
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
-// Generated 201811202257
+// Generated 201811271343
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
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)
{
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);
# 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&&
#line 14 "dhcp6_parser.yy" // lalr1.cc:404
namespace isc { namespace dhcp {
-#line 162 "dhcp6_parser.h" // lalr1.cc:404
+#line 168 "dhcp6_parser.h" // lalr1.cc:404
/// A stack with random access from its top.
template <typename T, typename S = std::vector<T> >
return *new (yyas_<T> ()) T ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Instantiate a \a T in here from \a t.
template <typename T, typename U>
T&
void
move (self_type& other)
{
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
emplace<T> (std::move (other.as<T> ()));
# else
emplace<T> ();
other.destroy<T> ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Move the content of \a other to this.
template <typename T>
void
/// 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);
+#else
+ basic_symbol (typename Base::kind_type t, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, double&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const double& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l);
+#endif
/// Destroy the symbol.
location_type location;
private:
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
basic_symbol& operator= (const basic_symbol& other);
#endif
stack_symbol_type (YY_RVREF (stack_symbol_type) that);
/// Steal the contents from \a sym to build this.
stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym);
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment, needed by push_back by some old implementations.
/// Moves the contents of that.
stack_symbol_type& operator= (stack_symbol_type& that);
// Implementation of basic_symbol constructor for each type.
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l)
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
: Base (t)
- , location (YY_MOVE (l))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l)
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l)
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l)
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l)
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l)
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ template <typename Base>
+ Dhcp6Parser::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>
+ Dhcp6Parser::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>
+ Dhcp6Parser::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>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ template <typename Base>
+ Dhcp6Parser::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>
+ Dhcp6Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+#endif
template <typename Base>
#line 14 "dhcp6_parser.yy" // lalr1.cc:404
} } // isc::dhcp
-#line 3277 "dhcp6_parser.h" // lalr1.cc:404
+#line 3354 "dhcp6_parser.h" // lalr1.cc:404
-// Generated 201811202258
+// Generated 201811271343
// A Bison parser, made by GNU Bison 3.2.1.
// Locations for Bison parsers in C++
-// Generated 201811202258
+// Generated 201811271343
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
-// Generated 201811202258
+// Generated 201811271343
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
-// Generated 201811172153
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Locations for Bison parsers in C++
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
NetconfParser::stack_symbol_type&
NetconfParser::stack_symbol_type::operator= (stack_symbol_type& that)
{
void
NetconfParser::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);
# 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&&
#line 14 "netconf_parser.yy" // lalr1.cc:404
namespace isc { namespace netconf {
-#line 161 "netconf_parser.h" // lalr1.cc:404
+#line 167 "netconf_parser.h" // lalr1.cc:404
/// A stack with random access from its top.
template <typename T, typename S = std::vector<T> >
return *new (yyas_<T> ()) T ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Instantiate a \a T in here from \a t.
template <typename T, typename U>
T&
void
move (self_type& other)
{
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
emplace<T> (std::move (other.as<T> ()));
# else
emplace<T> ();
other.destroy<T> ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Move the content of \a other to this.
template <typename T>
void
/// 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);
+#else
+ basic_symbol (typename Base::kind_type t, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, double&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const double& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l);
+#endif
/// Destroy the symbol.
location_type location;
private:
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
basic_symbol& operator= (const basic_symbol& other);
#endif
stack_symbol_type (YY_RVREF (stack_symbol_type) that);
/// Steal the contents from \a sym to build this.
stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym);
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment, needed by push_back by some old implementations.
/// Moves the contents of that.
stack_symbol_type& operator= (stack_symbol_type& that);
// 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, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
: Base (t)
- , location (YY_MOVE (l))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , 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
template <typename Base>
#line 14 "netconf_parser.yy" // lalr1.cc:404
} } // isc::netconf
-#line 1735 "netconf_parser.h" // lalr1.cc:404
+#line 1812 "netconf_parser.h" // lalr1.cc:404
-// Generated 201811172153
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
-// Generated 201811172153
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
-// Generated 201811172152
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Locations for Bison parsers in C++
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
EvalParser::stack_symbol_type&
EvalParser::stack_symbol_type::operator= (stack_symbol_type& that)
{
void
EvalParser::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);
# 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&&
#line 14 "parser.yy" // lalr1.cc:404
namespace isc { namespace eval {
-#line 161 "parser.h" // lalr1.cc:404
+#line 167 "parser.h" // lalr1.cc:404
/// A stack with random access from its top.
template <typename T, typename S = std::vector<T> >
return *new (yyas_<T> ()) T ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Instantiate a \a T in here from \a t.
template <typename T, typename U>
T&
void
move (self_type& other)
{
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
emplace<T> (std::move (other.as<T> ()));
# else
emplace<T> ();
other.destroy<T> ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Move the content of \a other to this.
template <typename T>
void
/// 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 (TokenOption::RepresentationType) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (TokenPkt4::FieldType) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (TokenPkt6::FieldType) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (TokenPkt::MetadataType) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (TokenRelay6Field::FieldType) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (int8_t) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (uint16_t) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (uint32_t) v, YY_RVREF (location_type) l);
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenOption::RepresentationType&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const TokenOption::RepresentationType& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenPkt4::FieldType&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const TokenPkt4::FieldType& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenPkt6::FieldType&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const TokenPkt6::FieldType& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenPkt::MetadataType&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const TokenPkt::MetadataType& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, TokenRelay6Field::FieldType&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const TokenRelay6Field::FieldType& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, int8_t&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const int8_t& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, uint16_t&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const uint16_t& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, uint32_t&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const uint32_t& v, const location_type& l);
+#endif
/// Destroy the symbol.
location_type location;
private:
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
basic_symbol& operator= (const basic_symbol& other);
#endif
stack_symbol_type (YY_RVREF (stack_symbol_type) that);
/// Steal the contents from \a sym to build this.
stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym);
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment, needed by push_back by some old implementations.
/// Moves the contents of that.
stack_symbol_type& operator= (stack_symbol_type& that);
// 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, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
: Base (t)
- , location (YY_MOVE (l))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (TokenOption::RepresentationType) v, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (TokenPkt4::FieldType) v, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, TokenOption::RepresentationType&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (TokenPkt6::FieldType) v, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const TokenOption::RepresentationType& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (TokenPkt::MetadataType) v, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, TokenPkt4::FieldType&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (TokenRelay6Field::FieldType) v, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const TokenPkt4::FieldType& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (int8_t) v, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, TokenPkt6::FieldType&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const TokenPkt6::FieldType& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (uint16_t) v, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, TokenPkt::MetadataType&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (uint32_t) v, YY_RVREF (location_type) l)
+ EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const TokenPkt::MetadataType& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , 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
template <typename Base>
#line 14 "parser.yy" // lalr1.cc:404
} } // isc::eval
-#line 1912 "parser.h" // lalr1.cc:404
+#line 2037 "parser.h" // lalr1.cc:404
-// Generated 201811172152
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
-// Generated 201811172152
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it