top | up | prev | next

ActionParser Class

Definition at line 211 of Parser.hpp

Constructors

ActionParser(soulng::cppcode::CompoundStatement* successCode_, soulng::cppcode::CompoundStatement* failCode_, Parser* child_)

Member Functions

void Accept(Visitor& visitor) override
Parser* Clone() const override
soulng::cppcode::CompoundStatement* FailCode() const
bool IsAction() const override
bool IsActionToken() const override
bool IsEmptyOrEmptyActionParser() const override
soulng::cppcode::CompoundStatement* SuccessCode() const

Member Variables

soulng::cppcode::CompoundStatement* failCode
std::unique_ptr<soulng::cppcode::CompoundStatement> ownedFailCode
std::unique_ptr<soulng::cppcode::CompoundStatement> ownedSuccessCode
soulng::cppcode::CompoundStatement* successCode

Constructor Details

ActionParser Constructor

sng2html::sng2html::ActionParser::ActionParser(soulng::cppcode::CompoundStatement* successCode_, soulng::cppcode::CompoundStatement* failCode_, Parser * child_)

Definition at line 263 of Parser.cpp
Declaration at line 214 of Parser.hpp


Member Function Details

Accept Member Function

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

Definition at line 288 of Parser.cpp :
289 {
290     visitor.Visit(*this);
291 }


Declaration at line 217 of Parser.hpp

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

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


Clone Member Function

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

Definition at line 283 of Parser.cpp :
284 {
285     return new ActionParser(successCodefailCodeChild()->Clone());
286 }


Declaration at line 216 of Parser.hpp

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

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


FailCode Member Function

soulng::cppcode::CompoundStatement* sng2html::sng2html::ActionParser::FailCode() const

Definition at line 222 of Parser.hpp :
222 { return failCode; }


IsAction Member Function

bool sng2html::sng2html::ActionParser::IsAction() const override

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

Base class overridden functions: sng2html::sng2html::Parser::IsAction


IsActionToken Member Function

bool sng2html::sng2html::ActionParser::IsActionToken() const override

Definition at line 293 of Parser.cpp :
294 {
295     return Child()->IsToken();
296 }


Declaration at line 219 of Parser.hpp

Base class overridden functions: sng2html::sng2html::Parser::IsActionToken

Calls: sng2html::sng2html::Parser::IsToken , sng2html::sng2html::UnaryParser::Child


IsEmptyOrEmptyActionParser Member Function

bool sng2html::sng2html::ActionParser::IsEmptyOrEmptyActionParser() const override

Definition at line 220 of Parser.hpp :
220 { return Child()->IsEmptyOrEmptyActionParser(); }

Base class overridden functions: sng2html::sng2html::Parser::IsEmptyOrEmptyActionParser

Calls: sng2html::sng2html::Parser::IsEmptyOrEmptyActionParser , sng2html::sng2html::UnaryParser::Child


SuccessCode Member Function

soulng::cppcode::CompoundStatement* sng2html::sng2html::ActionParser::SuccessCode() const

Definition at line 221 of Parser.hpp :
221 { return successCode; }


top | up | prev | next