Zen
A cross-platform functional programming language

DictItem Class Reference

Concrete AST class for items in dictionary containers. More...

#include <Ast.hpp>

Inheritance diagram for DictItem:
Node

List of all members.

Public Member Functions

 DictItem (const Expr &key, const Expr &expr)
 Default constructor.
const Ast::ExprgetKey () const
 Returns a reference to the list key expression.
const Ast::ExprgetExpr () const
 Returns a reference to the list value expression.

Private Attributes

const Expr_key
 List key expression.
const Expr_expr
 List value expression.

Detailed Description

Concrete AST class for items in dictionary containers.


Constructor & Destructor Documentation

DictItem ( const Expr key,
const Expr expr 
) [inline]

Default constructor.

Parameters:
keyDictionary key expression
exprDictionary value expression

Member Function Documentation

const Ast::Expr& getExpr ( ) const [inline]

Returns a reference to the list value expression.

Returns:
List value expression
const Ast::Expr& getKey ( ) const [inline]

Returns a reference to the list key expression.

Returns:
List key expression

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