Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing an 'any'value. More...
#include <Ast.hpp>
Public Member Functions | |
AnyExpr (const QualifiedType &type, const Expr &expr) | |
Default constructor. | |
const Expr & | getExpr () 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. |
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.
AnyExpr | ( | const QualifiedType & | type, |
const Expr & | expr | ||
) | [inline] |
Default constructor.
type | Expression type |
expr | The value expression |
const Expr& getExpr | ( | ) | const [inline] |
Returns the value expression.
void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |