Zen
A cross-platform functional programming language
|
AST Node for EBNF element representing a named ID. More...
#include <Ast.hpp>
Public Member Functions | |
GrammarMemberNameId (const Ast::VariableDef &vdef, const z::string &txt) | |
Default constructor. | |
const Ast::VariableDef & | getDef () const |
Returns the name of this member. | |
const z::string & | getText () const |
Returns the id for this member. | |
Private Member Functions | |
virtual void | visit (GrammarMember::Visitor &visitor) const |
Visitor pattern implementation. | |
Private Attributes | |
const Ast::VariableDef & | _vdef |
Name of this member. | |
const z::string | _txt |
ID for this member. |
AST Node for EBNF element representing a named ID.
GrammarMemberNameId | ( | const Ast::VariableDef & | vdef, |
const z::string & | txt | ||
) | [inline] |
Default constructor.
vdef | Variable holding name of this member |
txt | The ID or id represented by this member |
const Ast::VariableDef& getDef | ( | ) | const [inline] |
Returns the name of this member.
const z::string& getText | ( | ) | const [inline] |
Returns the id for this member.
void visit | ( | GrammarMember::Visitor & | visitor | ) | const [private, virtual] |