A cross-platform functional programming language

GrammarRuleStatement Class Reference

Concrete class for AST node representing an EBNF gramar rule. More...

#include <Ast.hpp>

Inheritance diagram for GrammarRuleStatement:
GrammarStatement Node

List of all members.

Public Member Functions

 GrammarRuleStatement (const z::string &name, const Ast::FunctionDef &fdef, const Ast::FunctionBlock &fblock, const Ast::GrammarMemberList &list)
 Default constructor.
const Ast::GrammarMemberListgetList () 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.

Detailed Description

Concrete class for AST node representing an EBNF gramar rule.

Constructor & Destructor Documentation

GrammarRuleStatement ( const z::string name,
const Ast::FunctionDef fdef,
const Ast::FunctionBlock fblock,
const Ast::GrammarMemberList list 
) [inline]

Default constructor.

nameName of the variable on the LHS of the grammar statement
fdefDefinition of the function that represents this statement
fblockFunction block of the action function for this statement
listList of members in this EBNF grammar statement

Member Function Documentation

const Ast::GrammarMemberList& getList ( ) const [inline]

Returns a reference to the grammar member list.

Reference to grammar member list
void visit ( GrammarStatement::Visitor visitor) const [private, virtual]

Visitor pattern implementation.

visitorThe visitor object.

Implements GrammarStatement.

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