![]() |
Kea 3.3.1
|
A Bison parser. More...
#include <d2_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 | |
| D2Parser (isc::d2::D2ParserContext &ctx_yyarg) | |
| Build a parser object. | |
| virtual | ~D2Parser () |
| 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 216 of file d2_parser.h.
| typedef by_kind isc::d2::D2Parser::by_type |
Backward compatibility for a private implementation detail (Bison 3.6).
Definition at line 1149 of file d2_parser.h.
| typedef location isc::d2::D2Parser::location_type |
Symbol locations.
Definition at line 470 of file d2_parser.h.
Backward compatibility (Bison 3.8).
Definition at line 467 of file d2_parser.h.
(Internal) symbol kind.
Definition at line 876 of file d2_parser.h.
Token kind, as returned by yylex.
Definition at line 583 of file d2_parser.h.
Backward compatibility alias (Bison 3.6).
Definition at line 586 of file d2_parser.h.
| isc::d2::D2Parser::D2Parser | ( | isc::d2::D2ParserContext & | ctx_yyarg | ) |
Build a parser object.
Definition at line 152 of file d2_parser.cc.
Referenced by isc::d2::D2Parser::context::context().
|
virtual |
Definition at line 162 of file d2_parser.cc.
|
virtual |
Report a syntax error.
| loc | where the syntax error is found. |
| msg | a description of the syntax error. |
Definition at line 3383 of file d2_parser.cc.
| void isc::d2::D2Parser::error | ( | const syntax_error & | err | ) |
Report a syntax error.
Definition at line 2648 of file d2_parser.cc.
References error(), and isc::d2::D2Parser::syntax_error::location.
|
inlinestatic |
Definition at line 1700 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_ALGORITHM.
Referenced by while().
|
inlinestatic |
Definition at line 1880 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_AUTHENTICATION.
Referenced by while().
|
inlinestatic |
Definition at line 1910 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_BASIC.
Referenced by while().
|
inlinestatic |
Definition at line 2480 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_BOOLEAN.
Referenced by while().
|
inlinestatic |
Definition at line 2045 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_CERT_FILE.
Referenced by while().
|
inlinestatic |
Definition at line 2075 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_CERT_REQUIRED.
Referenced by while().
|
inlinestatic |
Definition at line 1955 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_CLIENTS.
Referenced by while().
|
inlinestatic |
Definition at line 1340 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_COLON.
Referenced by while().
|
inlinestatic |
Definition at line 1325 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_COMMA.
Referenced by while().
|
inlinestatic |
Definition at line 1580 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_COMMENT.
Referenced by while().
|
inlinestatic |
Definition at line 1760 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_CONTROL_SOCKETS.
Referenced by while().
|
inlinestatic |
Definition at line 1295 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_D2_PARSER_error.
|
inlinestatic |
Definition at line 1310 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_D2_PARSER_UNDEF.
|
inlinestatic |
Definition at line 1625 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_DDNS_DOMAINS.
Referenced by while().
|
inlinestatic |
Definition at line 2195 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_DEBUGLEVEL.
Referenced by while().
|
inlinestatic |
Definition at line 1430 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_DHCPDDNS.
Referenced by while().
|
inlinestatic |
Definition at line 1715 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_DIGEST_BITS.
Referenced by while().
|
inlinestatic |
Definition at line 1940 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_DIRECTORY.
Referenced by while().
|
inlinestatic |
Definition at line 1475 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_DNS_SERVER_TIMEOUT.
Referenced by while().
|
inlinestatic |
Definition at line 1655 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_DNS_SERVERS.
Referenced by while().
|
inlinestatic |
Definition at line 1280 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_END.
Referenced by while().
|
inlinestatic |
Definition at line 2465 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_FLOAT.
Referenced by while().
|
inlinestatic |
Definition at line 2225 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_FLUSH.
Referenced by while().
|
inlinestatic |
Definition at line 1595 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_FORWARD_DDNS.
Referenced by while().
|
inlinestatic |
Definition at line 2090 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_HOOKS_LIBRARIES.
Referenced by while().
|
inlinestatic |
Definition at line 1670 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_HOSTNAME.
Referenced by while().
|
inlinestatic |
Definition at line 1805 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_HTTP.
Referenced by while().
|
inlinestatic |
Definition at line 1820 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_HTTPS.
Referenced by while().
|
inlinestatic |
Definition at line 2450 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_INTEGER.
Referenced by while().
|
inlinestatic |
Definition at line 1445 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_IP_ADDRESS.
Referenced by while().
|
inlinestatic |
Definition at line 1550 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_JSON.
Referenced by while().
|
inlinestatic |
Definition at line 2060 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_KEY_FILE.
Referenced by while().
|
inlinestatic |
Definition at line 1640 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_KEY_NAME.
Referenced by while().
|
inlinestatic |
Definition at line 1385 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_LCURLY_BRACKET.
Referenced by while().
|
inlinestatic |
Definition at line 2105 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_LIBRARY.
Referenced by while().
|
inlinestatic |
Definition at line 2135 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_LOGGERS.
Referenced by while().
|
inlinestatic |
Definition at line 1355 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_LSQUARE_BRACKET.
Referenced by while().
|
inlinestatic |
Definition at line 2240 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_MAXSIZE.
Referenced by while().
|
inlinestatic |
Definition at line 2255 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_MAXVER.
Referenced by while().
|
inlinestatic |
Definition at line 2150 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_NAME.
Referenced by while().
|
inlinestatic |
Definition at line 1535 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_NCR_FORMAT.
Referenced by while().
|
inlinestatic |
Definition at line 1490 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_NCR_PROTOCOL.
Referenced by while().
|
inlinestatic |
Definition at line 1415 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_NULL_TYPE.
Referenced by while().
|
inlinestatic |
Definition at line 2180 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_OUTPUT.
Referenced by while().
|
inlinestatic |
Definition at line 2165 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_OUTPUT_OPTIONS.
Referenced by while().
|
inlinestatic |
Definition at line 2120 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_PARAMETERS.
Referenced by while().
|
inlinestatic |
Definition at line 2000 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_PASSWORD.
Referenced by while().
|
inlinestatic |
Definition at line 2015 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_PASSWORD_FILE.
Referenced by while().
|
inlinestatic |
Definition at line 2270 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_PATTERN.
Referenced by while().
|
inlinestatic |
Definition at line 1460 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_PORT.
Referenced by while().
|
inlinestatic |
Definition at line 1400 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_RCURLY_BRACKET.
Referenced by while().
|
inlinestatic |
Definition at line 1925 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_REALM.
Referenced by while().
|
inlinestatic |
Definition at line 1610 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_REVERSE_DDNS.
Referenced by while().
|
inlinestatic |
Definition at line 1370 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_RSQUARE_BRACKET.
Referenced by while().
|
inlinestatic |
Definition at line 1730 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SECRET.
Referenced by while().
|
inlinestatic |
Definition at line 1745 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SECRET_FILE.
Referenced by while().
|
inlinestatic |
Definition at line 2210 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SEVERITY.
Referenced by while().
|
inlinestatic |
Definition at line 1850 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SOCKET_ADDRESS.
Referenced by while().
|
inlinestatic |
Definition at line 1835 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SOCKET_NAME.
Referenced by while().
|
inlinestatic |
Definition at line 1865 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SOCKET_PORT.
Referenced by while().
|
inlinestatic |
Definition at line 1775 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SOCKET_TYPE.
Referenced by while().
|
inlinestatic |
Definition at line 2435 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_STRING.
Referenced by while().
|
inlinestatic |
Definition at line 2360 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SUB_DDNS_DOMAIN.
Referenced by if().
|
inlinestatic |
Definition at line 2375 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SUB_DDNS_DOMAINS.
Referenced by if().
|
inlinestatic |
Definition at line 2315 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SUB_DHCPDDNS.
Referenced by if().
|
inlinestatic |
Definition at line 2390 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SUB_DNS_SERVER.
Referenced by if().
|
inlinestatic |
Definition at line 2405 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SUB_DNS_SERVERS.
|
inlinestatic |
Definition at line 2420 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SUB_HOOKS_LIBRARY.
Referenced by if().
|
inlinestatic |
Definition at line 2330 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SUB_TSIG_KEY.
Referenced by if().
|
inlinestatic |
Definition at line 2345 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_SUB_TSIG_KEYS.
Referenced by if().
|
inlinestatic |
Definition at line 1520 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_TCP.
Referenced by while().
|
inlinestatic |
Definition at line 2300 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_TOPLEVEL_DHCPDDNS.
Referenced by if().
|
inlinestatic |
Definition at line 2285 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_TOPLEVEL_JSON.
Referenced by if().
|
inlinestatic |
Definition at line 2030 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_TRUST_ANCHOR.
Referenced by while().
|
inlinestatic |
Definition at line 1685 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_TSIG_KEYS.
Referenced by while().
|
inlinestatic |
Definition at line 1895 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_TYPE.
Referenced by while().
|
inlinestatic |
Definition at line 1505 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_UDP.
Referenced by while().
|
inlinestatic |
Definition at line 1790 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_UNIX.
Referenced by while().
|
inlinestatic |
Definition at line 1970 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_USER.
Referenced by while().
|
inlinestatic |
Definition at line 1565 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_USER_CONTEXT.
Referenced by while().
|
inlinestatic |
Definition at line 1985 of file d2_parser.h.
References isc::d2::D2Parser::token::TOKEN_USER_FILE.
Referenced by while().
| int isc::d2::D2Parser::operator() | ( | ) |
Parse.
An alias for parse ().
Definition at line 530 of file d2_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 536 of file d2_parser.cc.
References isc::d2::D2Parser::value_type::as(), isc::d2::D2Parser::basic_symbol< Base >::clear(), isc::d2::D2Parser::value_type::emplace(), isc::d2::D2Parser::basic_symbol< Base >::empty(), error(), isc::d2::D2Parser::by_kind::kind(), isc::d2::D2Parser::by_kind::kind_, isc::d2::D2Parser::basic_symbol< Base >::location, isc::data::merge(), isc::d2::D2Parser::basic_symbol< Base >::move(), isc::d2::D2Parser::symbol_kind::S_auth_type_value, isc::d2::D2Parser::symbol_kind::S_BOOLEAN, isc::d2::D2Parser::symbol_kind::S_control_socket_type_value, isc::d2::D2Parser::symbol_kind::S_FLOAT, isc::d2::D2Parser::symbol_kind::S_INTEGER, isc::d2::D2Parser::symbol_kind::S_map_value, isc::d2::D2Parser::symbol_kind::S_ncr_protocol_value, isc::d2::D2Parser::symbol_kind::S_STRING, isc::d2::D2Parser::symbol_kind::S_value, isc::d2::D2Parser::symbol_kind::S_YYEOF, isc::d2::D2Parser::symbol_kind::S_YYerror, isc::d2::D2Parser::symbol_kind::S_YYUNDEF, isc::d2::D2Parser::basic_symbol< Base >::value, YY_ATTRIBUTE_UNUSED, 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 2694 of file d2_parser.cc.
Referenced by isc::d2::D2Parser::basic_symbol< by_kind >::name().
|
static |
The number of tokens.
Definition at line 879 of file d2_parser.h.
Referenced by isc::d2::D2Parser::context::expected_tokens().