top | up | prev | next

CppTokenLexer Class

Definition at line 10 of CppTokenLexer.hpp

Constructors

CppTokenLexer(const char32_t* start_, const char32_t* end_, const std::string& fileName_, int fileIndex_)
CppTokenLexer(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
SourceCodeWriter* writer

Constructor Details

CppTokenLexer Constructor

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

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


Declaration at line 14 of CppTokenLexer.hpp


CppTokenLexer Constructor

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

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


Declaration at line 13 of CppTokenLexer.hpp


Member Function Details

GetTokenId Member Function

int CppTokenLexer::GetTokenId(int statementIndex)

Definition at line 21931 of CppTokenLexer.cpp
Declaration at line 19 of CppTokenLexer.hpp

Called by: CppTokenLexer::NextState


NextState Member Function

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

Definition at line 25 of CppTokenLexer.cpp
Declaration at line 15 of CppTokenLexer.hpp

Calls: CppTokenLexer::GetTokenId


top | up | prev | next