top | up | prev | next

OptionalParser Class

Definition at line 128 of Parser.hpp

Constructors

OptionalParser(Parser* child_)

Member Functions

void Accept(Visitor& visitor) override
Parser* Clone() const override
bool IsPostfix() const override

Constructor Details

OptionalParser Constructor

sng2html::sng2html::OptionalParser::OptionalParser(Parser * child_)

Definition at line 118 of Parser.cpp :
118 : UnaryParser(U"optional"child_)
119 {
120 }


Declaration at line 131 of Parser.hpp


Member Function Details

Accept Member Function

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

Definition at line 127 of Parser.cpp :
128 {
129     visitor.Visit(*this);
130 }


Declaration at line 133 of Parser.hpp

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

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


Clone Member Function

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

Definition at line 122 of Parser.cpp :
123 {
124     return new OptionalParser(Child()->Clone());
125 }


Declaration at line 132 of Parser.hpp

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

Calls: sng2html::sng2html::Parser::Clone , sng2html::sng2html::UnaryParser::Child


IsPostfix Member Function

bool sng2html::sng2html::OptionalParser::IsPostfix() const override

Definition at line 134 of Parser.hpp :
134 { return true; }

Base class overridden functions: sng2html::sng2html::Parser::IsPostfix


top | up | prev | next