Zen
A cross-platform functional programming language

DefineVarStatement Class Reference

AST Node representing a statement that defines a local variable. More...

#include <Ast.hpp>

Inheritance diagram for DefineVarStatement:
Statement Node

List of all members.

Public Member Functions

 DefineVarStatement (const InitVariableDef &vdef)
 Default constructor.
const InitVariableDefgetDef () const
 Returns the variable definition for this statement.

Private Member Functions

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

Private Attributes

const InitVariableDef_vdef
 The statement's variable definition.

Detailed Description

AST Node representing a statement that defines a local variable.

For example:

        local a = 10;

Here, a is a local variable being defined.


Constructor & Destructor Documentation

DefineVarStatement ( const InitVariableDef vdef) [inline]

Default constructor.

Parameters:
vdefThe variable being defined in this statement

Member Function Documentation

const InitVariableDef& getDef ( ) const [inline]

Returns the variable definition for this statement.

Returns:
The statement's variable definition
void visit ( Statement::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Statement.


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