Zen
A cross-platform functional programming language
|
AST Node representing a select statement. More...
#include <Ast.hpp>
Public Member Functions | |
SelectStatement (const Ast::SwitchLabelList &list) | |
Default constructor. | |
const Ast::SwitchLabelList & | getList () const |
Returns a reference to the list of case labels in this switch statement. | |
Private Member Functions | |
virtual void | visit (Statement::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Ast::SwitchLabelList & | _list |
The case label list. |
AST Node representing a select statement.
A select statement is a multiple condition statement that can have arbitrary expressions as case labels For example:
select { case (a > 10): { } case (a < 5): { } }
Here, the case labels are expressions.
SelectStatement | ( | const Ast::SwitchLabelList & | list | ) | [inline] |
Default constructor.
list | The list of case labels for this statement |
const Ast::SwitchLabelList& getList | ( | ) | const [inline] |
Returns a reference to the list of case labels in this switch statement.
void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |