Zen
A cross-platform functional programming language

StatementBlock Class Reference

AST Node representing a statement block. More...

#include <Ast.hpp>

Inheritance diagram for StatementBlock:
Statement Node

List of all members.

Public Member Functions

 StatementBlock (const StatementList &list)
 Default constructor.
const StatementListgetList () const
 Returns a reference to the list of statements in this block.

Private Member Functions

virtual void visit (Statement::Visitor &visitor) const
 Abstract visitor function.

Private Attributes

const StatementList_list
 The statement list.

Detailed Description

AST Node representing a statement block.

A statement block is a compound statement, typically used to represent a standa-alone set of statements in curly braces. For example:

        {
          ...
        }

Here, everything between the { and } is a statement block


Constructor & Destructor Documentation

StatementBlock ( const StatementList list) [inline, explicit]

Default constructor.

Parameters:
listThe statement list contained in the block

Member Function Documentation

const StatementList& getList ( ) const [inline]

Returns a reference to the list of statements in this block.

Returns:
Statement list.
void visit ( Statement::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Statement.


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