Zen
A cross-platform functional programming language

DictTemplateExpr Class Reference

Concrete class for AST Node representing a templated dictionary instantiation. More...

#include <Ast.hpp>

Inheritance diagram for DictTemplateExpr:
InstanceExpr Expr Node

List of all members.

Public Member Functions

 DictTemplateExpr (const QualifiedType &type, const ExprList &list)
 Default constructor.

Private Member Functions

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

Detailed Description

Concrete class for AST Node representing a templated dictionary instantiation.

This creates an instance of a dictionary. For example:

        local y = dict<string, int>[];

Here, y is an instance of a dictionary holding string:int pairs. This is usually only required when y needs to be an empty dictionary. At other times, this:

        local y = ["a":1, "b":2];

is sufficient. The compiler will automatically deduce the type of the dictionary at compile time.


Constructor & Destructor Documentation

DictTemplateExpr ( const QualifiedType type,
const ExprList list 
) [inline]

Default constructor.

Parameters:
typeExpression type
listThe initialization parameters

Member Function Documentation

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