A cross-platform functional programming language

TreeExpr Class Reference

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

#include <Ast.hpp>

Inheritance diagram for TreeExpr:
DictExprBase Expr Node

List of all members.

Public Member Functions

 TreeExpr (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 tree value.

A tree is a special case of a dictionary which maps any:any. It use curly braces to differentiate itself from a dictionary. This creates an instance of an initialized tree For example:

        local y = {"a":1, 2:"b", 'c':3 };

Note that the keys and values are of different types for each pair.

Constructor & Destructor Documentation

TreeExpr ( const QualifiedType type,
const DictList list 
) [inline]

Default constructor.

typeExpression type
listThe initialization parameters

Member Function Documentation

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