Zen
A cross-platform functional programming language

AnyExpr Class Reference

Concrete class for AST Node representing an 'any'value. More...

#include <Ast.hpp>

Inheritance diagram for AnyExpr:
Expr Node

List of all members.

Public Member Functions

 AnyExpr (const QualifiedType &type, const Expr &expr)
 Default constructor.
const ExprgetExpr () const
 Returns the value expression.

Private Member Functions

virtual void visit (Expr::Visitor &visitor) const
 Abstract visitor function.

Private Attributes

const Expr_expr
 The value expression.

Detailed Description

Concrete class for AST Node representing an 'any'value.

For example:

        local x = any[10];

Here, 'x' is a variable of type 'any', holding the int value 10.


Constructor & Destructor Documentation

AnyExpr ( const QualifiedType type,
const Expr expr 
) [inline]

Default constructor.

Parameters:
typeExpression type
exprThe value expression

Member Function Documentation

const Expr& getExpr ( ) const [inline]

Returns the value expression.

Returns:
The value expression
void visit ( Expr::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Expr.


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