Zen
A cross-platform functional programming language
|
AST Node representing a while statement. More...
#include <Ast.hpp>
Public Member Functions | |
WhileStatement (const Ast::Expr &cond, const Ast::StatementList &list) | |
Default constructor. | |
const Ast::Expr & | getCond () const |
Returns a reference to the exit condition expression. | |
const Ast::StatementList & | getList () const |
Returns a reference to the statement list in the while block. | |
Private Member Functions | |
virtual void | visit (Statement::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Ast::Expr & | _cond |
The exit condition to test. | |
const Ast::StatementList & | _list |
The statement list for the while loop. |
AST Node representing a while statement.
WhileStatement | ( | const Ast::Expr & | cond, |
const Ast::StatementList & | list | ||
) | [inline] |
Default constructor.
cond | The exit condition to test |
list | The statement list for the while loop |
const Ast::Expr& getCond | ( | ) | const [inline] |
Returns a reference to the exit condition expression.
const Ast::StatementList& getList | ( | ) | const [inline] |
Returns a reference to the statement list in the while block.
void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |