btool
A parser/converter/transpiler for .bib files
ParserState Struct Referenceabstract

#include <ParserState.hpp>

+ Inheritance diagram for ParserState:
+ Collaboration diagram for ParserState:

Public Member Functions

virtual ~ParserState ()=default
 
virtual auto handleCharacter (char c) -> ParserState *=0
 

Detailed Description

A parser state interface

Examples
/github/workspace/test/ParserStateFixtureTest.cpp.

Definition at line 7 of file ParserState.hpp.

Constructor & Destructor Documentation

◆ ~ParserState()

virtual ParserState::~ParserState ( )
virtualdefault

default destructor.

Member Function Documentation

◆ handleCharacter()

virtual auto ParserState::handleCharacter ( char  c) -> ParserState *
pure virtual

Behaviour of a State to handle next character to parse

Parameters
cthe next character to parse
Returns
a new parser-state

Implemented in ValueParserState, StyleParserState, KeyParserState, IdentifierParserState, GlobalParserState, and AbstractParserState.

Examples
/github/workspace/test/ParserStateFixtureTest.cpp.

Referenced by Parser::elementsOf(), and TEST_F().

+ Here is the caller graph for this function:

The documentation for this struct was generated from the following file: