top | up | prev | next

LexerFile Class

Definition at line 205 of LexerFile.hpp

Constructors

LexerFile()

Member Functions

void Accept(Visitor& visitor)
void Add(Declaration* declaration)
Expressions* GetExpressions() const
Keywords* GetKeywords() const
Lexer* GetLexer() const
void Parse(LexerContext& lexerContext)
void SetExpressions(Expressions* expressions_)
void SetKeywords(Keywords* keywords_)
void SetLexer(Lexer* lexer_)

Member Variables

std::vector<std::unique_ptr<Declaration>> declarations
Expressions* expressions
Keywords* keywords
Lexer* lexer

Constructor Details

LexerFile Constructor

sng2html::sng2html::LexerFile::LexerFile()

Definition at line 261 of LexerFile.cpp :
261 : keywords(nullptr)lexer(nullptr)expressions(nullptr)
262 {
263 }


Declaration at line 208 of LexerFile.hpp


Member Function Details

Accept Member Function

void sng2html::sng2html::LexerFile::Accept(Visitor & visitor)

Definition at line 265 of LexerFile.cpp :
266 {
267     visitor.Visit(*this);
268 }


Declaration at line 209 of LexerFile.hpp

Calls: sng2html::sng2html::Visitor::Visit


Add Member Function

void sng2html::sng2html::LexerFile::Add(Declaration * declaration)

Definition at line 270 of LexerFile.cpp :
271 {
272     declarations.push_back(std::unique_ptr<Declaration>(declaration));
273     declaration->AddToLexerFile(*this);
274 }


Declaration at line 210 of LexerFile.hpp

Calls: sng2html::sng2html::Declaration::AddToLexerFile


GetExpressions Member Function

Expressions * sng2html::sng2html::LexerFile::GetExpressions() const

Definition at line 213 of LexerFile.hpp :
213 { return expressions; }

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


GetKeywords Member Function

Keywords * sng2html::sng2html::LexerFile::GetKeywords() const

Definition at line 211 of LexerFile.hpp :
211 { return keywords; }

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


GetLexer Member Function

Lexer * sng2html::sng2html::LexerFile::GetLexer() const

Definition at line 215 of LexerFile.hpp :
215 { return lexer; }

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


Parse Member Function

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

Definition at line 276 of LexerFile.cpp :
277 {
278     expressions->Parse(lexerContext);
279     lexer->Parse(lexerContext);
280 }


Declaration at line 217 of LexerFile.hpp

Calls: sng2html::sng2html::Expressions::Parse , sng2html::sng2html::Lexer::Parse


SetExpressions Member Function

void sng2html::sng2html::LexerFile::SetExpressions(Expressions * expressions_)

Definition at line 214 of LexerFile.hpp :
214 { expressions = expressions_; }

Called by: sng2html::sng2html::Expressions::AddToLexerFile


SetKeywords Member Function

void sng2html::sng2html::LexerFile::SetKeywords(Keywords * keywords_)

Definition at line 212 of LexerFile.hpp :
212 { keywords = keywords_; }

Called by: sng2html::sng2html::Keywords::AddToLexerFile


SetLexer Member Function

void sng2html::sng2html::LexerFile::SetLexer(Lexer * lexer_)

Definition at line 216 of LexerFile.hpp :
216 { lexer = lexer_; }

Called by: sng2html::sng2html::Lexer::AddToLexerFile


top | up | prev | next