45#ifndef YY_NETCONF_NETCONF_PARSER_H_INCLUDED
46# define YY_NETCONF_NETCONF_PARSER_H_INCLUDED
48#line 17 "netconf_parser.yy"
52#include <boost/lexical_cast.hpp>
59#line 60 "netconf_parser.h"
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"
106#ifndef NETCONF__ASSERT
108# define NETCONF__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)
197# define NETCONF_DEBUG 1
199# define NETCONF_DEBUG 0
202# define NETCONF_DEBUG 1
206#line 14 "netconf_parser.yy"
207namespace isc {
namespace netconf {
208#line 209 "netconf_parser.h"
219# pragma GCC message "bison: do not #define NETCONF_STYPE 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);
433 char dummy2[
sizeof (bool)];
436 char dummy3[
sizeof (double)];
439 char dummy4[
sizeof (int64_t)];
442 char dummy5[
sizeof (std::string)];
446 enum { size =
sizeof (union_type) };
458 const std::type_info *yytypeid_;
472 : std::runtime_error (m)
477 : std::runtime_error (s.what ())
491 TOKEN_NETCONF_EMPTY = -2,
493 TOKEN_NETCONF_error = 256,
494 TOKEN_NETCONF_UNDEF = 257,
497 TOKEN_LSQUARE_BRACKET = 260,
498 TOKEN_RSQUARE_BRACKET = 261,
499 TOKEN_LCURLY_BRACKET = 262,
500 TOKEN_RCURLY_BRACKET = 263,
501 TOKEN_NULL_TYPE = 264,
503 TOKEN_USER_CONTEXT = 266,
505 TOKEN_BOOT_UPDATE = 268,
506 TOKEN_SUBSCRIBE_CHANGES = 269,
507 TOKEN_VALIDATE_CHANGES = 270,
508 TOKEN_MANAGED_SERVERS = 271,
509 TOKEN_DHCP4_SERVER = 272,
510 TOKEN_DHCP6_SERVER = 273,
511 TOKEN_D2_SERVER = 274,
512 TOKEN_CA_SERVER = 275,
514 TOKEN_CONTROL_SOCKET = 277,
515 TOKEN_SOCKET_TYPE = 278,
519 TOKEN_SOCKET_NAME = 282,
520 TOKEN_SOCKET_URL = 283,
521 TOKEN_HOOKS_LIBRARIES = 284,
523 TOKEN_PARAMETERS = 286,
526 TOKEN_OUTPUT_OPTIONS = 289,
528 TOKEN_DEBUGLEVEL = 291,
529 TOKEN_SEVERITY = 292,
534 TOKEN_START_JSON = 297,
535 TOKEN_START_NETCONF = 298,
536 TOKEN_START_SUB_NETCONF = 299,
564 S_LSQUARE_BRACKET = 5,
565 S_RSQUARE_BRACKET = 6,
566 S_LCURLY_BRACKET = 7,
567 S_RCURLY_BRACKET = 8,
573 S_SUBSCRIBE_CHANGES = 14,
574 S_VALIDATE_CHANGES = 15,
575 S_MANAGED_SERVERS = 16,
581 S_CONTROL_SOCKET = 22,
588 S_HOOKS_LIBRARIES = 29,
593 S_OUTPUT_OPTIONS = 34,
602 S_START_NETCONF = 43,
603 S_START_SUB_NETCONF = 44,
621 S_not_empty_map = 62,
625 S_not_empty_list = 66,
626 S_unknown_map_entry = 67,
627 S_netconf_syntax_map = 68,
629 S_global_object = 70,
631 S_global_params = 72,
632 S_not_empty_global_params = 73,
635 S_subscribe_changes = 76,
636 S_validate_changes = 77,
641 S_hooks_libraries = 82,
643 S_hooks_libraries_list = 84,
644 S_not_empty_hooks_libraries_list = 85,
645 S_hooks_library = 86,
653 S_managed_servers = 94,
655 S_servers_entries = 96,
656 S_not_empty_servers_entries = 97,
660 S_dhcp6_server = 101,
666 S_managed_server_params = 107,
667 S_managed_server_param = 108,
670 S_control_socket = 111,
672 S_control_socket_params = 113,
673 S_control_socket_param = 114,
676 S_socket_type_value = 117,
683 S_loggers_entries = 124,
684 S_logger_entry = 125,
686 S_logger_params = 127,
687 S_logger_param = 128,
693 S_output_options_list = 134,
695 S_output_options_list_content = 136,
696 S_output_entry = 137,
698 S_output_params_list = 139,
699 S_output_params = 140,
722 template <
typename Base>
734#if 201103L <= YY_CPLUSPLUS
737 : Base (std::move (that))
741 switch (this->kind ())
746 value.move<
ElementPtr > (std::move (that.value));
750 value.move<
bool > (std::move (that.value));
754 value.move<
double > (std::move (that.value));
758 value.move< int64_t > (std::move (that.value));
762 value.move< std::string > (std::move (that.value));
773 basic_symbol (
const basic_symbol& that);
776#if 201103L <= YY_CPLUSPLUS
788#if 201103L <= YY_CPLUSPLUS
791 , value (std::move (v))
802#if 201103L <= YY_CPLUSPLUS
805 , value (std::move (v))
816#if 201103L <= YY_CPLUSPLUS
819 , value (std::move (v))
830#if 201103L <= YY_CPLUSPLUS
833 , value (std::move (v))
844#if 201103L <= YY_CPLUSPLUS
847 , value (std::move (v))
885 value.template destroy< ElementPtr > ();
889 value.template destroy< bool > ();
893 value.template destroy< double > ();
897 value.template destroy< int64_t > ();
901 value.template destroy< std::string > ();
933#if YY_CPLUSPLUS < 201103L
948#if 201103L <= YY_CPLUSPLUS
992#if 201103L <= YY_CPLUSPLUS
1000#if !defined _MSC_VER || defined __clang__
1005#if 201103L <= YY_CPLUSPLUS
1013#if !defined _MSC_VER || defined __clang__
1017#if 201103L <= YY_CPLUSPLUS
1025#if !defined _MSC_VER || defined __clang__
1029#if 201103L <= YY_CPLUSPLUS
1037#if !defined _MSC_VER || defined __clang__
1041#if 201103L <= YY_CPLUSPLUS
1049#if !defined _MSC_VER || defined __clang__
1059#if 201103L <= YY_CPLUSPLUS
1072 virtual int parse ();
1101#if 201103L <= YY_CPLUSPLUS
1116#if 201103L <= YY_CPLUSPLUS
1131#if 201103L <= YY_CPLUSPLUS
1146#if 201103L <= YY_CPLUSPLUS
1161#if 201103L <= YY_CPLUSPLUS
1176#if 201103L <= YY_CPLUSPLUS
1191#if 201103L <= YY_CPLUSPLUS
1206#if 201103L <= YY_CPLUSPLUS
1221#if 201103L <= YY_CPLUSPLUS
1236#if 201103L <= YY_CPLUSPLUS
1251#if 201103L <= YY_CPLUSPLUS
1266#if 201103L <= YY_CPLUSPLUS
1281#if 201103L <= YY_CPLUSPLUS
1296#if 201103L <= YY_CPLUSPLUS
1311#if 201103L <= YY_CPLUSPLUS
1326#if 201103L <= YY_CPLUSPLUS
1341#if 201103L <= YY_CPLUSPLUS
1356#if 201103L <= YY_CPLUSPLUS
1371#if 201103L <= YY_CPLUSPLUS
1386#if 201103L <= YY_CPLUSPLUS
1401#if 201103L <= YY_CPLUSPLUS
1416#if 201103L <= YY_CPLUSPLUS
1431#if 201103L <= YY_CPLUSPLUS
1446#if 201103L <= YY_CPLUSPLUS
1461#if 201103L <= YY_CPLUSPLUS
1476#if 201103L <= YY_CPLUSPLUS
1491#if 201103L <= YY_CPLUSPLUS
1506#if 201103L <= YY_CPLUSPLUS
1521#if 201103L <= YY_CPLUSPLUS
1536#if 201103L <= YY_CPLUSPLUS
1551#if 201103L <= YY_CPLUSPLUS
1566#if 201103L <= YY_CPLUSPLUS
1581#if 201103L <= YY_CPLUSPLUS
1596#if 201103L <= YY_CPLUSPLUS
1611#if 201103L <= YY_CPLUSPLUS
1626#if 201103L <= YY_CPLUSPLUS
1641#if 201103L <= YY_CPLUSPLUS
1656#if 201103L <= YY_CPLUSPLUS
1671#if 201103L <= YY_CPLUSPLUS
1686#if 201103L <= YY_CPLUSPLUS
1701#if 201103L <= YY_CPLUSPLUS
1716#if 201103L <= YY_CPLUSPLUS
1731#if 201103L <= YY_CPLUSPLUS
1746#if 201103L <= YY_CPLUSPLUS
1761#if 201103L <= YY_CPLUSPLUS
1776#if 201103L <= YY_CPLUSPLUS
1791#if 201103L <= YY_CPLUSPLUS
1806#if 201103L <= YY_CPLUSPLUS
1821#if 201103L <= YY_CPLUSPLUS
1857#if YY_CPLUSPLUS < 201103L
1866 typedef short state_type;
1869 int yy_syntax_error_arguments_ (
const context& yyctx,
1874 virtual std::string yysyntax_error_ (
const context& yyctx)
const;
1878 static state_type yy_lr_goto_state_ (state_type yystate,
int yysym);
1882 static bool yy_pact_value_is_default_ (
int yyvalue)
YY_NOEXCEPT;
1886 static bool yy_table_value_is_error_ (
int yyvalue)
YY_NOEXCEPT;
1888 static const signed char yypact_ninf_;
1889 static const signed char yytable_ninf_;
1897 static std::string yytnamerr_ (
const char *yystr);
1900 static const char*
const yytname_[];
1906 static const short yypact_[];
1911 static const unsigned char yydefact_[];
1914 static const short yypgoto_[];
1917 static const short yydefgoto_[];
1922 static const short yytable_[];
1924 static const short yycheck_[];
1928 static const unsigned char yystos_[];
1931 static const unsigned char yyr1_[];
1934 static const signed char yyr2_[];
1939 static const short yyrline_[];
1941 virtual void yy_reduce_print_ (
int r)
const;
1943 virtual void yy_stack_print_ ()
const;
1948 std::ostream* yycdebug_;
1953 template <
typename Base>
1954 void yy_print_ (std::ostream& yyo,
const basic_symbol<Base>& yysym)
const;
1961 template <
typename Base>
1962 void yy_destroy_ (
const char* yymsg, basic_symbol<Base>& yysym)
const;
1972 typedef state_type kind_type;
1984 void move (by_state& that);
1992 enum { empty_state = 0 };
2000 struct stack_symbol_type : basic_symbol<by_state>
2003 typedef basic_symbol<by_state> super_type;
2005 stack_symbol_type ();
2007 stack_symbol_type (
YY_RVREF (stack_symbol_type) that);
2009 stack_symbol_type (state_type s,
YY_MOVE_REF (symbol_type) sym);
2010#if YY_CPLUSPLUS < 201103L
2013 stack_symbol_type& operator= (stack_symbol_type& that);
2017 stack_symbol_type& operator= (
const stack_symbol_type& that);
2022 template <
typename T,
typename S = std::vector<T> >
2027 typedef typename S::iterator iterator;
2028 typedef typename S::const_iterator const_iterator;
2029 typedef typename S::size_type size_type;
2030 typedef typename std::ptrdiff_t index_type;
2036#if 201103L <= YY_CPLUSPLUS
2038 stack (
const stack&) =
delete;
2040 stack& operator= (
const stack&) =
delete;
2047 operator[] (index_type i)
const
2049 return seq_[size_type (size () - 1 - i)];
2056 operator[] (index_type i)
2058 return seq_[size_type (size () - 1 - i)];
2067 seq_.push_back (T ());
2068 operator[] (0).move (t);
2090 return index_type (seq_.size ());
2097 return seq_.begin ();
2117 operator[] (index_type i)
const
2119 return stack_[range_ - i];
2123 const stack& stack_;
2128#if YY_CPLUSPLUS < 201103L
2130 stack (
const stack&);
2132 stack& operator= (
const stack&);
2140 typedef stack<stack_symbol_type> stack_type;
2143 stack_type yystack_;
2150 void yypush_ (
const char* m,
YY_MOVE_REF (stack_symbol_type) sym);
2158 void yypush_ (
const char* m, state_type s,
YY_MOVE_REF (symbol_type) sym);
2187 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2188 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2189 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2190 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2191 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2192 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2193 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2194 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2195 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2196 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2197 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2198 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2199 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2200 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2201 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2202 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2203 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2204 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2205 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2206 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2207 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2208 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2209 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2210 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2211 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2212 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
2213 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
2214 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
2215 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
2216 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
2220 const int code_max = 303;
2224 else if (t <= code_max)
2231 template <
typename Base>
2237 switch (this->kind ())
2270 template <
typename Base>
2274 return this->kind ();
2278 template <
typename Base>
2285 template <
typename Base>
2289 super_type::move (s);
2290 switch (this->kind ())
2327#if 201103L <= YY_CPLUSPLUS
2330 : kind_ (that.kind_)
2338 : kind_ (that.kind_)
2343 : kind_ (yytranslate_ (t))
2375 return this->kind ();
2379#line 14 "netconf_parser.yy"
2381#line 2382 "netconf_parser.h"
const location_type & location() const YY_NOEXCEPT
symbol_kind_type token() const YY_NOEXCEPT
const symbol_type & lookahead() 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.
long double yyalign_me_
Strongest alignment constraints.
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.
void swap(self_type &that) YY_NOEXCEPT
Swap the content with that, of same type.
char yyraw_[size]
A buffer large enough to store any of the semantic values.
value_type self_type
Type of *this.
T & as() YY_NOEXCEPT
Accessor to a built T.
void copy(const self_type &that)
Copy the content of that to this.
T & build()
Instantiate an empty T in here.
void destroy()
Destroy the stored T.
T & emplace(const T &t)
Instantiate a T in here from t.
const T & as() const YY_NOEXCEPT
Const accessor to a built T (for printer).
T & emplace()
Instantiate an empty T in here.
~value_type() YY_NOEXCEPT
Destruction, allowed only if empty.
value_type() YY_NOEXCEPT
Empty construction.
static symbol_type make_NETCONF(const location_type &l)
static symbol_type make_SOCKET_URL(const location_type &l)
static symbol_type make_MAXVER(const location_type &l)
static symbol_type make_OUTPUT_OPTIONS(const location_type &l)
static symbol_type make_MAXSIZE(const location_type &l)
static symbol_type make_INTEGER(const int64_t &v, const location_type &l)
virtual int parse()
Parse.
static symbol_type make_HOOKS_LIBRARIES(const location_type &l)
static symbol_type make_CONTROL_SOCKET(const location_type &l)
void set_debug_stream(std::ostream &)
Set the current debugging stream.
static symbol_type make_OUTPUT(const location_type &l)
static symbol_type make_DHCP6_SERVER(const location_type &l)
std::ostream & debug_stream() const YY_ATTRIBUTE_PURE
The current debugging stream.
static symbol_type make_BOOT_UPDATE(const location_type &l)
static symbol_type make_NETCONF_UNDEF(const location_type &l)
static symbol_type make_NULL_TYPE(const location_type &l)
static symbol_type make_DEBUGLEVEL(const location_type &l)
static symbol_type make_HTTP(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.
static symbol_type make_VALIDATE_CHANGES(const location_type &l)
static symbol_type make_END(const location_type &l)
static symbol_type make_LIBRARY(const location_type &l)
static symbol_type make_LOGGERS(const location_type &l)
static symbol_type make_NETCONF_error(const location_type &l)
static symbol_type make_LCURLY_BRACKET(const location_type &l)
token::token_kind_type token_kind_type
Token kind, as returned by yylex.
token_kind_type token_type
Backward compatibility alias (Bison 3.6).
NetconfParser(isc::netconf::ParserContext &ctx_yyarg)
Build a parser object.
static symbol_type make_STDOUT(const location_type &l)
value_type semantic_type
Backward compatibility (Bison 3.8).
virtual void error(const location_type &loc, const std::string &msg)
Report a syntax error.
static symbol_type make_SOCKET_TYPE(const location_type &l)
symbol_kind::symbol_kind_type symbol_kind_type
(Internal) symbol kind.
static symbol_type make_LSQUARE_BRACKET(const location_type &l)
static symbol_type make_DHCP4_SERVER(const location_type &l)
int debug_level_type
Type for debugging levels.
static symbol_type make_D2_SERVER(const location_type &l)
static symbol_type make_PARAMETERS(const location_type &l)
static symbol_type make_NAME(const location_type &l)
static symbol_type make_FLUSH(const location_type &l)
static symbol_type make_START_JSON(const location_type &l)
static symbol_type make_UNIX(const location_type &l)
static symbol_type make_PATTERN(const location_type &l)
static symbol_type make_STRING(const std::string &v, const location_type &l)
static const symbol_kind_type YYNTOKENS
The number of tokens.
static symbol_type make_COMMENT(const location_type &l)
static symbol_type make_SEVERITY(const location_type &l)
static symbol_type make_MANAGED_SERVERS(const location_type &l)
location location_type
Symbol locations.
static symbol_type make_SUBSCRIBE_CHANGES(const location_type &l)
static symbol_type make_CA_SERVER(const location_type &l)
static symbol_type make_COLON(const location_type &l)
static symbol_type make_RCURLY_BRACKET(const location_type &l)
void set_debug_level(debug_level_type l)
Set the current debugging level.
static symbol_type make_USER_CONTEXT(const location_type &l)
static symbol_type make_COMMA(const location_type &l)
static symbol_type make_RSQUARE_BRACKET(const location_type &l)
static symbol_type make_START_NETCONF(const location_type &l)
static symbol_type make_MODEL(const location_type &l)
debug_level_type debug_level() const YY_ATTRIBUTE_PURE
The current debugging level.
static symbol_type make_START_SUB_NETCONF(const location_type &l)
static symbol_type make_BOOLEAN(const bool &v, const location_type &l)
static symbol_type make_FLOAT(const double &v, const location_type &l)
static symbol_type make_SOCKET_NAME(const location_type &l)
Parser context is a wrapper around flex/bison instances dedicated to Netconf-agent config file parser...
boost::shared_ptr< Element > ElementPtr
Defines the logger used by the top-level component of kea-lfc.
Forward declaration of the ParserContext class.
#define YY_MOVE_REF(Type)
#define YY_ATTRIBUTE_PURE
bool empty() const YY_NOEXCEPT
Whether empty.
basic_symbol(typename Base::kind_type t, const bool &v, const location_type &l)
basic_symbol() YY_NOEXCEPT
Default constructor.
basic_symbol(typename Base::kind_type t, const double &v, const location_type &l)
void move(basic_symbol &s)
Destructive move, s is emptied into this.
Base super_type
Alias to Base.
basic_symbol(typename Base::kind_type t, const ElementPtr &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 std::string &v, const location_type &l)
symbol_kind_type type_get() const YY_NOEXCEPT
Backward compatibility (Bison 3.6).
basic_symbol(typename Base::kind_type t, const int64_t &v, const location_type &l)
value_type value
The semantic value.
std::string name() const YY_NOEXCEPT
The user-facing name of this symbol.
location_type location
The location.
~basic_symbol()
Destroy the symbol.
void clear() YY_NOEXCEPT
Destroy contents, and record that is empty.
Type access provider for token (enum) based symbols.
token_kind_type kind_type
The symbol kind as needed by the constructor.
symbol_kind_type type_get() const YY_NOEXCEPT
Backward compatibility (Bison 3.6).
by_kind() YY_NOEXCEPT
Default constructor.
symbol_kind_type kind() const YY_NOEXCEPT
The (internal) type number (corresponding to type).
symbol_kind_type kind_
The symbol kind.
void move(by_kind &that)
Steal the symbol kind from that.
void clear() YY_NOEXCEPT
Record that this symbol is empty.
@ 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() YY_NOEXCEPT YY_NOTHROW
syntax_error(const syntax_error &s)
token_kind_type yytokentype
Backward compatibility alias (Bison 3.6).
@ TOKEN_SUBSCRIBE_CHANGES
@ TOKEN_START_SUB_NETCONF