btool
A parser/converter/transpiler for .bib files
AbstractParserState.cpp
Go to the documentation of this file.
2 #include <ParserException.hpp>
3 
9 AbstractParserState::AbstractParserState(ParserContext &context, std::vector<BibElement> &result) noexcept
10  : context{context}, result{result} {}
11 
17 [[noreturn]] auto AbstractParserState::fail(const std::string &message) -> void {
18  throw ParserException{this, context, message};
19 }
20 
27  return this;
28 }
ParserState
Definition: ParserState.hpp:7
ParserContext
Definition: ParserContext.hpp:10
ParserException.hpp
AbstractParserState::handleCharacter
auto handleCharacter(char c) -> ParserState *override
Definition: AbstractParserState.cpp:26
ParserException
Definition: ParserException.hpp:12
AbstractParserState.hpp
AbstractParserState::AbstractParserState
AbstractParserState(ParserContext &context, std::vector< BibElement > &result) noexcept
Definition: AbstractParserState.cpp:9
AbstractParserState::fail
auto fail(const std::string &message) -> void
Definition: AbstractParserState.cpp:17