btool
A parser/converter/transpiler for .bib files
AbstractParserState.hpp
Go to the documentation of this file.
1
#ifndef BIBPARSER_ABSTRACTPARSERSTATE_HPP
2
#define BIBPARSER_ABSTRACTPARSERSTATE_HPP
3
4
#include <vector>
5
#include <string>
6
#include <
BibElement.hpp
>
7
#include <
ParserState.hpp
>
8
#include <
ParserContext.hpp
>
9
13
class
AbstractParserState
:
public
ParserState
{
14
protected
:
15
ParserContext
&
context
;
16
std::vector<BibElement> &
result
;
17
18
[[noreturn]]
auto
fail
(
const
std::string &message) -> void;
19
20
auto
handleCharacter
(
char
c) ->
ParserState
*
override
;
21
22
public
:
23
24
AbstractParserState
(
ParserContext
&
context
, std::vector<BibElement> &
result
) noexcept;
25
};
26
27
#endif
ParserState.hpp
ParserState
Definition:
ParserState.hpp:7
ParserContext.hpp
AbstractParserState
Definition:
AbstractParserState.hpp:13
ParserContext
Definition:
ParserContext.hpp:10
AbstractParserState::handleCharacter
auto handleCharacter(char c) -> ParserState *override
Definition:
AbstractParserState.cpp:26
AbstractParserState::context
ParserContext & context
Context of the State.
Definition:
AbstractParserState.hpp:15
AbstractParserState::AbstractParserState
AbstractParserState(ParserContext &context, std::vector< BibElement > &result) noexcept
Definition:
AbstractParserState.cpp:9
AbstractParserState::result
std::vector< BibElement > & result
Container for accumulating Parsing-Results.
Definition:
AbstractParserState.hpp:16
BibElement.hpp
AbstractParserState::fail
auto fail(const std::string &message) -> void
Definition:
AbstractParserState.cpp:17
src
AbstractParserState.hpp
Generated by
1.8.19