bux API Reference 1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits > Class Template Reference

#include <ImplScanner.h>

Inheritance diagram for bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >:

Classes

struct  C_GotoPair
 
struct  C_StateRec
 

Public Types

typedef C_ActionRet F_Action(const T_Char *c, size_t n)
 
typedef bool F_IsFinal(const T_Char *c, size_t n)
 

Public Member Functions

 C_ScannerImpl (I_Parser &parser)
 
void add (unsigned col, T_Char c) override
 
void setLine (unsigned line) override
 
void setSource (std::string_view src) override
 
- Public Member Functions inherited from bux::I_Scanner< T_Char >
virtual ~I_Scanner ()=default
 

Protected Member Functions

void firstFits (const T_State *states, F_IsFinal *const *isFinal, size_t stateN)
 
void stateTables (const C_StateRec *stateRecs, const T_Input *gotoN)
 

Detailed Description

template<class T_Input, class T_State, class T_Char, class C_Traits = C_LexTraits<T_Char>>
class bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >

Definition at line 12 of file ImplScanner.h.

Member Typedef Documentation

◆ F_Action

template<class T_Input , class T_State , class T_Char , class C_Traits = C_LexTraits<T_Char>>
C_ActionRet bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >::F_Action(const T_Char *c, size_t n)

Definition at line 17 of file ImplScanner.h.

◆ F_IsFinal

template<class T_Input , class T_State , class T_Char , class C_Traits = C_LexTraits<T_Char>>
bool bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >::F_IsFinal(const T_Char *c, size_t n)

Definition at line 18 of file ImplScanner.h.

Constructor & Destructor Documentation

◆ C_ScannerImpl()

template<class T_Input , class T_State , class T_Char , class C_Traits >
bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >::C_ScannerImpl ( I_Parser & parser)

Definition at line 84 of file ImplScanner.h.

Member Function Documentation

◆ add()

template<class T_Input , class T_State , class T_Char , class C_Traits >
void bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >::add ( unsigned col,
T_Char c )
overridevirtual

◆ firstFits()

template<class T_Input , class T_State , class T_Char , class C_Traits = C_LexTraits<T_Char>>
void bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >::firstFits ( const T_State * states,
F_IsFinal *const * isFinal,
size_t stateN )
inlineprotected

Definition at line 43 of file ImplScanner.h.

◆ setLine()

template<class T_Input , class T_State , class T_Char , class C_Traits >
void bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >::setLine ( unsigned line)
overridevirtual

Implements bux::I_Scanner< T_Char >.

Definition at line 219 of file ImplScanner.h.

◆ setSource()

template<class T_Input , class T_State , class T_Char , class C_Traits >
void bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >::setSource ( std::string_view src)
overridevirtual

Implements bux::I_Scanner< T_Char >.

Definition at line 225 of file ImplScanner.h.

◆ stateTables()

template<class T_Input , class T_State , class T_Char , class C_Traits = C_LexTraits<T_Char>>
void bux::C_ScannerImpl< T_Input, T_State, T_Char, C_Traits >::stateTables ( const C_StateRec * stateRecs,
const T_Input * gotoN )
inlineprotected

Definition at line 45 of file ImplScanner.h.


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