45#ifndef YY_EVAL_PARSER_H_INCLUDED
46# define YY_EVAL_PARSER_H_INCLUDED
54#include <boost/lexical_cast.hpp>
68#if defined __cplusplus
69# define YY_CPLUSPLUS __cplusplus
71# define YY_CPLUSPLUS 199711L
75#if 201103L <= YY_CPLUSPLUS
76# define YY_MOVE std::move
77# define YY_MOVE_OR_COPY move
78# define YY_MOVE_REF(Type) Type&&
79# define YY_RVREF(Type) Type&&
80# define YY_COPY(Type) Type
83# define YY_MOVE_OR_COPY copy
84# define YY_MOVE_REF(Type) Type&
85# define YY_RVREF(Type) const Type&
86# define YY_COPY(Type) const Type&
90#if 201103L <= YY_CPLUSPLUS
91# define YY_NOEXCEPT noexcept
95# define YY_NOTHROW throw ()
99#if 201703 <= YY_CPLUSPLUS
100# define YY_CONSTEXPR constexpr
104# include "location.hh"
108# define EVAL_ASSERT assert
112#ifndef YY_ATTRIBUTE_PURE
113# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
114# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
116# define YY_ATTRIBUTE_PURE
120#ifndef YY_ATTRIBUTE_UNUSED
121# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
122# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
124# define YY_ATTRIBUTE_UNUSED
129#if ! defined lint || defined __GNUC__
130# define YY_USE(E) ((void) (E))
136#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
137# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
138# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
139 _Pragma ("GCC diagnostic push") \
140 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
142# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
143 _Pragma ("GCC diagnostic push") \
144 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
145 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
147# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
148 _Pragma ("GCC diagnostic pop")
150# define YY_INITIAL_VALUE(Value) Value
152#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
153# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
154# define YY_IGNORE_MAYBE_UNINITIALIZED_END
156#ifndef YY_INITIAL_VALUE
157# define YY_INITIAL_VALUE(Value)
160#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
161# define YY_IGNORE_USELESS_CAST_BEGIN \
162 _Pragma ("GCC diagnostic push") \
163 _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
164# define YY_IGNORE_USELESS_CAST_END \
165 _Pragma ("GCC diagnostic pop")
167#ifndef YY_IGNORE_USELESS_CAST_BEGIN
168# define YY_IGNORE_USELESS_CAST_BEGIN
169# define YY_IGNORE_USELESS_CAST_END
174# define YY_CAST(Type, Val) static_cast<Type> (Val)
175# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
177# define YY_CAST(Type, Val) ((Type) (Val))
178# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
182# if defined __cplusplus
183# if 201103L <= __cplusplus
184# define YY_NULLPTR nullptr
189# define YY_NULLPTR ((void*)0)
207namespace isc {
namespace eval {
219# pragma GCC message "bison: do not #define EVALSTYPE in C++, use %define api.value.type"
237 , yytypeid_ (YY_NULLPTR)
241 template <
typename T>
243 : yytypeid_ (&typeid (T))
246 new (yyas_<T> ()) T (
YY_MOVE (t));
249#if 201103L <= YY_CPLUSPLUS
262# if 201103L <= YY_CPLUSPLUS
264 template <
typename T,
typename... U>
270 yytypeid_ = &
typeid (T);
271 return *
new (yyas_<T> ()) T (std::forward <U>(u)...);
275 template <
typename T>
281 yytypeid_ = &
typeid (T);
282 return *
new (yyas_<T> ()) T ();
286 template <
typename T>
292 yytypeid_ = &
typeid (T);
293 return *
new (yyas_<T> ()) T (t);
299 template <
typename T>
303 return emplace<T> ();
308 template <
typename T>
312 return emplace<T> (t);
316 template <
typename T>
327 template <
typename T>
345 template <
typename T>
351 std::swap (as<T> (), that.as<T> ());
357 template <
typename T>
361# if 201103L <= YY_CPLUSPLUS
362 emplace<T> (std::move (that.
as<T> ()));
370# if 201103L <= YY_CPLUSPLUS
372 template <
typename T>
376 emplace<T> (std::move (that.as<T> ()));
382 template <
typename T>
386 emplace<T> (that.
as<T> ());
390 template <
typename T>
395 yytypeid_ = YY_NULLPTR;
399#if YY_CPLUSPLUS < 201103L
407 template <
typename T>
412 return static_cast<T*
> (yyp);
416 template <
typename T>
421 return static_cast<const T*
> (yyp);
443 char dummy6[
sizeof (int8_t)];
450 char dummy7[
sizeof (std::string)];
454 char dummy8[
sizeof (uint16_t)];
458 char dummy9[
sizeof (uint32_t)];
462 enum { size =
sizeof (union_type) };
474 const std::type_info *yytypeid_;
488 : std::runtime_error (m)
493 : std::runtime_error (s.what ())
507 TOKEN_EVALEMPTY = -2,
509 TOKEN_EVALerror = 256,
510 TOKEN_EVALUNDEF = 257,
521 TOKEN_PEERADDR = 268,
522 TOKEN_LINKADDR = 269,
523 TOKEN_LBRACKET = 270,
524 TOKEN_RBRACKET = 271,
542 TOKEN_SUBSTRING = 289,
548 TOKEN_TOHEXSTRING = 295,
549 TOKEN_ADDRTOTEXT = 296,
550 TOKEN_INT8TOTEXT = 297,
551 TOKEN_INT16TOTEXT = 298,
552 TOKEN_INT32TOTEXT = 299,
553 TOKEN_UINT8TOTEXT = 300,
554 TOKEN_UINT16TOTEXT = 301,
555 TOKEN_UINT32TOTEXT = 302,
559 TOKEN_VENDOR_CLASS = 306,
563 TOKEN_ENTERPRISE = 310,
564 TOKEN_TOPLEVEL_BOOL = 311,
565 TOKEN_TOPLEVEL_STRING = 312,
568 TOKEN_HEXSTRING = 315,
569 TOKEN_OPTION_NAME = 316,
570 TOKEN_IP_ADDRESS = 317
645 S_TOPLEVEL_BOOL = 56,
646 S_TOPLEVEL_STRING = 57,
659 S_sub_option_code = 70,
660 S_option_repr_type = 71,
663 S_enterprise_id = 74,
684 template <
typename Base>
696#if 201103L <= YY_CPLUSPLUS
699 : Base (std::move (that))
703 switch (this->kind ())
726 value.move< int8_t > (std::move (that.value));
734 value.move< std::string > (std::move (that.value));
739 value.move< uint16_t > (std::move (that.value));
744 value.move< uint32_t > (std::move (that.value));
755 basic_symbol (
const basic_symbol& that);
758#if 201103L <= YY_CPLUSPLUS
770#if 201103L <= YY_CPLUSPLUS
773 , value (std::move (v))
784#if 201103L <= YY_CPLUSPLUS
787 , value (std::move (v))
798#if 201103L <= YY_CPLUSPLUS
801 , value (std::move (v))
812#if 201103L <= YY_CPLUSPLUS
815 , value (std::move (v))
826#if 201103L <= YY_CPLUSPLUS
829 , value (std::move (v))
840#if 201103L <= YY_CPLUSPLUS
843 , value (std::move (v))
854#if 201103L <= YY_CPLUSPLUS
857 , value (std::move (v))
868#if 201103L <= YY_CPLUSPLUS
871 , value (std::move (v))
882#if 201103L <= YY_CPLUSPLUS
885 , value (std::move (v))
921 value.template destroy< TokenOption::RepresentationType > ();
925 value.template destroy< TokenPkt4::FieldType > ();
929 value.template destroy< TokenPkt6::FieldType > ();
933 value.template destroy< TokenPkt::MetadataType > ();
937 value.template destroy< TokenRelay6Field::FieldType > ();
941 value.template destroy< int8_t > ();
949 value.template destroy< std::string > ();
954 value.template destroy< uint16_t > ();
959 value.template destroy< uint32_t > ();
991#if YY_CPLUSPLUS < 201103L
1006#if 201103L <= YY_CPLUSPLUS
1050#if 201103L <= YY_CPLUSPLUS
1058#if !defined _MSC_VER || defined __clang__
1063#if 201103L <= YY_CPLUSPLUS
1071#if !defined _MSC_VER || defined __clang__
1081#if 201103L <= YY_CPLUSPLUS
1094 virtual int parse ();
1123#if 201103L <= YY_CPLUSPLUS
1138#if 201103L <= YY_CPLUSPLUS
1153#if 201103L <= YY_CPLUSPLUS
1168#if 201103L <= YY_CPLUSPLUS
1183#if 201103L <= YY_CPLUSPLUS
1198#if 201103L <= YY_CPLUSPLUS
1213#if 201103L <= YY_CPLUSPLUS
1228#if 201103L <= YY_CPLUSPLUS
1243#if 201103L <= YY_CPLUSPLUS
1258#if 201103L <= YY_CPLUSPLUS
1273#if 201103L <= YY_CPLUSPLUS
1288#if 201103L <= YY_CPLUSPLUS
1303#if 201103L <= YY_CPLUSPLUS
1318#if 201103L <= YY_CPLUSPLUS
1333#if 201103L <= YY_CPLUSPLUS
1348#if 201103L <= YY_CPLUSPLUS
1363#if 201103L <= YY_CPLUSPLUS
1378#if 201103L <= YY_CPLUSPLUS
1393#if 201103L <= YY_CPLUSPLUS
1408#if 201103L <= YY_CPLUSPLUS
1423#if 201103L <= YY_CPLUSPLUS
1438#if 201103L <= YY_CPLUSPLUS
1453#if 201103L <= YY_CPLUSPLUS
1468#if 201103L <= YY_CPLUSPLUS
1483#if 201103L <= YY_CPLUSPLUS
1498#if 201103L <= YY_CPLUSPLUS
1513#if 201103L <= YY_CPLUSPLUS
1528#if 201103L <= YY_CPLUSPLUS
1543#if 201103L <= YY_CPLUSPLUS
1558#if 201103L <= YY_CPLUSPLUS
1573#if 201103L <= YY_CPLUSPLUS
1588#if 201103L <= YY_CPLUSPLUS
1603#if 201103L <= YY_CPLUSPLUS
1618#if 201103L <= YY_CPLUSPLUS
1633#if 201103L <= YY_CPLUSPLUS
1648#if 201103L <= YY_CPLUSPLUS
1663#if 201103L <= YY_CPLUSPLUS
1678#if 201103L <= YY_CPLUSPLUS
1693#if 201103L <= YY_CPLUSPLUS
1708#if 201103L <= YY_CPLUSPLUS
1723#if 201103L <= YY_CPLUSPLUS
1738#if 201103L <= YY_CPLUSPLUS
1753#if 201103L <= YY_CPLUSPLUS
1768#if 201103L <= YY_CPLUSPLUS
1783#if 201103L <= YY_CPLUSPLUS
1798#if 201103L <= YY_CPLUSPLUS
1813#if 201103L <= YY_CPLUSPLUS
1828#if 201103L <= YY_CPLUSPLUS
1843#if 201103L <= YY_CPLUSPLUS
1858#if 201103L <= YY_CPLUSPLUS
1873#if 201103L <= YY_CPLUSPLUS
1888#if 201103L <= YY_CPLUSPLUS
1903#if 201103L <= YY_CPLUSPLUS
1918#if 201103L <= YY_CPLUSPLUS
1933#if 201103L <= YY_CPLUSPLUS
1948#if 201103L <= YY_CPLUSPLUS
1963#if 201103L <= YY_CPLUSPLUS
1978#if 201103L <= YY_CPLUSPLUS
1993#if 201103L <= YY_CPLUSPLUS
2008#if 201103L <= YY_CPLUSPLUS
2023#if 201103L <= YY_CPLUSPLUS
2038#if 201103L <= YY_CPLUSPLUS
2053#if 201103L <= YY_CPLUSPLUS
2089#if YY_CPLUSPLUS < 201103L
2098 typedef unsigned char state_type;
2101 int yy_syntax_error_arguments_ (
const context& yyctx,
2106 virtual std::string yysyntax_error_ (
const context& yyctx)
const;
2110 static state_type yy_lr_goto_state_ (state_type yystate,
int yysym);
2114 static bool yy_pact_value_is_default_ (
int yyvalue)
YY_NOEXCEPT;
2118 static bool yy_table_value_is_error_ (
int yyvalue)
YY_NOEXCEPT;
2120 static const short yypact_ninf_;
2121 static const signed char yytable_ninf_;
2129 static std::string yytnamerr_ (
const char *yystr);
2132 static const char*
const yytname_[];
2138 static const short yypact_[];
2143 static const signed char yydefact_[];
2146 static const short yypgoto_[];
2149 static const unsigned char yydefgoto_[];
2154 static const unsigned char yytable_[];
2156 static const unsigned char yycheck_[];
2160 static const signed char yystos_[];
2163 static const signed char yyr1_[];
2166 static const signed char yyr2_[];
2171 static const short yyrline_[];
2173 virtual void yy_reduce_print_ (
int r)
const;
2175 virtual void yy_stack_print_ ()
const;
2180 std::ostream* yycdebug_;
2185 template <
typename Base>
2186 void yy_print_ (std::ostream& yyo,
const basic_symbol<Base>& yysym)
const;
2193 template <
typename Base>
2194 void yy_destroy_ (
const char* yymsg, basic_symbol<Base>& yysym)
const;
2204 typedef state_type kind_type;
2216 void move (by_state& that);
2224 enum { empty_state = 0 };
2232 struct stack_symbol_type : basic_symbol<by_state>
2235 typedef basic_symbol<by_state> super_type;
2237 stack_symbol_type ();
2239 stack_symbol_type (
YY_RVREF (stack_symbol_type) that);
2241 stack_symbol_type (state_type s,
YY_MOVE_REF (symbol_type) sym);
2242#if YY_CPLUSPLUS < 201103L
2245 stack_symbol_type& operator= (stack_symbol_type& that);
2249 stack_symbol_type& operator= (
const stack_symbol_type& that);
2254 template <
typename T,
typename S = std::vector<T> >
2259 typedef typename S::iterator iterator;
2260 typedef typename S::const_iterator const_iterator;
2261 typedef typename S::size_type size_type;
2262 typedef typename std::ptrdiff_t index_type;
2268#if 201103L <= YY_CPLUSPLUS
2270 stack (
const stack&) =
delete;
2272 stack& operator= (
const stack&) =
delete;
2279 operator[] (index_type i)
const
2281 return seq_[size_type (size () - 1 - i)];
2288 operator[] (index_type i)
2290 return seq_[size_type (size () - 1 - i)];
2299 seq_.push_back (T ());
2300 operator[] (0).move (t);
2322 return index_type (seq_.size ());
2329 return seq_.begin ();
2349 operator[] (index_type i)
const
2351 return stack_[range_ - i];
2355 const stack& stack_;
2360#if YY_CPLUSPLUS < 201103L
2362 stack (
const stack&);
2364 stack& operator= (
const stack&);
2372 typedef stack<stack_symbol_type> stack_type;
2375 stack_type yystack_;
2382 void yypush_ (
const char* m,
YY_MOVE_REF (stack_symbol_type) sym);
2390 void yypush_ (
const char* m, state_type s,
YY_MOVE_REF (symbol_type) sym);
2419 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2420 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2421 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2422 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2423 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2424 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2425 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2426 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2427 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2428 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2429 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2430 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2431 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2432 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2433 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2434 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2435 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2436 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2437 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2438 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2439 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2440 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2441 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2442 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2443 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2444 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
2445 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
2446 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
2447 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
2448 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
2449 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
2450 55, 56, 57, 58, 59, 60, 61, 62
2453 const int code_max = 317;
2457 else if (t <= code_max)
2464 template <
typename Base>
2470 switch (this->kind ())
2523 template <
typename Base>
2527 return this->kind ();
2531 template <
typename Base>
2538 template <
typename Base>
2542 super_type::move (s);
2543 switch (this->kind ())
2600#if 201103L <= YY_CPLUSPLUS
2603 : kind_ (that.kind_)
2611 : kind_ (that.kind_)
2616 : kind_ (yytranslate_ (t))
2648 return this->kind ();
2654#line 2655 "parser.h"
RepresentationType
Token representation type.
FieldType
enum value that determines the field.
FieldType
enum value that determines the field.
MetadataType
enum value that determines the field.
FieldType
enum value that determines the field.
Evaluation context, an interface to the expression evaluation.
const location_type & location() const YY_NOEXCEPT
const symbol_type & lookahead() const YY_NOEXCEPT
symbol_kind_type token() const YY_NOEXCEPT
Present a slice of the top of a stack.
slice(const stack &stack, index_type range) YY_NOEXCEPT
A buffer to store and retrieve objects.
T & emplace(const T &t)
Instantiate a T in here from t.
T & as() YY_NOEXCEPT
Accessor to a built T.
void move(self_type &that)
Move the content of that to this.
T & build(const T &t)
Instantiate a T in here from t.
value_type(YY_RVREF(T) t)
Construct and fill.
long double yyalign_me_
Strongest alignment constraints.
const T & as() const YY_NOEXCEPT
Const accessor to a built T (for printer).
T & build()
Instantiate an empty T in here.
void copy(const self_type &that)
Copy the content of that to this.
~value_type() YY_NOEXCEPT
Destruction, allowed only if empty.
void destroy()
Destroy the stored T.
void swap(self_type &that) YY_NOEXCEPT
Swap the content with that, of same type.
T & emplace()
Instantiate an empty T in here.
char yyraw_[size]
A buffer large enough to store any of the semantic values.
value_type() YY_NOEXCEPT
Empty construction.
value_type self_type
Type of *this.
static symbol_type make_RELAY6(const location_type &l)
static symbol_type make_INT8TOTEXT(const location_type &l)
static symbol_type make_CONCAT(const location_type &l)
static symbol_type make_TEXT(const location_type &l)
static symbol_type make_OPTION(const location_type &l)
static symbol_type make_AND(const location_type &l)
static symbol_type make_HTYPE(const location_type &l)
symbol_kind::symbol_kind_type symbol_kind_type
(Internal) symbol kind.
static symbol_type make_MSGTYPE(const location_type &l)
static symbol_type make_LINKADDR(const location_type &l)
static symbol_type make_TOHEXSTRING(const location_type &l)
debug_level_type debug_level() const YY_ATTRIBUTE_PURE
The current debugging level.
static symbol_type make_EVALerror(const location_type &l)
static symbol_type make_PKT6(const location_type &l)
static symbol_type make_END(const location_type &l)
static symbol_type make_DST(const location_type &l)
static symbol_type make_OR(const location_type &l)
static symbol_type make_PLUS(const location_type &l)
static symbol_type make_RBRACKET(const location_type &l)
static symbol_type make_NOT(const location_type &l)
static symbol_type make_INT32TOTEXT(const location_type &l)
static symbol_type make_SIADDR(const location_type &l)
static symbol_type make_PKT4(const location_type &l)
virtual int parse()
Parse.
static symbol_type make_IP_ADDRESS(const std::string &v, const location_type &l)
static symbol_type make_UINT16TOTEXT(const location_type &l)
static symbol_type make_STRING(const std::string &v, const location_type &l)
static symbol_type make_TOPLEVEL_BOOL(const location_type &l)
int debug_level_type
Type for debugging levels.
static symbol_type make_LPAREN(const location_type &l)
static symbol_type make_TOPLEVEL_STRING(const location_type &l)
static symbol_type make_GIADDR(const location_type &l)
static symbol_type make_DATA(const location_type &l)
static symbol_type make_CHADDR(const location_type &l)
static symbol_type make_INT16TOTEXT(const location_type &l)
static symbol_type make_LBRACKET(const location_type &l)
static symbol_type make_LEN(const location_type &l)
static symbol_type make_IFACE(const location_type &l)
static symbol_type make_ANY(const location_type &l)
static symbol_type make_DOT(const location_type &l)
static symbol_type make_HLEN(const location_type &l)
static symbol_type make_ALL(const location_type &l)
static symbol_type make_COMA(const location_type &l)
static symbol_type make_IFELSE(const location_type &l)
location location_type
Symbol locations.
static symbol_type make_YIADDR(const location_type &l)
static symbol_type make_SRC(const location_type &l)
static symbol_type make_INTEGER(const std::string &v, const location_type &l)
static symbol_type make_EQUAL(const location_type &l)
token::token_kind_type token_kind_type
Token kind, as returned by yylex.
static symbol_type make_EXISTS(const location_type &l)
static symbol_type make_TRANSID(const location_type &l)
token_kind_type token_type
Backward compatibility alias (Bison 3.6).
void set_debug_stream(std::ostream &)
Set the current debugging stream.
void set_debug_level(debug_level_type l)
Set the current debugging level.
std::ostream & debug_stream() const YY_ATTRIBUTE_PURE
The current debugging stream.
static symbol_type make_ADDRTOTEXT(const location_type &l)
static symbol_type make_RELAY4(const location_type &l)
static symbol_type make_PKT(const location_type &l)
static symbol_type make_CIADDR(const location_type &l)
static symbol_type make_HEXSTRING(const std::string &v, const location_type &l)
static symbol_type make_EVALUNDEF(const location_type &l)
static symbol_type make_OPTION_NAME(const std::string &v, const location_type &l)
static symbol_type make_MEMBER(const location_type &l)
static symbol_type make_UINT32TOTEXT(const location_type &l)
EvalParser(EvalContext &ctx_yyarg)
Build a parser object.
static symbol_type make_ENTERPRISE(const location_type &l)
static symbol_type make_VENDOR(const location_type &l)
value_type semantic_type
Backward compatibility (Bison 3.8).
static symbol_type make_RPAREN(const location_type &l)
static symbol_type make_PEERADDR(const location_type &l)
static const symbol_kind_type YYNTOKENS
The number of tokens.
static symbol_type make_SUBSTRING(const location_type &l)
static symbol_type make_VENDOR_CLASS(const location_type &l)
static symbol_type make_HEX(const location_type &l)
virtual void error(const location_type &loc, const std::string &msg)
Report a syntax error.
static symbol_type make_UINT8TOTEXT(const location_type &l)
static std::string symbol_name(symbol_kind_type yysymbol)
The user-facing name of the symbol whose (internal) number is YYSYMBOL.
Forward declaration of the EvalContext class.
Defines the logger used by the top-level component of kea-lfc.
#define YY_MOVE_REF(Type)
#define YY_ATTRIBUTE_PURE
void move(basic_symbol &s)
Destructive move, s is emptied into this.
location_type location
The location.
Base super_type
Alias to Base.
basic_symbol(typename Base::kind_type t, const TokenPkt4::FieldType &v, const location_type &l)
basic_symbol(typename Base::kind_type t, const uint32_t &v, const location_type &l)
value_type value
The semantic value.
basic_symbol(typename Base::kind_type t, const TokenPkt6::FieldType &v, const location_type &l)
~basic_symbol()
Destroy the symbol.
bool empty() const YY_NOEXCEPT
Whether empty.
symbol_kind_type type_get() const YY_NOEXCEPT
Backward compatibility (Bison 3.6).
basic_symbol(typename Base::kind_type t, const uint16_t &v, const location_type &l)
basic_symbol(typename Base::kind_type t, const TokenPkt::MetadataType &v, const location_type &l)
std::string name() const YY_NOEXCEPT
The user-facing name of this symbol.
basic_symbol(typename Base::kind_type t, const TokenOption::RepresentationType &v, const location_type &l)
basic_symbol(typename Base::kind_type t, const std::string &v, const location_type &l)
void clear() YY_NOEXCEPT
Destroy contents, and record that is empty.
basic_symbol() YY_NOEXCEPT
Default constructor.
basic_symbol(typename Base::kind_type t, const TokenRelay6Field::FieldType &v, const location_type &l)
basic_symbol(typename Base::kind_type t, const location_type &l)
Constructors for typed symbols.
basic_symbol(typename Base::kind_type t, const int8_t &v, const location_type &l)
Type access provider for token (enum) based symbols.
symbol_kind_type type_get() const YY_NOEXCEPT
Backward compatibility (Bison 3.6).
token_kind_type kind_type
The symbol kind as needed by the constructor.
by_kind() YY_NOEXCEPT
Default constructor.
symbol_kind_type kind_
The symbol kind.
void clear() YY_NOEXCEPT
Record that this symbol is empty.
symbol_kind_type kind() const YY_NOEXCEPT
The (internal) type number (corresponding to type).
void move(by_kind &that)
Steal the symbol kind from that.
@ YYNTOKENS
Number of tokens.
"External" symbols: returned by the scanner.
symbol_type() YY_NOEXCEPT
Empty symbol.
basic_symbol< by_kind > super_type
Superclass.
Syntax errors thrown from user actions.
syntax_error(const location_type &l, const std::string &m)
syntax_error(const syntax_error &s)
~syntax_error() YY_NOEXCEPT YY_NOTHROW
token_kind_type yytokentype
Backward compatibility alias (Bison 3.6).