7 #ifndef PARSER_CONTEXT_H 8 #define PARSER_CONTEXT_H 17 #define YY_DECL isc::dhcp::Dhcp6Parser::symbol_type parser6_lex (Parser6Context& driver) 104 std::vector<isc::data::ElementPtr>
stack_;
110 void scanStringBegin(
const std::string& str, ParserType type);
117 void scanFileBegin(FILE* f,
const std::string& filename, ParserType type);
125 void includeFile(
const std::string& filename);
138 ParserType parser_type);
151 ParserType parser_type);
162 void error(
const isc::dhcp::location& loc,
163 const std::string&
what,
182 static void fatal(
const std::string&
what);
202 void require(
const std::string& name,
214 void unique(
const std::string& name,
223 void warning(
const isc::dhcp::location& loc,
const std::string&
what);
230 void warnAboutExtraCommas(
const isc::dhcp::location& loc);
362 std::vector<isc::dhcp::location>
locs_;
392 void enter(
const ParserContext& ctx);
402 const std::string contextName();
406 bool trace_scanning_;
412 std::vector<ParserContext> cstack_;
Used while parsing Dhcp6/lease-database structures.
ParserContext ctx_
Current syntactic context.
Used while parsing Dhcp6/option-def structures.
Define the isc::dhcp::parser class.
Used while parsing config-control/config-databases.
This will parse the input as hooks-library.
Used while parsing Dhcp6/client-classes structures.
Used while parsing Dhcp6/dhcp-queue-control structures.
This will parse the input as option definition.
Used while parsing Dhcp6/reservations structures.
Used while parsing Dhcp6/config-control.
This will parse the input as option data.
boost::shared_ptr< Element > ElementPtr
Evaluation context, an interface to the expression evaluation.
Used while parsing Dhcp6/dhcp-ddns/ncr-protocol.
std::vector< std::string > files_
File name stack.
Used while parsing Dhcp6/dhcp-ddns/ncr-format.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
std::vector< isc::data::ElementPtr > stack_
JSON elements being parsed.
Used while parsing Dhcp6/*-database/on-fail.
Used while parsing Dhcp6/server-id/type structures.
Used while parsing Dhcp6/expired-leases-processing.
Used while parsing Dhcp6/mac-sources structures.
Evaluation error exception raised when trying to parse.
Used while parsing Dhcp6/loggers/output_options structures.
This parser will parse the content as generic JSON.
Dhcp6ParseError(const char *file, size_t line, const char *what)
ParserType
Defines currently supported scopes.
FILE * sfile_
sFile (aka FILE)
Used while parsing Dhcp6/*-database/type.
This will parse the input as pool6 content.
Used while parsing Dhcp6/subnet6/pd-pools structures.
Used while parsing Dhcp6/option-data, Dhcp6/subnet6/option-data or anywhere option-data is present (c...
This will parse the input option definitions (for tests).
isc::dhcp::location loc_
Location of the current token.
Used while parsing Dhcp6/hosts-database[s] structures.
Used while parsing Dhcp6/loggers structures.
std::vector< FILE * > sfiles_
sFile (aka FILE) stack
This will parse the input as Subnet6 content.
This parser will parse the content as Dhcp6 config wrapped in a map (that's the regular config file) ...
Represents the position of the data element within a configuration string.
This will parse the input as interfaces content.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-lfc.
Used while parsing Dhcp6/interfaces structures.
This will parse the input as dhcp-ddns. (D2 client config)
ParserContext
Defines syntactic contexts for lexical tie-ins.
Used while parsing shared-networks structures.
Used while parsing Dhcp6/dhcp-ddns/replace-client-name.
This parser will parse the content of Dhcp6 (without outer { } and without "Dhcp6").
This will parse the input as host-reservation.
Used while parsing Dhcp6/control-socket structures.
Used while parsing Dhcp6/host-reservation-identifiers.
Forward declaration of the ParserContext class.
This will parse the input as config-control.
std::string file_
File name.
std::vector< isc::dhcp::location > locs_
Location stack.
Used while parsing compatibility parameters.
Used while parsing Dhcp6/subnet6/relay structures.
Used while parsing Dhcp6/multi-threading structures.
Used while parsing Dhcp6/subnet6/pools structures.
This will parse the input as pd-pool content.
Used while parsing Dhcp6/reservation-mode.
Used while parsing Dhcp6/hooks-libraries.
Used while parsing Dhcp6/Subnet6 structures.
Used while parsing Dhcp6/dhcp-ddns.
Used while parsing Dhcp6/server-id structures.
std::vector< struct yy_buffer_state * > states_
Lexer state stack.