Zen
A cross-platform functional programming language

NumericConstantExpr Class Reference

Concrete class for AST Node representing a numeric constant, including integral and floating. More...

#include <Ast.hpp>

Inheritance diagram for NumericConstantExpr:
ConstantExpr Expr Node

List of all members.

Public Member Functions

 NumericConstantExpr (const QualifiedType &type, const z::string &value)
 Default constructor.

Private Member Functions

virtual void visit (Expr::Visitor &visitor) const
 Abstract visitor function.

Detailed Description

Concrete class for AST Node representing a numeric constant, including integral and floating.

For example:

        local x = 10;

Here, 10 is a numeric constant.


Constructor & Destructor Documentation

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

Default constructor.

Parameters:
typeExpression type
valueThe string representing the constant value

Member Function Documentation

void visit ( Expr::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Expr.


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