top | up | prev | next

ListParser Class

Definition at line 198 of Parser.hpp

Constructors

ListParser(Parser* left_, Parser* right_)

Member Functions

void Accept(Visitor& visitor) override
Parser* Clone() const override
Parser* Left() const
Parser* Right() const

Member Variables

Parser* left
Parser* right

Constructor Details

ListParser Constructor

sng2html::sng2html::ListParser::ListParser(Parser * left_, Parser * right_)

Definition at line 246 of Parser.cpp :
246 :
247 UnaryParser(U"list"new SequenceParser(left_new KleeneParser(new SequenceParser(right_left_->Clone()))))left(left_)right(right_)
248 {
249     left->SetParentIsList();
250     right->SetParentIsList();
251 }


Declaration at line 201 of Parser.hpp


Member Function Details

Accept Member Function

void sng2html::sng2html::ListParser::Accept(Visitor & visitor) override

Definition at line 258 of Parser.cpp :
259 {
260     visitor.Visit(*this);
261 }


Declaration at line 203 of Parser.hpp

Base class overridden functions: sng2html::sng2html::Parser::Accept

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


Clone Member Function

Parser * sng2html::sng2html::ListParser::Clone() const override

Definition at line 253 of Parser.cpp :
254 {
255     return new ListParser(left->Clone()right->Clone());
256 }


Declaration at line 202 of Parser.hpp

Base class overridden functions: sng2html::sng2html::Parser::Clone

Calls: sng2html::sng2html::Parser::Clone


Left Member Function

Parser * sng2html::sng2html::ListParser::Left() const

Definition at line 204 of Parser.hpp :
204 { return left; }

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


Right Member Function

Parser * sng2html::sng2html::ListParser::Right() const

Definition at line 205 of Parser.hpp :
205 { return right; }

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


top | up | prev | next