Zen
A cross-platform functional programming language
|
Concrete class for AST node representing an EBNF gramar rule. More...
#include <Ast.hpp>
Public Member Functions | |
GrammarRuleStatement (const z::string &name, const Ast::FunctionDef &fdef, const Ast::FunctionBlock &fblock, const Ast::GrammarMemberList &list) | |
Default constructor. | |
const Ast::GrammarMemberList & | getList () const |
Returns a reference to the grammar member list. | |
Private Member Functions | |
virtual void | visit (GrammarStatement::Visitor &visitor) const |
Visitor pattern implementation. | |
Private Attributes | |
const Ast::GrammarMemberList & | _list |
Reference to grammar member list. |
Concrete class for AST node representing an EBNF gramar rule.
GrammarRuleStatement | ( | const z::string & | name, |
const Ast::FunctionDef & | fdef, | ||
const Ast::FunctionBlock & | fblock, | ||
const Ast::GrammarMemberList & | list | ||
) | [inline] |
Default constructor.
name | Name of the variable on the LHS of the grammar statement |
fdef | Definition of the function that represents this statement |
fblock | Function block of the action function for this statement |
list | List of members in this EBNF grammar statement |
const Ast::GrammarMemberList& getList | ( | ) | const [inline] |
Returns a reference to the grammar member list.
void visit | ( | GrammarStatement::Visitor & | visitor | ) | const [private, virtual] |