![]() |
Zen
A cross-platform functional programming language
|
Abstract base class for AST Node representing a conditional statement. More...
#include <Ast.hpp>
Public Member Functions | |
| const Ast::Expr & | getCond () const |
| Returns the condition to test. | |
| const Ast::StatementList & | getTList () const |
| Returns the statement list to execute if condition is true. | |
Protected Member Functions | |
| IfStatement (const Ast::Expr &cond, const Ast::StatementList &tlist) | |
| Default constructor. | |
Private Attributes | |
| const Ast::Expr & | _cond |
| const Ast::StatementList & | _tlist |
Abstract base class for AST Node representing a conditional statement.
| IfStatement | ( | const Ast::Expr & | cond, |
| const Ast::StatementList & | tlist | ||
| ) | [inline, protected] |
Default constructor.
| cond | The condition expression |
| tlist | The true statement list |
| const Ast::Expr& getCond | ( | ) | const [inline] |
Returns the condition to test.
| const Ast::StatementList& getTList | ( | ) | const [inline] |
Returns the statement list to execute if condition is true.
const Ast::StatementList& _tlist [private] |