Zen
A cross-platform functional programming language
|
AST Node representing a do-while statement. More...
#include <Ast.hpp>
Public Member Functions | |
DoWhileStatement (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 do-while statement.
DoWhileStatement | ( | 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] |