Zen
A cross-platform functional programming language

SpliceExpr Class Reference

AST Node for an splice expression. More...

#include <Ast.hpp>

Inheritance diagram for SpliceExpr:
Expr Node

List of all members.

Public Member Functions

 SpliceExpr (const QualifiedType &type, const Expr &lhs, const Splice &splice)
 Default constructor.
const ExprgetLhs () const
 Returns the LHS of the expression.
const SplicegetSplice () const
 Returns the splice expression.

Private Member Functions

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

Private Attributes

const Expr_lhs
const Splice_splice

Detailed Description

AST Node for an splice expression.

An splice expression returns a subset of a list.

Todo:
Splice expressions needs to be completed and tested.

Constructor & Destructor Documentation

SpliceExpr ( const QualifiedType type,
const Expr lhs,
const Splice splice 
) [inline]

Default constructor.

Parameters:
typeExpression type
lhsThe expression
spliceThe splice into lhs expression

Member Function Documentation

const Expr& getLhs ( ) const [inline]

Returns the LHS of the expression.

Returns:
The LHS expression
const Splice& getSplice ( ) const [inline]

Returns the splice expression.

Returns:
The expression splice
virtual void visit ( Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Expr.


Member Data Documentation

const Expr& _lhs [private]
Returns:
The LHS expression
const Splice& _splice [private]
Returns:
The expression splice

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines