Zen
A cross-platform functional programming language

StructExpr Class Reference

Concrete class for AST Node representing a struct instantiation. More...

#include <Ast.hpp>

Inheritance diagram for StructExpr:
InstanceExpr Expr Node

List of all members.

Public Member Functions

 StructExpr (const QualifiedType &type, const Ast::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 struct instantiation.

This creates an instance of a struct. For example:

        struct X {...};
        ...
        local y = X[];

Here, y is an instance of X, which is a struct.


Constructor & Destructor Documentation

StructExpr ( const QualifiedType type,
const Ast::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