Zen
A cross-platform functional programming language
|
AST Node representing a list of statements. More...
#include <Ast.hpp>
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 List & | getList () const |
Returns a reference to the statement list. | |
Private Attributes | |
List | _list |
The statement list. |
AST Node representing a list of statements.
For example:
if(x > 10) {
...
}
Here, everything between the { and } is a statement list
void addStatement | ( | Statement & | statement | ) | [inline] |
Add a statement to the list.
statement | The statement to add. |
const List& getList | ( | ) | const [inline] |
Returns a reference to the statement list.