top | up | prev | next

Keywords Class

Definition at line 85 of LexerFile.hpp

Constructors

Keywords(const std::u32string& name_)

Member Functions

void Add(Keyword* keyword)
void AddToLexerFile(LexerFile& lexerFile) override
std::u32string GetKeyword(const std::u32string& tokenId) const

Member Variables

std::map<std::u32string, std::u32string> keywordMap
std::vector<std::unique_ptr<Keyword>> keywords

Constructor Details

Keywords Constructor

sng2html::sng2html::Keywords::Keywords(const std::u32string& name_)

Definition at line 68 of LexerFile.cpp :
 68 : Declaration(name_)
 69 {
 70 }


Declaration at line 88 of LexerFile.hpp


Member Function Details

Add Member Function

void sng2html::sng2html::Keywords::Add(Keyword * keyword)

Definition at line 72 of LexerFile.cpp :
 73 {
 74     keywords.push_back(std::unique_ptr<Keyword>(keyword));
 75     keywordMap[keyword->token] = keyword->kw;
 76 }


Declaration at line 89 of LexerFile.hpp


AddToLexerFile Member Function

void sng2html::sng2html::Keywords::AddToLexerFile(LexerFile & lexerFile) override

Definition at line 91 of LexerFile.cpp :
 92 {
 93     lexerFile.SetKeywords(this);
 94 }


Declaration at line 90 of LexerFile.hpp

Base class overridden functions: sng2html::sng2html::Declaration::AddToLexerFile

Calls: sng2html::sng2html::LexerFile::SetKeywords


GetKeyword Member Function

std::u32string sng2html::sng2html::Keywords::GetKeyword(const std::u32string& tokenId) const

Definition at line 78 of LexerFile.cpp
Declaration at line 91 of LexerFile.hpp

Called by: sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit


top | up | prev | next