Kea 2.5.5
isc::d2::D2Parser Class Reference

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). More...
 
typedef int debug_level_type
 Type for debugging levels. More...
 
typedef location location_type
 Symbol locations. More...
 
typedef value_type semantic_type
 Backward compatibility (Bison 3.8). More...
 
typedef symbol_kind::symbol_kind_type symbol_kind_type
 (Internal) symbol kind. More...
 
typedef token::token_kind_type token_kind_type
 Token kind, as returned by yylex. More...
 
typedef token_kind_type token_type
 Backward compatibility alias (Bison 3.6). More...
 

Public Member Functions

 D2Parser (isc::d2::D2ParserContext &ctx_yyarg)
 Build a parser object. More...
 
virtual ~D2Parser ()
 
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...
 

Static Public Member Functions

static symbol_type make_ALGORITHM (const location_type &l)
 
static symbol_type make_BOOLEAN (const bool &v, const location_type &l)
 
static symbol_type make_COLON (const location_type &l)
 
static symbol_type make_COMMA (const location_type &l)
 
static symbol_type make_COMMENT (const location_type &l)
 
static symbol_type make_CONTROL_SOCKET (const location_type &l)
 
static symbol_type make_D2_PARSER_error (const location_type &l)
 
static symbol_type make_D2_PARSER_UNDEF (const location_type &l)
 
static symbol_type make_DDNS_DOMAINS (const location_type &l)
 
static symbol_type make_DEBUGLEVEL (const location_type &l)
 
static symbol_type make_DHCPDDNS (const location_type &l)
 
static symbol_type make_DIGEST_BITS (const location_type &l)
 
static symbol_type make_DNS_SERVER_TIMEOUT (const location_type &l)
 
static symbol_type make_DNS_SERVERS (const location_type &l)
 
static symbol_type make_END (const location_type &l)
 
static symbol_type make_FLOAT (const double &v, const location_type &l)
 
static symbol_type make_FLUSH (const location_type &l)
 
static symbol_type make_FORWARD_DDNS (const location_type &l)
 
static symbol_type make_HOOKS_LIBRARIES (const location_type &l)
 
static symbol_type make_HOSTNAME (const location_type &l)
 
static symbol_type make_INTEGER (const int64_t &v, const location_type &l)
 
static symbol_type make_IP_ADDRESS (const location_type &l)
 
static symbol_type make_JSON (const location_type &l)
 
static symbol_type make_KEY_NAME (const location_type &l)
 
static symbol_type make_LCURLY_BRACKET (const location_type &l)
 
static symbol_type make_LIBRARY (const location_type &l)
 
static symbol_type make_LOGGERS (const location_type &l)
 
static symbol_type make_LSQUARE_BRACKET (const location_type &l)
 
static symbol_type make_MAXSIZE (const location_type &l)
 
static symbol_type make_MAXVER (const location_type &l)
 
static symbol_type make_NAME (const location_type &l)
 
static symbol_type make_NCR_FORMAT (const location_type &l)
 
static symbol_type make_NCR_PROTOCOL (const location_type &l)
 
static symbol_type make_NULL_TYPE (const location_type &l)
 
static symbol_type make_OUTPUT (const location_type &l)
 
static symbol_type make_OUTPUT_OPTIONS (const location_type &l)
 
static symbol_type make_PARAMETERS (const location_type &l)
 
static symbol_type make_PATTERN (const location_type &l)
 
static symbol_type make_PORT (const location_type &l)
 
static symbol_type make_RCURLY_BRACKET (const location_type &l)
 
static symbol_type make_REVERSE_DDNS (const location_type &l)
 
static symbol_type make_RSQUARE_BRACKET (const location_type &l)
 
static symbol_type make_SECRET (const location_type &l)
 
static symbol_type make_SEVERITY (const location_type &l)
 
static symbol_type make_SOCKET_NAME (const location_type &l)
 
static symbol_type make_SOCKET_TYPE (const location_type &l)
 
static symbol_type make_STRING (const std::string &v, const location_type &l)
 
static symbol_type make_SUB_DDNS_DOMAIN (const location_type &l)
 
static symbol_type make_SUB_DDNS_DOMAINS (const location_type &l)
 
static symbol_type make_SUB_DHCPDDNS (const location_type &l)
 
static symbol_type make_SUB_DNS_SERVER (const location_type &l)
 
static symbol_type make_SUB_DNS_SERVERS (const location_type &l)
 
static symbol_type make_SUB_HOOKS_LIBRARY (const location_type &l)
 
static symbol_type make_SUB_TSIG_KEY (const location_type &l)
 
static symbol_type make_SUB_TSIG_KEYS (const location_type &l)
 
static symbol_type make_TCP (const location_type &l)
 
static symbol_type make_TOPLEVEL_DHCPDDNS (const location_type &l)
 
static symbol_type make_TOPLEVEL_JSON (const location_type &l)
 
static symbol_type make_TSIG_KEYS (const location_type &l)
 
static symbol_type make_UDP (const location_type &l)
 
static symbol_type make_USER_CONTEXT (const location_type &l)
 
static std::string symbol_name (symbol_kind_type yysymbol)
 The user-facing name of the symbol whose (internal) number is YYSYMBOL. More...
 

Static Public Attributes

static const symbol_kind_type YYNTOKENS = symbol_kind::YYNTOKENS
 The number of tokens. More...
 

Detailed Description

A Bison parser.

Definition at line 215 of file d2_parser.h.

Member Typedef Documentation

◆ by_type

Backward compatibility for a private implementation detail (Bison 3.6).

Definition at line 1058 of file d2_parser.h.

◆ debug_level_type

Type for debugging levels.

Definition at line 1159 of file d2_parser.h.

◆ location_type

Symbol locations.

Definition at line 467 of file d2_parser.h.

◆ semantic_type

Backward compatibility (Bison 3.8).

Definition at line 464 of file d2_parser.h.

◆ symbol_kind_type

(Internal) symbol kind.

Definition at line 789 of file d2_parser.h.

◆ token_kind_type

Token kind, as returned by yylex.

Definition at line 560 of file d2_parser.h.

◆ token_type

Backward compatibility alias (Bison 3.6).

Definition at line 563 of file d2_parser.h.

Constructor & Destructor Documentation

◆ D2Parser()

isc::d2::D2Parser::D2Parser ( isc::d2::D2ParserContext ctx_yyarg)

Build a parser object.

Definition at line 152 of file d2_parser.cc.

◆ ~D2Parser()

isc::d2::D2Parser::~D2Parser ( )
virtual

Definition at line 162 of file d2_parser.cc.

Member Function Documentation

◆ debug_level()

D2Parser::debug_level_type isc::d2::D2Parser::debug_level ( ) const

The current debugging level.

Definition at line 475 of file d2_parser.cc.

◆ debug_stream()

std::ostream & isc::d2::D2Parser::debug_stream ( ) const

The current debugging stream.

Definition at line 462 of file d2_parser.cc.

◆ error() [1/2]

void isc::d2::D2Parser::error ( const location_type loc,
const std::string &  msg 
)
virtual

Report a syntax error.

Parameters
locwhere the syntax error is found.
msga description of the syntax error.

Definition at line 2859 of file d2_parser.cc.

Referenced by error(), and parse().

◆ error() [2/2]

void isc::d2::D2Parser::error ( const syntax_error err)

Report a syntax error.

Definition at line 2237 of file d2_parser.cc.

References error(), and isc::d2::D2Parser::syntax_error::location.

+ Here is the call graph for this function:

◆ make_ALGORITHM()

static symbol_type isc::d2::D2Parser::make_ALGORITHM ( const location_type l)
inlinestatic

Definition at line 1609 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_ALGORITHM.

◆ make_BOOLEAN()

static symbol_type isc::d2::D2Parser::make_BOOLEAN ( const bool &  v,
const location_type l 
)
inlinestatic

Definition at line 2089 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_BOOLEAN.

◆ make_COLON()

static symbol_type isc::d2::D2Parser::make_COLON ( const location_type l)
inlinestatic

Definition at line 1249 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_COLON.

◆ make_COMMA()

static symbol_type isc::d2::D2Parser::make_COMMA ( const location_type l)
inlinestatic

Definition at line 1234 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_COMMA.

◆ make_COMMENT()

static symbol_type isc::d2::D2Parser::make_COMMENT ( const location_type l)
inlinestatic

Definition at line 1489 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_COMMENT.

◆ make_CONTROL_SOCKET()

static symbol_type isc::d2::D2Parser::make_CONTROL_SOCKET ( const location_type l)
inlinestatic

Definition at line 1654 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_CONTROL_SOCKET.

◆ make_D2_PARSER_error()

static symbol_type isc::d2::D2Parser::make_D2_PARSER_error ( const location_type l)
inlinestatic

Definition at line 1204 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_D2_PARSER_error.

◆ make_D2_PARSER_UNDEF()

static symbol_type isc::d2::D2Parser::make_D2_PARSER_UNDEF ( const location_type l)
inlinestatic

Definition at line 1219 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_D2_PARSER_UNDEF.

◆ make_DDNS_DOMAINS()

static symbol_type isc::d2::D2Parser::make_DDNS_DOMAINS ( const location_type l)
inlinestatic

Definition at line 1534 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_DDNS_DOMAINS.

◆ make_DEBUGLEVEL()

static symbol_type isc::d2::D2Parser::make_DEBUGLEVEL ( const location_type l)
inlinestatic

Definition at line 1804 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_DEBUGLEVEL.

◆ make_DHCPDDNS()

static symbol_type isc::d2::D2Parser::make_DHCPDDNS ( const location_type l)
inlinestatic

Definition at line 1339 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_DHCPDDNS.

◆ make_DIGEST_BITS()

static symbol_type isc::d2::D2Parser::make_DIGEST_BITS ( const location_type l)
inlinestatic

Definition at line 1624 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_DIGEST_BITS.

◆ make_DNS_SERVER_TIMEOUT()

static symbol_type isc::d2::D2Parser::make_DNS_SERVER_TIMEOUT ( const location_type l)
inlinestatic

Definition at line 1384 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_DNS_SERVER_TIMEOUT.

◆ make_DNS_SERVERS()

static symbol_type isc::d2::D2Parser::make_DNS_SERVERS ( const location_type l)
inlinestatic

Definition at line 1564 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_DNS_SERVERS.

◆ make_END()

static symbol_type isc::d2::D2Parser::make_END ( const location_type l)
inlinestatic

Definition at line 1189 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_END.

◆ make_FLOAT()

static symbol_type isc::d2::D2Parser::make_FLOAT ( const double &  v,
const location_type l 
)
inlinestatic

Definition at line 2074 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_FLOAT.

◆ make_FLUSH()

static symbol_type isc::d2::D2Parser::make_FLUSH ( const location_type l)
inlinestatic

Definition at line 1834 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_FLUSH.

◆ make_FORWARD_DDNS()

static symbol_type isc::d2::D2Parser::make_FORWARD_DDNS ( const location_type l)
inlinestatic

Definition at line 1504 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_FORWARD_DDNS.

◆ make_HOOKS_LIBRARIES()

static symbol_type isc::d2::D2Parser::make_HOOKS_LIBRARIES ( const location_type l)
inlinestatic

Definition at line 1699 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_HOOKS_LIBRARIES.

◆ make_HOSTNAME()

static symbol_type isc::d2::D2Parser::make_HOSTNAME ( const location_type l)
inlinestatic

Definition at line 1579 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_HOSTNAME.

◆ make_INTEGER()

static symbol_type isc::d2::D2Parser::make_INTEGER ( const int64_t &  v,
const location_type l 
)
inlinestatic

Definition at line 2059 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_INTEGER.

◆ make_IP_ADDRESS()

static symbol_type isc::d2::D2Parser::make_IP_ADDRESS ( const location_type l)
inlinestatic

Definition at line 1354 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_IP_ADDRESS.

◆ make_JSON()

static symbol_type isc::d2::D2Parser::make_JSON ( const location_type l)
inlinestatic

Definition at line 1459 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_JSON.

◆ make_KEY_NAME()

static symbol_type isc::d2::D2Parser::make_KEY_NAME ( const location_type l)
inlinestatic

Definition at line 1549 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_KEY_NAME.

◆ make_LCURLY_BRACKET()

static symbol_type isc::d2::D2Parser::make_LCURLY_BRACKET ( const location_type l)
inlinestatic

Definition at line 1294 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_LCURLY_BRACKET.

◆ make_LIBRARY()

static symbol_type isc::d2::D2Parser::make_LIBRARY ( const location_type l)
inlinestatic

Definition at line 1714 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_LIBRARY.

◆ make_LOGGERS()

static symbol_type isc::d2::D2Parser::make_LOGGERS ( const location_type l)
inlinestatic

Definition at line 1744 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_LOGGERS.

◆ make_LSQUARE_BRACKET()

static symbol_type isc::d2::D2Parser::make_LSQUARE_BRACKET ( const location_type l)
inlinestatic

Definition at line 1264 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_LSQUARE_BRACKET.

◆ make_MAXSIZE()

static symbol_type isc::d2::D2Parser::make_MAXSIZE ( const location_type l)
inlinestatic

Definition at line 1849 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_MAXSIZE.

◆ make_MAXVER()

static symbol_type isc::d2::D2Parser::make_MAXVER ( const location_type l)
inlinestatic

Definition at line 1864 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_MAXVER.

◆ make_NAME()

static symbol_type isc::d2::D2Parser::make_NAME ( const location_type l)
inlinestatic

Definition at line 1759 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_NAME.

◆ make_NCR_FORMAT()

static symbol_type isc::d2::D2Parser::make_NCR_FORMAT ( const location_type l)
inlinestatic

Definition at line 1444 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_NCR_FORMAT.

◆ make_NCR_PROTOCOL()

static symbol_type isc::d2::D2Parser::make_NCR_PROTOCOL ( const location_type l)
inlinestatic

Definition at line 1399 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_NCR_PROTOCOL.

◆ make_NULL_TYPE()

static symbol_type isc::d2::D2Parser::make_NULL_TYPE ( const location_type l)
inlinestatic

Definition at line 1324 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_NULL_TYPE.

◆ make_OUTPUT()

static symbol_type isc::d2::D2Parser::make_OUTPUT ( const location_type l)
inlinestatic

Definition at line 1789 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_OUTPUT.

◆ make_OUTPUT_OPTIONS()

static symbol_type isc::d2::D2Parser::make_OUTPUT_OPTIONS ( const location_type l)
inlinestatic

Definition at line 1774 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_OUTPUT_OPTIONS.

◆ make_PARAMETERS()

static symbol_type isc::d2::D2Parser::make_PARAMETERS ( const location_type l)
inlinestatic

Definition at line 1729 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_PARAMETERS.

◆ make_PATTERN()

static symbol_type isc::d2::D2Parser::make_PATTERN ( const location_type l)
inlinestatic

Definition at line 1879 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_PATTERN.

◆ make_PORT()

static symbol_type isc::d2::D2Parser::make_PORT ( const location_type l)
inlinestatic

Definition at line 1369 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_PORT.

◆ make_RCURLY_BRACKET()

static symbol_type isc::d2::D2Parser::make_RCURLY_BRACKET ( const location_type l)
inlinestatic

Definition at line 1309 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_RCURLY_BRACKET.

◆ make_REVERSE_DDNS()

static symbol_type isc::d2::D2Parser::make_REVERSE_DDNS ( const location_type l)
inlinestatic

Definition at line 1519 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_REVERSE_DDNS.

◆ make_RSQUARE_BRACKET()

static symbol_type isc::d2::D2Parser::make_RSQUARE_BRACKET ( const location_type l)
inlinestatic

Definition at line 1279 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_RSQUARE_BRACKET.

◆ make_SECRET()

static symbol_type isc::d2::D2Parser::make_SECRET ( const location_type l)
inlinestatic

Definition at line 1639 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SECRET.

◆ make_SEVERITY()

static symbol_type isc::d2::D2Parser::make_SEVERITY ( const location_type l)
inlinestatic

Definition at line 1819 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SEVERITY.

◆ make_SOCKET_NAME()

static symbol_type isc::d2::D2Parser::make_SOCKET_NAME ( const location_type l)
inlinestatic

Definition at line 1684 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SOCKET_NAME.

◆ make_SOCKET_TYPE()

static symbol_type isc::d2::D2Parser::make_SOCKET_TYPE ( const location_type l)
inlinestatic

Definition at line 1669 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SOCKET_TYPE.

◆ make_STRING()

static symbol_type isc::d2::D2Parser::make_STRING ( const std::string &  v,
const location_type l 
)
inlinestatic

Definition at line 2044 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_STRING.

◆ make_SUB_DDNS_DOMAIN()

static symbol_type isc::d2::D2Parser::make_SUB_DDNS_DOMAIN ( const location_type l)
inlinestatic

Definition at line 1969 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SUB_DDNS_DOMAIN.

Referenced by if().

◆ make_SUB_DDNS_DOMAINS()

static symbol_type isc::d2::D2Parser::make_SUB_DDNS_DOMAINS ( const location_type l)
inlinestatic

Definition at line 1984 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SUB_DDNS_DOMAINS.

Referenced by if().

◆ make_SUB_DHCPDDNS()

static symbol_type isc::d2::D2Parser::make_SUB_DHCPDDNS ( const location_type l)
inlinestatic

Definition at line 1924 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SUB_DHCPDDNS.

Referenced by if().

◆ make_SUB_DNS_SERVER()

static symbol_type isc::d2::D2Parser::make_SUB_DNS_SERVER ( const location_type l)
inlinestatic

Definition at line 1999 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SUB_DNS_SERVER.

Referenced by if().

◆ make_SUB_DNS_SERVERS()

static symbol_type isc::d2::D2Parser::make_SUB_DNS_SERVERS ( const location_type l)
inlinestatic

Definition at line 2014 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SUB_DNS_SERVERS.

◆ make_SUB_HOOKS_LIBRARY()

static symbol_type isc::d2::D2Parser::make_SUB_HOOKS_LIBRARY ( const location_type l)
inlinestatic

Definition at line 2029 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SUB_HOOKS_LIBRARY.

Referenced by if().

◆ make_SUB_TSIG_KEY()

static symbol_type isc::d2::D2Parser::make_SUB_TSIG_KEY ( const location_type l)
inlinestatic

Definition at line 1939 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SUB_TSIG_KEY.

Referenced by if().

◆ make_SUB_TSIG_KEYS()

static symbol_type isc::d2::D2Parser::make_SUB_TSIG_KEYS ( const location_type l)
inlinestatic

Definition at line 1954 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_SUB_TSIG_KEYS.

Referenced by if().

◆ make_TCP()

static symbol_type isc::d2::D2Parser::make_TCP ( const location_type l)
inlinestatic

Definition at line 1429 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_TCP.

◆ make_TOPLEVEL_DHCPDDNS()

static symbol_type isc::d2::D2Parser::make_TOPLEVEL_DHCPDDNS ( const location_type l)
inlinestatic

Definition at line 1909 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_TOPLEVEL_DHCPDDNS.

Referenced by if().

◆ make_TOPLEVEL_JSON()

static symbol_type isc::d2::D2Parser::make_TOPLEVEL_JSON ( const location_type l)
inlinestatic

Definition at line 1894 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_TOPLEVEL_JSON.

Referenced by if().

◆ make_TSIG_KEYS()

static symbol_type isc::d2::D2Parser::make_TSIG_KEYS ( const location_type l)
inlinestatic

Definition at line 1594 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_TSIG_KEYS.

◆ make_UDP()

static symbol_type isc::d2::D2Parser::make_UDP ( const location_type l)
inlinestatic

Definition at line 1414 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_UDP.

◆ make_USER_CONTEXT()

static symbol_type isc::d2::D2Parser::make_USER_CONTEXT ( const location_type l)
inlinestatic

Definition at line 1474 of file d2_parser.h.

References isc::d2::D2Parser::token::TOKEN_USER_CONTEXT.

◆ operator()()

int isc::d2::D2Parser::operator() ( )

Parse.

An alias for parse ().

Returns
0 iff parsing succeeded.

Definition at line 510 of file d2_parser.cc.

References parse().

+ Here is the call graph for this function:

◆ parse()

int isc::d2::D2Parser::parse ( )
virtual

Parse.

Returns
0 iff parsing succeeded.

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 d2_parser.cc.

References isc::d2::D2Parser::basic_symbol< Base >::clear(), isc::d2::D2ParserContext::CONFIG, isc::d2::D2ParserContext::contextName(), isc::d2::D2ParserContext::CONTROL_SOCKET, 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::D2Parser::basic_symbol< Base >::empty(), 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::D2Parser::basic_symbol< Base >::location, isc::d2::D2ParserContext::LOGGERS, isc::data::merge(), isc::d2::D2Parser::basic_symbol< Base >::move(), 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_BOOLEAN, 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()().

+ Here is the call graph for this function:

◆ set_debug_level()

void isc::d2::D2Parser::set_debug_level ( debug_level_type  l)

Set the current debugging level.

Definition at line 481 of file d2_parser.cc.

◆ set_debug_stream()

void isc::d2::D2Parser::set_debug_stream ( std::ostream &  o)

Set the current debugging stream.

Definition at line 468 of file d2_parser.cc.

◆ symbol_name()

std::string isc::d2::D2Parser::symbol_name ( symbol_kind_type  yysymbol)
static

The user-facing name of the symbol whose (internal) number is YYSYMBOL.

No bounds checking.

Definition at line 2283 of file d2_parser.cc.

Referenced by isc::d2::D2Parser::basic_symbol< Base >::name().

Member Data Documentation

◆ YYNTOKENS

const symbol_kind_type isc::d2::D2Parser::YYNTOKENS = symbol_kind::YYNTOKENS
static

The number of tokens.

Definition at line 792 of file d2_parser.h.

Referenced by isc::d2::D2Parser::context::expected_tokens().


The documentation for this class was generated from the following files: