top | up | prev | next

PPLexer Class

Definition at line 9 of PPLexer.hpp

Constructors

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

PP* pp

Constructor Details

PPLexer Constructor

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

Definition at line 19 of PPLexer.cpp :
  19 : soulng::lexer::Lexer(start_end_fileName_fileIndex_)
  20 pp()
  21 {
  22     SetKeywordMap(PPKeywords::GetKeywordMap());
  23 }


Declaration at line 13 of PPLexer.hpp


PPLexer Constructor

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

Definition at line 13 of PPLexer.cpp :
  13 : soulng::lexer::Lexer(content_fileName_fileIndex_)
  14 pp()
  15 {
  16     SetKeywordMap(PPKeywords::GetKeywordMap());
  17 }


Declaration at line 12 of PPLexer.hpp


Member Function Details

GetTokenId Member Function

int PPLexer::GetTokenId(int statementIndex)

Definition at line 7853 of PPLexer.cpp
Declaration at line 17 of PPLexer.hpp

Calls: sngcpp::pp::PP::Emit

Called by: PPLexer::NextState


NextState Member Function

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

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

Calls: PPLexer::GetTokenId


top | up | prev | next