![]() |
Kea
1.5.0
|
A Bison parser. More...
#include <netconf_parser.h>
Classes | |
| struct | basic_symbol |
| A complete symbol. More... | |
| struct | by_type |
| Type access provider for token (enum) based symbols. More... | |
| struct | syntax_error |
| Syntax errors thrown from user actions. More... | |
| struct | token |
| Tokens. More... | |
| union | union_type |
| An auxiliary type to compute the largest semantic type. More... | |
Public Types | |
| enum | { empty_symbol = -2 } |
| The symbol type number to denote an empty symbol. More... | |
| typedef int | debug_level_type |
| Type for debugging levels. More... | |
| typedef location | location_type |
| Symbol locations. More... | |
| typedef variant< sizeof(union_type)> | semantic_type |
| Symbol semantic values. More... | |
| typedef int | symbol_number_type |
| Symbol type: an internal symbol number. More... | |
| typedef basic_symbol< by_type > | symbol_type |
| "External" symbols: returned by the scanner. More... | |
| typedef unsigned char | token_number_type |
| Internal symbol number for tokens (subsumed by symbol_number_type). More... | |
| typedef token::yytokentype | token_type |
| (External) token type, as returned by yylex. More... | |
Public Member Functions | |
| NetconfParser (isc::netconf::ParserContext &ctx_yyarg) | |
| Build a parser object. More... | |
| virtual | ~NetconfParser () |
| debug_level_type | debug_level () const YY_ATTRIBUTE_PURE |
| The current debugging level. More... | |
| std::ostream & | debug_stream () const YY_ATTRIBUTE_PURE |
| The current debugging stream. More... | |
| virtual void | error (const location_type &loc, const std::string &msg) |
| Report a syntax error. More... | |
| void | error (const syntax_error &err) |
| Report a syntax error. More... | |
| int | operator() () |
| Parse. More... | |
| virtual int | parse () |
| Parse. More... | |
| void | set_debug_level (debug_level_type l) |
| Set the current debugging level. More... | |
| void | set_debug_stream (std::ostream &) |
| Set the current debugging stream. More... | |
A Bison parser.
Definition at line 494 of file netconf_parser.h.
| typedef int isc::netconf::NetconfParser::debug_level_type |
Type for debugging levels.
Definition at line 734 of file netconf_parser.h.
| typedef location isc::netconf::NetconfParser::location_type |
Symbol locations.
Definition at line 525 of file netconf_parser.h.
| typedef variant<sizeof (union_type)> isc::netconf::NetconfParser::semantic_type |
Symbol semantic values.
Definition at line 520 of file netconf_parser.h.
| typedef int isc::netconf::NetconfParser::symbol_number_type |
Symbol type: an internal symbol number.
Definition at line 593 of file netconf_parser.h.
"External" symbols: returned by the scanner.
Definition at line 713 of file netconf_parser.h.
| typedef unsigned char isc::netconf::NetconfParser::token_number_type |
Internal symbol number for tokens (subsumed by symbol_number_type).
Definition at line 599 of file netconf_parser.h.
(External) token type, as returned by yylex.
Definition at line 590 of file netconf_parser.h.
| anonymous enum |
The symbol type number to denote an empty symbol.
| Enumerator | |
|---|---|
| empty_symbol | |
Definition at line 596 of file netconf_parser.h.
| isc::netconf::NetconfParser::NetconfParser | ( | isc::netconf::ParserContext & | ctx_yyarg | ) |
Build a parser object.
Definition at line 186 of file netconf_parser.cc.
|
virtual |
Definition at line 195 of file netconf_parser.cc.
| NetconfParser::debug_level_type isc::netconf::NetconfParser::debug_level | ( | ) | const |
The current debugging level.
Definition at line 478 of file netconf_parser.cc.
| std::ostream & isc::netconf::NetconfParser::debug_stream | ( | ) | const |
The current debugging stream.
Definition at line 465 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 2071 of file netconf_parser.cc.
References isc::netconf::ParserContext::error().
Referenced by error(), and parse().
Here is the call graph for this function:| void isc::netconf::NetconfParser::error | ( | const syntax_error & | err | ) |
Report a syntax error.
Definition at line 1628 of file netconf_parser.cc.
References error(), and isc::netconf::NetconfParser::syntax_error::location.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 1803 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_BOOLEAN, and YY_MOVE.
|
inlinestatic |
Definition at line 1558 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_BOOT_UPDATE, and YY_MOVE.
|
inlinestatic |
Definition at line 1607 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_CA_SERVER, and YY_MOVE.
|
inlinestatic |
Definition at line 1495 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_COLON, and YY_MOVE.
|
inlinestatic |
Definition at line 1488 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_COMMA, and YY_MOVE.
|
inlinestatic |
Definition at line 1551 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_COMMENT, and YY_MOVE.
|
inlinestatic |
Definition at line 1621 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_CONTROL_SOCKET, and YY_MOVE.
|
inlinestatic |
Definition at line 1600 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_D2_SERVER, and YY_MOVE.
|
inlinestatic |
Definition at line 1726 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_DEBUGLEVEL, and YY_MOVE.
|
inlinestatic |
Definition at line 1586 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_DHCP4_SERVER, and YY_MOVE.
|
inlinestatic |
Definition at line 1593 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_DHCP6_SERVER, and YY_MOVE.
|
inlinestatic |
Definition at line 1481 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_END, and YY_MOVE.
|
inlinestatic |
Definition at line 1796 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_FLOAT, and YY_MOVE.
|
inlinestatic |
Definition at line 1740 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_FLUSH, and YY_MOVE.
|
inlinestatic |
Definition at line 1670 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_HOOKS_LIBRARIES, and YY_MOVE.
|
inlinestatic |
Definition at line 1642 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_HTTP, and YY_MOVE.
|
inlinestatic |
Definition at line 1789 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_INTEGER, and YY_MOVE.
|
inlinestatic |
Definition at line 1516 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LCURLY_BRACKET, and YY_MOVE.
|
inlinestatic |
Definition at line 1677 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LIBRARY, and YY_MOVE.
|
inlinestatic |
Definition at line 1698 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LOGGERS, and YY_MOVE.
|
inlinestatic |
Definition at line 1691 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LOGGING, and YY_MOVE.
|
inlinestatic |
Definition at line 1502 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_LSQUARE_BRACKET, and YY_MOVE.
|
inlinestatic |
Definition at line 1579 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MANAGED_SERVERS, and YY_MOVE.
|
inlinestatic |
Definition at line 1747 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MAXSIZE, and YY_MOVE.
|
inlinestatic |
Definition at line 1754 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MAXVER, and YY_MOVE.
|
inlinestatic |
Definition at line 1614 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_MODEL, and YY_MOVE.
|
inlinestatic |
Definition at line 1705 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NAME, and YY_MOVE.
|
inlinestatic |
Definition at line 1537 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NETCONF, and YY_MOVE.
|
inlinestatic |
Definition at line 1530 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_NULL_TYPE, and YY_MOVE.
|
inlinestatic |
Definition at line 1719 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_OUTPUT, and YY_MOVE.
|
inlinestatic |
Definition at line 1712 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_OUTPUT_OPTIONS, and YY_MOVE.
|
inlinestatic |
Definition at line 1684 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_PARAMETERS, and YY_MOVE.
|
inlinestatic |
Definition at line 1523 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_RCURLY_BRACKET, and YY_MOVE.
|
inlinestatic |
Definition at line 1509 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_RSQUARE_BRACKET, and YY_MOVE.
|
inlinestatic |
Definition at line 1733 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SEVERITY, and YY_MOVE.
|
inlinestatic |
Definition at line 1656 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SOCKET_NAME, and YY_MOVE.
|
inlinestatic |
Definition at line 1628 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SOCKET_TYPE, and YY_MOVE.
|
inlinestatic |
Definition at line 1663 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SOCKET_URL, and YY_MOVE.
|
inlinestatic |
Definition at line 1761 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_START_JSON, and YY_MOVE.
|
inlinestatic |
Definition at line 1768 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_START_NETCONF, and YY_MOVE.
|
inlinestatic |
Definition at line 1775 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_START_SUB_NETCONF, and YY_MOVE.
|
inlinestatic |
Definition at line 1649 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_STDOUT, and YY_MOVE.
|
inlinestatic |
Definition at line 1782 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_STRING, and YY_MOVE.
|
inlinestatic |
Definition at line 1565 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_SUBSCRIBE_CHANGES, and YY_MOVE.
|
inlinestatic |
Definition at line 1635 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_UNIX, and YY_MOVE.
|
inlinestatic |
Definition at line 1544 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_USER_CONTEXT, and YY_MOVE.
|
inlinestatic |
Definition at line 1572 of file netconf_parser.h.
References isc::netconf::NetconfParser::token::TOKEN_VALIDATE_CHANGES, and YY_MOVE.
| int isc::netconf::NetconfParser::operator() | ( | ) |
Parse.
An alias for parse ().
Definition at line 513 of file netconf_parser.cc.
References parse().
Here is the call graph for this function:
|
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 519 of file netconf_parser.cc.
References isc::netconf::stack< T, S >::clear(), isc::netconf::NetconfParser::basic_symbol< Base >::clear(), isc::netconf::ParserContext::CONFIG, isc::netconf::ParserContext::contextName(), isc::netconf::ParserContext::CONTROL_SOCKET, isc::netconf::ParserContext::ctx_, isc::netconf::NetconfParser::basic_symbol< Base >::empty(), isc::netconf::ParserContext::enter(), error(), isc::netconf::ParserContext::HOOKS_LIBRARIES, isc::netconf::ParserContext::leave(), isc::netconf::ParserContext::loc2pos(), isc::netconf::NetconfParser::basic_symbol< Base >::location, isc::netconf::ParserContext::LOGGERS, isc::netconf::ParserContext::LOGGING, isc::netconf::ParserContext::MANAGED_SERVERS, isc::data::merge(), isc::netconf::NetconfParser::basic_symbol< Base >::move(), isc::netconf::ParserContext::NETCONF, isc::netconf::ParserContext::NO_KEYWORDS, isc::netconf::ParserContext::OUTPUT_OPTIONS, isc::netconf::ParserContext::SERVER, isc::netconf::stack< T, S >::size(), isc::netconf::ParserContext::SOCKET_TYPE, isc::netconf::ParserContext::stack_, YY_MOVE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYCDEBUG, YYERROR, yylex, and YYLLOC_DEFAULT.
Referenced by operator()().
Here is the call graph for this function:| void isc::netconf::NetconfParser::set_debug_level | ( | debug_level_type | l | ) |
Set the current debugging level.
Definition at line 484 of file netconf_parser.cc.
| void isc::netconf::NetconfParser::set_debug_stream | ( | std::ostream & | o | ) |
Set the current debugging stream.
Definition at line 471 of file netconf_parser.cc.