7#ifndef MASTER_LEXER_STATE_H
8#define MASTER_LEXER_STATE_H
15namespace master_lexer_internal {
127 return (lexer.impl_.get());
Tokenizer for parsing DNS master files.
Options
Options for getNextToken.
Tokenization state for MasterLexer.
virtual void handle(MasterLexer &lexer) const =0
Handle the process of one specific state.
size_t getParenCount(const MasterLexer &lexer) const
MasterLexer::MasterLexerImpl * getLexerImpl(MasterLexer &lexer) const
An accessor to the internal implementation class of MasterLexer.
static const State * start(MasterLexer &lexer, MasterLexer::Options options)
Begin state transitions to get the next token.
virtual ~State()
Virtual destructor.
static const State & getInstance(ID state_id)
Returns a State instance of the given state.
const MasterToken & getToken(const MasterLexer &lexer) const
bool wasLastEOL(const MasterLexer &lexer) const
@ String
Handling a string token.
@ CRLF
Just seen a carriage-return character.
@ QString
Handling a quoted string token.
@ Number
Handling a number.
Defines the logger used by the top-level component of kea-lfc.