top | up | prev | next

ParserFileTokenLexer Class

Definition at line 9 of ParserFileTokenLexer.hpp

Constructors

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

Member Functions

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

Member Variables

bool inBlockComment

Constructor Details

ParserFileTokenLexer Constructor

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

Definition at line 19 of ParserFileTokenLexer.cpp :
   19 : soulng::lexer::Lexer(start_end_fileName_fileIndex_)
   20 inBlockComment()
   21 {
   22     SetKeywordMap(ParserFileTokenLexerKeywords::GetKeywordMap());
   23 }


Declaration at line 13 of ParserFileTokenLexer.hpp


ParserFileTokenLexer Constructor

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

Definition at line 13 of ParserFileTokenLexer.cpp :
   13 : soulng::lexer::Lexer(content_fileName_fileIndex_)
   14 inBlockComment()
   15 {
   16     SetKeywordMap(ParserFileTokenLexerKeywords::GetKeywordMap());
   17 }


Declaration at line 12 of ParserFileTokenLexer.hpp


Member Function Details

GetTokenId Member Function

int ParserFileTokenLexer::GetTokenId(int statementIndex)

Definition at line 19521 of ParserFileTokenLexer.cpp
Declaration at line 17 of ParserFileTokenLexer.hpp

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

Called by: ParserFileTokenLexer::NextState


NextState Member Function

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

Definition at line 25 of ParserFileTokenLexer.cpp
Declaration at line 14 of ParserFileTokenLexer.hpp

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

Calls: ParserFileTokenLexer::GetTokenId


top | up | prev | next