Zen
A cross-platform functional programming language
|
AST Node representing a case label with an expression. More...
#include <Ast.hpp>
Public Member Functions | |
CaseLabel (const Ast::Expr &expr, const Ast::StatementList &list) | |
Default constructor. | |
const Ast::Expr & | getExpr () const |
Returns a reference to the case expression. | |
Private Attributes | |
const Ast::Expr & | _expr |
The case expression. |
AST Node representing a case label with an expression.
CaseLabel | ( | const Ast::Expr & | expr, |
const Ast::StatementList & | list | ||
) | [inline] |
Default constructor.
expr | expression for this case |
list | Statement list to execute for this case label |
const Ast::Expr& getExpr | ( | ) | const [inline] |
Returns a reference to the case expression.