7 #ifndef PARSER_CONTEXT_H 8 #define PARSER_CONTEXT_H 17 #define YY_DECL isc::d2::D2Parser::symbol_type d2_parser_lex (D2ParserContext& driver) 85 std::vector<isc::data::ElementPtr>
stack_;
91 void scanStringBegin(
const std::string& str, ParserType type);
98 void scanFileBegin(FILE* f,
const std::string& filename, ParserType type);
106 void includeFile(
const std::string& filename);
119 ParserType parser_type);
132 ParserType parser_type);
143 void error(
const isc::d2::location& loc,
144 const std::string&
what,
163 static void fatal(
const std::string&
what);
183 void require(
const std::string& name,
195 void unique(
const std::string& name,
204 void warning(
const isc::d2::location& loc,
const std::string&
what);
211 void warnAboutExtraCommas(
const isc::d2::location& loc);
290 std::vector<isc::d2::location>
locs_;
320 void enter(
const ParserContext& ctx);
330 const std::string contextName();
334 bool trace_scanning_;
340 std::vector<ParserContext> cstack_;
Define the isc::d2::parser class.
Used while parsing DhcpDdns/loggers/output_options structures.
Evaluation context, an interface to the expression evaluation.
std::vector< struct yy_buffer_state * > states_
Lexer state stack.
boost::shared_ptr< Element > ElementPtr
D2ParseError(const char *file, size_t line, const char *what)
std::vector< isc::d2::location > locs_
Location stack.
Used while parsing DhcpDdns/loggers structures.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
isc::d2::location loc_
Location of the current token.
Used while parsing DhcpDdns/ncr-protocol.
std::vector< std::string > files_
File name stack.
std::vector< FILE * > sfiles_
sFile (aka FILE) stack
ParserType
Defines currently supported scopes.
Used while parsing DhcpDdns/ncr-format.
Represents the position of the data element within a configuration string.
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.
Evaluation error exception raised when trying to parse.
FILE * sfile_
sFile (aka FILE)
Forward declaration of the ParserContext class.
ParserContext
Defines syntactic contexts for lexical tie-ins.
std::vector< isc::data::ElementPtr > stack_
JSON elements being parsed.
ParserContext ctx_
Current syntactic context.
std::string file_
File name.