#include <AbstractParserState.hpp>
Public Member Functions | |
AbstractParserState (ParserContext &context, std::vector< BibElement > &result) noexcept | |
Public Member Functions inherited from ParserState | |
virtual | ~ParserState ()=default |
Protected Member Functions | |
auto | fail (const std::string &message) -> void |
auto | handleCharacter (char c) -> ParserState *override |
Protected Attributes | |
ParserContext & | context |
Context of the State. More... | |
std::vector< BibElement > & | result |
Container for accumulating Parsing-Results. More... | |
Abstract Class with default-implementation of a ParserState
Definition at line 13 of file AbstractParserState.hpp.
|
noexcept |
Constructor.
context | the context of the State |
result | an accumulator for results |
Definition at line 9 of file AbstractParserState.cpp.
|
protected |
Error handling on parsing-error
message | Error-Message to display |
ParserException | (always) |
Definition at line 17 of file AbstractParserState.cpp.
|
overrideprotectedvirtual |
Behaviour of a State to parse next Character
c | the next character |
Implements ParserState.
Reimplemented in ValueParserState, StyleParserState, KeyParserState, IdentifierParserState, and GlobalParserState.
Definition at line 26 of file AbstractParserState.cpp.
|
protected |
Context of the State.
Definition at line 15 of file AbstractParserState.hpp.
Referenced by GlobalParserState::handleCharacter().
|
protected |
Container for accumulating Parsing-Results.
Definition at line 16 of file AbstractParserState.hpp.
Referenced by GlobalParserState::handleCharacter().