Zen
A cross-platform functional programming language

ConstantExpr Class Reference

Abstract base class for AST Node representing a constant value. More...

#include <Ast.hpp>

Inheritance diagram for ConstantExpr:
Expr Node BooleanConstantExpr CharConstantExpr NumericConstantExpr StringConstantExpr

List of all members.

Public Member Functions

 ConstantExpr (const QualifiedType &type, const z::string &value)
 Default constructor.
const z::stringgetValue () const
 Returns the constant value.

Private Attributes

const z::string _value
 The constant value.

Detailed Description

Abstract base class for AST Node representing a constant value.


Constructor & Destructor Documentation

ConstantExpr ( const QualifiedType type,
const z::string value 
) [inline]

Default constructor.

Parameters:
typeExpression type
valueThe string representing the constant value

Member Function Documentation

const z::string& getValue ( ) const [inline]

Returns the constant value.

Returns:
The constant value

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