Utility to execute ezr² code under one static interpreter.
More...
|
static readonly Interpreter | Interpreter = new() |
| The static interpreter.
|
|
|
static ? Context | s_runtimeContext |
| The runtime context, may be null.
|
|
Utility to execute ezr² code under one static interpreter.
◆ AddToContext()
static void EzrSquared.Executor.CodeExecutor.AddToContext |
( |
Reference | reference, |
|
|
string | name ) |
|
static |
Adds the given reference to the runtime context.
- Exceptions
-
- Parameters
-
reference | The reference to add. |
name | The name of the new symbol. |
◆ CreateRuntimeContext()
static void EzrSquared.Executor.CodeExecutor.CreateRuntimeContext |
( |
string | filePath | ) |
|
|
static |
Creates the runtime context.
- Parameters
-
filePath | The file path to the code file this context will be used to execute. |
◆ Execute()
static ExecutionResult EzrSquared.Executor.CodeExecutor.Execute |
( |
string | script | ) |
|
|
static |
Executes the given script.
- Parameters
-
script | The script to execute. |
- Returns
- Exceptions
-
◆ PopulateRuntimeContext()
static void EzrSquared.Executor.CodeExecutor.PopulateRuntimeContext |
( |
| ) |
|
|
static |
Populates the runtime context with all built-ins.
- Exceptions
-
The documentation for this class was generated from the following file:
- D:/Code/csharp/ezrSquared/src/Executor/CodeExecutor.cs