A cross-platform functional programming language

InternalCallExpr Class Reference

Concrete class for AST Node representing a call to an internal function. More...

#include <Ast.hpp>

Inheritance diagram for InternalCallExpr:
Expr Node

List of all members.

Public Member Functions

 InternalCallExpr (const QualifiedType &type, const z::string &name, const ExprList &list)
 Default constructor.
const z::stringgetName () const
 Returns the internal function name.
const ExprListgetList () const
 Returns the parameter list.

Private Member Functions

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

Private Attributes

const z::string _name
 The function name.
const ExprList_list
 The parameter list.

Detailed Description

Concrete class for AST Node representing a call to an internal function.

For example:

        assert(x > 10);

Here, assert and unused are internal calls.

Constructor & Destructor Documentation

InternalCallExpr ( const QualifiedType type,
const z::string name,
const ExprList list 
) [inline]

Default constructor.

typeExpression type
nameThe name of the internal function being called.
listThe list of parameters to call it with.

Member Function Documentation

const ExprList& getList ( ) const [inline]

Returns the parameter list.

The parameter list
const z::string& getName ( ) const [inline]

Returns the internal function name.

The function name.
void visit ( Expr::Visitor visitor) const [private, virtual]

Abstract visitor function.

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