C# 클래스 LSharp.Environment

상속: IEnumerable
파일 보기 프로젝트 열기: RobBlackwell/LSharp 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetEnvironment ( LSharp.Symbol symbol ) : Environment

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

메소드 상세

AssignLocal() 공개 메소드

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
리턴 object

Contains() 공개 메소드

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

Contents() 공개 메소드

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

Environment() 공개 메소드

public Environment ( ) : System.Collections
리턴 System.Collections

Environment() 공개 메소드

Creates a new environment which has access to a previous environment
public Environment ( Environment environment ) : System.Collections
environment Environment
리턴 System.Collections

GetEnumerator() 공개 메소드

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

GetValue() 공개 메소드

public GetValue ( LSharp.Symbol symbol ) : object
symbol LSharp.Symbol
리턴 object

GlobalReset() 공개 메소드

public GlobalReset ( ) : void
리턴 void

Set() 공개 메소드

Sets a variable with given symbol to a given value
public Set ( LSharp.Symbol symbol, object value ) : object
symbol LSharp.Symbol
value object
리턴 object