top | up | prev | next

AlternativeParser Class

Definition at line 181 of Parser.hpp

Constructors

AlternativeParser(Parser* left_, Parser* right_)

Member Functions

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

Constructor Details

AlternativeParser Constructor

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

Definition at line 218 of Parser.cpp :
218 : BinaryParser(U"alternative"left_right_)
219 {
220 }


Declaration at line 184 of Parser.hpp


Member Function Details

Accept Member Function

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

Definition at line 227 of Parser.cpp :
228 {
229     visitor.Visit(*this);
230 }


Declaration at line 187 of Parser.hpp

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

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


Clone Member Function

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

Definition at line 222 of Parser.cpp :
223 {
224     return new AlternativeParser(Left()->Clone()Right()->Clone());
225 }


Declaration at line 186 of Parser.hpp

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

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


IsTokenSwitch Member Function

bool sng2html::sng2html::AlternativeParser::IsTokenSwitch() const override

Definition at line 185 of Parser.hpp :
185 { return Left()->IsActionToken() && Right()->IsActionToken() || Left()->IsTokenSwitch() && Right()->IsActionToken(); }

Base class overridden functions: sng2html::sng2html::Parser::IsTokenSwitch

Calls: sng2html::sng2html::BinaryParser::Left , sng2html::sng2html::BinaryParser::Right , sng2html::sng2html::Parser::IsActionToken , sng2html::sng2html::Parser::IsTokenSwitch


top | up | prev | next