Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a tree value. More...
#include <Ast.hpp>
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. |
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.
TreeExpr | ( | const QualifiedType & | type, |
const DictList & | list | ||
) | [inline] |
Default constructor.
type | Expression type |
list | The initialization parameters |
void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |