Zen
A cross-platform functional programming language

DictExpr Class Reference

Concrete class for AST Node representing a dictionary value. More...

#include <Ast.hpp>

Inheritance diagram for DictExpr:
DictExprBase Expr Node

List of all members.

Public Member Functions

 DictExpr (const QualifiedType &type, const DictList &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 dictionary value.

This creates an instance of an initialized dictionary of string:int For example:

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

Constructor & Destructor Documentation

DictExpr ( const QualifiedType type,
const DictList 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