Zen
A cross-platform functional programming language

StatementList Class Reference

AST Node representing a list of statements. More...

#include <Ast.hpp>

Inheritance diagram for StatementList:
Node

List of all members.

Public Types

typedef z::list< Statement * > List
 List of statements.

Public Member Functions

 StatementList ()
 Default constructor.
void addStatement (Statement &statement)
 Add a statement to the list.
const ListgetList () const
 Returns a reference to the statement list.

Private Attributes

List _list
 The statement list.

Detailed Description

AST Node representing a list of statements.

For example:

        if(x > 10) {
          ...
        }

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


Member Function Documentation

void addStatement ( Statement statement) [inline]

Add a statement to the list.

Parameters:
statementThe statement to add.
const List& getList ( ) const [inline]

Returns a reference to the statement list.

Returns:
The statement list.

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