Kea 2.7.5
|
A Bison parser. More...
#include <agent_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 | |
AgentParser (isc::agent::ParserContext &ctx_yyarg) | |
Build a parser object. | |
virtual | ~AgentParser () |
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 214 of file agent_parser.h.
Backward compatibility for a private implementation detail (Bison 3.6).
Definition at line 1020 of file agent_parser.h.
typedef location isc::agent::AgentParser::location_type |
Symbol locations.
Definition at line 467 of file agent_parser.h.
Backward compatibility (Bison 3.8).
Definition at line 464 of file agent_parser.h.
(Internal) symbol kind.
Definition at line 749 of file agent_parser.h.
Token kind, as returned by yylex.
Definition at line 555 of file agent_parser.h.
Backward compatibility alias (Bison 3.6).
Definition at line 558 of file agent_parser.h.
isc::agent::AgentParser::AgentParser | ( | isc::agent::ParserContext & | ctx_yyarg | ) |
Build a parser object.
Definition at line 152 of file agent_parser.cc.
|
virtual |
Definition at line 162 of file agent_parser.cc.
|
virtual |
Report a syntax error.
loc | where the syntax error is found. |
msg | a description of the syntax error. |
Definition at line 2553 of file agent_parser.cc.
void isc::agent::AgentParser::error | ( | const syntax_error & | err | ) |
Report a syntax error.
Definition at line 1994 of file agent_parser.cc.
References error().
|
inlinestatic |
Definition at line 1166 of file agent_parser.h.
|
inlinestatic |
Definition at line 1181 of file agent_parser.h.
|
inlinestatic |
Definition at line 1376 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1406 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1976 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1541 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1571 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1451 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1211 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1196 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1361 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1301 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1586 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1631 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1796 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1601 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1616 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1436 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1151 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1961 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1826 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1691 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1316 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1331 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1946 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1556 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1256 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1706 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1736 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1226 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1841 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1856 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1751 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1286 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1781 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1766 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1721 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1496 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1511 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1871 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1271 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1421 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1241 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1811 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1646 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1661 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1901 of file agent_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 1886 of file agent_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 1916 of file agent_parser.h.
Referenced by if().
|
inlinestatic |
Definition at line 1931 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1526 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1391 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1676 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1466 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1346 of file agent_parser.h.
Referenced by while().
|
inlinestatic |
Definition at line 1481 of file agent_parser.h.
Referenced by while().
int isc::agent::AgentParser::operator() | ( | ) |
Parse.
An alias for parse ().
Definition at line 520 of file agent_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 526 of file agent_parser.cc.
References isc::agent::ParserContext::AGENT, isc::agent::ParserContext::AUTH_TYPE, isc::agent::ParserContext::AUTHENTICATION, isc::agent::ParserContext::CLIENTS, isc::agent::ParserContext::CONFIG, isc::agent::ParserContext::contextName(), isc::agent::ParserContext::CONTROL_SOCKETS, isc::agent::ParserContext::ctx_, isc::agent::ParserContext::enter(), error(), isc::agent::ParserContext::HOOKS_LIBRARIES, isc::agent::ParserContext::leave(), isc::agent::ParserContext::loc2pos(), isc::agent::ParserContext::LOGGERS, isc::data::merge(), isc::agent::ParserContext::NO_KEYWORDS, isc::agent::ParserContext::OUTPUT_OPTIONS, isc::agent::ParserContext::require(), isc::agent::AgentParser::symbol_kind::S_auth_type_value, isc::agent::AgentParser::symbol_kind::S_BOOLEAN, isc::agent::AgentParser::symbol_kind::S_FLOAT, isc::agent::AgentParser::symbol_kind::S_INTEGER, isc::agent::AgentParser::symbol_kind::S_map_value, isc::agent::AgentParser::symbol_kind::S_socket_type_value, isc::agent::AgentParser::symbol_kind::S_STRING, isc::agent::AgentParser::symbol_kind::S_value, isc::agent::AgentParser::symbol_kind::S_YYEOF, isc::agent::AgentParser::symbol_kind::S_YYerror, isc::agent::AgentParser::symbol_kind::S_YYUNDEF, isc::agent::ParserContext::SERVER, isc::agent::ParserContext::SOCKET_TYPE, isc::agent::ParserContext::stack_, isc::agent::ParserContext::unique(), isc::agent::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 2040 of file agent_parser.cc.
Referenced by isc::agent::AgentParser::basic_symbol< Base >::name().
|
static |
The number of tokens.
Definition at line 752 of file agent_parser.h.
Referenced by isc::agent::AgentParser::context::expected_tokens().