Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a list. More...
#include <Ast.hpp>
Public Member Functions | |
ListExpr (const QualifiedType &type, const ListList &list) | |
Default constructor. | |
const ListList & | getList () const |
Returns the list of initialization values for the list. | |
Private Member Functions | |
virtual void | visit (Expr::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const ListList & | _list |
The initialization list. |
Concrete class for AST Node representing a list.
This creates an instance of an initialized list of int's. For example:
local y = [1, 2, 3];
ListExpr | ( | const QualifiedType & | type, |
const ListList & | list | ||
) | [inline] |
Default constructor.
type | Expression type |
list | The initialization parameters |
const ListList& getList | ( | ) | const [inline] |
Returns the list of initialization values for the list.
void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |