Zen
A cross-platform functional programming language

CaseLabel Class Reference

AST Node representing a case label with an expression. More...

#include <Ast.hpp>

Inheritance diagram for CaseLabel:
SwitchLabel Node

List of all members.

Public Member Functions

 CaseLabel (const Ast::Expr &expr, const Ast::StatementList &list)
 Default constructor.
const Ast::ExprgetExpr () const
 Returns a reference to the case expression.

Private Attributes

const Ast::Expr_expr
 The case expression.

Detailed Description

AST Node representing a case label with an expression.


Constructor & Destructor Documentation

CaseLabel ( const Ast::Expr expr,
const Ast::StatementList list 
) [inline]

Default constructor.

Parameters:
exprexpression for this case
listStatement list to execute for this case label

Member Function Documentation

const Ast::Expr& getExpr ( ) const [inline]

Returns a reference to the case expression.

Returns:
The case expression.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines