A cross-platform functional programming language

FunctorCall Class Reference

AST Node for functor invocation. More...

#include <Ast.hpp>

Inheritance diagram for FunctorCall:
InvokerType Node

List of all members.

Public Member Functions

 FunctorCall (const FunctionDef &functionDef, const Expr &expr)
 Default constructor.
const ExprgetExpr () 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.

Detailed Description

AST Node for functor invocation.

For example:

        local fn = MyFunction {...};

Constructor & Destructor Documentation

FunctorCall ( const FunctionDef functionDef,
const Expr expr 
) [inline]

Default constructor.

functionDefAST node of function definition to be invoked.
exprAST node of functor to be called.

Member Function Documentation

const Expr& getExpr ( ) const [inline]

Returns the functor to be called.

The functor
void visit ( Visitor visitor) const [private, virtual]

Abstract visitor function.

visitorThe visitor object.

Implements InvokerType.

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