C# Class LSharp.Environment

Inheritance: IEnumerable
Afficher le fichier Open project: RobBlackwell/LSharp Class Usage Examples

Méthodes publiques

Méthode Description
AssignLocal ( LSharp.Symbol symbol, object value ) : object

Asssigns value to a local variable symbol in this local environment (irrespective of whether symbol is defined in any parent environments).

Contains ( LSharp.Symbol symbol ) : bool

Determines whether the environment contains a definition for a variable with the given symbol

Contents ( ) : string

Returns the contents of the environment as a string suitable for use in a debugger or IDE.

Environment ( ) : System.Collections
Environment ( Environment environment ) : System.Collections

Creates a new environment which has access to a previous environment

GetEnumerator ( ) : IEnumerator

Make environment enumerable so that they are convenient to use from within LSharp itself

GetValue ( LSharp.Symbol symbol ) : object
GlobalReset ( ) : void
Set ( LSharp.Symbol symbol, object value ) : object

Sets a variable with given symbol to a given value

Private Methods

Méthode Description
GetEnvironment ( LSharp.Symbol symbol ) : Environment

Returns the environment in which a given variable is defined, or null

Method Details

AssignLocal() public méthode

Asssigns value to a local variable symbol in this local environment (irrespective of whether symbol is defined in any parent environments).
public AssignLocal ( LSharp.Symbol symbol, object value ) : object
symbol LSharp.Symbol
value object
Résultat object

Contains() public méthode

Determines whether the environment contains a definition for a variable with the given symbol
public Contains ( LSharp.Symbol symbol ) : bool
symbol LSharp.Symbol
Résultat bool

Contents() public méthode

Returns the contents of the environment as a string suitable for use in a debugger or IDE.
public Contents ( ) : string
Résultat string

Environment() public méthode

public Environment ( ) : System.Collections
Résultat System.Collections

Environment() public méthode

Creates a new environment which has access to a previous environment
public Environment ( Environment environment ) : System.Collections
environment Environment
Résultat System.Collections

GetEnumerator() public méthode

Make environment enumerable so that they are convenient to use from within LSharp itself
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetValue() public méthode

public GetValue ( LSharp.Symbol symbol ) : object
symbol LSharp.Symbol
Résultat object

GlobalReset() public méthode

public GlobalReset ( ) : void
Résultat void

Set() public méthode

Sets a variable with given symbol to a given value
public Set ( LSharp.Symbol symbol, object value ) : object
symbol LSharp.Symbol
value object
Résultat object