top | up | prev | next

Expressions Class

Definition at line 116 of LexerFile.hpp

Constructors

Expressions()

Member Functions

void Add(Expression* expression)
void AddToLexerFile(LexerFile& lexerFile) override
Expression* Get(const std::u32string& id) const
void Parse(LexerContext& lexerContext)

Member Variables

std::map<std::u32string, int> exprMap
std::vector<std::unique_ptr<Expression>> expressions

Constructor Details

Expressions Constructor

sng2html::sng2html::Expressions::Expressions()

Definition at line 106 of LexerFile.cpp :
106 : Declaration(U"expressions")
107 {
108 }


Declaration at line 119 of LexerFile.hpp


Member Function Details

Add Member Function

void sng2html::sng2html::Expressions::Add(Expression * expression)

Definition at line 115 of LexerFile.cpp :
116 {
117     expressions.push_back(std::unique_ptr<Expression>(expression));
118     exprMap[expression->Id()] = expression->Index();
119 }


Declaration at line 120 of LexerFile.hpp

Calls: sng2html::sng2html::Expression::Id , sng2html::sng2html::Expression::Index

Called by: sng2html::sng2html::Expressions::Parse


AddToLexerFile Member Function

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

Definition at line 110 of LexerFile.cpp :
111 {
112     lexerFile.SetExpressions(this);
113 }


Declaration at line 122 of LexerFile.hpp

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

Calls: sng2html::sng2html::LexerFile::SetExpressions


Get Member Function

Expression * sng2html::sng2html::Expressions::Get(const std::u32string& id) const

Definition at line 121 of LexerFile.cpp
Declaration at line 121 of LexerFile.hpp

Called by: sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit , sng2html::sng2html::Project::ReadGrammarFiles


Parse Member Function

void sng2html::sng2html::Expressions::Parse(LexerContext & lexerContext)

Definition at line 135 of LexerFile.cpp
Declaration at line 123 of LexerFile.hpp

Calls: sng2html::sng2html::Expression::SetRegEx , sng2html::sng2html::Expressions::Add , sng2html::sng2html::Expressions::Parse , sng2html::sng2html::LexerContext::MakeIdCont , sng2html::sng2html::LexerContext::MakeIdStart

Called by: sng2html::sng2html::Expressions::Parse , sng2html::sng2html::LexerFile::Parse


top | up | prev | next