Zen
A cross-platform functional programming language
|
AST Node for an splice expression. More...
#include <Ast.hpp>
Public Member Functions | |
SpliceExpr (const QualifiedType &type, const Expr &lhs, const Splice &splice) | |
Default constructor. | |
const Expr & | getLhs () const |
Returns the LHS of the expression. | |
const Splice & | getSplice () 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 |
AST Node for an splice expression.
An splice expression returns a subset of a list.
SpliceExpr | ( | const QualifiedType & | type, |
const Expr & | lhs, | ||
const Splice & | splice | ||
) | [inline] |
Default constructor.
type | Expression type |
lhs | The expression |
splice | The splice into lhs expression |
const Expr& getLhs | ( | ) | const [inline] |
Returns the LHS of the expression.
const Splice& getSplice | ( | ) | const [inline] |
Returns the splice expression.
virtual void visit | ( | Visitor & | visitor | ) | const [private, virtual] |