Zen
A cross-platform functional programming language
|
AST Node representing a closure that causes the first closure in current continuation to execute again. More...
#include <Ast.hpp>
Public Member Functions | |
LoopClosure (const VariableRefList &xRefList, const Ast::Expr &expr) | |
Default constructor. | |
const Ast::Expr & | getExpr () const |
Returns the conditional expression for the loop closure. | |
Private Member Functions | |
virtual void | visit (Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Ast::Expr & | _expr |
The conditional expression. |
AST Node representing a closure that causes the first closure in current continuation to execute again.
The closure pointer in the continuation loops back to the beginning if the condition in this closure evaluates to true.
LoopClosure | ( | const VariableRefList & | xRefList, |
const Ast::Expr & | expr | ||
) | [inline] |
Default constructor.
xRefList | The list of external variables referenced by this closure. |
expr | The conditional expression. |
const Ast::Expr& getExpr | ( | ) | const [inline] |
Returns the conditional expression for the loop closure.
void visit | ( | Visitor & | visitor | ) | const [private, virtual] |