top | up | prev | next

CmajorLexer Class

Definition at line 10 of CmajorLexer.hpp

Constructors

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

char32_t chrLit
int chrLitPrefix
double floatingLit
bool floatingLitFloat
uint64_t intLit
bool intLitUnsigned
int leftAngleCount
bool parsingOperatorFunctionGroupId
std::u32string strLit
int strLitPrefix

Constructor Details

CmajorLexer Constructor

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

Definition at line 19 of CmajorLexer.cpp :
  19 : soulng::lexer::Lexer(start_end_fileName_fileIndex_)
  20 floatingLit()floatingLitFloat()intLit()intLitUnsigned()chrLit()chrLitPrefix()strLit()strLitPrefix()leftAngleCount()parsingOperatorFunctionGroupId()
  21 {
  22     SetKeywordMap(CmajorKeywords::GetKeywordMap());
  23 }


Declaration at line 14 of CmajorLexer.hpp


CmajorLexer Constructor

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

Definition at line 13 of CmajorLexer.cpp :
  13 : soulng::lexer::Lexer(content_fileName_fileIndex_)
  14 floatingLit()floatingLitFloat()intLit()intLitUnsigned()chrLit()chrLitPrefix()strLit()strLitPrefix()leftAngleCount()parsingOperatorFunctionGroupId()
  15 {
  16     SetKeywordMap(CmajorKeywords::GetKeywordMap());
  17 }


Declaration at line 13 of CmajorLexer.hpp


Member Function Details

GetTokenId Member Function

int CmajorLexer::GetTokenId(int statementIndex)

Definition at line 6288 of CmajorLexer.cpp
Declaration at line 27 of CmajorLexer.hpp

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

Called by: CmajorLexer::NextState


NextState Member Function

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

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

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

Calls: CmajorLexer::GetTokenId


top | up | prev | next