![]() |
Kea 2.7.3
|
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). | |
typedef location | location_type |
Symbol locations. | |
typedef value_type | semantic_type |
Backward compatibility (Bison 3.8). | |
typedef symbol_kind::symbol_kind_type | symbol_kind_type |
(Internal) symbol kind. | |
typedef token::token_kind_type | token_kind_type |
Token kind, as returned by yylex. | |
typedef token_kind_type | token_type |
Backward compatibility alias (Bison 3.6). | |
Public Member Functions | |
NetconfParser (isc::netconf::ParserContext &ctx_yyarg) | |
Build a parser object. | |
virtual | ~NetconfParser () |
virtual void | error (const location_type &loc, const std::string &msg) |
Report a syntax error. | |
void | error (const syntax_error &err) |
Report a syntax error. | |
int | operator() () |
Parse. | |
virtual int | parse () |
Parse. | |
Static Public Attributes | |
static const symbol_kind_type | YYNTOKENS = symbol_kind::YYNTOKENS |
The number of tokens. | |
A Bison parser.
Definition at line 217 of file netconf_parser.h.
Backward compatibility for a private implementation detail (Bison 3.6).
Definition at line 984 of file netconf_parser.h.
typedef location isc::netconf::NetconfParser::location_type |
Symbol locations.
Definition at line 469 of file netconf_parser.h.
Backward compatibility (Bison 3.8).
Definition at line 466 of file netconf_parser.h.
(Internal) symbol kind.
Definition at line 715 of file netconf_parser.h.
Token kind, as returned by yylex.
Definition at line 550 of file netconf_parser.h.
Backward compatibility alias (Bison 3.6).
Definition at line 553 of file netconf_parser.h.
isc::netconf::NetconfParser::NetconfParser | ( | isc::netconf::ParserContext & | ctx_yyarg | ) |
Build a parser object.
Definition at line 152 of file netconf_parser.cc.
|
virtual |
Definition at line 162 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 2313 of file netconf_parser.cc.
void isc::netconf::NetconfParser::error | ( | const syntax_error & | err | ) |
Report a syntax error.
Definition at line 1795 of file netconf_parser.cc.
References error().
|
inlinestatic |
Definition at line 1835 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1310 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1415 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1175 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1160 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1295 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1445 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1400 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1655 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1370 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1385 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1115 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1820 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1685 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1550 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1490 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1805 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1220 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1565 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1595 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1190 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1355 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1700 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1715 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1430 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1610 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1265 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1130 of file netconf_parser.h.
|
inlinestatic |
Definition at line 1145 of file netconf_parser.h.
|
inlinestatic |
Definition at line 1250 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1640 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1625 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1580 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1730 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1235 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1205 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1670 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1520 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1460 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1535 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1745 of file netconf_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 1760 of file netconf_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 1775 of file netconf_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 1505 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1790 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1325 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1475 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1280 of file netconf_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1340 of file netconf_parser.h.
Referenced by while().
int isc::netconf::NetconfParser::operator() | ( | ) |
Parse.
An alias for parse ().
Definition at line 510 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 516 of file netconf_parser.cc.
References isc::netconf::ParserContext::CONFIG, isc::netconf::ParserContext::contextName(), isc::netconf::ParserContext::CONTROL_SOCKET, isc::netconf::ParserContext::ctx_, isc::netconf::ParserContext::enter(), error(), isc::netconf::ParserContext::HOOKS_LIBRARIES, isc::netconf::ParserContext::leave(), isc::netconf::ParserContext::loc2pos(), isc::netconf::ParserContext::LOGGERS, isc::netconf::ParserContext::MANAGED_SERVERS, isc::data::merge(), 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()().
|
static |
The user-facing name of the symbol whose (internal) number is YYSYMBOL.
No bounds checking.
Definition at line 1841 of file netconf_parser.cc.
Referenced by isc::netconf::NetconfParser::basic_symbol< Base >::name().
|
static |
The number of tokens.
Definition at line 718 of file netconf_parser.h.
Referenced by isc::netconf::NetconfParser::context::expected_tokens().