top | up | prev | next

LexerContext Class

Definition at line 18 of LexerContext.hpp

Constructors

LexerContext(IdentifierClassKind identifierClassKind)

Member Functions

Symbol* MakeAny()
Symbol* MakeChar(char32_t c)
Class* MakeClass()
Symbol* MakeEpsilon()
Class* MakeIdCont()
Class* MakeIdStart()
Symbol* MakeRange(char32_t start, char32_t end)

Member Variables

Any any
std::map<char32_t, Symbol*> charSymbols
Char epsilon
Class* idCont
Class* idStart
std::map<Range, Symbol*> rangeSymbols
std::vector<Symbol*> symbols

Constructor Details

LexerContext Constructor

sng2html::sng2html::LexerContext::LexerContext(IdentifierClassKind identifierClassKind)

Definition at line 21 of LexerContext.cpp
Declaration at line 21 of LexerContext.hpp


Member Function Details

MakeAny Member Function

Symbol * sng2html::sng2html::LexerContext::MakeAny()

Definition at line 24 of LexerContext.hpp :
24 { return &any; }

Called by: RegExParser::Primary


MakeChar Member Function

Symbol * sng2html::sng2html::LexerContext::MakeChar(char32_t c)

Definition at line 45 of LexerContext.cpp
Declaration at line 23 of LexerContext.hpp

Called by: RegExParser::Primary , RegExParser::Range


MakeClass Member Function

Class * sng2html::sng2html::LexerContext::MakeClass()

Definition at line 72 of LexerContext.cpp :
73 {
74     Class* cls = new Class(0);
75     symbols.push_back(cls);
76     return cls;
77 }


Declaration at line 29 of LexerContext.hpp

Called by: RegExParser::Class


MakeEpsilon Member Function

Symbol * sng2html::sng2html::LexerContext::MakeEpsilon()

Definition at line 25 of LexerContext.hpp :
25 { return &epsilon; }


MakeIdCont Member Function

Class * sng2html::sng2html::LexerContext::MakeIdCont()

Definition at line 28 of LexerContext.hpp :
28 { return idCont; }

Called by: sng2html::sng2html::Expressions::Parse


MakeIdStart Member Function

Class * sng2html::sng2html::LexerContext::MakeIdStart()

Definition at line 27 of LexerContext.hpp :
27 { return idStart; }

Called by: sng2html::sng2html::Expressions::Parse


MakeRange Member Function

Symbol * sng2html::sng2html::LexerContext::MakeRange(char32_t start, char32_t end)

Definition at line 58 of LexerContext.cpp
Declaration at line 26 of LexerContext.hpp

Called by: RegExParser::Range


top | up | prev | next