Zen
A cross-platform functional programming language

ListExpr Class Reference

Concrete class for AST Node representing a list. More...

#include <Ast.hpp>

Inheritance diagram for ListExpr:
Expr Node

List of all members.

Public Member Functions

 ListExpr (const QualifiedType &type, const ListList &list)
 Default constructor.
const ListListgetList () const
 Returns the list of initialization values for the list.

Private Member Functions

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

Private Attributes

const ListList_list
 The initialization list.

Detailed Description

Concrete class for AST Node representing a list.

This creates an instance of an initialized list of int's. For example:

        local y = [1, 2, 3];

Constructor & Destructor Documentation

ListExpr ( const QualifiedType type,
const ListList list 
) [inline]

Default constructor.

Parameters:
typeExpression type
listThe initialization parameters

Member Function Documentation

const ListList& getList ( ) const [inline]

Returns the list of initialization values for the list.

Returns:
The initialization list
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