![]() |
Kea 3.2.0-git
|
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 980 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 711 of file netconf_parser.h.
Token kind, as returned by yylex.
Definition at line 549 of file netconf_parser.h.
Backward compatibility alias (Bison 3.6).
Definition at line 552 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.
Referenced by isc::netconf::NetconfParser::context::context().
|
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 2287 of file netconf_parser.cc.
| void isc::netconf::NetconfParser::error | ( | const syntax_error & | err | ) |
Report a syntax error.
Definition at line 1774 of file netconf_parser.cc.
References error(), and isc::netconf::NetconfParser::syntax_error::location.
|
inlinestatic |
Definition at line 1816 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_BOOLEAN.
Referenced by while().
|
inlinestatic |
Definition at line 1306 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_BOOT_UPDATE.
Referenced by while().
|
inlinestatic |
Definition at line 1171 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_COLON.
Referenced by while().
|
inlinestatic |
Definition at line 1156 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_COMMA.
Referenced by while().
|
inlinestatic |
Definition at line 1291 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_COMMENT.
Referenced by while().
|
inlinestatic |
Definition at line 1426 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_CONTROL_SOCKET.
Referenced by while().
|
inlinestatic |
Definition at line 1396 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_D2_SERVER.
Referenced by while().
|
inlinestatic |
Definition at line 1636 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_DEBUGLEVEL.
Referenced by while().
|
inlinestatic |
Definition at line 1366 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_DHCP4_SERVER.
Referenced by while().
|
inlinestatic |
Definition at line 1381 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_DHCP6_SERVER.
Referenced by while().
|
inlinestatic |
Definition at line 1111 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_END.
Referenced by while().
|
inlinestatic |
Definition at line 1801 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_FLOAT.
Referenced by while().
|
inlinestatic |
Definition at line 1666 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_FLUSH.
Referenced by while().
|
inlinestatic |
Definition at line 1531 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_HOOKS_LIBRARIES.
Referenced by while().
|
inlinestatic |
Definition at line 1471 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_HTTP.
Referenced by while().
|
inlinestatic |
Definition at line 1786 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_INTEGER.
Referenced by while().
|
inlinestatic |
Definition at line 1216 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LCURLY_BRACKET.
Referenced by while().
|
inlinestatic |
Definition at line 1546 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LIBRARY.
Referenced by while().
|
inlinestatic |
Definition at line 1576 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LOGGERS.
Referenced by while().
|
inlinestatic |
Definition at line 1186 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LSQUARE_BRACKET.
Referenced by while().
|
inlinestatic |
Definition at line 1351 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MANAGED_SERVERS.
Referenced by while().
|
inlinestatic |
Definition at line 1681 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MAXSIZE.
Referenced by while().
|
inlinestatic |
Definition at line 1696 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MAXVER.
Referenced by while().
|
inlinestatic |
Definition at line 1411 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MODEL.
Referenced by while().
|
inlinestatic |
Definition at line 1591 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NAME.
Referenced by while().
|
inlinestatic |
Definition at line 1261 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NETCONF.
Referenced by while().
|
inlinestatic |
Definition at line 1126 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NETCONF_error.
|
inlinestatic |
Definition at line 1141 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NETCONF_UNDEF.
|
inlinestatic |
Definition at line 1246 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NULL_TYPE.
Referenced by while().
|
inlinestatic |
Definition at line 1621 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_OUTPUT.
Referenced by while().
|
inlinestatic |
Definition at line 1606 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_OUTPUT_OPTIONS.
Referenced by while().
|
inlinestatic |
Definition at line 1561 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_PARAMETERS.
Referenced by while().
|
inlinestatic |
Definition at line 1711 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_PATTERN.
Referenced by while().
|
inlinestatic |
Definition at line 1231 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_RCURLY_BRACKET.
Referenced by while().
|
inlinestatic |
Definition at line 1201 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_RSQUARE_BRACKET.
Referenced by while().
|
inlinestatic |
Definition at line 1651 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SEVERITY.
Referenced by while().
|
inlinestatic |
Definition at line 1501 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SOCKET_NAME.
Referenced by while().
|
inlinestatic |
Definition at line 1441 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SOCKET_TYPE.
Referenced by while().
|
inlinestatic |
Definition at line 1516 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SOCKET_URL.
Referenced by while().
|
inlinestatic |
Definition at line 1726 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_START_JSON.
Referenced by if().
|
inlinestatic |
Definition at line 1741 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_START_NETCONF.
Referenced by if().
|
inlinestatic |
Definition at line 1756 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_START_SUB_NETCONF.
Referenced by if().
|
inlinestatic |
Definition at line 1486 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_STDOUT.
Referenced by while().
|
inlinestatic |
Definition at line 1771 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_STRING.
Referenced by while().
|
inlinestatic |
Definition at line 1321 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SUBSCRIBE_CHANGES.
Referenced by while().
|
inlinestatic |
Definition at line 1456 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_UNIX.
Referenced by while().
|
inlinestatic |
Definition at line 1276 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_USER_CONTEXT.
Referenced by while().
|
inlinestatic |
Definition at line 1336 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_VALIDATE_CHANGES.
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::NetconfParser::value_type::as(), isc::netconf::NetconfParser::basic_symbol< Base >::clear(), isc::netconf::NetconfParser::value_type::emplace(), isc::netconf::NetconfParser::basic_symbol< Base >::empty(), error(), isc::netconf::NetconfParser::by_kind::kind(), isc::netconf::NetconfParser::by_kind::kind_, isc::netconf::NetconfParser::basic_symbol< Base >::location, isc::data::merge(), isc::netconf::NetconfParser::basic_symbol< Base >::move(), 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::NetconfParser::basic_symbol< Base >::value, 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 1820 of file netconf_parser.cc.
Referenced by isc::netconf::NetconfParser::basic_symbol< by_kind >::name().
|
static |
The number of tokens.
Definition at line 714 of file netconf_parser.h.
Referenced by isc::netconf::NetconfParser::context::expected_tokens().