top | up | prev | next

GrammarHtmlGeneratorVisitor Class

Definition at line 16 of GrammarHtmlGenerator.hpp

Constructors

GrammarHtmlGeneratorVisitor(bool verbose_, std::unordered_map<GrammarParser*, Grammar*>& parserGrammarMap_, std::unordered_map<RuleParser*, Rule*>& parserRuleMap_, std::unordered_map<LexerFile*, Grammar*>& lexerGrammarMap_, std::unordered_map<Expression*, Rule*>& lexerRuleMap_, std::unordered_map<std::u32string, LexerFile*>& lexerMap_, const std::u32string& styleFilePath_)

Member Functions

Grammar* GetGrammar(GrammarParser* parser) const
Rule* GetRule(RuleParser* parser) const
void Visit(ActionParser& parser) override
void Visit(Alt& alt) override
void Visit(AlternativeParser& parser) override
void Visit(Any& symbol) override
void Visit(Cat& cat) override
void Visit(Char& symbol) override
void Visit(CharParser& parser) override
void Visit(CharSetParser& parser) override
void Visit(Class& symbol) override
void Visit(DifferenceParser& parser) override
void Visit(Domain& domain) override
void Visit(EmptyParser& parser) override
void Visit(ExpectationParser& parser) override
void Visit(GrammarParser& parser) override
void Visit(GroupingParser& parser) override
void Visit(Kleene& kleene) override
void Visit(KleeneParser& parser) override
void Visit(LexerFile& lexerFile) override
void Visit(ListParser& parser) override
void Visit(NonterminalParser& parser) override
void Visit(Opt& opt) override
void Visit(OptionalParser& parser) override
void Visit(ParenExpr& parenExpr) override
void Visit(ParserFile& parserFile) override
void Visit(Pos& pos) override
void Visit(PositiveParser& parser) override
void Visit(Range& symbol) override
void Visit(RefExpr& refExpr) override
void Visit(RuleParser& parser) override
void Visit(SequenceParser& parser) override
void Visit(StringParser& parser) override
void Visit(SymbolExpr& symbolExpr) override
void Visit(TokenParser& parser) override

Member Variables

GrammarParser* currentGrammar
LexerFile* lexerFile
std::unordered_map<LexerFile*, Grammar*>& lexerGrammarMap
std::unordered_map<std::u32string, LexerFile*>& lexerMap
std::unordered_map<Expression*, Rule*>& lexerRuleMap
std::unordered_map<GrammarParser*, Grammar*>& parserGrammarMap
std::unordered_map<RuleParser*, Rule*>& parserRuleMap
sngxml::dom::Element* ruleBodyElement
sngxml::dom::Element* ruleTable
std::u32string styleFilePath
bool verbose

Constructor Details

GrammarHtmlGeneratorVisitor Constructor

sng2html::sng2html::GrammarHtmlGeneratorVisitor::GrammarHtmlGeneratorVisitor(bool verbose_, std::unordered_map<GrammarParser *, Grammar *>& parserGrammarMap_, std::unordered_map<RuleParser *, Rule *>& parserRuleMap_, std::unordered_map<LexerFile *, Grammar *>& lexerGrammarMap_, std::unordered_map<Expression *, Rule *>& lexerRuleMap_, std::unordered_map<std::u32string, LexerFile *>& lexerMap_, const std::u32string& styleFilePath_)

Definition at line 35 of GrammarHtmlGenerator.cpp :
 37 :
 38 verbose(verbose_)parserGrammarMap(parserGrammarMap_)parserRuleMap(parserRuleMap_)
 39 lexerGrammarMap(lexerGrammarMap_)lexerRuleMap(lexerRuleMap_)
 40 lexerMap(lexerMap_)styleFilePath(styleFilePath_)ruleTable(nullptr)ruleBodyElement(nullptr)currentGrammar(nullptr)
 41 lexerFile(nullptr)
 42 {
 43 }


Declaration at line 19 of GrammarHtmlGenerator.hpp


Member Function Details

GetGrammar Member Function

Grammar * sng2html::sng2html::GrammarHtmlGeneratorVisitor::GetGrammar(GrammarParser * parser) const

Definition at line 608 of GrammarHtmlGenerator.cpp
Declaration at line 55 of GrammarHtmlGenerator.hpp

Calls: sng2html::sng2html::Parser::Name

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


GetRule Member Function

Rule * sng2html::sng2html::GrammarHtmlGeneratorVisitor::GetRule(RuleParser * parser) const

Definition at line 621 of GrammarHtmlGenerator.cpp
Declaration at line 56 of GrammarHtmlGenerator.hpp

Calls: sng2html::sng2html::Parser::Name

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


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(ActionParser & parser) override

Definition at line 411 of GrammarHtmlGenerator.cpp :
412 {
413     parser.Child()->Accept(*this);
414 }


Declaration at line 48 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Parser::Accept , sng2html::sng2html::UnaryParser::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Alt & alt) override

Definition at line 107 of GrammarHtmlGenerator.cpp :
108 {
109     alt.Left()->Accept(*this);
110     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
111     spanElement->SetAttribute(U"class"U"ruleOp");
112     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U" | ")));
113     ruleBodyElement->AppendChild(std::move(spanElement));
114     alt.Right()->Accept(*this);
115 }


Declaration at line 26 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::BinaryRegExpression::Left , sng2html::sng2html::BinaryRegExpression::Right , sng2html::sng2html::RegExpression::Accept


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(AlternativeParser & parser) override

Definition at line 379 of GrammarHtmlGenerator.cpp :
380 {
381     parser.Left()->Accept(*this);
382     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
383     spanElement->SetAttribute(U"class"U"ruleOp");
384     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U" | ")));
385     ruleBodyElement->AppendChild(std::move(spanElement));
386     parser.Right()->Accept(*this);
387 }


Declaration at line 45 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::BinaryParser::Left , sng2html::sng2html::BinaryParser::Right , sng2html::sng2html::Parser::Accept


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Any & symbol) override

Definition at line 53 of GrammarHtmlGenerator.cpp :
 54 {
 55     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
 56     spanElement->SetAttribute(U"class"U"ruleOp");
 57     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U".")));
 58     ruleBodyElement->AppendChild(std::move(spanElement));
 59 }


Declaration at line 23 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Cat & cat) override

Definition at line 117 of GrammarHtmlGenerator.cpp
Declaration at line 27 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::BinaryRegExpression::Left , sng2html::sng2html::BinaryRegExpression::Right , sng2html::sng2html::RegExpression::Accept , sng2html::sng2html::RegExpression::IsCharSymbolExpr


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Char & symbol) override

Definition at line 45 of GrammarHtmlGenerator.cpp :
 46 {
 47     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
 48     spanElement->SetAttribute(U"class"U"ruleChar");
 49     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(CharStr(symbol.Chr()))));
 50     ruleBodyElement->AppendChild(std::move(spanElement));
 51 }


Declaration at line 22 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Char::Chr


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(CharParser & parser) override

Definition at line 262 of GrammarHtmlGenerator.cpp :
263 {
264     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
265     spanElement->SetAttribute(U"class"U"ruleChar");
266     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(CharStr(parser.Chr()))));
267     ruleBodyElement->AppendChild(std::move(spanElement));
268 }


Declaration at line 36 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::CharParser::Chr


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(CharSetParser & parser) override

Definition at line 278 of GrammarHtmlGenerator.cpp
Declaration at line 38 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::CharSet::Inverse , sng2html::sng2html::CharSet::Ranges , sng2html::sng2html::CharSetParser::Set


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Class & symbol) override

Definition at line 87 of GrammarHtmlGenerator.cpp
Declaration at line 25 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Class::Inverse


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(DifferenceParser & parser) override

Definition at line 389 of GrammarHtmlGenerator.cpp :
390 {
391     parser.Left()->Accept(*this);
392     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
393     spanElement->SetAttribute(U"class"U"ruleOp");
394     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U" ")));
395     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::EntityReference(U"minus")));
396     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U" ")));
397     ruleBodyElement->AppendChild(std::move(spanElement));
398     parser.Right()->Accept(*this);
399 }


Declaration at line 46 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::BinaryParser::Left , sng2html::sng2html::BinaryParser::Right , sng2html::sng2html::Parser::Accept


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Domain & domain) override

Definition at line 527 of GrammarHtmlGenerator.cpp :
528 {
529     for (const auto& parserFile : domain.ParserFiles())
530     {
531         parserFile->Accept(*this);
532     }
533 }


Declaration at line 53 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Domain::ParserFiles


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(EmptyParser & parser) override

Definition at line 211 of GrammarHtmlGenerator.cpp :
212 {
213     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
214     spanElement->SetAttribute(U"class"U"ruleOp");
215     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U"<empty>")));
216     ruleBodyElement->AppendChild(std::move(spanElement));
217 }


Declaration at line 34 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(ExpectationParser & parser) override

Definition at line 327 of GrammarHtmlGenerator.cpp :
328 {
329     parser.Child()->Accept(*this);
330 }


Declaration at line 42 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Parser::Accept , sng2html::sng2html::UnaryParser::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(GrammarParser & parser) override

Definition at line 466 of GrammarHtmlGenerator.cpp
Declaration at line 51 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Grammar::HtmlFilePath , sng2html::sng2html::Grammar::Title , sng2html::sng2html::GrammarHtmlGeneratorVisitor::GetGrammar , sng2html::sng2html::GrammarParser::Lexer , sng2html::sng2html::GrammarParser::Rules


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(GroupingParser & parser) override

Definition at line 332 of GrammarHtmlGenerator.cpp
Declaration at line 43 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Parser::Accept , sng2html::sng2html::Parser::IsAction , sng2html::sng2html::Parser::IsPostfix , sng2html::sng2html::Parser::Parent , sng2html::sng2html::Parser::ParentIsList , sng2html::sng2html::UnaryParser::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Kleene & kleene) override

Definition at line 131 of GrammarHtmlGenerator.cpp :
132 {
133     kleene.Child()->Accept(*this);
134     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
135     spanElement->SetAttribute(U"class"U"ruleOp");
136     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U"*")));
137     ruleBodyElement->AppendChild(std::move(spanElement));
138 }


Declaration at line 28 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::RegExpression::Accept , sng2html::sng2html::UnaryRegExpression::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(KleeneParser & parser) override

Definition at line 309 of GrammarHtmlGenerator.cpp :
310 {
311     parser.Child()->Accept(*this);
312     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
313     spanElement->SetAttribute(U"class"U"ruleOp");
314     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U"*")));
315     ruleBodyElement->AppendChild(std::move(spanElement));
316 }


Declaration at line 40 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Parser::Accept , sng2html::sng2html::UnaryParser::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(LexerFile & lexerFile) override

Definition at line 535 of GrammarHtmlGenerator.cpp
Declaration at line 54 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Expression::RegEx , sng2html::sng2html::Grammar::HtmlFilePath , sng2html::sng2html::Grammar::Rules , sng2html::sng2html::Grammar::Title , sng2html::sng2html::RegExpression::Accept , sng2html::sng2html::Rule::GetExpression , sng2html::sng2html::Rule::Name


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(ListParser & parser) override

Definition at line 401 of GrammarHtmlGenerator.cpp :
402 {
403     parser.Left()->Accept(*this);
404     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
405     spanElement->SetAttribute(U"class"U"ruleOp");
406     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U" % ")));
407     ruleBodyElement->AppendChild(std::move(spanElement));
408     parser.Right()->Accept(*this);
409 }


Declaration at line 47 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::ListParser::Left , sng2html::sng2html::ListParser::Right , sng2html::sng2html::Parser::Accept


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(NonterminalParser & parser) override

Definition at line 416 of GrammarHtmlGenerator.cpp
Declaration at line 49 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Grammar::HtmlFileName , sng2html::sng2html::GrammarHtmlGeneratorVisitor::GetGrammar , sng2html::sng2html::GrammarHtmlGeneratorVisitor::GetRule , sng2html::sng2html::NonterminalParser::Rule , sng2html::sng2html::Rule::Name , sng2html::sng2html::RuleParser::GetGrammar


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Opt & opt) override

Definition at line 149 of GrammarHtmlGenerator.cpp :
150 {
151     opt.Child()->Accept(*this);
152     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
153     spanElement->SetAttribute(U"class"U"ruleOp");
154     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U"?")));
155     ruleBodyElement->AppendChild(std::move(spanElement));
156 }


Declaration at line 30 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::RegExpression::Accept , sng2html::sng2html::UnaryRegExpression::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(OptionalParser & parser) override

Definition at line 300 of GrammarHtmlGenerator.cpp :
301 {
302     parser.Child()->Accept(*this);
303     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
304     spanElement->SetAttribute(U"class"U"ruleOp");
305     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U"?")));
306     ruleBodyElement->AppendChild(std::move(spanElement));
307 }


Declaration at line 39 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Parser::Accept , sng2html::sng2html::UnaryParser::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(ParenExpr & parenExpr) override

Definition at line 158 of GrammarHtmlGenerator.cpp
Declaration at line 31 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::RegExpression::Accept , sng2html::sng2html::UnaryRegExpression::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(ParserFile & parserFile) override

Definition at line 519 of GrammarHtmlGenerator.cpp :
520 {
521     for (const auto& grammar : parserFile.Parsers())
522     {
523         grammar->Accept(*this);
524     }
525 }


Declaration at line 52 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::ParserFile::Parsers


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Pos & pos) override

Definition at line 140 of GrammarHtmlGenerator.cpp :
141 {
142     pos.Child()->Accept(*this);
143     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
144     spanElement->SetAttribute(U"class"U"ruleOp");
145     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U"+")));
146     ruleBodyElement->AppendChild(std::move(spanElement));
147 }


Declaration at line 29 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::RegExpression::Accept , sng2html::sng2html::UnaryRegExpression::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(PositiveParser & parser) override

Definition at line 318 of GrammarHtmlGenerator.cpp :
319 {
320     parser.Child()->Accept(*this);
321     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
322     spanElement->SetAttribute(U"class"U"ruleOp");
323     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(U"+")));
324     ruleBodyElement->AppendChild(std::move(spanElement));
325 }


Declaration at line 41 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Parser::Accept , sng2html::sng2html::UnaryParser::Child


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(Range & symbol) override

Definition at line 61 of GrammarHtmlGenerator.cpp
Declaration at line 24 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Range::End , sng2html::sng2html::Range::Start


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(RefExpr & refExpr) override

Definition at line 176 of GrammarHtmlGenerator.cpp
Declaration at line 33 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Expressions::Get , sng2html::sng2html::Grammar::HtmlFileName , sng2html::sng2html::LexerFile::GetExpressions , sng2html::sng2html::RefExpr::ExprId , sng2html::sng2html::Rule::Name


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(RuleParser & parser) override

Definition at line 441 of GrammarHtmlGenerator.cpp
Declaration at line 50 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::GrammarHtmlGeneratorVisitor::GetRule , sng2html::sng2html::Parser::Accept , sng2html::sng2html::Rule::Name , sng2html::sng2html::RuleParser::Definition


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(SequenceParser & parser) override

Definition at line 352 of GrammarHtmlGenerator.cpp
Declaration at line 44 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::BinaryParser::Left , sng2html::sng2html::BinaryParser::Right , sng2html::sng2html::Parser::Accept , sng2html::sng2html::Parser::IsEmptyOrEmptyActionParser


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(StringParser & parser) override

Definition at line 270 of GrammarHtmlGenerator.cpp :
271 {
272     std::unique_ptr<sngxml::dom::Element> spanElement(new sngxml::dom::Element(U"span"));
273     spanElement->SetAttribute(U"class"U"ruleString");
274     spanElement->AppendChild(std::unique_ptr<sngxml::dom::Node>(new sngxml::dom::Text(StringStr(parser.Str()))));
275     ruleBodyElement->AppendChild(std::move(spanElement));
276 }


Declaration at line 37 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::StringParser::Str


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(SymbolExpr & symbolExpr) override

Definition at line 171 of GrammarHtmlGenerator.cpp :
172 {
173     symbolExpr.GetSymbol()->Accept(*this);
174 }


Declaration at line 32 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Symbol::Accept , sng2html::sng2html::SymbolExpr::GetSymbol


Visit Member Function

void sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit(TokenParser & parser) override

Definition at line 219 of GrammarHtmlGenerator.cpp
Declaration at line 35 of GrammarHtmlGenerator.hpp

Base class overridden functions: sng2html::sng2html::Visitor::Visit

Calls: sng2html::sng2html::Keywords::GetKeyword , sng2html::sng2html::Lexer::GetStatement , sng2html::sng2html::LexerFile::GetKeywords , sng2html::sng2html::LexerFile::GetLexer , sng2html::sng2html::LexerStatement::RegEx , sng2html::sng2html::RegExpression::Accept , sng2html::sng2html::TokenParser::TokenName


top | up | prev | next