top | up | prev | next

Parser Abstract Class

Definition at line 21 of Parser.hpp

Constructors

Parser(const std::u32string& name_)

Member Functions

void Accept(Visitor& visitor) pure virtual
Parser* Clone() const virtual
bool IsAction() const virtual
bool IsActionToken() const virtual
bool IsEmptyOrEmptyActionParser() const virtual
bool IsGrammar() const virtual
bool IsList() const virtual
bool IsNonterminal() const virtual
bool IsPostfix() const virtual
bool IsToken() const virtual
bool IsTokenSwitch() const virtual
const std::u32string& Name() const
Parser* Parent() const
bool ParentIsList() const
void SetParent(Parser* parent_)
void SetParentIsList()

Member Variables

std::u32string name
Parser* parent
bool parentIsList

Constructor Details

Parser Constructor

sng2html::sng2html::Parser::Parser(const std::u32string& name_)

Definition at line 14 of Parser.cpp :
 14 : name(name_)parent(nullptr)parentIsList(false)
 15 {
 16 }


Declaration at line 24 of Parser.hpp


Member Function Details

Accept Member Function

void sng2html::sng2html::Parser::Accept(Visitor & visitor) pure virtual

Definition at line 27 of Parser.hpp

Derived class overrides: sng2html::sng2html::ActionParser::Accept , sng2html::sng2html::AlternativeParser::Accept , sng2html::sng2html::CharParser::Accept , sng2html::sng2html::CharSetParser::Accept , sng2html::sng2html::DifferenceParser::Accept , sng2html::sng2html::EmptyParser::Accept , sng2html::sng2html::ExpectationParser::Accept , sng2html::sng2html::GrammarParser::Accept , sng2html::sng2html::GroupingParser::Accept , sng2html::sng2html::KleeneParser::Accept , sng2html::sng2html::ListParser::Accept , sng2html::sng2html::NonterminalParser::Accept , sng2html::sng2html::OptionalParser::Accept , sng2html::sng2html::PositiveParser::Accept , sng2html::sng2html::RuleParser::Accept , sng2html::sng2html::SequenceParser::Accept , sng2html::sng2html::StringParser::Accept , sng2html::sng2html::TokenParser::Accept

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


Clone Member Function

Parser * sng2html::sng2html::Parser::Clone() const virtual

Definition at line 22 of Parser.cpp :
 23 {
 24     throw std::runtime_error("this class does not support clone operation");
 25 }


Declaration at line 26 of Parser.hpp

Derived class overrides: sng2html::sng2html::ActionParser::Clone , sng2html::sng2html::AlternativeParser::Clone , sng2html::sng2html::CharParser::Clone , sng2html::sng2html::CharSetParser::Clone , sng2html::sng2html::DifferenceParser::Clone , sng2html::sng2html::EmptyParser::Clone , sng2html::sng2html::ExpectationParser::Clone , sng2html::sng2html::GroupingParser::Clone , sng2html::sng2html::KleeneParser::Clone , sng2html::sng2html::ListParser::Clone , sng2html::sng2html::NonterminalParser::Clone , sng2html::sng2html::OptionalParser::Clone , sng2html::sng2html::PositiveParser::Clone , sng2html::sng2html::SequenceParser::Clone , sng2html::sng2html::StringParser::Clone , sng2html::sng2html::TokenParser::Clone

Called by: sng2html::sng2html::ActionParser::Clone , sng2html::sng2html::AlternativeParser::Clone , sng2html::sng2html::DifferenceParser::Clone , sng2html::sng2html::ExpectationParser::Clone , sng2html::sng2html::GroupingParser::Clone , sng2html::sng2html::KleeneParser::Clone , sng2html::sng2html::ListParser::Clone , sng2html::sng2html::OptionalParser::Clone , sng2html::sng2html::PositiveParser::Clone , sng2html::sng2html::SequenceParser::Clone


IsAction Member Function

bool sng2html::sng2html::Parser::IsAction() const virtual

Definition at line 29 of Parser.hpp :
 29 { return false; }

Derived class overrides: sng2html::sng2html::ActionParser::IsAction , sng2html::sng2html::GroupingParser::IsAction , sng2html::sng2html::SequenceParser::IsAction

Called by: sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit , sng2html::sng2html::GroupingParser::IsAction , sng2html::sng2html::SequenceParser::IsAction


IsActionToken Member Function

bool sng2html::sng2html::Parser::IsActionToken() const virtual

Definition at line 31 of Parser.hpp :
 31 { return false; }

Derived class overrides: sng2html::sng2html::ActionParser::IsActionToken

Called by: sng2html::sng2html::AlternativeParser::IsTokenSwitch


IsEmptyOrEmptyActionParser Member Function

bool sng2html::sng2html::Parser::IsEmptyOrEmptyActionParser() const virtual

Definition at line 34 of Parser.hpp :
 34 { return false; }

Derived class overrides: sng2html::sng2html::ActionParser::IsEmptyOrEmptyActionParser , sng2html::sng2html::EmptyParser::IsEmptyOrEmptyActionParser

Called by: sng2html::sng2html::ActionParser::IsEmptyOrEmptyActionParser , sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit , sng2html::sng2html::SequenceParser::IsAction


IsGrammar Member Function

bool sng2html::sng2html::Parser::IsGrammar() const virtual

Definition at line 33 of Parser.hpp :
 33 { return false; }

Derived class overrides: sng2html::sng2html::GrammarParser::IsGrammar

Called by: sng2html::sng2html::RuleParser::GetGrammar


IsList Member Function

bool sng2html::sng2html::Parser::IsList() const virtual

Definition at line 37 of Parser.hpp :
 37 { return false; }


IsNonterminal Member Function

bool sng2html::sng2html::Parser::IsNonterminal() const virtual

Definition at line 28 of Parser.hpp :
 28 { return false; }

Derived class overrides: sng2html::sng2html::NonterminalParser::IsNonterminal


IsPostfix Member Function

bool sng2html::sng2html::Parser::IsPostfix() const virtual

Definition at line 35 of Parser.hpp :
 35 { return false; }

Derived class overrides: sng2html::sng2html::KleeneParser::IsPostfix , sng2html::sng2html::OptionalParser::IsPostfix , sng2html::sng2html::PositiveParser::IsPostfix

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


IsToken Member Function

bool sng2html::sng2html::Parser::IsToken() const virtual

Definition at line 32 of Parser.hpp :
 32 { return false; }

Derived class overrides: sng2html::sng2html::TokenParser::IsToken

Called by: sng2html::sng2html::ActionParser::IsActionToken


IsTokenSwitch Member Function

bool sng2html::sng2html::Parser::IsTokenSwitch() const virtual

Definition at line 30 of Parser.hpp :
 30 { return false; }

Derived class overrides: sng2html::sng2html::AlternativeParser::IsTokenSwitch

Called by: sng2html::sng2html::AlternativeParser::IsTokenSwitch


Name Member Function

const std::u32string& sng2html::sng2html::Parser::Name() const

Definition at line 38 of Parser.hpp :
 38 { return name; }

Called by: sng2html::sng2html::Domain::AddParser , sng2html::sng2html::GrammarHtmlGeneratorVisitor::GetGrammar , sng2html::sng2html::GrammarHtmlGeneratorVisitor::GetRule , sng2html::sng2html::GrammarParser::AddRule , sng2html::sng2html::GrammarParser::GetRule , sng2html::sng2html::GrammarParser::MapRule , sng2html::sng2html::LinkerVisitor::Visit , sng2html::sng2html::LinkerVisitor::Visit , sng2html::sng2html::NonterminalParser::Clone


Parent Member Function

Parser * sng2html::sng2html::Parser::Parent() const

Definition at line 39 of Parser.hpp :
 39 { return parent; }

Called by: sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit , sng2html::sng2html::RuleParser::GetGrammar


ParentIsList Member Function

bool sng2html::sng2html::Parser::ParentIsList() const

Definition at line 36 of Parser.hpp :
 36 { return parentIsList; }

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


SetParent Member Function

void sng2html::sng2html::Parser::SetParent(Parser * parent_)

Definition at line 40 of Parser.hpp :
 40 { parent = parent_; }

Called by: sng2html::sng2html::GrammarParser::AddRule


SetParentIsList Member Function

void sng2html::sng2html::Parser::SetParentIsList()

Definition at line 41 of Parser.hpp :
 41 { parentIsList = true; }


top | up | prev | next