![]() |
Zen
A cross-platform functional programming language
|
AST Node for a grammar implementation. More...
#include <Ast.hpp>
Public Member Functions | |
| GrammarImplItem (const int &idx, const Ast::FunctionDef &fdef, const Ast::GrammarBlock &block) | |
| Default constructor. | |
| z::string | getUniqueName (const z::string &sep) const |
| Returns the unique name for this implementation item. | |
| const Ast::GrammarBlock & | getBlock () const |
| Returns the GrammarBlock for this implementation item. | |
Private Member Functions | |
| virtual void | visit (ImplItem::Visitor &visitor) const |
| Abstract visitor function. | |
| virtual const Ast::FunctionImplItem & | getFunctionImplItem () const |
| Returns a reference to this if this is a FunctionImplItem, else throws exception. | |
Private Attributes | |
| const Ast::GrammarBlock & | _block |
| The grammar block. | |
AST Node for a grammar implementation.
| GrammarImplItem | ( | const int & | idx, |
| const Ast::FunctionDef & | fdef, | ||
| const Ast::GrammarBlock & | block | ||
| ) | [inline] |
Default constructor.
| idx | The index of this item in the list of impl items. |
| fdef | The function definition implemented in this item. |
| block | The grammar block for this item |
| const Ast::GrammarBlock& getBlock | ( | ) | const [inline] |
Returns the GrammarBlock for this implementation item.
| virtual const Ast::FunctionImplItem& getFunctionImplItem | ( | ) | const [inline, private, virtual] |
Returns a reference to this if this is a FunctionImplItem, else throws exception.
Implements ImplItem.
Returns the unique name for this implementation item.
| sep | The separator |
| void visit | ( | ImplItem::Visitor & | visitor | ) | const [private, virtual] |