top | up | prev | next

BuildLangLexer Class

Definition at line 9 of BuildLangLexer.hpp

Constructors

BuildLangLexer(const char32_t* start_, const char32_t* end_, const std::string& fileName_, int fileIndex_)
BuildLangLexer(const std::u32string& content_, const std::string& fileName_, int fileIndex_)

Member Functions

int GetTokenId(int statementIndex)
int NextState(int state, char32_t c) override

Constructor Details

BuildLangLexer Constructor

BuildLangLexer::BuildLangLexer(const char32_t * start_, const char32_t * end_, const std::string& fileName_, int fileIndex_)

Definition at line 18 of BuildLangLexer.cpp :
 18 : soulng::lexer::Lexer(start_end_fileName_fileIndex_)
 19 {
 20     SetKeywordMap(BuildLangKeywords::GetKeywordMap());
 21 }


Declaration at line 13 of BuildLangLexer.hpp


BuildLangLexer Constructor

BuildLangLexer::BuildLangLexer(const std::u32string& content_, const std::string& fileName_, int fileIndex_)

Definition at line 13 of BuildLangLexer.cpp :
 13 : soulng::lexer::Lexer(content_fileName_fileIndex_)
 14 {
 15     SetKeywordMap(BuildLangKeywords::GetKeywordMap());
 16 }


Declaration at line 12 of BuildLangLexer.hpp


Member Function Details

GetTokenId Member Function

int BuildLangLexer::GetTokenId(int statementIndex)

Definition at line 438 of BuildLangLexer.cpp
Declaration at line 16 of BuildLangLexer.hpp

Calls: soulng::lexer::Lexer::GetKeywordToken , soulng::lexer::Lexer::Retract

Called by: BuildLangLexer::NextState


NextState Member Function

int BuildLangLexer::NextState(int state, char32_t c) override

Definition at line 23 of BuildLangLexer.cpp
Declaration at line 14 of BuildLangLexer.hpp

Base class overridden functions: soulng::lexer::Lexer::NextState

Calls: BuildLangLexer::GetTokenId


top | up | prev | next