WX5.LSE Class Reference

This class represents L# "environment" It allows to use L# engine with various subsets of functions and variables. More...

List of all members.

Static Public Member Functions

static LSharp.Environment GetDefaultEnvironment ()
 Creates the default L# environment.
static object Execute (string program)
 Executes the L# program using default L# environment.
static object Execute (string program, LSharp.Environment env)
 Executes the L# program using specified L# environment.
static LSharp.Symbol GetSymbol (string name)
 Returns the LSharp.Symbol object by it's name.

Detailed Description

This class represents L# "environment" It allows to use L# engine with various subsets of functions and variables.


Member Function Documentation

static object WX5.LSE.Execute ( string  program,
LSharp.Environment  env 
) [static]

Executes the L# program using specified L# environment.

Parameters:
program L# program to execute
env user-defined L# environment
Returns:
result of execution
static object WX5.LSE.Execute ( string  program  )  [static]

Executes the L# program using default L# environment.

Parameters:
program L# program to execute
Returns:
result of execution

Example: Execute("(+ 1 2 3)") will return 6

static LSharp.Environment WX5.LSE.GetDefaultEnvironment (  )  [static]

Creates the default L# environment.

Returns:
initialized LSharp.Environment object

Example: Execute("(* 2 3)") will return 6

static LSharp.Symbol WX5.LSE.GetSymbol ( string  name  )  [static]

Returns the LSharp.Symbol object by it's name.

Parameters:
name symbol's name
Returns:
LSharp.Symbol object
Generated on Wed Jun 2 01:15:47 2010 for WX Library 5.0 documentation by  doxygen 1.6.3