Zen
A cross-platform functional programming language
|
AST Node for functor invocation. More...
#include <Ast.hpp>
Public Member Functions | |
FunctorCall (const FunctionDef &functionDef, const Expr &expr) | |
Default constructor. | |
const Expr & | getExpr () const |
Returns the functor to be called. | |
Private Member Functions | |
virtual void | visit (Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Expr & | _expr |
The functor. |
FunctorCall | ( | const FunctionDef & | functionDef, |
const Expr & | expr | ||
) | [inline] |
Default constructor.
functionDef | AST node of function definition to be invoked. |
expr | AST node of functor to be called. |
const Expr& getExpr | ( | ) | const [inline] |
Returns the functor to be called.
void visit | ( | Visitor & | visitor | ) | const [private, virtual] |