Zen
A cross-platform functional programming language
|
AST Node representing an if statement with an else. More...
#include <Ast.hpp>
Public Member Functions | |
IfElseStatement (const Ast::Expr &cond, const Ast::StatementList &tlist, const Ast::StatementList &flist) | |
Default constructor. | |
const Ast::StatementList & | getFList () const |
Returns the statement list to execute if condition is false. | |
Private Member Functions | |
virtual void | visit (Statement::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Ast::StatementList & | _flist |
AST Node representing an if statement with an else.
IfElseStatement | ( | const Ast::Expr & | cond, |
const Ast::StatementList & | tlist, | ||
const Ast::StatementList & | flist | ||
) | [inline] |
Default constructor.
cond | The condition expression |
tlist | The true statement list |
flist | The false statement list |
const Ast::StatementList& getFList | ( | ) | const [inline] |
Returns the statement list to execute if condition is false.
void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |
const Ast::StatementList& _flist [private] |