Kea 2.7.5
|
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 215 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 1152 of file d2_parser.h.
typedef location isc::d2::D2Parser::location_type |
Symbol locations.
Definition at line 469 of file d2_parser.h.
Backward compatibility (Bison 3.8).
Definition at line 466 of file d2_parser.h.
(Internal) symbol kind.
Definition at line 879 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.
|
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 3408 of file d2_parser.cc.
void isc::d2::D2Parser::error | ( | const syntax_error & | err | ) |
Report a syntax error.
Definition at line 2671 of file d2_parser.cc.
References error().
|
inlinestatic |
Definition at line 1703 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1898 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1928 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2498 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2063 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2093 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1973 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1343 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1328 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1583 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1763 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1778 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1298 of file d2_parser.h.
|
inlinestatic |
Definition at line 1313 of file d2_parser.h.
|
inlinestatic |
Definition at line 1628 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2213 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1433 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1718 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1958 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1478 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1658 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1283 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2483 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2243 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1598 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2108 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1673 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1823 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1838 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2468 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1448 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1553 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2078 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1643 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1388 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2123 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2153 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1358 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2258 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2273 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2168 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1538 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1493 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1418 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2198 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2183 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2138 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2018 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2033 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2288 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1463 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1403 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1943 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1613 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1373 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1733 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1748 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2228 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1868 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1853 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1883 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1793 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2453 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2378 of file d2_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 2393 of file d2_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 2333 of file d2_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 2408 of file d2_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 2423 of file d2_parser.h.
|
inlinestatic |
Definition at line 2438 of file d2_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 2348 of file d2_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 2363 of file d2_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 1523 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2318 of file d2_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 2303 of file d2_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 2048 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1688 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1913 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1508 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1808 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1988 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1568 of file d2_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 2003 of file d2_parser.h.
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::D2ParserContext::AUTH_TYPE, isc::d2::D2ParserContext::AUTHENTICATION, isc::d2::D2ParserContext::CLIENTS, isc::d2::D2ParserContext::CONFIG, isc::d2::D2ParserContext::contextName(), isc::d2::D2ParserContext::CONTROL_SOCKET, isc::d2::D2ParserContext::CONTROL_SOCKET_TYPE, isc::d2::D2ParserContext::ctx_, isc::d2::D2ParserContext::DDNS_DOMAIN, isc::d2::D2ParserContext::DDNS_DOMAINS, isc::d2::D2ParserContext::DHCPDDNS, isc::d2::D2ParserContext::DNS_SERVERS, isc::d2::D2ParserContext::enter(), error(), isc::d2::D2ParserContext::FORWARD_DDNS, isc::d2::D2ParserContext::HOOKS_LIBRARIES, isc::d2::D2ParserContext::leave(), isc::d2::D2ParserContext::loc2pos(), isc::d2::D2ParserContext::LOGGERS, isc::data::merge(), isc::d2::D2ParserContext::NCR_FORMAT, isc::d2::D2ParserContext::NCR_PROTOCOL, isc::d2::D2ParserContext::NO_KEYWORD, isc::d2::D2ParserContext::OUTPUT_OPTIONS, isc::d2::D2ParserContext::require(), isc::d2::D2ParserContext::REVERSE_DDNS, 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::D2ParserContext::stack_, isc::d2::D2ParserContext::TSIG_KEY, isc::d2::D2ParserContext::TSIG_KEYS, isc::d2::D2ParserContext::unique(), isc::d2::D2ParserContext::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 2717 of file d2_parser.cc.
Referenced by isc::d2::D2Parser::basic_symbol< Base >::name().
|
static |
The number of tokens.
Definition at line 882 of file d2_parser.h.
Referenced by isc::d2::D2Parser::context::expected_tokens().