teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | List of all members
teditor::parser::Lexer Struct Reference

#include <lexer.h>

Public Member Functions

 Lexer (const TokenDefs &t)
 
virtual ~Lexer ()
 
virtual Token next (Scanner *sc)
 
Token next (Scanner *sc, const std::unordered_set< uint32_t > &ignoreTypes)
 
Token next (Scanner *sc, uint32_t ignoreType)
 
const char * token2str (uint32_t tok) const
 

Detailed Description

Base lexing class for tokenizing the input stream

Constructor & Destructor Documentation

◆ Lexer()

teditor::parser::Lexer::Lexer ( const TokenDefs t)

◆ ~Lexer()

teditor::parser::Lexer::~Lexer ( )
virtual

Member Function Documentation

◆ next() [1/3]

Token teditor::parser::Lexer::next ( Scanner sc)
virtual

◆ next() [2/3]

Token teditor::parser::Lexer::next ( Scanner sc,
const std::unordered_set< uint32_t > &  ignoreTypes 
)

◆ next() [3/3]

Token teditor::parser::Lexer::next ( Scanner sc,
uint32_t  ignoreType 
)

◆ token2str()

const char * teditor::parser::Lexer::token2str ( uint32_t  tok) const

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