A cross-platform functional programming language

GrammarMemberNameId Class Reference

AST Node for EBNF element representing a named ID. More...

#include <Ast.hpp>

Inheritance diagram for GrammarMemberNameId:
GrammarMember Node

List of all members.

Public Member Functions

 GrammarMemberNameId (const Ast::VariableDef &vdef, const z::string &txt)
 Default constructor.
const Ast::VariableDefgetDef () const
 Returns the name of this member.
const z::stringgetText () 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.

Detailed Description

AST Node for EBNF element representing a named ID.

Constructor & Destructor Documentation

GrammarMemberNameId ( const Ast::VariableDef vdef,
const z::string txt 
) [inline]

Default constructor.

vdefVariable holding name of this member
txtThe ID or id represented by this member

Member Function Documentation

const Ast::VariableDef& getDef ( ) const [inline]

Returns the name of this member.

Name of this member
const z::string& getText ( ) const [inline]

Returns the id for this member.

ID for this member
void visit ( GrammarMember::Visitor visitor) const [private, virtual]

Visitor pattern implementation.

visitorThe visitor object.

Implements GrammarMember.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines