top | up | prev | next

ParserFile Class

Definition at line 23 of ParserFile.hpp

Constructors

ParserFile(const std::string& fileName_)

Member Functions

void Accept(Visitor& visitor)
void AddInclude(Include* include)
void AddParser(GrammarParser* parser)
void AddUsingNamespace(const std::u32string& usingNs)
const std::string& FileName() const
const std::vector<std::unique_ptr<Include>>& Includes() const
const std::vector<std::unique_ptr<GrammarParser>>& Parsers() const
const std::vector<std::u32string>& UsingNamespaceDeclarations() const

Member Variables

std::string fileName
std::vector<std::unique_ptr<Include>> includes
std::vector<std::unique_ptr<GrammarParser>> parsers
std::vector<std::u32string> usingNamespaceDeclarations

Constructor Details

ParserFile Constructor

sng2html::sng2html::ParserFile::ParserFile(const std::string& fileName_)

Definition at line 15 of ParserFile.cpp :
15 : fileName(fileName_)
16 {
17 }


Declaration at line 26 of ParserFile.hpp


Member Function Details

Accept Member Function

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

Definition at line 34 of ParserFile.cpp :
35 {
36     visitor.Visit(*this);
37 }


Declaration at line 30 of ParserFile.hpp

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


AddInclude Member Function

void sng2html::sng2html::ParserFile::AddInclude(Include * include)

Definition at line 19 of ParserFile.cpp :
20 {
21     includes.push_back(std::unique_ptr<Include>(include));
22 }


Declaration at line 27 of ParserFile.hpp

Called by: ParserFileParser::Declaration


AddParser Member Function

void sng2html::sng2html::ParserFile::AddParser(GrammarParser * parser)

Definition at line 29 of ParserFile.cpp :
30 {
31     parsers.push_back(std::unique_ptr<GrammarParser>(parser));
32 }


Declaration at line 29 of ParserFile.hpp

Called by: ParserFileParser::Declaration


AddUsingNamespace Member Function

void sng2html::sng2html::ParserFile::AddUsingNamespace(const std::u32string& usingNs)

Definition at line 24 of ParserFile.cpp :
25 {
26     usingNamespaceDeclarations.push_back(usingNs);
27 }


Declaration at line 28 of ParserFile.hpp

Called by: ParserFileParser::Declaration


FileName Member Function

const std::string& sng2html::sng2html::ParserFile::FileName() const

Definition at line 31 of ParserFile.hpp :
31 { return fileName; }


Includes Member Function

const std::vector<std::unique_ptr<Include >>& sng2html::sng2html::ParserFile::Includes() const

Definition at line 32 of ParserFile.hpp :
32 { return includes; }


Parsers Member Function

const std::vector<std::unique_ptr<GrammarParser >>& sng2html::sng2html::ParserFile::Parsers() const

Definition at line 34 of ParserFile.hpp :
34 { return parsers; }

Called by: sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit , sng2html::sng2html::LinkerVisitor::Visit


UsingNamespaceDeclarations Member Function

const std::vector<std::u32string>& sng2html::sng2html::ParserFile::UsingNamespaceDeclarations() const

Definition at line 33 of ParserFile.hpp :
33 { return usingNamespaceDeclarations; }


top | up | prev | next