top | up | prev | next

Rule Class

Definition at line 13 of Grammar.hpp

Constructors

Rule(const std::u32string& name_, Expression* expression_)
Rule(const std::u32string& name_, RuleParser* parser_)

Member Functions

Expression* GetExpression() const
const std::u32string& Name() const
RuleParser* Parser() const

Enumerations

enum class Kind

Member Variables

Expression* expression
Kind kind
std::u32string name
RuleParser* parser

Constructor Details

Rule Constructor

sng2html::sng2html::Rule::Rule(const std::u32string& name_, Expression * expression_)

Definition at line 10 of Grammar.cpp :
10 : kind(Kind::lexical)name(name_)expression(expression_)parser(nullptr)
11 {
12 }


Declaration at line 20 of Grammar.hpp


Rule Constructor

sng2html::sng2html::Rule::Rule(const std::u32string& name_, RuleParser * parser_)

Definition at line 14 of Grammar.cpp :
14 : kind(Kind::parser)name(name_)parser(parser_)expression(nullptr)
15 {
16 }


Declaration at line 21 of Grammar.hpp


Member Function Details

GetExpression Member Function

Expression * sng2html::sng2html::Rule::GetExpression() const

Definition at line 23 of Grammar.hpp :
23 { return expression; }

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


Name Member Function

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

Definition at line 22 of Grammar.hpp :
22 { return name; }

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


Parser Member Function

RuleParser * sng2html::sng2html::Rule::Parser() const

Definition at line 24 of Grammar.hpp :
24 { return parser; }


top | up | prev | next