2022-04-25 19:17:45 +02:00
|
|
|
// A Bison parser, made by GNU Bison 3.8.2.
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
// Skeleton interface for Bison LALR(1) parsers in C++
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
// Copyright (C) 2002-2015, 2018-2021 Free Software Foundation, Inc.
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
2022-04-25 19:17:45 +02:00
|
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
// As a special exception, you may create a larger work that contains
|
|
|
|
// part or all of the Bison parser skeleton and distribute that work
|
|
|
|
// under terms of your choice, so long as that work isn't itself a
|
|
|
|
// parser generator using the skeleton or a modified version thereof
|
|
|
|
// as a parser skeleton. Alternatively, if you modify or redistribute
|
|
|
|
// the parser skeleton itself, you may (at your option) remove this
|
|
|
|
// special exception, which will cause the skeleton and the resulting
|
|
|
|
// Bison output files to be licensed under the GNU General Public
|
|
|
|
// License without this special exception.
|
|
|
|
|
|
|
|
// This special exception was added by the Free Software Foundation in
|
|
|
|
// version 2.2 of Bison.
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
/**
|
|
|
|
** \file dhcp4_parser.h
|
|
|
|
** Define the isc::dhcp::parser class.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// C++ LALR(1) parser skeleton written by Akim Demaille.
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
// DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
|
|
|
|
// especially those whose name start with YY_ or yy_. They are
|
|
|
|
// private implementation details that can be changed or removed.
|
2020-10-21 13:54:51 -04:00
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
#ifndef YY_PARSER4_DHCP4_PARSER_H_INCLUDED
|
|
|
|
# define YY_PARSER4_DHCP4_PARSER_H_INCLUDED
|
2021-09-26 23:29:37 -07:00
|
|
|
// "%code requires" blocks.
|
|
|
|
#line 17 "dhcp4_parser.yy"
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <cc/data.h>
|
|
|
|
#include <dhcp/option.h>
|
|
|
|
#include <boost/lexical_cast.hpp>
|
|
|
|
#include <dhcp4/parser_context_decl.h>
|
|
|
|
|
|
|
|
using namespace isc::dhcp;
|
|
|
|
using namespace isc::data;
|
|
|
|
using namespace std;
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
#line 61 "dhcp4_parser.h"
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
# include <cassert>
|
|
|
|
# include <cstdlib> // std::abort
|
|
|
|
# include <iostream>
|
|
|
|
# include <stdexcept>
|
|
|
|
# include <string>
|
|
|
|
# include <vector>
|
2020-10-21 13:54:51 -04:00
|
|
|
|
|
|
|
#if defined __cplusplus
|
|
|
|
# define YY_CPLUSPLUS __cplusplus
|
|
|
|
#else
|
|
|
|
# define YY_CPLUSPLUS 199711L
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Support move semantics when possible.
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
# define YY_MOVE std::move
|
|
|
|
# define YY_MOVE_OR_COPY move
|
|
|
|
# define YY_MOVE_REF(Type) Type&&
|
|
|
|
# define YY_RVREF(Type) Type&&
|
|
|
|
# define YY_COPY(Type) Type
|
|
|
|
#else
|
|
|
|
# define YY_MOVE
|
|
|
|
# define YY_MOVE_OR_COPY copy
|
|
|
|
# define YY_MOVE_REF(Type) Type&
|
|
|
|
# define YY_RVREF(Type) const Type&
|
|
|
|
# define YY_COPY(Type) const Type&
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Support noexcept when possible.
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
# define YY_NOEXCEPT noexcept
|
|
|
|
# define YY_NOTHROW
|
|
|
|
#else
|
|
|
|
# define YY_NOEXCEPT
|
|
|
|
# define YY_NOTHROW throw ()
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Support constexpr when possible.
|
|
|
|
#if 201703 <= YY_CPLUSPLUS
|
|
|
|
# define YY_CONSTEXPR constexpr
|
|
|
|
#else
|
|
|
|
# define YY_CONSTEXPR
|
|
|
|
#endif
|
2016-12-15 16:54:01 +01:00
|
|
|
# include "location.hh"
|
|
|
|
#include <typeinfo>
|
2022-04-25 19:17:45 +02:00
|
|
|
#ifndef PARSER4__ASSERT
|
2016-12-15 16:54:01 +01:00
|
|
|
# include <cassert>
|
2022-04-25 19:17:45 +02:00
|
|
|
# define PARSER4__ASSERT assert
|
2016-12-15 16:54:01 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
#ifndef YY_ATTRIBUTE_PURE
|
|
|
|
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
|
|
|
|
# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
|
2016-12-15 16:54:01 +01:00
|
|
|
# else
|
2021-09-26 23:29:37 -07:00
|
|
|
# define YY_ATTRIBUTE_PURE
|
2016-12-15 16:54:01 +01:00
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef YY_ATTRIBUTE_UNUSED
|
2021-09-26 23:29:37 -07:00
|
|
|
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
|
|
|
|
# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
|
|
|
|
# else
|
|
|
|
# define YY_ATTRIBUTE_UNUSED
|
|
|
|
# endif
|
2016-12-15 16:54:01 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Suppress unused-variable warnings by "using" E. */
|
|
|
|
#if ! defined lint || defined __GNUC__
|
2022-04-25 19:17:45 +02:00
|
|
|
# define YY_USE(E) ((void) (E))
|
2016-12-15 16:54:01 +01:00
|
|
|
#else
|
2022-04-25 19:17:45 +02:00
|
|
|
# define YY_USE(E) /* empty */
|
2016-12-15 16:54:01 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
|
2022-04-25 19:17:45 +02:00
|
|
|
#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
|
|
|
|
# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
|
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
|
|
|
|
_Pragma ("GCC diagnostic push") \
|
|
|
|
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
|
|
|
|
# else
|
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
|
2021-09-26 23:29:37 -07:00
|
|
|
_Pragma ("GCC diagnostic push") \
|
|
|
|
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
|
2016-12-15 16:54:01 +01:00
|
|
|
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
|
2022-04-25 19:17:45 +02:00
|
|
|
# endif
|
2021-09-26 23:29:37 -07:00
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
|
2016-12-15 16:54:01 +01:00
|
|
|
_Pragma ("GCC diagnostic pop")
|
|
|
|
#else
|
|
|
|
# define YY_INITIAL_VALUE(Value) Value
|
|
|
|
#endif
|
|
|
|
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
|
|
#endif
|
|
|
|
#ifndef YY_INITIAL_VALUE
|
|
|
|
# define YY_INITIAL_VALUE(Value) /* Nothing. */
|
|
|
|
#endif
|
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
|
|
|
|
# define YY_IGNORE_USELESS_CAST_BEGIN \
|
|
|
|
_Pragma ("GCC diagnostic push") \
|
|
|
|
_Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
|
|
|
|
# define YY_IGNORE_USELESS_CAST_END \
|
|
|
|
_Pragma ("GCC diagnostic pop")
|
|
|
|
#endif
|
|
|
|
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
|
|
|
|
# define YY_IGNORE_USELESS_CAST_BEGIN
|
|
|
|
# define YY_IGNORE_USELESS_CAST_END
|
|
|
|
#endif
|
|
|
|
|
|
|
|
# ifndef YY_CAST
|
|
|
|
# ifdef __cplusplus
|
|
|
|
# define YY_CAST(Type, Val) static_cast<Type> (Val)
|
|
|
|
# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
|
|
|
|
# else
|
|
|
|
# define YY_CAST(Type, Val) ((Type) (Val))
|
|
|
|
# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
|
|
|
|
# endif
|
|
|
|
# endif
|
2020-10-21 13:54:51 -04:00
|
|
|
# ifndef YY_NULLPTR
|
|
|
|
# if defined __cplusplus
|
|
|
|
# if 201103L <= __cplusplus
|
|
|
|
# define YY_NULLPTR nullptr
|
|
|
|
# else
|
|
|
|
# define YY_NULLPTR 0
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define YY_NULLPTR ((void*)0)
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
/* Debug traces. */
|
|
|
|
#ifndef PARSER4_DEBUG
|
|
|
|
# if defined YYDEBUG
|
|
|
|
#if YYDEBUG
|
|
|
|
# define PARSER4_DEBUG 1
|
|
|
|
# else
|
|
|
|
# define PARSER4_DEBUG 0
|
|
|
|
# endif
|
|
|
|
# else /* ! defined YYDEBUG */
|
|
|
|
# define PARSER4_DEBUG 1
|
|
|
|
# endif /* ! defined YYDEBUG */
|
|
|
|
#endif /* ! defined PARSER4_DEBUG */
|
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
#line 14 "dhcp4_parser.yy"
|
2016-12-15 16:54:01 +01:00
|
|
|
namespace isc { namespace dhcp {
|
2022-04-25 19:17:45 +02:00
|
|
|
#line 210 "dhcp4_parser.h"
|
2021-09-26 23:29:37 -07:00
|
|
|
|
2019-10-03 15:11:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// A Bison parser.
|
|
|
|
class Dhcp4Parser
|
|
|
|
{
|
|
|
|
public:
|
2022-04-25 19:17:45 +02:00
|
|
|
#ifdef PARSER4_STYPE
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# pragma GCC message "bison: do not #define PARSER4_STYPE in C++, use %define api.value.type"
|
|
|
|
# endif
|
|
|
|
typedef PARSER4_STYPE value_type;
|
|
|
|
#else
|
2020-10-21 13:54:51 -04:00
|
|
|
/// A buffer to store and retrieve objects.
|
2016-12-15 16:54:01 +01:00
|
|
|
///
|
|
|
|
/// Sort of a variant, but does not keep track of the nature
|
|
|
|
/// of the stored data, since that knowledge is available
|
2020-10-21 13:54:51 -04:00
|
|
|
/// via the current parser state.
|
2022-04-25 19:17:45 +02:00
|
|
|
class value_type
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2020-10-21 13:54:51 -04:00
|
|
|
public:
|
2016-12-15 16:54:01 +01:00
|
|
|
/// Type of *this.
|
2022-04-25 19:17:45 +02:00
|
|
|
typedef value_type self_type;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
/// Empty construction.
|
2022-04-25 19:17:45 +02:00
|
|
|
value_type () YY_NOEXCEPT
|
|
|
|
: yyraw_ ()
|
2020-10-21 13:54:51 -04:00
|
|
|
, yytypeid_ (YY_NULLPTR)
|
2016-12-15 16:54:01 +01:00
|
|
|
{}
|
|
|
|
|
|
|
|
/// Construct and fill.
|
|
|
|
template <typename T>
|
2022-04-25 19:17:45 +02:00
|
|
|
value_type (YY_RVREF (T) t)
|
2016-12-15 16:54:01 +01:00
|
|
|
: yytypeid_ (&typeid (T))
|
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
PARSER4__ASSERT (sizeof (T) <= size);
|
2020-10-21 13:54:51 -04:00
|
|
|
new (yyas_<T> ()) T (YY_MOVE (t));
|
2016-12-15 16:54:01 +01:00
|
|
|
}
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Non copyable.
|
|
|
|
value_type (const self_type&) = delete;
|
|
|
|
/// Non copyable.
|
|
|
|
self_type& operator= (const self_type&) = delete;
|
|
|
|
#endif
|
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
/// Destruction, allowed only if empty.
|
2022-04-25 19:17:45 +02:00
|
|
|
~value_type () YY_NOEXCEPT
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
PARSER4__ASSERT (!yytypeid_);
|
2016-12-15 16:54:01 +01:00
|
|
|
}
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
# if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Instantiate a \a T in here from \a t.
|
|
|
|
template <typename T, typename... U>
|
|
|
|
T&
|
|
|
|
emplace (U&&... u)
|
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
PARSER4__ASSERT (!yytypeid_);
|
|
|
|
PARSER4__ASSERT (sizeof (T) <= size);
|
2020-10-21 13:54:51 -04:00
|
|
|
yytypeid_ = & typeid (T);
|
|
|
|
return *new (yyas_<T> ()) T (std::forward <U>(u)...);
|
|
|
|
}
|
|
|
|
# else
|
2019-10-29 06:49:44 +01:00
|
|
|
/// Instantiate an empty \a T in here.
|
|
|
|
template <typename T>
|
2019-10-03 15:11:07 -04:00
|
|
|
T&
|
2020-10-21 13:54:51 -04:00
|
|
|
emplace ()
|
2019-10-03 15:11:07 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
PARSER4__ASSERT (!yytypeid_);
|
|
|
|
PARSER4__ASSERT (sizeof (T) <= size);
|
2019-10-03 15:11:07 -04:00
|
|
|
yytypeid_ = & typeid (T);
|
2020-10-21 13:54:51 -04:00
|
|
|
return *new (yyas_<T> ()) T ();
|
2019-10-03 15:11:07 -04:00
|
|
|
}
|
2019-10-29 06:49:44 +01:00
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
/// Instantiate a \a T in here from \a t.
|
|
|
|
template <typename T>
|
|
|
|
T&
|
2020-10-21 13:54:51 -04:00
|
|
|
emplace (const T& t)
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
PARSER4__ASSERT (!yytypeid_);
|
|
|
|
PARSER4__ASSERT (sizeof (T) <= size);
|
2016-12-15 16:54:01 +01:00
|
|
|
yytypeid_ = & typeid (T);
|
|
|
|
return *new (yyas_<T> ()) T (t);
|
|
|
|
}
|
2020-10-21 13:54:51 -04:00
|
|
|
# endif
|
|
|
|
|
|
|
|
/// Instantiate an empty \a T in here.
|
|
|
|
/// Obsolete, use emplace.
|
|
|
|
template <typename T>
|
|
|
|
T&
|
|
|
|
build ()
|
|
|
|
{
|
|
|
|
return emplace<T> ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Instantiate a \a T in here from \a t.
|
|
|
|
/// Obsolete, use emplace.
|
|
|
|
template <typename T>
|
|
|
|
T&
|
|
|
|
build (const T& t)
|
|
|
|
{
|
|
|
|
return emplace<T> (t);
|
|
|
|
}
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
/// Accessor to a built \a T.
|
|
|
|
template <typename T>
|
|
|
|
T&
|
2020-10-21 13:54:51 -04:00
|
|
|
as () YY_NOEXCEPT
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
PARSER4__ASSERT (yytypeid_);
|
|
|
|
PARSER4__ASSERT (*yytypeid_ == typeid (T));
|
|
|
|
PARSER4__ASSERT (sizeof (T) <= size);
|
2016-12-15 16:54:01 +01:00
|
|
|
return *yyas_<T> ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Const accessor to a built \a T (for %printer).
|
|
|
|
template <typename T>
|
|
|
|
const T&
|
2020-10-21 13:54:51 -04:00
|
|
|
as () const YY_NOEXCEPT
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
PARSER4__ASSERT (yytypeid_);
|
|
|
|
PARSER4__ASSERT (*yytypeid_ == typeid (T));
|
|
|
|
PARSER4__ASSERT (sizeof (T) <= size);
|
2016-12-15 16:54:01 +01:00
|
|
|
return *yyas_<T> ();
|
|
|
|
}
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Swap the content with \a that, of same type.
|
2016-12-15 16:54:01 +01:00
|
|
|
///
|
|
|
|
/// 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
|
2020-10-21 13:54:51 -04:00
|
|
|
/// should not be the variant's responsibility.
|
2016-12-15 16:54:01 +01:00
|
|
|
/// Swapping between built and (possibly) non-built is done with
|
2020-10-21 13:54:51 -04:00
|
|
|
/// self_type::move ().
|
2016-12-15 16:54:01 +01:00
|
|
|
template <typename T>
|
|
|
|
void
|
2020-10-21 13:54:51 -04:00
|
|
|
swap (self_type& that) YY_NOEXCEPT
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
PARSER4__ASSERT (yytypeid_);
|
|
|
|
PARSER4__ASSERT (*yytypeid_ == *that.yytypeid_);
|
2020-10-21 13:54:51 -04:00
|
|
|
std::swap (as<T> (), that.as<T> ());
|
2016-12-15 16:54:01 +01:00
|
|
|
}
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Move the content of \a that to this.
|
2016-12-15 16:54:01 +01:00
|
|
|
///
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Destroys \a that.
|
|
|
|
template <typename T>
|
|
|
|
void
|
|
|
|
move (self_type& that)
|
|
|
|
{
|
|
|
|
# if 201103L <= YY_CPLUSPLUS
|
|
|
|
emplace<T> (std::move (that.as<T> ()));
|
|
|
|
# else
|
|
|
|
emplace<T> ();
|
|
|
|
swap<T> (that);
|
|
|
|
# endif
|
|
|
|
that.destroy<T> ();
|
|
|
|
}
|
|
|
|
|
|
|
|
# if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Move the content of \a that to this.
|
2019-01-10 14:47:23 +00:00
|
|
|
template <typename T>
|
|
|
|
void
|
2020-10-21 13:54:51 -04:00
|
|
|
move (self_type&& that)
|
2019-01-10 14:47:23 +00:00
|
|
|
{
|
2020-10-21 13:54:51 -04:00
|
|
|
emplace<T> (std::move (that.as<T> ()));
|
|
|
|
that.destroy<T> ();
|
2016-12-15 16:54:01 +01:00
|
|
|
}
|
2020-10-21 13:54:51 -04:00
|
|
|
#endif
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Copy the content of \a that to this.
|
2016-12-15 16:54:01 +01:00
|
|
|
template <typename T>
|
|
|
|
void
|
2020-10-21 13:54:51 -04:00
|
|
|
copy (const self_type& that)
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2020-10-21 13:54:51 -04:00
|
|
|
emplace<T> (that.as<T> ());
|
2016-12-15 16:54:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/// Destroy the stored \a T.
|
|
|
|
template <typename T>
|
|
|
|
void
|
|
|
|
destroy ()
|
|
|
|
{
|
|
|
|
as<T> ().~T ();
|
|
|
|
yytypeid_ = YY_NULLPTR;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2022-04-25 19:17:45 +02:00
|
|
|
#if YY_CPLUSPLUS < 201103L
|
|
|
|
/// Non copyable.
|
|
|
|
value_type (const self_type&);
|
|
|
|
/// Non copyable.
|
2021-09-26 23:29:37 -07:00
|
|
|
self_type& operator= (const self_type&);
|
2022-04-25 19:17:45 +02:00
|
|
|
#endif
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
/// Accessor to raw memory as \a T.
|
|
|
|
template <typename T>
|
|
|
|
T*
|
2020-10-21 13:54:51 -04:00
|
|
|
yyas_ () YY_NOEXCEPT
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
void *yyp = yyraw_;
|
2016-12-15 16:54:01 +01:00
|
|
|
return static_cast<T*> (yyp);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Const accessor to raw memory as \a T.
|
|
|
|
template <typename T>
|
|
|
|
const T*
|
2020-10-21 13:54:51 -04:00
|
|
|
yyas_ () const YY_NOEXCEPT
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
const void *yyp = yyraw_;
|
2016-12-15 16:54:01 +01:00
|
|
|
return static_cast<const T*> (yyp);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// An auxiliary type to compute the largest semantic type.
|
|
|
|
union union_type
|
|
|
|
{
|
|
|
|
// value
|
2017-01-25 14:15:40 +00:00
|
|
|
// map_value
|
2019-10-03 15:11:07 -04:00
|
|
|
// ddns_replace_client_name_value
|
2017-01-16 13:02:52 +00:00
|
|
|
// socket_type
|
2017-10-10 14:07:19 +00:00
|
|
|
// outbound_interface_value
|
2017-01-25 14:15:40 +00:00
|
|
|
// db_type
|
2021-03-26 17:06:38 +02:00
|
|
|
// on_fail_mode
|
2017-07-06 11:12:16 +00:00
|
|
|
// hr_mode
|
2017-01-13 19:11:59 +00:00
|
|
|
// ncr_protocol_value
|
2020-10-21 13:54:51 -04:00
|
|
|
char dummy1[sizeof (ElementPtr)];
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
// "boolean"
|
2020-10-21 13:54:51 -04:00
|
|
|
char dummy2[sizeof (bool)];
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
// "floating point"
|
2020-10-21 13:54:51 -04:00
|
|
|
char dummy3[sizeof (double)];
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
// "integer"
|
2020-10-21 13:54:51 -04:00
|
|
|
char dummy4[sizeof (int64_t)];
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
// "constant string"
|
2020-10-21 13:54:51 -04:00
|
|
|
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.
|
2022-04-25 19:17:45 +02:00
|
|
|
long double yyalign_me_;
|
2020-10-21 13:54:51 -04:00
|
|
|
/// A buffer large enough to store any of the semantic values.
|
2022-04-25 19:17:45 +02:00
|
|
|
char yyraw_[size];
|
|
|
|
};
|
2020-10-21 13:54:51 -04:00
|
|
|
|
|
|
|
/// Whether the content is built: if defined, the name of the stored type.
|
|
|
|
const std::type_info *yytypeid_;
|
|
|
|
};
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
#endif
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Backward compatibility (Bison 3.8).
|
|
|
|
typedef value_type semantic_type;
|
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
/// Symbol locations.
|
|
|
|
typedef location location_type;
|
|
|
|
|
|
|
|
/// Syntax errors thrown from user actions.
|
|
|
|
struct syntax_error : std::runtime_error
|
|
|
|
{
|
2020-10-21 13:54:51 -04:00
|
|
|
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;
|
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
location_type location;
|
|
|
|
};
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Token kinds.
|
2016-12-15 16:54:01 +01:00
|
|
|
struct token
|
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
enum token_kind_type
|
|
|
|
{
|
|
|
|
TOKEN_PARSER4_EMPTY = -2,
|
|
|
|
TOKEN_END = 0, // "end of file"
|
|
|
|
TOKEN_PARSER4_error = 256, // error
|
|
|
|
TOKEN_PARSER4_UNDEF = 257, // "invalid token"
|
|
|
|
TOKEN_COMMA = 258, // ","
|
|
|
|
TOKEN_COLON = 259, // ":"
|
|
|
|
TOKEN_LSQUARE_BRACKET = 260, // "["
|
|
|
|
TOKEN_RSQUARE_BRACKET = 261, // "]"
|
|
|
|
TOKEN_LCURLY_BRACKET = 262, // "{"
|
|
|
|
TOKEN_RCURLY_BRACKET = 263, // "}"
|
|
|
|
TOKEN_NULL_TYPE = 264, // "null"
|
|
|
|
TOKEN_DHCP4 = 265, // "Dhcp4"
|
|
|
|
TOKEN_CONFIG_CONTROL = 266, // "config-control"
|
|
|
|
TOKEN_CONFIG_DATABASES = 267, // "config-databases"
|
|
|
|
TOKEN_CONFIG_FETCH_WAIT_TIME = 268, // "config-fetch-wait-time"
|
|
|
|
TOKEN_INTERFACES_CONFIG = 269, // "interfaces-config"
|
|
|
|
TOKEN_INTERFACES = 270, // "interfaces"
|
|
|
|
TOKEN_DHCP_SOCKET_TYPE = 271, // "dhcp-socket-type"
|
|
|
|
TOKEN_RAW = 272, // "raw"
|
|
|
|
TOKEN_UDP = 273, // "udp"
|
|
|
|
TOKEN_OUTBOUND_INTERFACE = 274, // "outbound-interface"
|
|
|
|
TOKEN_SAME_AS_INBOUND = 275, // "same-as-inbound"
|
|
|
|
TOKEN_USE_ROUTING = 276, // "use-routing"
|
|
|
|
TOKEN_RE_DETECT = 277, // "re-detect"
|
|
|
|
TOKEN_SERVICE_SOCKETS_REQUIRE_ALL = 278, // "service-sockets-require-all"
|
|
|
|
TOKEN_SERVICE_SOCKETS_RETRY_WAIT_TIME = 279, // "service-sockets-retry-wait-time"
|
|
|
|
TOKEN_SERVICE_SOCKETS_MAX_RETRIES = 280, // "service-sockets-max-retries"
|
|
|
|
TOKEN_SANITY_CHECKS = 281, // "sanity-checks"
|
|
|
|
TOKEN_LEASE_CHECKS = 282, // "lease-checks"
|
2022-10-15 23:00:33 +00:00
|
|
|
TOKEN_EXTENDED_INFO_CHECKS = 283, // "extended-info-checks"
|
|
|
|
TOKEN_ECHO_CLIENT_ID = 284, // "echo-client-id"
|
|
|
|
TOKEN_MATCH_CLIENT_ID = 285, // "match-client-id"
|
|
|
|
TOKEN_AUTHORITATIVE = 286, // "authoritative"
|
|
|
|
TOKEN_NEXT_SERVER = 287, // "next-server"
|
|
|
|
TOKEN_SERVER_HOSTNAME = 288, // "server-hostname"
|
|
|
|
TOKEN_BOOT_FILE_NAME = 289, // "boot-file-name"
|
|
|
|
TOKEN_LEASE_DATABASE = 290, // "lease-database"
|
|
|
|
TOKEN_HOSTS_DATABASE = 291, // "hosts-database"
|
|
|
|
TOKEN_HOSTS_DATABASES = 292, // "hosts-databases"
|
|
|
|
TOKEN_TYPE = 293, // "type"
|
|
|
|
TOKEN_MEMFILE = 294, // "memfile"
|
|
|
|
TOKEN_MYSQL = 295, // "mysql"
|
|
|
|
TOKEN_POSTGRESQL = 296, // "postgresql"
|
|
|
|
TOKEN_USER = 297, // "user"
|
|
|
|
TOKEN_PASSWORD = 298, // "password"
|
|
|
|
TOKEN_HOST = 299, // "host"
|
|
|
|
TOKEN_PORT = 300, // "port"
|
|
|
|
TOKEN_PERSIST = 301, // "persist"
|
|
|
|
TOKEN_LFC_INTERVAL = 302, // "lfc-interval"
|
|
|
|
TOKEN_READONLY = 303, // "readonly"
|
|
|
|
TOKEN_CONNECT_TIMEOUT = 304, // "connect-timeout"
|
|
|
|
TOKEN_MAX_RECONNECT_TRIES = 305, // "max-reconnect-tries"
|
|
|
|
TOKEN_RECONNECT_WAIT_TIME = 306, // "reconnect-wait-time"
|
|
|
|
TOKEN_ON_FAIL = 307, // "on-fail"
|
|
|
|
TOKEN_STOP_RETRY_EXIT = 308, // "stop-retry-exit"
|
|
|
|
TOKEN_SERVE_RETRY_EXIT = 309, // "serve-retry-exit"
|
|
|
|
TOKEN_SERVE_RETRY_CONTINUE = 310, // "serve-retry-continue"
|
|
|
|
TOKEN_MAX_ROW_ERRORS = 311, // "max-row-errors"
|
|
|
|
TOKEN_TRUST_ANCHOR = 312, // "trust-anchor"
|
|
|
|
TOKEN_CERT_FILE = 313, // "cert-file"
|
|
|
|
TOKEN_KEY_FILE = 314, // "key-file"
|
|
|
|
TOKEN_CIPHER_LIST = 315, // "cipher-list"
|
|
|
|
TOKEN_VALID_LIFETIME = 316, // "valid-lifetime"
|
|
|
|
TOKEN_MIN_VALID_LIFETIME = 317, // "min-valid-lifetime"
|
|
|
|
TOKEN_MAX_VALID_LIFETIME = 318, // "max-valid-lifetime"
|
|
|
|
TOKEN_RENEW_TIMER = 319, // "renew-timer"
|
|
|
|
TOKEN_REBIND_TIMER = 320, // "rebind-timer"
|
|
|
|
TOKEN_CALCULATE_TEE_TIMES = 321, // "calculate-tee-times"
|
|
|
|
TOKEN_T1_PERCENT = 322, // "t1-percent"
|
|
|
|
TOKEN_T2_PERCENT = 323, // "t2-percent"
|
|
|
|
TOKEN_CACHE_THRESHOLD = 324, // "cache-threshold"
|
|
|
|
TOKEN_CACHE_MAX_AGE = 325, // "cache-max-age"
|
|
|
|
TOKEN_DECLINE_PROBATION_PERIOD = 326, // "decline-probation-period"
|
|
|
|
TOKEN_SERVER_TAG = 327, // "server-tag"
|
|
|
|
TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT = 328, // "statistic-default-sample-count"
|
|
|
|
TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE = 329, // "statistic-default-sample-age"
|
|
|
|
TOKEN_DDNS_SEND_UPDATES = 330, // "ddns-send-updates"
|
|
|
|
TOKEN_DDNS_OVERRIDE_NO_UPDATE = 331, // "ddns-override-no-update"
|
|
|
|
TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE = 332, // "ddns-override-client-update"
|
|
|
|
TOKEN_DDNS_REPLACE_CLIENT_NAME = 333, // "ddns-replace-client-name"
|
|
|
|
TOKEN_DDNS_GENERATED_PREFIX = 334, // "ddns-generated-prefix"
|
|
|
|
TOKEN_DDNS_QUALIFYING_SUFFIX = 335, // "ddns-qualifying-suffix"
|
|
|
|
TOKEN_DDNS_UPDATE_ON_RENEW = 336, // "ddns-update-on-renew"
|
|
|
|
TOKEN_DDNS_USE_CONFLICT_RESOLUTION = 337, // "ddns-use-conflict-resolution"
|
|
|
|
TOKEN_STORE_EXTENDED_INFO = 338, // "store-extended-info"
|
|
|
|
TOKEN_SUBNET4 = 339, // "subnet4"
|
|
|
|
TOKEN_SUBNET_4O6_INTERFACE = 340, // "4o6-interface"
|
|
|
|
TOKEN_SUBNET_4O6_INTERFACE_ID = 341, // "4o6-interface-id"
|
|
|
|
TOKEN_SUBNET_4O6_SUBNET = 342, // "4o6-subnet"
|
|
|
|
TOKEN_OPTION_DEF = 343, // "option-def"
|
|
|
|
TOKEN_OPTION_DATA = 344, // "option-data"
|
|
|
|
TOKEN_NAME = 345, // "name"
|
|
|
|
TOKEN_DATA = 346, // "data"
|
|
|
|
TOKEN_CODE = 347, // "code"
|
|
|
|
TOKEN_SPACE = 348, // "space"
|
|
|
|
TOKEN_CSV_FORMAT = 349, // "csv-format"
|
|
|
|
TOKEN_ALWAYS_SEND = 350, // "always-send"
|
|
|
|
TOKEN_RECORD_TYPES = 351, // "record-types"
|
|
|
|
TOKEN_ENCAPSULATE = 352, // "encapsulate"
|
|
|
|
TOKEN_ARRAY = 353, // "array"
|
|
|
|
TOKEN_PARKED_PACKET_LIMIT = 354, // "parked-packet-limit"
|
|
|
|
TOKEN_SHARED_NETWORKS = 355, // "shared-networks"
|
|
|
|
TOKEN_POOLS = 356, // "pools"
|
|
|
|
TOKEN_POOL = 357, // "pool"
|
|
|
|
TOKEN_USER_CONTEXT = 358, // "user-context"
|
|
|
|
TOKEN_COMMENT = 359, // "comment"
|
|
|
|
TOKEN_SUBNET = 360, // "subnet"
|
|
|
|
TOKEN_INTERFACE = 361, // "interface"
|
|
|
|
TOKEN_ID = 362, // "id"
|
|
|
|
TOKEN_RESERVATION_MODE = 363, // "reservation-mode"
|
|
|
|
TOKEN_DISABLED = 364, // "disabled"
|
|
|
|
TOKEN_OUT_OF_POOL = 365, // "out-of-pool"
|
|
|
|
TOKEN_GLOBAL = 366, // "global"
|
|
|
|
TOKEN_ALL = 367, // "all"
|
|
|
|
TOKEN_RESERVATIONS_GLOBAL = 368, // "reservations-global"
|
|
|
|
TOKEN_RESERVATIONS_IN_SUBNET = 369, // "reservations-in-subnet"
|
|
|
|
TOKEN_RESERVATIONS_OUT_OF_POOL = 370, // "reservations-out-of-pool"
|
|
|
|
TOKEN_HOST_RESERVATION_IDENTIFIERS = 371, // "host-reservation-identifiers"
|
|
|
|
TOKEN_CLIENT_CLASSES = 372, // "client-classes"
|
|
|
|
TOKEN_REQUIRE_CLIENT_CLASSES = 373, // "require-client-classes"
|
|
|
|
TOKEN_TEST = 374, // "test"
|
|
|
|
TOKEN_ONLY_IF_REQUIRED = 375, // "only-if-required"
|
|
|
|
TOKEN_CLIENT_CLASS = 376, // "client-class"
|
|
|
|
TOKEN_RESERVATIONS = 377, // "reservations"
|
|
|
|
TOKEN_DUID = 378, // "duid"
|
|
|
|
TOKEN_HW_ADDRESS = 379, // "hw-address"
|
|
|
|
TOKEN_CIRCUIT_ID = 380, // "circuit-id"
|
|
|
|
TOKEN_CLIENT_ID = 381, // "client-id"
|
|
|
|
TOKEN_HOSTNAME = 382, // "hostname"
|
|
|
|
TOKEN_FLEX_ID = 383, // "flex-id"
|
|
|
|
TOKEN_RELAY = 384, // "relay"
|
|
|
|
TOKEN_IP_ADDRESS = 385, // "ip-address"
|
|
|
|
TOKEN_IP_ADDRESSES = 386, // "ip-addresses"
|
|
|
|
TOKEN_HOOKS_LIBRARIES = 387, // "hooks-libraries"
|
|
|
|
TOKEN_LIBRARY = 388, // "library"
|
|
|
|
TOKEN_PARAMETERS = 389, // "parameters"
|
|
|
|
TOKEN_EXPIRED_LEASES_PROCESSING = 390, // "expired-leases-processing"
|
|
|
|
TOKEN_RECLAIM_TIMER_WAIT_TIME = 391, // "reclaim-timer-wait-time"
|
|
|
|
TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 392, // "flush-reclaimed-timer-wait-time"
|
|
|
|
TOKEN_HOLD_RECLAIMED_TIME = 393, // "hold-reclaimed-time"
|
|
|
|
TOKEN_MAX_RECLAIM_LEASES = 394, // "max-reclaim-leases"
|
|
|
|
TOKEN_MAX_RECLAIM_TIME = 395, // "max-reclaim-time"
|
|
|
|
TOKEN_UNWARNED_RECLAIM_CYCLES = 396, // "unwarned-reclaim-cycles"
|
|
|
|
TOKEN_DHCP4O6_PORT = 397, // "dhcp4o6-port"
|
|
|
|
TOKEN_DHCP_MULTI_THREADING = 398, // "multi-threading"
|
|
|
|
TOKEN_ENABLE_MULTI_THREADING = 399, // "enable-multi-threading"
|
|
|
|
TOKEN_THREAD_POOL_SIZE = 400, // "thread-pool-size"
|
|
|
|
TOKEN_PACKET_QUEUE_SIZE = 401, // "packet-queue-size"
|
|
|
|
TOKEN_CONTROL_SOCKET = 402, // "control-socket"
|
|
|
|
TOKEN_SOCKET_TYPE = 403, // "socket-type"
|
|
|
|
TOKEN_SOCKET_NAME = 404, // "socket-name"
|
|
|
|
TOKEN_DHCP_QUEUE_CONTROL = 405, // "dhcp-queue-control"
|
|
|
|
TOKEN_ENABLE_QUEUE = 406, // "enable-queue"
|
|
|
|
TOKEN_QUEUE_TYPE = 407, // "queue-type"
|
|
|
|
TOKEN_CAPACITY = 408, // "capacity"
|
|
|
|
TOKEN_DHCP_DDNS = 409, // "dhcp-ddns"
|
|
|
|
TOKEN_ENABLE_UPDATES = 410, // "enable-updates"
|
|
|
|
TOKEN_QUALIFYING_SUFFIX = 411, // "qualifying-suffix"
|
|
|
|
TOKEN_SERVER_IP = 412, // "server-ip"
|
|
|
|
TOKEN_SERVER_PORT = 413, // "server-port"
|
|
|
|
TOKEN_SENDER_IP = 414, // "sender-ip"
|
|
|
|
TOKEN_SENDER_PORT = 415, // "sender-port"
|
|
|
|
TOKEN_MAX_QUEUE_SIZE = 416, // "max-queue-size"
|
|
|
|
TOKEN_NCR_PROTOCOL = 417, // "ncr-protocol"
|
|
|
|
TOKEN_NCR_FORMAT = 418, // "ncr-format"
|
|
|
|
TOKEN_OVERRIDE_NO_UPDATE = 419, // "override-no-update"
|
|
|
|
TOKEN_OVERRIDE_CLIENT_UPDATE = 420, // "override-client-update"
|
|
|
|
TOKEN_REPLACE_CLIENT_NAME = 421, // "replace-client-name"
|
|
|
|
TOKEN_GENERATED_PREFIX = 422, // "generated-prefix"
|
|
|
|
TOKEN_TCP = 423, // "tcp"
|
|
|
|
TOKEN_JSON = 424, // "JSON"
|
|
|
|
TOKEN_WHEN_PRESENT = 425, // "when-present"
|
|
|
|
TOKEN_NEVER = 426, // "never"
|
|
|
|
TOKEN_ALWAYS = 427, // "always"
|
|
|
|
TOKEN_WHEN_NOT_PRESENT = 428, // "when-not-present"
|
|
|
|
TOKEN_HOSTNAME_CHAR_SET = 429, // "hostname-char-set"
|
|
|
|
TOKEN_HOSTNAME_CHAR_REPLACEMENT = 430, // "hostname-char-replacement"
|
|
|
|
TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP = 431, // "early-global-reservations-lookup"
|
|
|
|
TOKEN_IP_RESERVATIONS_UNIQUE = 432, // "ip-reservations-unique"
|
|
|
|
TOKEN_RESERVATIONS_LOOKUP_FIRST = 433, // "reservations-lookup-first"
|
|
|
|
TOKEN_LOGGERS = 434, // "loggers"
|
|
|
|
TOKEN_OUTPUT_OPTIONS = 435, // "output_options"
|
|
|
|
TOKEN_OUTPUT = 436, // "output"
|
|
|
|
TOKEN_DEBUGLEVEL = 437, // "debuglevel"
|
|
|
|
TOKEN_SEVERITY = 438, // "severity"
|
|
|
|
TOKEN_FLUSH = 439, // "flush"
|
|
|
|
TOKEN_MAXSIZE = 440, // "maxsize"
|
|
|
|
TOKEN_MAXVER = 441, // "maxver"
|
|
|
|
TOKEN_PATTERN = 442, // "pattern"
|
|
|
|
TOKEN_COMPATIBILITY = 443, // "compatibility"
|
|
|
|
TOKEN_LENIENT_OPTION_PARSING = 444, // "lenient-option-parsing"
|
|
|
|
TOKEN_IGNORE_RAI_LINK_SEL = 445, // "ignore-rai-link-selection"
|
|
|
|
TOKEN_TOPLEVEL_JSON = 446, // TOPLEVEL_JSON
|
|
|
|
TOKEN_TOPLEVEL_DHCP4 = 447, // TOPLEVEL_DHCP4
|
|
|
|
TOKEN_SUB_DHCP4 = 448, // SUB_DHCP4
|
|
|
|
TOKEN_SUB_INTERFACES4 = 449, // SUB_INTERFACES4
|
|
|
|
TOKEN_SUB_SUBNET4 = 450, // SUB_SUBNET4
|
|
|
|
TOKEN_SUB_POOL4 = 451, // SUB_POOL4
|
|
|
|
TOKEN_SUB_RESERVATION = 452, // SUB_RESERVATION
|
|
|
|
TOKEN_SUB_OPTION_DEFS = 453, // SUB_OPTION_DEFS
|
|
|
|
TOKEN_SUB_OPTION_DEF = 454, // SUB_OPTION_DEF
|
|
|
|
TOKEN_SUB_OPTION_DATA = 455, // SUB_OPTION_DATA
|
|
|
|
TOKEN_SUB_HOOKS_LIBRARY = 456, // SUB_HOOKS_LIBRARY
|
|
|
|
TOKEN_SUB_DHCP_DDNS = 457, // SUB_DHCP_DDNS
|
|
|
|
TOKEN_SUB_CONFIG_CONTROL = 458, // SUB_CONFIG_CONTROL
|
|
|
|
TOKEN_STRING = 459, // "constant string"
|
|
|
|
TOKEN_INTEGER = 460, // "integer"
|
|
|
|
TOKEN_FLOAT = 461, // "floating point"
|
|
|
|
TOKEN_BOOLEAN = 462 // "boolean"
|
2016-12-15 16:54:01 +01:00
|
|
|
};
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Backward compatibility alias (Bison 3.6).
|
|
|
|
typedef token_kind_type yytokentype;
|
2016-12-15 16:54:01 +01:00
|
|
|
};
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Token kind, as returned by yylex.
|
|
|
|
typedef token::token_kind_type token_kind_type;
|
|
|
|
|
|
|
|
/// Backward compatibility alias (Bison 3.6).
|
|
|
|
typedef token_kind_type token_type;
|
2021-03-29 21:53:47 +03:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Symbol kinds.
|
|
|
|
struct symbol_kind
|
|
|
|
{
|
|
|
|
enum symbol_kind_type
|
|
|
|
{
|
2022-10-15 23:00:33 +00:00
|
|
|
YYNTOKENS = 208, ///< Number of tokens.
|
2022-04-25 19:17:45 +02:00
|
|
|
S_YYEMPTY = -2,
|
|
|
|
S_YYEOF = 0, // "end of file"
|
|
|
|
S_YYerror = 1, // error
|
|
|
|
S_YYUNDEF = 2, // "invalid token"
|
|
|
|
S_COMMA = 3, // ","
|
|
|
|
S_COLON = 4, // ":"
|
|
|
|
S_LSQUARE_BRACKET = 5, // "["
|
|
|
|
S_RSQUARE_BRACKET = 6, // "]"
|
|
|
|
S_LCURLY_BRACKET = 7, // "{"
|
|
|
|
S_RCURLY_BRACKET = 8, // "}"
|
|
|
|
S_NULL_TYPE = 9, // "null"
|
|
|
|
S_DHCP4 = 10, // "Dhcp4"
|
|
|
|
S_CONFIG_CONTROL = 11, // "config-control"
|
|
|
|
S_CONFIG_DATABASES = 12, // "config-databases"
|
|
|
|
S_CONFIG_FETCH_WAIT_TIME = 13, // "config-fetch-wait-time"
|
|
|
|
S_INTERFACES_CONFIG = 14, // "interfaces-config"
|
|
|
|
S_INTERFACES = 15, // "interfaces"
|
|
|
|
S_DHCP_SOCKET_TYPE = 16, // "dhcp-socket-type"
|
|
|
|
S_RAW = 17, // "raw"
|
|
|
|
S_UDP = 18, // "udp"
|
|
|
|
S_OUTBOUND_INTERFACE = 19, // "outbound-interface"
|
|
|
|
S_SAME_AS_INBOUND = 20, // "same-as-inbound"
|
|
|
|
S_USE_ROUTING = 21, // "use-routing"
|
|
|
|
S_RE_DETECT = 22, // "re-detect"
|
|
|
|
S_SERVICE_SOCKETS_REQUIRE_ALL = 23, // "service-sockets-require-all"
|
|
|
|
S_SERVICE_SOCKETS_RETRY_WAIT_TIME = 24, // "service-sockets-retry-wait-time"
|
|
|
|
S_SERVICE_SOCKETS_MAX_RETRIES = 25, // "service-sockets-max-retries"
|
|
|
|
S_SANITY_CHECKS = 26, // "sanity-checks"
|
|
|
|
S_LEASE_CHECKS = 27, // "lease-checks"
|
2022-10-15 23:00:33 +00:00
|
|
|
S_EXTENDED_INFO_CHECKS = 28, // "extended-info-checks"
|
|
|
|
S_ECHO_CLIENT_ID = 29, // "echo-client-id"
|
|
|
|
S_MATCH_CLIENT_ID = 30, // "match-client-id"
|
|
|
|
S_AUTHORITATIVE = 31, // "authoritative"
|
|
|
|
S_NEXT_SERVER = 32, // "next-server"
|
|
|
|
S_SERVER_HOSTNAME = 33, // "server-hostname"
|
|
|
|
S_BOOT_FILE_NAME = 34, // "boot-file-name"
|
|
|
|
S_LEASE_DATABASE = 35, // "lease-database"
|
|
|
|
S_HOSTS_DATABASE = 36, // "hosts-database"
|
|
|
|
S_HOSTS_DATABASES = 37, // "hosts-databases"
|
|
|
|
S_TYPE = 38, // "type"
|
|
|
|
S_MEMFILE = 39, // "memfile"
|
|
|
|
S_MYSQL = 40, // "mysql"
|
|
|
|
S_POSTGRESQL = 41, // "postgresql"
|
|
|
|
S_USER = 42, // "user"
|
|
|
|
S_PASSWORD = 43, // "password"
|
|
|
|
S_HOST = 44, // "host"
|
|
|
|
S_PORT = 45, // "port"
|
|
|
|
S_PERSIST = 46, // "persist"
|
|
|
|
S_LFC_INTERVAL = 47, // "lfc-interval"
|
|
|
|
S_READONLY = 48, // "readonly"
|
|
|
|
S_CONNECT_TIMEOUT = 49, // "connect-timeout"
|
|
|
|
S_MAX_RECONNECT_TRIES = 50, // "max-reconnect-tries"
|
|
|
|
S_RECONNECT_WAIT_TIME = 51, // "reconnect-wait-time"
|
|
|
|
S_ON_FAIL = 52, // "on-fail"
|
|
|
|
S_STOP_RETRY_EXIT = 53, // "stop-retry-exit"
|
|
|
|
S_SERVE_RETRY_EXIT = 54, // "serve-retry-exit"
|
|
|
|
S_SERVE_RETRY_CONTINUE = 55, // "serve-retry-continue"
|
|
|
|
S_MAX_ROW_ERRORS = 56, // "max-row-errors"
|
|
|
|
S_TRUST_ANCHOR = 57, // "trust-anchor"
|
|
|
|
S_CERT_FILE = 58, // "cert-file"
|
|
|
|
S_KEY_FILE = 59, // "key-file"
|
|
|
|
S_CIPHER_LIST = 60, // "cipher-list"
|
|
|
|
S_VALID_LIFETIME = 61, // "valid-lifetime"
|
|
|
|
S_MIN_VALID_LIFETIME = 62, // "min-valid-lifetime"
|
|
|
|
S_MAX_VALID_LIFETIME = 63, // "max-valid-lifetime"
|
|
|
|
S_RENEW_TIMER = 64, // "renew-timer"
|
|
|
|
S_REBIND_TIMER = 65, // "rebind-timer"
|
|
|
|
S_CALCULATE_TEE_TIMES = 66, // "calculate-tee-times"
|
|
|
|
S_T1_PERCENT = 67, // "t1-percent"
|
|
|
|
S_T2_PERCENT = 68, // "t2-percent"
|
|
|
|
S_CACHE_THRESHOLD = 69, // "cache-threshold"
|
|
|
|
S_CACHE_MAX_AGE = 70, // "cache-max-age"
|
|
|
|
S_DECLINE_PROBATION_PERIOD = 71, // "decline-probation-period"
|
|
|
|
S_SERVER_TAG = 72, // "server-tag"
|
|
|
|
S_STATISTIC_DEFAULT_SAMPLE_COUNT = 73, // "statistic-default-sample-count"
|
|
|
|
S_STATISTIC_DEFAULT_SAMPLE_AGE = 74, // "statistic-default-sample-age"
|
|
|
|
S_DDNS_SEND_UPDATES = 75, // "ddns-send-updates"
|
|
|
|
S_DDNS_OVERRIDE_NO_UPDATE = 76, // "ddns-override-no-update"
|
|
|
|
S_DDNS_OVERRIDE_CLIENT_UPDATE = 77, // "ddns-override-client-update"
|
|
|
|
S_DDNS_REPLACE_CLIENT_NAME = 78, // "ddns-replace-client-name"
|
|
|
|
S_DDNS_GENERATED_PREFIX = 79, // "ddns-generated-prefix"
|
|
|
|
S_DDNS_QUALIFYING_SUFFIX = 80, // "ddns-qualifying-suffix"
|
|
|
|
S_DDNS_UPDATE_ON_RENEW = 81, // "ddns-update-on-renew"
|
|
|
|
S_DDNS_USE_CONFLICT_RESOLUTION = 82, // "ddns-use-conflict-resolution"
|
|
|
|
S_STORE_EXTENDED_INFO = 83, // "store-extended-info"
|
|
|
|
S_SUBNET4 = 84, // "subnet4"
|
|
|
|
S_SUBNET_4O6_INTERFACE = 85, // "4o6-interface"
|
|
|
|
S_SUBNET_4O6_INTERFACE_ID = 86, // "4o6-interface-id"
|
|
|
|
S_SUBNET_4O6_SUBNET = 87, // "4o6-subnet"
|
|
|
|
S_OPTION_DEF = 88, // "option-def"
|
|
|
|
S_OPTION_DATA = 89, // "option-data"
|
|
|
|
S_NAME = 90, // "name"
|
|
|
|
S_DATA = 91, // "data"
|
|
|
|
S_CODE = 92, // "code"
|
|
|
|
S_SPACE = 93, // "space"
|
|
|
|
S_CSV_FORMAT = 94, // "csv-format"
|
|
|
|
S_ALWAYS_SEND = 95, // "always-send"
|
|
|
|
S_RECORD_TYPES = 96, // "record-types"
|
|
|
|
S_ENCAPSULATE = 97, // "encapsulate"
|
|
|
|
S_ARRAY = 98, // "array"
|
|
|
|
S_PARKED_PACKET_LIMIT = 99, // "parked-packet-limit"
|
|
|
|
S_SHARED_NETWORKS = 100, // "shared-networks"
|
|
|
|
S_POOLS = 101, // "pools"
|
|
|
|
S_POOL = 102, // "pool"
|
|
|
|
S_USER_CONTEXT = 103, // "user-context"
|
|
|
|
S_COMMENT = 104, // "comment"
|
|
|
|
S_SUBNET = 105, // "subnet"
|
|
|
|
S_INTERFACE = 106, // "interface"
|
|
|
|
S_ID = 107, // "id"
|
|
|
|
S_RESERVATION_MODE = 108, // "reservation-mode"
|
|
|
|
S_DISABLED = 109, // "disabled"
|
|
|
|
S_OUT_OF_POOL = 110, // "out-of-pool"
|
|
|
|
S_GLOBAL = 111, // "global"
|
|
|
|
S_ALL = 112, // "all"
|
|
|
|
S_RESERVATIONS_GLOBAL = 113, // "reservations-global"
|
|
|
|
S_RESERVATIONS_IN_SUBNET = 114, // "reservations-in-subnet"
|
|
|
|
S_RESERVATIONS_OUT_OF_POOL = 115, // "reservations-out-of-pool"
|
|
|
|
S_HOST_RESERVATION_IDENTIFIERS = 116, // "host-reservation-identifiers"
|
|
|
|
S_CLIENT_CLASSES = 117, // "client-classes"
|
|
|
|
S_REQUIRE_CLIENT_CLASSES = 118, // "require-client-classes"
|
|
|
|
S_TEST = 119, // "test"
|
|
|
|
S_ONLY_IF_REQUIRED = 120, // "only-if-required"
|
|
|
|
S_CLIENT_CLASS = 121, // "client-class"
|
|
|
|
S_RESERVATIONS = 122, // "reservations"
|
|
|
|
S_DUID = 123, // "duid"
|
|
|
|
S_HW_ADDRESS = 124, // "hw-address"
|
|
|
|
S_CIRCUIT_ID = 125, // "circuit-id"
|
|
|
|
S_CLIENT_ID = 126, // "client-id"
|
|
|
|
S_HOSTNAME = 127, // "hostname"
|
|
|
|
S_FLEX_ID = 128, // "flex-id"
|
|
|
|
S_RELAY = 129, // "relay"
|
|
|
|
S_IP_ADDRESS = 130, // "ip-address"
|
|
|
|
S_IP_ADDRESSES = 131, // "ip-addresses"
|
|
|
|
S_HOOKS_LIBRARIES = 132, // "hooks-libraries"
|
|
|
|
S_LIBRARY = 133, // "library"
|
|
|
|
S_PARAMETERS = 134, // "parameters"
|
|
|
|
S_EXPIRED_LEASES_PROCESSING = 135, // "expired-leases-processing"
|
|
|
|
S_RECLAIM_TIMER_WAIT_TIME = 136, // "reclaim-timer-wait-time"
|
|
|
|
S_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 137, // "flush-reclaimed-timer-wait-time"
|
|
|
|
S_HOLD_RECLAIMED_TIME = 138, // "hold-reclaimed-time"
|
|
|
|
S_MAX_RECLAIM_LEASES = 139, // "max-reclaim-leases"
|
|
|
|
S_MAX_RECLAIM_TIME = 140, // "max-reclaim-time"
|
|
|
|
S_UNWARNED_RECLAIM_CYCLES = 141, // "unwarned-reclaim-cycles"
|
|
|
|
S_DHCP4O6_PORT = 142, // "dhcp4o6-port"
|
|
|
|
S_DHCP_MULTI_THREADING = 143, // "multi-threading"
|
|
|
|
S_ENABLE_MULTI_THREADING = 144, // "enable-multi-threading"
|
|
|
|
S_THREAD_POOL_SIZE = 145, // "thread-pool-size"
|
|
|
|
S_PACKET_QUEUE_SIZE = 146, // "packet-queue-size"
|
|
|
|
S_CONTROL_SOCKET = 147, // "control-socket"
|
|
|
|
S_SOCKET_TYPE = 148, // "socket-type"
|
|
|
|
S_SOCKET_NAME = 149, // "socket-name"
|
|
|
|
S_DHCP_QUEUE_CONTROL = 150, // "dhcp-queue-control"
|
|
|
|
S_ENABLE_QUEUE = 151, // "enable-queue"
|
|
|
|
S_QUEUE_TYPE = 152, // "queue-type"
|
|
|
|
S_CAPACITY = 153, // "capacity"
|
|
|
|
S_DHCP_DDNS = 154, // "dhcp-ddns"
|
|
|
|
S_ENABLE_UPDATES = 155, // "enable-updates"
|
|
|
|
S_QUALIFYING_SUFFIX = 156, // "qualifying-suffix"
|
|
|
|
S_SERVER_IP = 157, // "server-ip"
|
|
|
|
S_SERVER_PORT = 158, // "server-port"
|
|
|
|
S_SENDER_IP = 159, // "sender-ip"
|
|
|
|
S_SENDER_PORT = 160, // "sender-port"
|
|
|
|
S_MAX_QUEUE_SIZE = 161, // "max-queue-size"
|
|
|
|
S_NCR_PROTOCOL = 162, // "ncr-protocol"
|
|
|
|
S_NCR_FORMAT = 163, // "ncr-format"
|
|
|
|
S_OVERRIDE_NO_UPDATE = 164, // "override-no-update"
|
|
|
|
S_OVERRIDE_CLIENT_UPDATE = 165, // "override-client-update"
|
|
|
|
S_REPLACE_CLIENT_NAME = 166, // "replace-client-name"
|
|
|
|
S_GENERATED_PREFIX = 167, // "generated-prefix"
|
|
|
|
S_TCP = 168, // "tcp"
|
|
|
|
S_JSON = 169, // "JSON"
|
|
|
|
S_WHEN_PRESENT = 170, // "when-present"
|
|
|
|
S_NEVER = 171, // "never"
|
|
|
|
S_ALWAYS = 172, // "always"
|
|
|
|
S_WHEN_NOT_PRESENT = 173, // "when-not-present"
|
|
|
|
S_HOSTNAME_CHAR_SET = 174, // "hostname-char-set"
|
|
|
|
S_HOSTNAME_CHAR_REPLACEMENT = 175, // "hostname-char-replacement"
|
|
|
|
S_EARLY_GLOBAL_RESERVATIONS_LOOKUP = 176, // "early-global-reservations-lookup"
|
|
|
|
S_IP_RESERVATIONS_UNIQUE = 177, // "ip-reservations-unique"
|
|
|
|
S_RESERVATIONS_LOOKUP_FIRST = 178, // "reservations-lookup-first"
|
|
|
|
S_LOGGERS = 179, // "loggers"
|
|
|
|
S_OUTPUT_OPTIONS = 180, // "output_options"
|
|
|
|
S_OUTPUT = 181, // "output"
|
|
|
|
S_DEBUGLEVEL = 182, // "debuglevel"
|
|
|
|
S_SEVERITY = 183, // "severity"
|
|
|
|
S_FLUSH = 184, // "flush"
|
|
|
|
S_MAXSIZE = 185, // "maxsize"
|
|
|
|
S_MAXVER = 186, // "maxver"
|
|
|
|
S_PATTERN = 187, // "pattern"
|
|
|
|
S_COMPATIBILITY = 188, // "compatibility"
|
|
|
|
S_LENIENT_OPTION_PARSING = 189, // "lenient-option-parsing"
|
|
|
|
S_IGNORE_RAI_LINK_SEL = 190, // "ignore-rai-link-selection"
|
|
|
|
S_TOPLEVEL_JSON = 191, // TOPLEVEL_JSON
|
|
|
|
S_TOPLEVEL_DHCP4 = 192, // TOPLEVEL_DHCP4
|
|
|
|
S_SUB_DHCP4 = 193, // SUB_DHCP4
|
|
|
|
S_SUB_INTERFACES4 = 194, // SUB_INTERFACES4
|
|
|
|
S_SUB_SUBNET4 = 195, // SUB_SUBNET4
|
|
|
|
S_SUB_POOL4 = 196, // SUB_POOL4
|
|
|
|
S_SUB_RESERVATION = 197, // SUB_RESERVATION
|
|
|
|
S_SUB_OPTION_DEFS = 198, // SUB_OPTION_DEFS
|
|
|
|
S_SUB_OPTION_DEF = 199, // SUB_OPTION_DEF
|
|
|
|
S_SUB_OPTION_DATA = 200, // SUB_OPTION_DATA
|
|
|
|
S_SUB_HOOKS_LIBRARY = 201, // SUB_HOOKS_LIBRARY
|
|
|
|
S_SUB_DHCP_DDNS = 202, // SUB_DHCP_DDNS
|
|
|
|
S_SUB_CONFIG_CONTROL = 203, // SUB_CONFIG_CONTROL
|
|
|
|
S_STRING = 204, // "constant string"
|
|
|
|
S_INTEGER = 205, // "integer"
|
|
|
|
S_FLOAT = 206, // "floating point"
|
|
|
|
S_BOOLEAN = 207, // "boolean"
|
|
|
|
S_YYACCEPT = 208, // $accept
|
|
|
|
S_start = 209, // start
|
|
|
|
S_210_1 = 210, // $@1
|
|
|
|
S_211_2 = 211, // $@2
|
|
|
|
S_212_3 = 212, // $@3
|
|
|
|
S_213_4 = 213, // $@4
|
|
|
|
S_214_5 = 214, // $@5
|
|
|
|
S_215_6 = 215, // $@6
|
|
|
|
S_216_7 = 216, // $@7
|
|
|
|
S_217_8 = 217, // $@8
|
|
|
|
S_218_9 = 218, // $@9
|
|
|
|
S_219_10 = 219, // $@10
|
|
|
|
S_220_11 = 220, // $@11
|
|
|
|
S_221_12 = 221, // $@12
|
|
|
|
S_222_13 = 222, // $@13
|
|
|
|
S_value = 223, // value
|
|
|
|
S_sub_json = 224, // sub_json
|
|
|
|
S_map2 = 225, // map2
|
|
|
|
S_226_14 = 226, // $@14
|
|
|
|
S_map_value = 227, // map_value
|
|
|
|
S_map_content = 228, // map_content
|
|
|
|
S_not_empty_map = 229, // not_empty_map
|
|
|
|
S_list_generic = 230, // list_generic
|
|
|
|
S_231_15 = 231, // $@15
|
|
|
|
S_list_content = 232, // list_content
|
|
|
|
S_not_empty_list = 233, // not_empty_list
|
|
|
|
S_list_strings = 234, // list_strings
|
|
|
|
S_235_16 = 235, // $@16
|
|
|
|
S_list_strings_content = 236, // list_strings_content
|
|
|
|
S_not_empty_list_strings = 237, // not_empty_list_strings
|
|
|
|
S_unknown_map_entry = 238, // unknown_map_entry
|
|
|
|
S_syntax_map = 239, // syntax_map
|
|
|
|
S_240_17 = 240, // $@17
|
|
|
|
S_global_object = 241, // global_object
|
|
|
|
S_242_18 = 242, // $@18
|
|
|
|
S_global_object_comma = 243, // global_object_comma
|
|
|
|
S_sub_dhcp4 = 244, // sub_dhcp4
|
|
|
|
S_245_19 = 245, // $@19
|
|
|
|
S_global_params = 246, // global_params
|
|
|
|
S_global_param = 247, // global_param
|
|
|
|
S_valid_lifetime = 248, // valid_lifetime
|
|
|
|
S_min_valid_lifetime = 249, // min_valid_lifetime
|
|
|
|
S_max_valid_lifetime = 250, // max_valid_lifetime
|
|
|
|
S_renew_timer = 251, // renew_timer
|
|
|
|
S_rebind_timer = 252, // rebind_timer
|
|
|
|
S_calculate_tee_times = 253, // calculate_tee_times
|
|
|
|
S_t1_percent = 254, // t1_percent
|
|
|
|
S_t2_percent = 255, // t2_percent
|
|
|
|
S_cache_threshold = 256, // cache_threshold
|
|
|
|
S_cache_max_age = 257, // cache_max_age
|
|
|
|
S_decline_probation_period = 258, // decline_probation_period
|
|
|
|
S_server_tag = 259, // server_tag
|
|
|
|
S_260_20 = 260, // $@20
|
|
|
|
S_parked_packet_limit = 261, // parked_packet_limit
|
|
|
|
S_echo_client_id = 262, // echo_client_id
|
|
|
|
S_match_client_id = 263, // match_client_id
|
|
|
|
S_authoritative = 264, // authoritative
|
|
|
|
S_ddns_send_updates = 265, // ddns_send_updates
|
|
|
|
S_ddns_override_no_update = 266, // ddns_override_no_update
|
|
|
|
S_ddns_override_client_update = 267, // ddns_override_client_update
|
|
|
|
S_ddns_replace_client_name = 268, // ddns_replace_client_name
|
|
|
|
S_269_21 = 269, // $@21
|
|
|
|
S_ddns_replace_client_name_value = 270, // ddns_replace_client_name_value
|
|
|
|
S_ddns_generated_prefix = 271, // ddns_generated_prefix
|
|
|
|
S_272_22 = 272, // $@22
|
|
|
|
S_ddns_qualifying_suffix = 273, // ddns_qualifying_suffix
|
|
|
|
S_274_23 = 274, // $@23
|
|
|
|
S_ddns_update_on_renew = 275, // ddns_update_on_renew
|
|
|
|
S_ddns_use_conflict_resolution = 276, // ddns_use_conflict_resolution
|
|
|
|
S_hostname_char_set = 277, // hostname_char_set
|
|
|
|
S_278_24 = 278, // $@24
|
|
|
|
S_hostname_char_replacement = 279, // hostname_char_replacement
|
|
|
|
S_280_25 = 280, // $@25
|
|
|
|
S_store_extended_info = 281, // store_extended_info
|
|
|
|
S_statistic_default_sample_count = 282, // statistic_default_sample_count
|
|
|
|
S_statistic_default_sample_age = 283, // statistic_default_sample_age
|
|
|
|
S_early_global_reservations_lookup = 284, // early_global_reservations_lookup
|
|
|
|
S_ip_reservations_unique = 285, // ip_reservations_unique
|
|
|
|
S_reservations_lookup_first = 286, // reservations_lookup_first
|
|
|
|
S_interfaces_config = 287, // interfaces_config
|
|
|
|
S_288_26 = 288, // $@26
|
|
|
|
S_interfaces_config_params = 289, // interfaces_config_params
|
|
|
|
S_interfaces_config_param = 290, // interfaces_config_param
|
|
|
|
S_sub_interfaces4 = 291, // sub_interfaces4
|
|
|
|
S_292_27 = 292, // $@27
|
|
|
|
S_interfaces_list = 293, // interfaces_list
|
|
|
|
S_294_28 = 294, // $@28
|
|
|
|
S_dhcp_socket_type = 295, // dhcp_socket_type
|
|
|
|
S_296_29 = 296, // $@29
|
|
|
|
S_socket_type = 297, // socket_type
|
|
|
|
S_outbound_interface = 298, // outbound_interface
|
|
|
|
S_299_30 = 299, // $@30
|
|
|
|
S_outbound_interface_value = 300, // outbound_interface_value
|
|
|
|
S_re_detect = 301, // re_detect
|
|
|
|
S_service_sockets_require_all = 302, // service_sockets_require_all
|
|
|
|
S_service_sockets_retry_wait_time = 303, // service_sockets_retry_wait_time
|
|
|
|
S_service_sockets_max_retries = 304, // service_sockets_max_retries
|
|
|
|
S_lease_database = 305, // lease_database
|
|
|
|
S_306_31 = 306, // $@31
|
|
|
|
S_sanity_checks = 307, // sanity_checks
|
|
|
|
S_308_32 = 308, // $@32
|
|
|
|
S_sanity_checks_params = 309, // sanity_checks_params
|
|
|
|
S_sanity_checks_param = 310, // sanity_checks_param
|
|
|
|
S_lease_checks = 311, // lease_checks
|
|
|
|
S_312_33 = 312, // $@33
|
|
|
|
S_extended_info_checks = 313, // extended_info_checks
|
|
|
|
S_314_34 = 314, // $@34
|
|
|
|
S_hosts_database = 315, // hosts_database
|
|
|
|
S_316_35 = 316, // $@35
|
|
|
|
S_hosts_databases = 317, // hosts_databases
|
|
|
|
S_318_36 = 318, // $@36
|
|
|
|
S_database_list = 319, // database_list
|
|
|
|
S_not_empty_database_list = 320, // not_empty_database_list
|
|
|
|
S_database = 321, // database
|
|
|
|
S_322_37 = 322, // $@37
|
|
|
|
S_database_map_params = 323, // database_map_params
|
|
|
|
S_database_map_param = 324, // database_map_param
|
|
|
|
S_database_type = 325, // database_type
|
2022-09-26 20:15:26 -07:00
|
|
|
S_326_38 = 326, // $@38
|
2022-10-15 23:00:33 +00:00
|
|
|
S_db_type = 327, // db_type
|
|
|
|
S_user = 328, // user
|
|
|
|
S_329_39 = 329, // $@39
|
|
|
|
S_password = 330, // password
|
|
|
|
S_331_40 = 331, // $@40
|
|
|
|
S_host = 332, // host
|
2022-09-26 20:15:26 -07:00
|
|
|
S_333_41 = 333, // $@41
|
2022-10-15 23:00:33 +00:00
|
|
|
S_port = 334, // port
|
|
|
|
S_name = 335, // name
|
|
|
|
S_336_42 = 336, // $@42
|
|
|
|
S_persist = 337, // persist
|
|
|
|
S_lfc_interval = 338, // lfc_interval
|
|
|
|
S_readonly = 339, // readonly
|
|
|
|
S_connect_timeout = 340, // connect_timeout
|
|
|
|
S_max_reconnect_tries = 341, // max_reconnect_tries
|
|
|
|
S_reconnect_wait_time = 342, // reconnect_wait_time
|
|
|
|
S_on_fail = 343, // on_fail
|
|
|
|
S_344_43 = 344, // $@43
|
|
|
|
S_on_fail_mode = 345, // on_fail_mode
|
|
|
|
S_max_row_errors = 346, // max_row_errors
|
|
|
|
S_trust_anchor = 347, // trust_anchor
|
|
|
|
S_348_44 = 348, // $@44
|
|
|
|
S_cert_file = 349, // cert_file
|
|
|
|
S_350_45 = 350, // $@45
|
|
|
|
S_key_file = 351, // key_file
|
|
|
|
S_352_46 = 352, // $@46
|
|
|
|
S_cipher_list = 353, // cipher_list
|
|
|
|
S_354_47 = 354, // $@47
|
|
|
|
S_host_reservation_identifiers = 355, // host_reservation_identifiers
|
|
|
|
S_356_48 = 356, // $@48
|
|
|
|
S_host_reservation_identifiers_list = 357, // host_reservation_identifiers_list
|
|
|
|
S_host_reservation_identifier = 358, // host_reservation_identifier
|
|
|
|
S_duid_id = 359, // duid_id
|
|
|
|
S_hw_address_id = 360, // hw_address_id
|
|
|
|
S_circuit_id = 361, // circuit_id
|
|
|
|
S_client_id = 362, // client_id
|
|
|
|
S_flex_id = 363, // flex_id
|
|
|
|
S_dhcp_multi_threading = 364, // dhcp_multi_threading
|
|
|
|
S_365_49 = 365, // $@49
|
|
|
|
S_multi_threading_params = 366, // multi_threading_params
|
|
|
|
S_multi_threading_param = 367, // multi_threading_param
|
|
|
|
S_enable_multi_threading = 368, // enable_multi_threading
|
|
|
|
S_thread_pool_size = 369, // thread_pool_size
|
|
|
|
S_packet_queue_size = 370, // packet_queue_size
|
|
|
|
S_hooks_libraries = 371, // hooks_libraries
|
|
|
|
S_372_50 = 372, // $@50
|
|
|
|
S_hooks_libraries_list = 373, // hooks_libraries_list
|
|
|
|
S_not_empty_hooks_libraries_list = 374, // not_empty_hooks_libraries_list
|
|
|
|
S_hooks_library = 375, // hooks_library
|
|
|
|
S_376_51 = 376, // $@51
|
|
|
|
S_sub_hooks_library = 377, // sub_hooks_library
|
|
|
|
S_378_52 = 378, // $@52
|
|
|
|
S_hooks_params = 379, // hooks_params
|
|
|
|
S_hooks_param = 380, // hooks_param
|
|
|
|
S_library = 381, // library
|
|
|
|
S_382_53 = 382, // $@53
|
|
|
|
S_parameters = 383, // parameters
|
|
|
|
S_384_54 = 384, // $@54
|
|
|
|
S_expired_leases_processing = 385, // expired_leases_processing
|
|
|
|
S_386_55 = 386, // $@55
|
|
|
|
S_expired_leases_params = 387, // expired_leases_params
|
|
|
|
S_expired_leases_param = 388, // expired_leases_param
|
|
|
|
S_reclaim_timer_wait_time = 389, // reclaim_timer_wait_time
|
|
|
|
S_flush_reclaimed_timer_wait_time = 390, // flush_reclaimed_timer_wait_time
|
|
|
|
S_hold_reclaimed_time = 391, // hold_reclaimed_time
|
|
|
|
S_max_reclaim_leases = 392, // max_reclaim_leases
|
|
|
|
S_max_reclaim_time = 393, // max_reclaim_time
|
|
|
|
S_unwarned_reclaim_cycles = 394, // unwarned_reclaim_cycles
|
|
|
|
S_subnet4_list = 395, // subnet4_list
|
|
|
|
S_396_56 = 396, // $@56
|
|
|
|
S_subnet4_list_content = 397, // subnet4_list_content
|
|
|
|
S_not_empty_subnet4_list = 398, // not_empty_subnet4_list
|
|
|
|
S_subnet4 = 399, // subnet4
|
|
|
|
S_400_57 = 400, // $@57
|
|
|
|
S_sub_subnet4 = 401, // sub_subnet4
|
|
|
|
S_402_58 = 402, // $@58
|
|
|
|
S_subnet4_params = 403, // subnet4_params
|
|
|
|
S_subnet4_param = 404, // subnet4_param
|
|
|
|
S_subnet = 405, // subnet
|
|
|
|
S_406_59 = 406, // $@59
|
|
|
|
S_subnet_4o6_interface = 407, // subnet_4o6_interface
|
|
|
|
S_408_60 = 408, // $@60
|
|
|
|
S_subnet_4o6_interface_id = 409, // subnet_4o6_interface_id
|
|
|
|
S_410_61 = 410, // $@61
|
|
|
|
S_subnet_4o6_subnet = 411, // subnet_4o6_subnet
|
|
|
|
S_412_62 = 412, // $@62
|
|
|
|
S_interface = 413, // interface
|
|
|
|
S_414_63 = 414, // $@63
|
|
|
|
S_client_class = 415, // client_class
|
|
|
|
S_416_64 = 416, // $@64
|
|
|
|
S_require_client_classes = 417, // require_client_classes
|
|
|
|
S_418_65 = 418, // $@65
|
|
|
|
S_reservations_global = 419, // reservations_global
|
|
|
|
S_reservations_in_subnet = 420, // reservations_in_subnet
|
|
|
|
S_reservations_out_of_pool = 421, // reservations_out_of_pool
|
|
|
|
S_reservation_mode = 422, // reservation_mode
|
|
|
|
S_423_66 = 423, // $@66
|
|
|
|
S_hr_mode = 424, // hr_mode
|
|
|
|
S_id = 425, // id
|
|
|
|
S_shared_networks = 426, // shared_networks
|
|
|
|
S_427_67 = 427, // $@67
|
|
|
|
S_shared_networks_content = 428, // shared_networks_content
|
|
|
|
S_shared_networks_list = 429, // shared_networks_list
|
|
|
|
S_shared_network = 430, // shared_network
|
|
|
|
S_431_68 = 431, // $@68
|
|
|
|
S_shared_network_params = 432, // shared_network_params
|
|
|
|
S_shared_network_param = 433, // shared_network_param
|
|
|
|
S_option_def_list = 434, // option_def_list
|
|
|
|
S_435_69 = 435, // $@69
|
|
|
|
S_sub_option_def_list = 436, // sub_option_def_list
|
|
|
|
S_437_70 = 437, // $@70
|
|
|
|
S_option_def_list_content = 438, // option_def_list_content
|
|
|
|
S_not_empty_option_def_list = 439, // not_empty_option_def_list
|
|
|
|
S_option_def_entry = 440, // option_def_entry
|
|
|
|
S_441_71 = 441, // $@71
|
|
|
|
S_sub_option_def = 442, // sub_option_def
|
|
|
|
S_443_72 = 443, // $@72
|
|
|
|
S_option_def_params = 444, // option_def_params
|
|
|
|
S_not_empty_option_def_params = 445, // not_empty_option_def_params
|
|
|
|
S_option_def_param = 446, // option_def_param
|
|
|
|
S_option_def_name = 447, // option_def_name
|
|
|
|
S_code = 448, // code
|
|
|
|
S_option_def_code = 449, // option_def_code
|
|
|
|
S_option_def_type = 450, // option_def_type
|
|
|
|
S_451_73 = 451, // $@73
|
|
|
|
S_option_def_record_types = 452, // option_def_record_types
|
|
|
|
S_453_74 = 453, // $@74
|
|
|
|
S_space = 454, // space
|
2022-09-26 20:15:26 -07:00
|
|
|
S_455_75 = 455, // $@75
|
2022-10-15 23:00:33 +00:00
|
|
|
S_option_def_space = 456, // option_def_space
|
|
|
|
S_option_def_encapsulate = 457, // option_def_encapsulate
|
2022-09-26 20:15:26 -07:00
|
|
|
S_458_76 = 458, // $@76
|
2022-10-15 23:00:33 +00:00
|
|
|
S_option_def_array = 459, // option_def_array
|
|
|
|
S_option_data_list = 460, // option_data_list
|
|
|
|
S_461_77 = 461, // $@77
|
|
|
|
S_option_data_list_content = 462, // option_data_list_content
|
|
|
|
S_not_empty_option_data_list = 463, // not_empty_option_data_list
|
|
|
|
S_option_data_entry = 464, // option_data_entry
|
|
|
|
S_465_78 = 465, // $@78
|
|
|
|
S_sub_option_data = 466, // sub_option_data
|
|
|
|
S_467_79 = 467, // $@79
|
|
|
|
S_option_data_params = 468, // option_data_params
|
|
|
|
S_not_empty_option_data_params = 469, // not_empty_option_data_params
|
|
|
|
S_option_data_param = 470, // option_data_param
|
|
|
|
S_option_data_name = 471, // option_data_name
|
|
|
|
S_option_data_data = 472, // option_data_data
|
|
|
|
S_473_80 = 473, // $@80
|
|
|
|
S_option_data_code = 474, // option_data_code
|
|
|
|
S_option_data_space = 475, // option_data_space
|
|
|
|
S_option_data_csv_format = 476, // option_data_csv_format
|
|
|
|
S_option_data_always_send = 477, // option_data_always_send
|
|
|
|
S_pools_list = 478, // pools_list
|
|
|
|
S_479_81 = 479, // $@81
|
|
|
|
S_pools_list_content = 480, // pools_list_content
|
|
|
|
S_not_empty_pools_list = 481, // not_empty_pools_list
|
|
|
|
S_pool_list_entry = 482, // pool_list_entry
|
|
|
|
S_483_82 = 483, // $@82
|
|
|
|
S_sub_pool4 = 484, // sub_pool4
|
|
|
|
S_485_83 = 485, // $@83
|
|
|
|
S_pool_params = 486, // pool_params
|
|
|
|
S_pool_param = 487, // pool_param
|
|
|
|
S_pool_entry = 488, // pool_entry
|
|
|
|
S_489_84 = 489, // $@84
|
|
|
|
S_user_context = 490, // user_context
|
|
|
|
S_491_85 = 491, // $@85
|
|
|
|
S_comment = 492, // comment
|
|
|
|
S_493_86 = 493, // $@86
|
|
|
|
S_reservations = 494, // reservations
|
|
|
|
S_495_87 = 495, // $@87
|
|
|
|
S_reservations_list = 496, // reservations_list
|
|
|
|
S_not_empty_reservations_list = 497, // not_empty_reservations_list
|
|
|
|
S_reservation = 498, // reservation
|
|
|
|
S_499_88 = 499, // $@88
|
|
|
|
S_sub_reservation = 500, // sub_reservation
|
|
|
|
S_501_89 = 501, // $@89
|
|
|
|
S_reservation_params = 502, // reservation_params
|
|
|
|
S_not_empty_reservation_params = 503, // not_empty_reservation_params
|
|
|
|
S_reservation_param = 504, // reservation_param
|
|
|
|
S_next_server = 505, // next_server
|
|
|
|
S_506_90 = 506, // $@90
|
|
|
|
S_server_hostname = 507, // server_hostname
|
|
|
|
S_508_91 = 508, // $@91
|
|
|
|
S_boot_file_name = 509, // boot_file_name
|
|
|
|
S_510_92 = 510, // $@92
|
|
|
|
S_ip_address = 511, // ip_address
|
|
|
|
S_512_93 = 512, // $@93
|
|
|
|
S_ip_addresses = 513, // ip_addresses
|
|
|
|
S_514_94 = 514, // $@94
|
|
|
|
S_duid = 515, // duid
|
|
|
|
S_516_95 = 516, // $@95
|
|
|
|
S_hw_address = 517, // hw_address
|
|
|
|
S_518_96 = 518, // $@96
|
|
|
|
S_client_id_value = 519, // client_id_value
|
|
|
|
S_520_97 = 520, // $@97
|
|
|
|
S_circuit_id_value = 521, // circuit_id_value
|
|
|
|
S_522_98 = 522, // $@98
|
|
|
|
S_flex_id_value = 523, // flex_id_value
|
|
|
|
S_524_99 = 524, // $@99
|
|
|
|
S_hostname = 525, // hostname
|
|
|
|
S_526_100 = 526, // $@100
|
|
|
|
S_reservation_client_classes = 527, // reservation_client_classes
|
|
|
|
S_528_101 = 528, // $@101
|
|
|
|
S_relay = 529, // relay
|
2022-09-26 20:15:26 -07:00
|
|
|
S_530_102 = 530, // $@102
|
2022-10-15 23:00:33 +00:00
|
|
|
S_relay_map = 531, // relay_map
|
|
|
|
S_client_classes = 532, // client_classes
|
2022-09-26 20:15:26 -07:00
|
|
|
S_533_103 = 533, // $@103
|
2022-10-15 23:00:33 +00:00
|
|
|
S_client_classes_list = 534, // client_classes_list
|
|
|
|
S_client_class_entry = 535, // client_class_entry
|
|
|
|
S_536_104 = 536, // $@104
|
|
|
|
S_client_class_params = 537, // client_class_params
|
|
|
|
S_not_empty_client_class_params = 538, // not_empty_client_class_params
|
|
|
|
S_client_class_param = 539, // client_class_param
|
|
|
|
S_client_class_name = 540, // client_class_name
|
|
|
|
S_client_class_test = 541, // client_class_test
|
|
|
|
S_542_105 = 542, // $@105
|
|
|
|
S_only_if_required = 543, // only_if_required
|
|
|
|
S_dhcp4o6_port = 544, // dhcp4o6_port
|
|
|
|
S_control_socket = 545, // control_socket
|
|
|
|
S_546_106 = 546, // $@106
|
|
|
|
S_control_socket_params = 547, // control_socket_params
|
|
|
|
S_control_socket_param = 548, // control_socket_param
|
|
|
|
S_control_socket_type = 549, // control_socket_type
|
|
|
|
S_550_107 = 550, // $@107
|
|
|
|
S_control_socket_name = 551, // control_socket_name
|
|
|
|
S_552_108 = 552, // $@108
|
|
|
|
S_dhcp_queue_control = 553, // dhcp_queue_control
|
|
|
|
S_554_109 = 554, // $@109
|
|
|
|
S_queue_control_params = 555, // queue_control_params
|
|
|
|
S_queue_control_param = 556, // queue_control_param
|
|
|
|
S_enable_queue = 557, // enable_queue
|
|
|
|
S_queue_type = 558, // queue_type
|
2022-09-26 20:15:26 -07:00
|
|
|
S_559_110 = 559, // $@110
|
2022-10-15 23:00:33 +00:00
|
|
|
S_capacity = 560, // capacity
|
|
|
|
S_arbitrary_map_entry = 561, // arbitrary_map_entry
|
|
|
|
S_562_111 = 562, // $@111
|
|
|
|
S_dhcp_ddns = 563, // dhcp_ddns
|
|
|
|
S_564_112 = 564, // $@112
|
|
|
|
S_sub_dhcp_ddns = 565, // sub_dhcp_ddns
|
|
|
|
S_566_113 = 566, // $@113
|
|
|
|
S_dhcp_ddns_params = 567, // dhcp_ddns_params
|
|
|
|
S_dhcp_ddns_param = 568, // dhcp_ddns_param
|
|
|
|
S_enable_updates = 569, // enable_updates
|
|
|
|
S_server_ip = 570, // server_ip
|
2022-09-26 20:15:26 -07:00
|
|
|
S_571_114 = 571, // $@114
|
2022-10-15 23:00:33 +00:00
|
|
|
S_server_port = 572, // server_port
|
|
|
|
S_sender_ip = 573, // sender_ip
|
|
|
|
S_574_115 = 574, // $@115
|
|
|
|
S_sender_port = 575, // sender_port
|
|
|
|
S_max_queue_size = 576, // max_queue_size
|
|
|
|
S_ncr_protocol = 577, // ncr_protocol
|
2022-09-26 20:15:26 -07:00
|
|
|
S_578_116 = 578, // $@116
|
2022-10-15 23:00:33 +00:00
|
|
|
S_ncr_protocol_value = 579, // ncr_protocol_value
|
|
|
|
S_ncr_format = 580, // ncr_format
|
|
|
|
S_581_117 = 581, // $@117
|
|
|
|
S_dep_qualifying_suffix = 582, // dep_qualifying_suffix
|
|
|
|
S_583_118 = 583, // $@118
|
|
|
|
S_dep_override_no_update = 584, // dep_override_no_update
|
|
|
|
S_dep_override_client_update = 585, // dep_override_client_update
|
|
|
|
S_dep_replace_client_name = 586, // dep_replace_client_name
|
|
|
|
S_587_119 = 587, // $@119
|
|
|
|
S_dep_generated_prefix = 588, // dep_generated_prefix
|
|
|
|
S_589_120 = 589, // $@120
|
|
|
|
S_dep_hostname_char_set = 590, // dep_hostname_char_set
|
|
|
|
S_591_121 = 591, // $@121
|
|
|
|
S_dep_hostname_char_replacement = 592, // dep_hostname_char_replacement
|
|
|
|
S_593_122 = 593, // $@122
|
|
|
|
S_config_control = 594, // config_control
|
|
|
|
S_595_123 = 595, // $@123
|
|
|
|
S_sub_config_control = 596, // sub_config_control
|
|
|
|
S_597_124 = 597, // $@124
|
|
|
|
S_config_control_params = 598, // config_control_params
|
|
|
|
S_config_control_param = 599, // config_control_param
|
|
|
|
S_config_databases = 600, // config_databases
|
2022-09-26 20:15:26 -07:00
|
|
|
S_601_125 = 601, // $@125
|
2022-10-15 23:00:33 +00:00
|
|
|
S_config_fetch_wait_time = 602, // config_fetch_wait_time
|
|
|
|
S_loggers = 603, // loggers
|
2022-09-26 20:15:26 -07:00
|
|
|
S_604_126 = 604, // $@126
|
2022-10-15 23:00:33 +00:00
|
|
|
S_loggers_entries = 605, // loggers_entries
|
|
|
|
S_logger_entry = 606, // logger_entry
|
|
|
|
S_607_127 = 607, // $@127
|
|
|
|
S_logger_params = 608, // logger_params
|
|
|
|
S_logger_param = 609, // logger_param
|
|
|
|
S_debuglevel = 610, // debuglevel
|
|
|
|
S_severity = 611, // severity
|
|
|
|
S_612_128 = 612, // $@128
|
|
|
|
S_output_options_list = 613, // output_options_list
|
2022-09-26 20:15:26 -07:00
|
|
|
S_614_129 = 614, // $@129
|
2022-10-15 23:00:33 +00:00
|
|
|
S_output_options_list_content = 615, // output_options_list_content
|
|
|
|
S_output_entry = 616, // output_entry
|
|
|
|
S_617_130 = 617, // $@130
|
|
|
|
S_output_params_list = 618, // output_params_list
|
|
|
|
S_output_params = 619, // output_params
|
|
|
|
S_output = 620, // output
|
|
|
|
S_621_131 = 621, // $@131
|
|
|
|
S_flush = 622, // flush
|
|
|
|
S_maxsize = 623, // maxsize
|
|
|
|
S_maxver = 624, // maxver
|
|
|
|
S_pattern = 625, // pattern
|
|
|
|
S_626_132 = 626, // $@132
|
|
|
|
S_compatibility = 627, // compatibility
|
|
|
|
S_628_133 = 628, // $@133
|
|
|
|
S_compatibility_params = 629, // compatibility_params
|
|
|
|
S_compatibility_param = 630, // compatibility_param
|
|
|
|
S_lenient_option_parsing = 631, // lenient_option_parsing
|
|
|
|
S_632_ignore_rai_link_selection = 632 // ignore-rai-link-selection
|
2022-04-25 19:17:45 +02:00
|
|
|
};
|
|
|
|
};
|
2020-10-21 13:54:51 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// (Internal) symbol kind.
|
|
|
|
typedef symbol_kind::symbol_kind_type symbol_kind_type;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// The number of tokens.
|
|
|
|
static const symbol_kind_type YYNTOKENS = symbol_kind::YYNTOKENS;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
/// A complete symbol.
|
|
|
|
///
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Expects its Base type to provide access to the symbol kind
|
|
|
|
/// via kind ().
|
2016-12-15 16:54:01 +01:00
|
|
|
///
|
|
|
|
/// Provide access to semantic value and location.
|
|
|
|
template <typename Base>
|
|
|
|
struct basic_symbol : Base
|
|
|
|
{
|
|
|
|
/// Alias to Base.
|
|
|
|
typedef Base super_type;
|
|
|
|
|
|
|
|
/// Default constructor.
|
2022-04-25 19:17:45 +02:00
|
|
|
basic_symbol () YY_NOEXCEPT
|
2020-10-21 13:54:51 -04:00
|
|
|
: value ()
|
|
|
|
, location ()
|
|
|
|
{}
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Move constructor.
|
2022-04-25 19:17:45 +02:00
|
|
|
basic_symbol (basic_symbol&& that)
|
|
|
|
: Base (std::move (that))
|
|
|
|
, value ()
|
|
|
|
, location (std::move (that.location))
|
|
|
|
{
|
|
|
|
switch (this->kind ())
|
|
|
|
{
|
|
|
|
case symbol_kind::S_value: // value
|
|
|
|
case symbol_kind::S_map_value: // map_value
|
|
|
|
case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
|
|
|
|
case symbol_kind::S_socket_type: // socket_type
|
|
|
|
case symbol_kind::S_outbound_interface_value: // outbound_interface_value
|
|
|
|
case symbol_kind::S_db_type: // db_type
|
|
|
|
case symbol_kind::S_on_fail_mode: // on_fail_mode
|
|
|
|
case symbol_kind::S_hr_mode: // hr_mode
|
|
|
|
case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
|
|
|
|
value.move< ElementPtr > (std::move (that.value));
|
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_BOOLEAN: // "boolean"
|
|
|
|
value.move< bool > (std::move (that.value));
|
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_FLOAT: // "floating point"
|
|
|
|
value.move< double > (std::move (that.value));
|
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_INTEGER: // "integer"
|
|
|
|
value.move< int64_t > (std::move (that.value));
|
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_STRING: // "constant string"
|
|
|
|
value.move< std::string > (std::move (that.value));
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-10-21 13:54:51 -04:00
|
|
|
#endif
|
2019-01-09 11:14:01 -05:00
|
|
|
|
2019-10-29 06:49:44 +01:00
|
|
|
/// Copy constructor.
|
2020-10-21 13:54:51 -04:00
|
|
|
basic_symbol (const basic_symbol& that);
|
2019-01-09 11:14:01 -05:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Constructors for typed symbols.
|
2020-10-21 13:54:51 -04:00
|
|
|
#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
|
2022-04-25 19:17:45 +02:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
#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
|
2022-04-25 19:17:45 +02:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
#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
|
2022-04-25 19:17:45 +02:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
#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
|
2022-04-25 19:17:45 +02:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
#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
|
2022-04-25 19:17:45 +02:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
#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
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Destroy the symbol.
|
|
|
|
~basic_symbol ()
|
|
|
|
{
|
|
|
|
clear ();
|
|
|
|
}
|
2019-10-29 06:49:44 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Destroy contents, and record that is empty.
|
2022-04-25 19:17:45 +02:00
|
|
|
void clear () YY_NOEXCEPT
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
|
|
|
// User destructor.
|
2022-04-25 19:17:45 +02:00
|
|
|
symbol_kind_type yykind = this->kind ();
|
2020-10-21 13:54:51 -04:00
|
|
|
basic_symbol<Base>& yysym = *this;
|
|
|
|
(void) yysym;
|
2022-04-25 19:17:45 +02:00
|
|
|
switch (yykind)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
// Value type destructor.
|
|
|
|
switch (yykind)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_value: // value
|
|
|
|
case symbol_kind::S_map_value: // map_value
|
|
|
|
case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
|
|
|
|
case symbol_kind::S_socket_type: // socket_type
|
|
|
|
case symbol_kind::S_outbound_interface_value: // outbound_interface_value
|
|
|
|
case symbol_kind::S_db_type: // db_type
|
|
|
|
case symbol_kind::S_on_fail_mode: // on_fail_mode
|
|
|
|
case symbol_kind::S_hr_mode: // hr_mode
|
|
|
|
case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
|
2020-10-21 13:54:51 -04:00
|
|
|
value.template destroy< ElementPtr > ();
|
|
|
|
break;
|
2019-10-29 06:49:44 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_BOOLEAN: // "boolean"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.template destroy< bool > ();
|
|
|
|
break;
|
2019-10-29 06:49:44 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_FLOAT: // "floating point"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.template destroy< double > ();
|
|
|
|
break;
|
2019-10-29 06:49:44 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_INTEGER: // "integer"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.template destroy< int64_t > ();
|
|
|
|
break;
|
2019-10-29 06:49:44 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_STRING: // "constant string"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.template destroy< std::string > ();
|
|
|
|
break;
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
Base::clear ();
|
|
|
|
}
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// The user-facing name of this symbol.
|
|
|
|
std::string name () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return Dhcp4Parser::symbol_name (this->kind ());
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Backward compatibility (Bison 3.6).
|
|
|
|
symbol_kind_type type_get () const YY_NOEXCEPT;
|
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
/// Whether empty.
|
2020-10-21 13:54:51 -04:00
|
|
|
bool empty () const YY_NOEXCEPT;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
/// Destructive move, \a s is emptied into this.
|
|
|
|
void move (basic_symbol& s);
|
|
|
|
|
|
|
|
/// The semantic value.
|
2022-04-25 19:17:45 +02:00
|
|
|
value_type value;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
/// The location.
|
|
|
|
location_type location;
|
|
|
|
|
|
|
|
private:
|
2020-10-21 13:54:51 -04:00
|
|
|
#if YY_CPLUSPLUS < 201103L
|
2016-12-15 16:54:01 +01:00
|
|
|
/// Assignment operator.
|
2020-10-21 13:54:51 -04:00
|
|
|
basic_symbol& operator= (const basic_symbol& that);
|
|
|
|
#endif
|
2016-12-15 16:54:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/// Type access provider for token (enum) based symbols.
|
2022-04-25 19:17:45 +02:00
|
|
|
struct by_kind
|
2016-12-15 16:54:01 +01:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
/// The symbol kind as needed by the constructor.
|
|
|
|
typedef token_kind_type kind_type;
|
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
/// Default constructor.
|
2022-04-25 19:17:45 +02:00
|
|
|
by_kind () YY_NOEXCEPT;
|
2020-10-21 13:54:51 -04:00
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Move constructor.
|
2022-04-25 19:17:45 +02:00
|
|
|
by_kind (by_kind&& that) YY_NOEXCEPT;
|
2020-10-21 13:54:51 -04:00
|
|
|
#endif
|
2020-04-24 12:57:23 +00:00
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
/// Copy constructor.
|
2022-04-25 19:17:45 +02:00
|
|
|
by_kind (const by_kind& that) YY_NOEXCEPT;
|
2022-03-30 22:04:13 +00:00
|
|
|
|
2022-04-05 01:49:59 +03:00
|
|
|
/// Constructor from (external) token numbers.
|
2022-04-25 19:17:45 +02:00
|
|
|
by_kind (kind_type t) YY_NOEXCEPT;
|
|
|
|
|
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
/// Record that this symbol is empty.
|
2022-04-25 19:17:45 +02:00
|
|
|
void clear () YY_NOEXCEPT;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Steal the symbol kind from \a that.
|
|
|
|
void move (by_kind& that);
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
/// The (internal) type number (corresponding to \a type).
|
|
|
|
/// \a empty when empty.
|
2022-04-25 19:17:45 +02:00
|
|
|
symbol_kind_type kind () const YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// Backward compatibility (Bison 3.6).
|
|
|
|
symbol_kind_type type_get () const YY_NOEXCEPT;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// The symbol kind.
|
|
|
|
/// \a S_YYEMPTY when empty.
|
|
|
|
symbol_kind_type kind_;
|
2016-12-15 16:54:01 +01:00
|
|
|
};
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Backward compatibility for a private implementation detail (Bison 3.6).
|
|
|
|
typedef by_kind by_type;
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// "External" symbols: returned by the scanner.
|
2022-04-25 19:17:45 +02:00
|
|
|
struct symbol_type : basic_symbol<by_kind>
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
|
|
|
/// Superclass.
|
2022-04-25 19:17:45 +02:00
|
|
|
typedef basic_symbol<by_kind> super_type;
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Empty symbol.
|
2022-04-25 19:17:45 +02:00
|
|
|
symbol_type () YY_NOEXCEPT {}
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Constructor for valueless symbols, and symbols from each type.
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
symbol_type (int tok, location_type l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), std::move (l))
|
2020-10-21 13:54:51 -04:00
|
|
|
#else
|
|
|
|
symbol_type (int tok, const location_type& l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), l)
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
#if !defined _MSC_VER || defined __clang__
|
|
|
|
PARSER4__ASSERT (tok == token::TOKEN_END
|
|
|
|
|| (token::TOKEN_PARSER4_error <= tok && tok <= token::TOKEN_SUB_CONFIG_CONTROL));
|
2022-04-05 01:49:59 +03:00
|
|
|
#endif
|
2022-04-25 19:17:45 +02:00
|
|
|
}
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
symbol_type (int tok, bool v, location_type l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), std::move (v), std::move (l))
|
2020-10-21 13:54:51 -04:00
|
|
|
#else
|
|
|
|
symbol_type (int tok, const bool& v, const location_type& l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), v, l)
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
#if !defined _MSC_VER || defined __clang__
|
|
|
|
PARSER4__ASSERT (tok == token::TOKEN_BOOLEAN);
|
2022-04-05 01:49:59 +03:00
|
|
|
#endif
|
2022-04-25 19:17:45 +02:00
|
|
|
}
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
symbol_type (int tok, double v, location_type l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), std::move (v), std::move (l))
|
2020-10-21 13:54:51 -04:00
|
|
|
#else
|
|
|
|
symbol_type (int tok, const double& v, const location_type& l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), v, l)
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
#if !defined _MSC_VER || defined __clang__
|
|
|
|
PARSER4__ASSERT (tok == token::TOKEN_FLOAT);
|
2022-04-05 01:49:59 +03:00
|
|
|
#endif
|
2022-04-25 19:17:45 +02:00
|
|
|
}
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
symbol_type (int tok, int64_t v, location_type l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), std::move (v), std::move (l))
|
2020-10-21 13:54:51 -04:00
|
|
|
#else
|
|
|
|
symbol_type (int tok, const int64_t& v, const location_type& l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), v, l)
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
#if !defined _MSC_VER || defined __clang__
|
|
|
|
PARSER4__ASSERT (tok == token::TOKEN_INTEGER);
|
2022-04-05 01:49:59 +03:00
|
|
|
#endif
|
2022-04-25 19:17:45 +02:00
|
|
|
}
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
symbol_type (int tok, std::string v, location_type l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), std::move (v), std::move (l))
|
2020-10-21 13:54:51 -04:00
|
|
|
#else
|
|
|
|
symbol_type (int tok, const std::string& v, const location_type& l)
|
2022-04-25 19:17:45 +02:00
|
|
|
: super_type (token_kind_type (tok), v, l)
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
#if !defined _MSC_VER || defined __clang__
|
|
|
|
PARSER4__ASSERT (tok == token::TOKEN_STRING);
|
2022-04-05 01:49:59 +03:00
|
|
|
#endif
|
2022-04-25 19:17:45 +02:00
|
|
|
}
|
2020-10-21 13:54:51 -04:00
|
|
|
};
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Build a parser object.
|
|
|
|
Dhcp4Parser (isc::dhcp::Parser4Context& ctx_yyarg);
|
|
|
|
virtual ~Dhcp4Parser ();
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Non copyable.
|
|
|
|
Dhcp4Parser (const Dhcp4Parser&) = delete;
|
|
|
|
/// Non copyable.
|
|
|
|
Dhcp4Parser& operator= (const Dhcp4Parser&) = delete;
|
|
|
|
#endif
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Parse. An alias for parse ().
|
|
|
|
/// \returns 0 iff parsing succeeded.
|
|
|
|
int operator() ();
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Parse.
|
|
|
|
/// \returns 0 iff parsing succeeded.
|
|
|
|
virtual int parse ();
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
#if PARSER4_DEBUG
|
|
|
|
/// The current debugging stream.
|
|
|
|
std::ostream& debug_stream () const YY_ATTRIBUTE_PURE;
|
|
|
|
/// Set the current debugging stream.
|
|
|
|
void set_debug_stream (std::ostream &);
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Type for debugging levels.
|
|
|
|
typedef int debug_level_type;
|
|
|
|
/// The current debugging level.
|
|
|
|
debug_level_type debug_level () const YY_ATTRIBUTE_PURE;
|
|
|
|
/// Set the current debugging level.
|
|
|
|
void set_debug_level (debug_level_type l);
|
|
|
|
#endif
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Report a syntax error.
|
|
|
|
/// \param loc where the syntax error is found.
|
|
|
|
/// \param msg a description of the syntax error.
|
|
|
|
virtual void error (const location_type& loc, const std::string& msg);
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Report a syntax error.
|
|
|
|
void error (const syntax_error& err);
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// The user-facing name of the symbol whose (internal) number is
|
|
|
|
/// YYSYMBOL. No bounds checking.
|
|
|
|
static std::string symbol_name (symbol_kind_type yysymbol);
|
|
|
|
|
|
|
|
// Implementation of make_symbol for each token kind.
|
2020-10-21 13:54:51 -04:00
|
|
|
#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);
|
|
|
|
}
|
2020-04-24 12:57:23 +00:00
|
|
|
#endif
|
2022-04-25 19:17:45 +02:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PARSER4_error (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PARSER4_error, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PARSER4_error (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PARSER4_error, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PARSER4_UNDEF (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PARSER4_UNDEF, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PARSER4_UNDEF (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PARSER4_UNDEF, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COMMA (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_COMMA, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COMMA (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_COMMA, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COLON (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_COLON, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COLON (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_COLON, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LSQUARE_BRACKET (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_LSQUARE_BRACKET, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LSQUARE_BRACKET (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_LSQUARE_BRACKET, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RSQUARE_BRACKET (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RSQUARE_BRACKET, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RSQUARE_BRACKET (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RSQUARE_BRACKET, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LCURLY_BRACKET (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_LCURLY_BRACKET, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LCURLY_BRACKET (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_LCURLY_BRACKET, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RCURLY_BRACKET (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RCURLY_BRACKET, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RCURLY_BRACKET (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RCURLY_BRACKET, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_NULL_TYPE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_NULL_TYPE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_NULL_TYPE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_NULL_TYPE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DHCP4 (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DHCP4, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DHCP4 (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DHCP4, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONFIG_CONTROL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CONFIG_CONTROL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONFIG_CONTROL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CONFIG_CONTROL, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONFIG_DATABASES (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CONFIG_DATABASES, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONFIG_DATABASES (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CONFIG_DATABASES, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONFIG_FETCH_WAIT_TIME (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CONFIG_FETCH_WAIT_TIME, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONFIG_FETCH_WAIT_TIME (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CONFIG_FETCH_WAIT_TIME, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INTERFACES_CONFIG (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_INTERFACES_CONFIG, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INTERFACES_CONFIG (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_INTERFACES_CONFIG, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INTERFACES (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_INTERFACES, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INTERFACES (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_INTERFACES, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DHCP_SOCKET_TYPE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DHCP_SOCKET_TYPE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DHCP_SOCKET_TYPE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DHCP_SOCKET_TYPE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RAW (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RAW, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RAW (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RAW, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_UDP (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_UDP, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_UDP (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_UDP, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_OUTBOUND_INTERFACE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_OUTBOUND_INTERFACE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_OUTBOUND_INTERFACE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_OUTBOUND_INTERFACE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SAME_AS_INBOUND (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SAME_AS_INBOUND, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SAME_AS_INBOUND (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SAME_AS_INBOUND, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_USE_ROUTING (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_USE_ROUTING, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_USE_ROUTING (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_USE_ROUTING, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RE_DETECT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RE_DETECT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RE_DETECT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RE_DETECT, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-04-05 01:49:59 +03:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVICE_SOCKETS_REQUIRE_ALL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVICE_SOCKETS_REQUIRE_ALL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVICE_SOCKETS_REQUIRE_ALL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVICE_SOCKETS_REQUIRE_ALL, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVICE_SOCKETS_RETRY_WAIT_TIME (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVICE_SOCKETS_RETRY_WAIT_TIME, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVICE_SOCKETS_RETRY_WAIT_TIME (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVICE_SOCKETS_RETRY_WAIT_TIME, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVICE_SOCKETS_MAX_RETRIES (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVICE_SOCKETS_MAX_RETRIES, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVICE_SOCKETS_MAX_RETRIES (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVICE_SOCKETS_MAX_RETRIES, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#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
|
2022-10-15 23:00:33 +00:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_EXTENDED_INFO_CHECKS (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_EXTENDED_INFO_CHECKS, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_EXTENDED_INFO_CHECKS (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_EXTENDED_INFO_CHECKS, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#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_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_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
|
2021-03-26 17:06:38 +02:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ON_FAIL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_ON_FAIL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ON_FAIL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_ON_FAIL, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_STOP_RETRY_EXIT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_STOP_RETRY_EXIT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_STOP_RETRY_EXIT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_STOP_RETRY_EXIT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVE_RETRY_EXIT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVE_RETRY_EXIT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVE_RETRY_EXIT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVE_RETRY_EXIT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVE_RETRY_CONTINUE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVE_RETRY_CONTINUE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SERVE_RETRY_CONTINUE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SERVE_RETRY_CONTINUE, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#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
|
2021-12-22 13:10:06 +00:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_TRUST_ANCHOR (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_TRUST_ANCHOR, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_TRUST_ANCHOR (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_TRUST_ANCHOR, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CERT_FILE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CERT_FILE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CERT_FILE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CERT_FILE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_KEY_FILE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_KEY_FILE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_KEY_FILE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_KEY_FILE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CIPHER_LIST (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CIPHER_LIST, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CIPHER_LIST (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CIPHER_LIST, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_VALID_LIFETIME (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_VALID_LIFETIME, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_VALID_LIFETIME (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_VALID_LIFETIME, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MIN_VALID_LIFETIME (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_MIN_VALID_LIFETIME, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MIN_VALID_LIFETIME (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_MIN_VALID_LIFETIME, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MAX_VALID_LIFETIME (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_MAX_VALID_LIFETIME, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MAX_VALID_LIFETIME (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_MAX_VALID_LIFETIME, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RENEW_TIMER (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RENEW_TIMER, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RENEW_TIMER (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RENEW_TIMER, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_REBIND_TIMER (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_REBIND_TIMER, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_REBIND_TIMER (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_REBIND_TIMER, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CALCULATE_TEE_TIMES (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CALCULATE_TEE_TIMES, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CALCULATE_TEE_TIMES (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CALCULATE_TEE_TIMES, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_T1_PERCENT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_T1_PERCENT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_T1_PERCENT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_T1_PERCENT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_T2_PERCENT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_T2_PERCENT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_T2_PERCENT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_T2_PERCENT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CACHE_THRESHOLD (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CACHE_THRESHOLD, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CACHE_THRESHOLD (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CACHE_THRESHOLD, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CACHE_MAX_AGE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CACHE_MAX_AGE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CACHE_MAX_AGE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CACHE_MAX_AGE, 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_STATISTIC_DEFAULT_SAMPLE_COUNT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_STATISTIC_DEFAULT_SAMPLE_COUNT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_STATISTIC_DEFAULT_SAMPLE_AGE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_STATISTIC_DEFAULT_SAMPLE_AGE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_SEND_UPDATES (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_SEND_UPDATES, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_SEND_UPDATES (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_SEND_UPDATES, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_OVERRIDE_NO_UPDATE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_OVERRIDE_NO_UPDATE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_OVERRIDE_NO_UPDATE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_OVERRIDE_NO_UPDATE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_OVERRIDE_CLIENT_UPDATE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_OVERRIDE_CLIENT_UPDATE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_REPLACE_CLIENT_NAME (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_REPLACE_CLIENT_NAME, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_REPLACE_CLIENT_NAME (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_REPLACE_CLIENT_NAME, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_GENERATED_PREFIX (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_GENERATED_PREFIX, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_GENERATED_PREFIX (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_GENERATED_PREFIX, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_QUALIFYING_SUFFIX (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_QUALIFYING_SUFFIX, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_QUALIFYING_SUFFIX (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_QUALIFYING_SUFFIX, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_UPDATE_ON_RENEW (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_UPDATE_ON_RENEW, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_UPDATE_ON_RENEW (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_UPDATE_ON_RENEW, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-29 10:51:24 +02:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_USE_CONFLICT_RESOLUTION (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_USE_CONFLICT_RESOLUTION, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DDNS_USE_CONFLICT_RESOLUTION (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DDNS_USE_CONFLICT_RESOLUTION, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_STORE_EXTENDED_INFO (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_STORE_EXTENDED_INFO, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_STORE_EXTENDED_INFO (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_STORE_EXTENDED_INFO, 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
|
2021-09-02 15:20:09 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PARKED_PACKET_LIMIT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PARKED_PACKET_LIMIT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PARKED_PACKET_LIMIT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PARKED_PACKET_LIMIT, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#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
|
2020-10-15 17:09:14 +00:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_DISABLED (location_type l)
|
2020-10-15 17:09:14 +00:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_DISABLED, std::move (l));
|
2020-10-15 17:09:14 +00:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_DISABLED (const location_type& l)
|
2020-10-15 17:09:14 +00:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_DISABLED, l);
|
2020-10-15 17:09:14 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_OUT_OF_POOL (location_type l)
|
2020-10-15 17:09:14 +00:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_OUT_OF_POOL, std::move (l));
|
2020-10-15 17:09:14 +00:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_OUT_OF_POOL (const location_type& l)
|
2020-10-15 17:09:14 +00:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_OUT_OF_POOL, l);
|
2020-10-15 17:09:14 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_GLOBAL (location_type l)
|
2020-10-15 17:09:14 +00:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_GLOBAL, std::move (l));
|
2020-10-15 17:09:14 +00:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_GLOBAL (const location_type& l)
|
2020-10-15 17:09:14 +00:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_GLOBAL, l);
|
2020-10-15 17:09:14 +00:00
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_ALL (location_type l)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_ALL, std::move (l));
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_ALL (const location_type& l)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_ALL, l);
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_RESERVATIONS_GLOBAL (location_type l)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_RESERVATIONS_GLOBAL, std::move (l));
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_RESERVATIONS_GLOBAL (const location_type& l)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_RESERVATIONS_GLOBAL, l);
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_RESERVATIONS_IN_SUBNET (location_type l)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_RESERVATIONS_IN_SUBNET, std::move (l));
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_RESERVATIONS_IN_SUBNET (const location_type& l)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_RESERVATIONS_IN_SUBNET, l);
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_RESERVATIONS_OUT_OF_POOL (location_type l)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_RESERVATIONS_OUT_OF_POOL, std::move (l));
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2020-11-12 00:07:45 +02:00
|
|
|
make_RESERVATIONS_OUT_OF_POOL (const location_type& l)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2020-11-12 00:07:45 +02:00
|
|
|
return symbol_type (token::TOKEN_RESERVATIONS_OUT_OF_POOL, l);
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
#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_DHCP_MULTI_THREADING (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DHCP_MULTI_THREADING, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DHCP_MULTI_THREADING (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DHCP_MULTI_THREADING, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ENABLE_MULTI_THREADING (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_ENABLE_MULTI_THREADING, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ENABLE_MULTI_THREADING (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_ENABLE_MULTI_THREADING, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_THREAD_POOL_SIZE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_THREAD_POOL_SIZE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_THREAD_POOL_SIZE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_THREAD_POOL_SIZE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PACKET_QUEUE_SIZE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PACKET_QUEUE_SIZE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PACKET_QUEUE_SIZE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PACKET_QUEUE_SIZE, 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_ENABLE_QUEUE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_ENABLE_QUEUE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ENABLE_QUEUE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_ENABLE_QUEUE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_QUEUE_TYPE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_QUEUE_TYPE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_QUEUE_TYPE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_QUEUE_TYPE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CAPACITY (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CAPACITY, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CAPACITY (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_CAPACITY, 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
|
2022-02-04 20:39:59 +00:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_EARLY_GLOBAL_RESERVATIONS_LOOKUP (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_EARLY_GLOBAL_RESERVATIONS_LOOKUP (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IP_RESERVATIONS_UNIQUE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_IP_RESERVATIONS_UNIQUE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IP_RESERVATIONS_UNIQUE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_IP_RESERVATIONS_UNIQUE, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-02-04 17:18:49 +02:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RESERVATIONS_LOOKUP_FIRST (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RESERVATIONS_LOOKUP_FIRST, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RESERVATIONS_LOOKUP_FIRST (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_RESERVATIONS_LOOKUP_FIRST, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LOGGERS (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_LOGGERS, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LOGGERS (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_LOGGERS, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_OUTPUT_OPTIONS (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_OUTPUT_OPTIONS, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_OUTPUT_OPTIONS (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_OUTPUT_OPTIONS, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_OUTPUT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_OUTPUT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_OUTPUT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_OUTPUT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DEBUGLEVEL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DEBUGLEVEL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DEBUGLEVEL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_DEBUGLEVEL, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SEVERITY (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SEVERITY, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SEVERITY (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_SEVERITY, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FLUSH (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_FLUSH, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FLUSH (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_FLUSH, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MAXSIZE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_MAXSIZE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MAXSIZE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_MAXSIZE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MAXVER (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_MAXVER, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MAXVER (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_MAXVER, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PATTERN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PATTERN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PATTERN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_PATTERN, l);
|
|
|
|
}
|
|
|
|
#endif
|
2021-05-14 14:40:42 +03:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COMPATIBILITY (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_COMPATIBILITY, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COMPATIBILITY (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_COMPATIBILITY, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LENIENT_OPTION_PARSING (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_LENIENT_OPTION_PARSING, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LENIENT_OPTION_PARSING (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_LENIENT_OPTION_PARSING, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-09-26 20:15:26 -07:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IGNORE_RAI_LINK_SEL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_IGNORE_RAI_LINK_SEL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IGNORE_RAI_LINK_SEL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TOKEN_IGNORE_RAI_LINK_SEL, l);
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
#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_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);
|
|
|
|
}
|
2019-10-29 06:49:44 +01:00
|
|
|
#endif
|
2019-10-03 15:11:07 -04:00
|
|
|
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
class context
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
context (const Dhcp4Parser& yyparser, const symbol_type& yyla);
|
|
|
|
const symbol_type& lookahead () const YY_NOEXCEPT { return yyla_; }
|
|
|
|
symbol_kind_type token () const YY_NOEXCEPT { return yyla_.kind (); }
|
|
|
|
const location_type& location () const YY_NOEXCEPT { return yyla_.location; }
|
|
|
|
|
|
|
|
/// Put in YYARG at most YYARGN of the expected tokens, and return the
|
|
|
|
/// number of tokens stored in YYARG. If YYARG is null, return the
|
|
|
|
/// number of expected tokens (guaranteed to be less than YYNTOKENS).
|
|
|
|
int expected_tokens (symbol_kind_type yyarg[], int yyargn) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
const Dhcp4Parser& yyparser_;
|
|
|
|
const symbol_type& yyla_;
|
|
|
|
};
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
private:
|
2022-04-25 19:17:45 +02:00
|
|
|
#if YY_CPLUSPLUS < 201103L
|
|
|
|
/// Non copyable.
|
2020-10-21 13:54:51 -04:00
|
|
|
Dhcp4Parser (const Dhcp4Parser&);
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Non copyable.
|
2020-10-21 13:54:51 -04:00
|
|
|
Dhcp4Parser& operator= (const Dhcp4Parser&);
|
2022-04-25 19:17:45 +02:00
|
|
|
#endif
|
|
|
|
|
2021-03-26 17:06:38 +02:00
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
/// Stored state numbers (used for stacks).
|
|
|
|
typedef short state_type;
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// The arguments of the error message.
|
|
|
|
int yy_syntax_error_arguments_ (const context& yyctx,
|
|
|
|
symbol_kind_type yyarg[], int yyargn) const;
|
2022-04-05 01:49:59 +03:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Generate an error message.
|
|
|
|
/// \param yyctx the context in which the error occurred.
|
|
|
|
virtual std::string yysyntax_error_ (const context& yyctx) const;
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Compute post-reduction state.
|
|
|
|
/// \param yystate the current state
|
|
|
|
/// \param yysym the nonterminal to push on the stack
|
2021-09-26 23:29:37 -07:00
|
|
|
static state_type yy_lr_goto_state_ (state_type yystate, int yysym);
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Whether the given \c yypact_ value indicates a defaulted state.
|
|
|
|
/// \param yyvalue the value to check
|
2022-04-25 19:17:45 +02:00
|
|
|
static bool yy_pact_value_is_default_ (int yyvalue) YY_NOEXCEPT;
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Whether the given \c yytable_ value indicates a syntax error.
|
|
|
|
/// \param yyvalue the value to check
|
2022-04-25 19:17:45 +02:00
|
|
|
static bool yy_table_value_is_error_ (int yyvalue) YY_NOEXCEPT;
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
static const short yypact_ninf_;
|
|
|
|
static const signed char yytable_ninf_;
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Convert a scanner token kind \a t to a symbol kind.
|
|
|
|
/// In theory \a t should be a token_kind_type, but character literals
|
|
|
|
/// are valid, yet not members of the token_kind_type enum.
|
|
|
|
static symbol_kind_type yytranslate_ (int t) YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// Convert the symbol name \a n to a form suitable for a diagnostic.
|
|
|
|
static std::string yytnamerr_ (const char *yystr);
|
|
|
|
|
|
|
|
/// For a symbol, its name in clear.
|
|
|
|
static const char* const yytname_[];
|
|
|
|
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
// Tables.
|
|
|
|
// YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
|
|
|
|
// STATE-NUM.
|
|
|
|
static const short yypact_[];
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
// 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 short yydefact_[];
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
// YYPGOTO[NTERM-NUM].
|
|
|
|
static const short yypgoto_[];
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
// YYDEFGOTO[NTERM-NUM].
|
|
|
|
static const short yydefgoto_[];
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
// 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 short yytable_[];
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
static const short yycheck_[];
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
// YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
|
|
|
|
// state STATE-NUM.
|
2021-09-26 23:29:37 -07:00
|
|
|
static const short yystos_[];
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
// YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM.
|
2021-09-26 23:29:37 -07:00
|
|
|
static const short yyr1_[];
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
// YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM.
|
2021-09-26 23:29:37 -07:00
|
|
|
static const signed char yyr2_[];
|
2020-10-20 08:35:51 -04:00
|
|
|
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
#if PARSER4_DEBUG
|
2021-09-26 23:29:37 -07:00
|
|
|
// YYRLINE[YYN] -- Source line where rule number YYN was defined.
|
|
|
|
static const short yyrline_[];
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Report on the debug stream that the rule \a r is going to be reduced.
|
2022-04-25 19:17:45 +02:00
|
|
|
virtual void yy_reduce_print_ (int r) const;
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Print the state stack on the debug stream.
|
2022-04-25 19:17:45 +02:00
|
|
|
virtual void yy_stack_print_ () const;
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Debugging level.
|
|
|
|
int yydebug_;
|
|
|
|
/// Debug stream.
|
|
|
|
std::ostream* yycdebug_;
|
2020-10-20 08:35:51 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// \brief Display a symbol kind, value and location.
|
2020-10-21 13:54:51 -04:00
|
|
|
/// \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
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// \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;
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
private:
|
|
|
|
/// Type access provider for state based symbols.
|
|
|
|
struct by_state
|
|
|
|
{
|
|
|
|
/// Default constructor.
|
|
|
|
by_state () YY_NOEXCEPT;
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// The symbol kind as needed by the constructor.
|
2020-10-21 13:54:51 -04:00
|
|
|
typedef state_type kind_type;
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Constructor.
|
|
|
|
by_state (kind_type s) YY_NOEXCEPT;
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Copy constructor.
|
|
|
|
by_state (const by_state& that) YY_NOEXCEPT;
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Record that this symbol is empty.
|
|
|
|
void clear () YY_NOEXCEPT;
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Steal the symbol kind from \a that.
|
2020-10-21 13:54:51 -04:00
|
|
|
void move (by_state& that);
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
/// The symbol kind (corresponding to \a state).
|
|
|
|
/// \a symbol_kind::S_YYEMPTY when empty.
|
|
|
|
symbol_kind_type kind () const YY_NOEXCEPT;
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// The state number used to denote an empty symbol.
|
2021-09-26 23:29:37 -07:00
|
|
|
/// We use the initial state, as it does not have a value.
|
|
|
|
enum { empty_state = 0 };
|
2020-04-15 16:36:29 +03:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// The state.
|
|
|
|
/// \a empty when empty.
|
|
|
|
state_type state;
|
|
|
|
};
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// "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);
|
2021-09-26 23:29:37 -07:00
|
|
|
|
|
|
|
/// Assignment, needed by push_back by other implementations.
|
|
|
|
/// Needed by some other old implementations.
|
|
|
|
stack_symbol_type& operator= (const stack_symbol_type& that);
|
2020-10-21 13:54:51 -04:00
|
|
|
#endif
|
|
|
|
};
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// A stack with random access from its top.
|
|
|
|
template <typename T, typename S = std::vector<T> >
|
|
|
|
class stack
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// Hide our reversed order.
|
2022-04-25 19:17:45 +02:00
|
|
|
typedef typename S::iterator iterator;
|
|
|
|
typedef typename S::const_iterator const_iterator;
|
2020-10-21 13:54:51 -04:00
|
|
|
typedef typename S::size_type size_type;
|
2021-09-26 23:29:37 -07:00
|
|
|
typedef typename std::ptrdiff_t index_type;
|
2020-10-21 13:54:51 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
stack (size_type n = 200) YY_NOEXCEPT
|
2020-10-21 13:54:51 -04:00
|
|
|
: seq_ (n)
|
|
|
|
{}
|
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Non copyable.
|
|
|
|
stack (const stack&) = delete;
|
|
|
|
/// Non copyable.
|
|
|
|
stack& operator= (const stack&) = delete;
|
|
|
|
#endif
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Random access.
|
|
|
|
///
|
|
|
|
/// Index 0 returns the topmost element.
|
|
|
|
const T&
|
2021-09-26 23:29:37 -07:00
|
|
|
operator[] (index_type i) const
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2021-09-26 23:29:37 -07:00
|
|
|
return seq_[size_type (size () - 1 - i)];
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/// Random access.
|
|
|
|
///
|
|
|
|
/// Index 0 returns the topmost element.
|
2021-09-26 23:29:37 -07:00
|
|
|
T&
|
|
|
|
operator[] (index_type i)
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2021-09-26 23:29:37 -07:00
|
|
|
return seq_[size_type (size () - 1 - i)];
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/// 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);
|
|
|
|
}
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Pop elements from the stack.
|
|
|
|
void
|
2021-09-26 23:29:37 -07:00
|
|
|
pop (std::ptrdiff_t n = 1) YY_NOEXCEPT
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
|
|
|
for (; 0 < n; --n)
|
|
|
|
seq_.pop_back ();
|
|
|
|
}
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Pop all elements from the stack.
|
|
|
|
void
|
|
|
|
clear () YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
seq_.clear ();
|
|
|
|
}
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Number of elements on the stack.
|
2021-09-26 23:29:37 -07:00
|
|
|
index_type
|
2020-10-21 13:54:51 -04:00
|
|
|
size () const YY_NOEXCEPT
|
|
|
|
{
|
2021-09-26 23:29:37 -07:00
|
|
|
return index_type (seq_.size ());
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
2020-03-30 14:26:17 +00:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Iterator on top of the stack (going downwards).
|
|
|
|
const_iterator
|
|
|
|
begin () const YY_NOEXCEPT
|
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
return seq_.begin ();
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Bottom of the stack.
|
|
|
|
const_iterator
|
|
|
|
end () const YY_NOEXCEPT
|
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
return seq_.end ();
|
2020-10-21 13:54:51 -04:00
|
|
|
}
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Present a slice of the top of a stack.
|
|
|
|
class slice
|
|
|
|
{
|
|
|
|
public:
|
2022-04-25 19:17:45 +02:00
|
|
|
slice (const stack& stack, index_type range) YY_NOEXCEPT
|
2020-10-21 13:54:51 -04:00
|
|
|
: stack_ (stack)
|
|
|
|
, range_ (range)
|
|
|
|
{}
|
|
|
|
|
|
|
|
const T&
|
2021-09-26 23:29:37 -07:00
|
|
|
operator[] (index_type i) const
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
|
|
|
return stack_[range_ - i];
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
const stack& stack_;
|
2021-09-26 23:29:37 -07:00
|
|
|
index_type range_;
|
2020-10-21 13:54:51 -04:00
|
|
|
};
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
private:
|
2022-04-25 19:17:45 +02:00
|
|
|
#if YY_CPLUSPLUS < 201103L
|
|
|
|
/// Non copyable.
|
2020-10-21 13:54:51 -04:00
|
|
|
stack (const stack&);
|
2022-04-25 19:17:45 +02:00
|
|
|
/// Non copyable.
|
2020-10-21 13:54:51 -04:00
|
|
|
stack& operator= (const stack&);
|
2022-04-25 19:17:45 +02:00
|
|
|
#endif
|
2020-10-21 13:54:51 -04:00
|
|
|
/// The wrapped container.
|
|
|
|
S seq_;
|
|
|
|
};
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2019-08-16 18:03:29 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Stack type.
|
|
|
|
typedef stack<stack_symbol_type> stack_type;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// The stack.
|
|
|
|
stack_type yystack_;
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// 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);
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// 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);
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Pop \a n symbols from the stack.
|
2022-04-25 19:17:45 +02:00
|
|
|
void yypop_ (int n = 1) YY_NOEXCEPT;
|
2019-08-19 12:47:31 +00:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
/// Constants.
|
|
|
|
enum
|
|
|
|
{
|
2022-10-15 23:00:33 +00:00
|
|
|
yylast_ = 1271, ///< Last index in yytable_.
|
|
|
|
yynnts_ = 425, ///< Number of nonterminal symbols.
|
2022-04-25 19:17:45 +02:00
|
|
|
yyfinal_ = 28 ///< Termination state number.
|
2020-10-21 13:54:51 -04:00
|
|
|
};
|
2019-01-09 11:14:01 -05:00
|
|
|
|
2019-10-29 06:49:44 +01:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
// User arguments.
|
|
|
|
isc::dhcp::Parser4Context& ctx;
|
2022-04-25 19:17:45 +02:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
};
|
2019-01-09 11:14:01 -05:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
inline
|
2022-04-25 19:17:45 +02:00
|
|
|
Dhcp4Parser::symbol_kind_type
|
|
|
|
Dhcp4Parser::yytranslate_ (int t) YY_NOEXCEPT
|
2019-10-03 15:11:07 -04:00
|
|
|
{
|
2020-10-21 13:54:51 -04:00
|
|
|
// YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to
|
|
|
|
// TOKEN-NUM as returned by yylex.
|
|
|
|
static
|
2022-04-25 19:17:45 +02:00
|
|
|
const unsigned char
|
2020-10-21 13:54:51 -04:00
|
|
|
translate_table[] =
|
|
|
|
{
|
|
|
|
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
|
|
|
|
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
|
|
|
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
|
|
|
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
|
|
|
|
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
|
|
|
|
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
|
|
|
|
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
|
|
|
|
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
|
|
|
|
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
|
|
|
|
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
|
|
|
|
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
|
|
|
|
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
|
|
|
|
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
|
|
|
|
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
|
|
|
|
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
|
|
|
|
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
|
|
|
|
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
|
|
|
|
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
|
|
|
|
175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
|
2020-10-15 17:09:14 +00:00
|
|
|
185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
|
2022-04-05 01:49:59 +03:00
|
|
|
195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
|
2022-10-15 23:00:33 +00:00
|
|
|
205, 206, 207
|
2020-10-21 13:54:51 -04:00
|
|
|
};
|
2022-04-25 19:17:45 +02:00
|
|
|
// Last valid token kind.
|
2022-10-15 23:00:33 +00:00
|
|
|
const int code_max = 462;
|
2019-01-09 11:14:01 -05:00
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
if (t <= 0)
|
2022-04-25 19:17:45 +02:00
|
|
|
return symbol_kind::S_YYEOF;
|
|
|
|
else if (t <= code_max)
|
|
|
|
return static_cast <symbol_kind_type> (translate_table[t]);
|
2020-10-21 13:54:51 -04:00
|
|
|
else
|
2022-04-25 19:17:45 +02:00
|
|
|
return symbol_kind::S_YYUNDEF;
|
2019-10-03 15:11:07 -04:00
|
|
|
}
|
2019-01-09 11:14:01 -05:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
// basic_symbol.
|
|
|
|
template <typename Base>
|
|
|
|
Dhcp4Parser::basic_symbol<Base>::basic_symbol (const basic_symbol& that)
|
|
|
|
: Base (that)
|
|
|
|
, value ()
|
|
|
|
, location (that.location)
|
2019-10-03 15:11:07 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
switch (this->kind ())
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_value: // value
|
|
|
|
case symbol_kind::S_map_value: // map_value
|
|
|
|
case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
|
|
|
|
case symbol_kind::S_socket_type: // socket_type
|
|
|
|
case symbol_kind::S_outbound_interface_value: // outbound_interface_value
|
|
|
|
case symbol_kind::S_db_type: // db_type
|
|
|
|
case symbol_kind::S_on_fail_mode: // on_fail_mode
|
|
|
|
case symbol_kind::S_hr_mode: // hr_mode
|
|
|
|
case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
|
2020-10-21 13:54:51 -04:00
|
|
|
value.copy< ElementPtr > (YY_MOVE (that.value));
|
|
|
|
break;
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_BOOLEAN: // "boolean"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.copy< bool > (YY_MOVE (that.value));
|
|
|
|
break;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_FLOAT: // "floating point"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.copy< double > (YY_MOVE (that.value));
|
|
|
|
break;
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_INTEGER: // "integer"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.copy< int64_t > (YY_MOVE (that.value));
|
|
|
|
break;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_STRING: // "constant string"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.copy< std::string > (YY_MOVE (that.value));
|
|
|
|
break;
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2019-10-03 15:11:07 -04:00
|
|
|
}
|
2019-08-09 10:03:07 -04:00
|
|
|
|
|
|
|
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
|
|
|
|
template <typename Base>
|
|
|
|
Dhcp4Parser::symbol_kind_type
|
|
|
|
Dhcp4Parser::basic_symbol<Base>::type_get () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return this->kind ();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
template <typename Base>
|
|
|
|
bool
|
|
|
|
Dhcp4Parser::basic_symbol<Base>::empty () const YY_NOEXCEPT
|
2019-08-09 10:03:07 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
return this->kind () == symbol_kind::S_YYEMPTY;
|
2019-10-03 15:11:07 -04:00
|
|
|
}
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
template <typename Base>
|
|
|
|
void
|
|
|
|
Dhcp4Parser::basic_symbol<Base>::move (basic_symbol& s)
|
2019-10-03 15:11:07 -04:00
|
|
|
{
|
2020-10-21 13:54:51 -04:00
|
|
|
super_type::move (s);
|
2022-04-25 19:17:45 +02:00
|
|
|
switch (this->kind ())
|
2020-10-21 13:54:51 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_value: // value
|
|
|
|
case symbol_kind::S_map_value: // map_value
|
|
|
|
case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
|
|
|
|
case symbol_kind::S_socket_type: // socket_type
|
|
|
|
case symbol_kind::S_outbound_interface_value: // outbound_interface_value
|
|
|
|
case symbol_kind::S_db_type: // db_type
|
|
|
|
case symbol_kind::S_on_fail_mode: // on_fail_mode
|
|
|
|
case symbol_kind::S_hr_mode: // hr_mode
|
|
|
|
case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
|
2020-10-21 13:54:51 -04:00
|
|
|
value.move< ElementPtr > (YY_MOVE (s.value));
|
|
|
|
break;
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_BOOLEAN: // "boolean"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.move< bool > (YY_MOVE (s.value));
|
|
|
|
break;
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_FLOAT: // "floating point"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.move< double > (YY_MOVE (s.value));
|
|
|
|
break;
|
2019-01-10 14:47:23 +00:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_INTEGER: // "integer"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.move< int64_t > (YY_MOVE (s.value));
|
|
|
|
break;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
case symbol_kind::S_STRING: // "constant string"
|
2020-10-21 13:54:51 -04:00
|
|
|
value.move< std::string > (YY_MOVE (s.value));
|
|
|
|
break;
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2016-12-15 16:54:01 +01:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
location = YY_MOVE (s.location);
|
2019-10-03 15:11:07 -04:00
|
|
|
}
|
2019-01-10 14:47:23 +00:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
// by_kind.
|
2020-10-21 13:54:51 -04:00
|
|
|
inline
|
2022-04-25 19:17:45 +02:00
|
|
|
Dhcp4Parser::by_kind::by_kind () YY_NOEXCEPT
|
|
|
|
: kind_ (symbol_kind::S_YYEMPTY)
|
2020-10-21 13:54:51 -04:00
|
|
|
{}
|
2019-01-10 14:47:23 +00:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
inline
|
2022-04-25 19:17:45 +02:00
|
|
|
Dhcp4Parser::by_kind::by_kind (by_kind&& that) YY_NOEXCEPT
|
|
|
|
: kind_ (that.kind_)
|
2019-10-03 15:11:07 -04:00
|
|
|
{
|
2020-10-21 13:54:51 -04:00
|
|
|
that.clear ();
|
2019-10-03 15:11:07 -04:00
|
|
|
}
|
2020-10-21 13:54:51 -04:00
|
|
|
#endif
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
inline
|
2022-04-25 19:17:45 +02:00
|
|
|
Dhcp4Parser::by_kind::by_kind (const by_kind& that) YY_NOEXCEPT
|
|
|
|
: kind_ (that.kind_)
|
2020-10-21 13:54:51 -04:00
|
|
|
{}
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
inline
|
2022-04-25 19:17:45 +02:00
|
|
|
Dhcp4Parser::by_kind::by_kind (token_kind_type t) YY_NOEXCEPT
|
|
|
|
: kind_ (yytranslate_ (t))
|
2020-10-21 13:54:51 -04:00
|
|
|
{}
|
2019-08-09 10:03:07 -04:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
inline
|
|
|
|
void
|
2022-04-25 19:17:45 +02:00
|
|
|
Dhcp4Parser::by_kind::clear () YY_NOEXCEPT
|
2019-08-09 10:03:07 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
kind_ = symbol_kind::S_YYEMPTY;
|
2019-08-09 10:03:07 -04:00
|
|
|
}
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
inline
|
|
|
|
void
|
2022-04-25 19:17:45 +02:00
|
|
|
Dhcp4Parser::by_kind::move (by_kind& that)
|
2019-08-09 10:03:07 -04:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
kind_ = that.kind_;
|
2020-10-21 13:54:51 -04:00
|
|
|
that.clear ();
|
2019-08-09 10:03:07 -04:00
|
|
|
}
|
|
|
|
|
2020-10-21 13:54:51 -04:00
|
|
|
inline
|
2022-04-25 19:17:45 +02:00
|
|
|
Dhcp4Parser::symbol_kind_type
|
|
|
|
Dhcp4Parser::by_kind::kind () const YY_NOEXCEPT
|
2021-03-29 21:53:47 +03:00
|
|
|
{
|
2022-04-25 19:17:45 +02:00
|
|
|
return kind_;
|
2019-08-09 10:03:07 -04:00
|
|
|
}
|
2019-08-14 11:36:46 +02:00
|
|
|
|
2022-04-25 19:17:45 +02:00
|
|
|
|
|
|
|
inline
|
|
|
|
Dhcp4Parser::symbol_kind_type
|
|
|
|
Dhcp4Parser::by_kind::type_get () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return this->kind ();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-09-26 23:29:37 -07:00
|
|
|
#line 14 "dhcp4_parser.yy"
|
2020-04-15 16:36:29 +03:00
|
|
|
} } // isc::dhcp
|
2022-10-15 23:00:33 +00:00
|
|
|
#line 5458 "dhcp4_parser.h"
|
2019-10-03 15:11:07 -04:00
|
|
|
|
2016-12-15 16:54:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // !YY_PARSER4_DHCP4_PARSER_H_INCLUDED
|