PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::Lexer Class Reference

#include <Lexer.h>

+ Inheritance diagram for Puma::Lexer:

Public Member Functions

virtual ~Lexer ()
 
virtual void add_rules (lexertl::rules &rules)
 
virtual void add_keywords (lexertl::rules &rules)
 

Protected Member Functions

void setup (unsigned int config)
 

Static Protected Member Functions

template<class L >
static L & instance (unsigned int id)
 

Protected Attributes

unsigned int _config_mask
 
lexertl::state_machine _state_machine
 

Constructor & Destructor Documentation

◆ ~Lexer()

virtual Puma::Lexer::~Lexer ( )
inlinevirtual

Member Function Documentation

◆ add_keywords()

virtual void Puma::Lexer::add_keywords ( lexertl::rules & rules)
inlinevirtual

Reimplemented in Puma::CCLexer, and Puma::CLexer.

◆ add_rules()

virtual void Puma::Lexer::add_rules ( lexertl::rules & rules)
inlinevirtual

Reimplemented in Puma::CLexer.

◆ instance()

template<class L >
static L & Puma::Lexer::instance ( unsigned int id)
inlinestaticprotected

◆ setup()

void Puma::Lexer::setup ( unsigned int config)
inlineprotected

Member Data Documentation

◆ _config_mask

unsigned int Puma::Lexer::_config_mask
protected

◆ _state_machine

lexertl::state_machine Puma::Lexer::_state_machine
protected