![]() |
Kea 2.2.0
|
A Bison parser. More...
#include <netconf_parser.h>
Classes | |
struct | basic_symbol |
A complete symbol. More... | |
struct | by_kind |
Type access provider for token (enum) based symbols. More... | |
class | context |
struct | symbol_kind |
Symbol kinds. More... | |
struct | symbol_type |
"External" symbols: returned by the scanner. More... | |
struct | syntax_error |
Syntax errors thrown from user actions. More... | |
struct | token |
Token kinds. More... | |
class | value_type |
A buffer to store and retrieve objects. More... | |
Public Types | |
typedef by_kind | by_type |
Backward compatibility for a private implementation detail (Bison 3.6). More... | |
typedef int | debug_level_type |
Type for debugging levels. More... | |
typedef location | location_type |
Symbol locations. More... | |
typedef value_type | semantic_type |
Backward compatibility (Bison 3.8). More... | |
typedef symbol_kind::symbol_kind_type | symbol_kind_type |
(Internal) symbol kind. More... | |
typedef token::token_kind_type | token_kind_type |
Token kind, as returned by yylex. More... | |
typedef token_kind_type | token_type |
Backward compatibility alias (Bison 3.6). More... | |
Public Member Functions | |
NetconfParser (isc::netconf::ParserContext &ctx_yyarg) | |
Build a parser object. More... | |
virtual | ~NetconfParser () |
debug_level_type | debug_level () const YY_ATTRIBUTE_PURE |
The current debugging level. More... | |
std::ostream & | debug_stream () const YY_ATTRIBUTE_PURE |
The current debugging stream. More... | |
virtual void | error (const location_type &loc, const std::string &msg) |
Report a syntax error. More... | |
void | error (const syntax_error &err) |
Report a syntax error. More... | |
int | operator() () |
Parse. More... | |
virtual int | parse () |
Parse. More... | |
void | set_debug_level (debug_level_type l) |
Set the current debugging level. More... | |
void | set_debug_stream (std::ostream &) |
Set the current debugging stream. More... | |
Static Public Attributes | |
static const symbol_kind_type | YYNTOKENS = symbol_kind::YYNTOKENS |
The number of tokens. More... | |
A Bison parser.
Definition at line 214 of file netconf_parser.h.
Backward compatibility for a private implementation detail (Bison 3.6).
Definition at line 981 of file netconf_parser.h.
typedef int isc::netconf::NetconfParser::debug_level_type |
Type for debugging levels.
Definition at line 1082 of file netconf_parser.h.
typedef location isc::netconf::NetconfParser::location_type |
Symbol locations.
Definition at line 466 of file netconf_parser.h.
Backward compatibility (Bison 3.8).
Definition at line 463 of file netconf_parser.h.
(Internal) symbol kind.
Definition at line 712 of file netconf_parser.h.
Token kind, as returned by yylex.
Definition at line 547 of file netconf_parser.h.
Backward compatibility alias (Bison 3.6).
Definition at line 550 of file netconf_parser.h.
isc::netconf::NetconfParser::NetconfParser | ( | isc::netconf::ParserContext & | ctx_yyarg | ) |
Build a parser object.
Definition at line 147 of file netconf_parser.cc.
|
virtual |
Definition at line 157 of file netconf_parser.cc.
NetconfParser::debug_level_type isc::netconf::NetconfParser::debug_level | ( | ) | const |
The current debugging level.
Definition at line 470 of file netconf_parser.cc.
std::ostream & isc::netconf::NetconfParser::debug_stream | ( | ) | const |
The current debugging stream.
Definition at line 457 of file netconf_parser.cc.
|
virtual |
Report a syntax error.
loc | where the syntax error is found. |
msg | a description of the syntax error. |
Definition at line 2308 of file netconf_parser.cc.
void isc::netconf::NetconfParser::error | ( | const syntax_error & | err | ) |
Report a syntax error.
Definition at line 1790 of file netconf_parser.cc.
References error(), and isc::netconf::NetconfParser::syntax_error::location.
|
inlinestatic |
Definition at line 1832 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_BOOLEAN.
|
inlinestatic |
Definition at line 1307 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_BOOT_UPDATE.
|
inlinestatic |
Definition at line 1412 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_CA_SERVER.
|
inlinestatic |
Definition at line 1172 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_COLON.
|
inlinestatic |
Definition at line 1157 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_COMMA.
|
inlinestatic |
Definition at line 1292 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_COMMENT.
|
inlinestatic |
Definition at line 1442 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_CONTROL_SOCKET.
|
inlinestatic |
Definition at line 1397 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_D2_SERVER.
|
inlinestatic |
Definition at line 1652 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_DEBUGLEVEL.
|
inlinestatic |
Definition at line 1367 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_DHCP4_SERVER.
|
inlinestatic |
Definition at line 1382 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_DHCP6_SERVER.
|
inlinestatic |
Definition at line 1112 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_END.
|
inlinestatic |
Definition at line 1817 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_FLOAT.
|
inlinestatic |
Definition at line 1682 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_FLUSH.
|
inlinestatic |
Definition at line 1547 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_HOOKS_LIBRARIES.
|
inlinestatic |
Definition at line 1487 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_HTTP.
|
inlinestatic |
Definition at line 1802 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_INTEGER.
|
inlinestatic |
Definition at line 1217 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LCURLY_BRACKET.
|
inlinestatic |
Definition at line 1562 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LIBRARY.
|
inlinestatic |
Definition at line 1592 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LOGGERS.
|
inlinestatic |
Definition at line 1187 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LSQUARE_BRACKET.
|
inlinestatic |
Definition at line 1352 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MANAGED_SERVERS.
|
inlinestatic |
Definition at line 1697 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MAXSIZE.
|
inlinestatic |
Definition at line 1712 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MAXVER.
|
inlinestatic |
Definition at line 1427 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MODEL.
|
inlinestatic |
Definition at line 1607 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NAME.
|
inlinestatic |
Definition at line 1262 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NETCONF.
|
inlinestatic |
Definition at line 1127 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NETCONF_error.
|
inlinestatic |
Definition at line 1142 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NETCONF_UNDEF.
|
inlinestatic |
Definition at line 1247 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NULL_TYPE.
|
inlinestatic |
Definition at line 1637 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_OUTPUT.
|
inlinestatic |
Definition at line 1622 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_OUTPUT_OPTIONS.
|
inlinestatic |
Definition at line 1577 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_PARAMETERS.
|
inlinestatic |
Definition at line 1727 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_PATTERN.
|
inlinestatic |
Definition at line 1232 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_RCURLY_BRACKET.
|
inlinestatic |
Definition at line 1202 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_RSQUARE_BRACKET.
|
inlinestatic |
Definition at line 1667 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SEVERITY.
|
inlinestatic |
Definition at line 1517 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SOCKET_NAME.
|
inlinestatic |
Definition at line 1457 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SOCKET_TYPE.
|
inlinestatic |
Definition at line 1532 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SOCKET_URL.
|
inlinestatic |
Definition at line 1742 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_START_JSON.
|
inlinestatic |
Definition at line 1757 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_START_NETCONF.
|
inlinestatic |
Definition at line 1772 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_START_SUB_NETCONF.
|
inlinestatic |
Definition at line 1502 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_STDOUT.
|
inlinestatic |
Definition at line 1787 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_STRING.
|
inlinestatic |
Definition at line 1322 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SUBSCRIBE_CHANGES.
|
inlinestatic |
Definition at line 1472 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_UNIX.
|
inlinestatic |
Definition at line 1277 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_USER_CONTEXT.
|
inlinestatic |
Definition at line 1337 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_VALIDATE_CHANGES.
int isc::netconf::NetconfParser::operator() | ( | ) |
Parse.
An alias for parse ().
Definition at line 505 of file netconf_parser.cc.
References parse().
|
virtual |
Parse.
Length of the RHS of the rule being reduced.
The lookahead symbol.
The locations where the error started and ended.
The return value of parse ().
Definition at line 511 of file netconf_parser.cc.
References isc::netconf::NetconfParser::basic_symbol< Base >::clear(), isc::netconf::ParserContext::CONFIG, isc::netconf::ParserContext::contextName(), isc::netconf::ParserContext::CONTROL_SOCKET, isc::netconf::ParserContext::ctx_, isc::netconf::NetconfParser::basic_symbol< Base >::empty(), isc::netconf::ParserContext::enter(), error(), isc::netconf::ParserContext::HOOKS_LIBRARIES, isc::netconf::ParserContext::leave(), isc::netconf::ParserContext::loc2pos(), isc::netconf::NetconfParser::basic_symbol< Base >::location, isc::netconf::ParserContext::LOGGERS, isc::netconf::ParserContext::MANAGED_SERVERS, isc::data::merge(), isc::netconf::NetconfParser::basic_symbol< Base >::move(), isc::netconf::ParserContext::NETCONF, isc::netconf::ParserContext::NO_KEYWORDS, isc::netconf::ParserContext::OUTPUT_OPTIONS, isc::netconf::NetconfParser::symbol_kind::S_BOOLEAN, isc::netconf::NetconfParser::symbol_kind::S_FLOAT, isc::netconf::NetconfParser::symbol_kind::S_INTEGER, isc::netconf::NetconfParser::symbol_kind::S_map_value, isc::netconf::NetconfParser::symbol_kind::S_socket_type_value, isc::netconf::NetconfParser::symbol_kind::S_STRING, isc::netconf::NetconfParser::symbol_kind::S_value, isc::netconf::NetconfParser::symbol_kind::S_YYEOF, isc::netconf::NetconfParser::symbol_kind::S_YYerror, isc::netconf::NetconfParser::symbol_kind::S_YYUNDEF, isc::netconf::ParserContext::SERVER, isc::netconf::ParserContext::SOCKET_TYPE, isc::netconf::ParserContext::stack_, isc::netconf::ParserContext::unique(), isc::netconf::ParserContext::warnAboutExtraCommas(), YY_MOVE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, YYCDEBUG, YYERROR, yylex, and YYLLOC_DEFAULT.
Referenced by operator()().
void isc::netconf::NetconfParser::set_debug_level | ( | debug_level_type | l | ) |
Set the current debugging level.
Definition at line 476 of file netconf_parser.cc.
void isc::netconf::NetconfParser::set_debug_stream | ( | std::ostream & | o | ) |
Set the current debugging stream.
Definition at line 463 of file netconf_parser.cc.
|
static |
The user-facing name of the symbol whose (internal) number is YYSYMBOL.
No bounds checking.
Definition at line 1836 of file netconf_parser.cc.
Referenced by isc::netconf::NetconfParser::basic_symbol< Base >::name().
|
static |
The number of tokens.
Definition at line 715 of file netconf_parser.h.
Referenced by isc::netconf::NetconfParser::context::expected_tokens().