Zen
A cross-platform functional programming language

Storage Struct Reference

Outer struct for Storage enumeration. More...

#include <Ast.hpp>

List of all members.

Public Types

enum  T { Init, Block, ClosureRef, ExternalRef }
 

Scope of referred external variable.

More...

Static Public Member Functions

static z::string getString (const T &t)
 Converts a Ast::Storage enum to a string representation.

Detailed Description

Outer struct for Storage enumeration.


Member Enumeration Documentation

enum T

Scope of referred external variable.

A statement block within a closure will reference variables outside of itself, using Ast::VariableRef. This enum represents the various locations of external variables.

Enumerator:
Block 

initial state

ClosureRef 

vdef in current block or in-param.

ExternalRef 

vdef is a closure in current continuation


Member Function Documentation

z::string getString ( const T t) [static]

Converts a Ast::Storage enum to a string representation.

Parameters:
tThe AccessType value to convert to string
Returns:
The string representation of the Storage type

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