61 return Scope.ReturnValue ??
null;
104 public IEnumerable<BadObject>
Execute(IEnumerable<BadExpression> expressions)
106 return expressions.SelectMany(
Execute);
116 foreach (
BadObject o
in expression.Execute(
this))
Base Implementation for all Expressions used inside the Script.
The Execution Context. Every execution of a script needs a context the script is running in....
BadObject ExecuteScript(IEnumerable< BadExpression > expressions)
Executes an enumeration of expressions and returns the last value.
IEnumerable< BadObject > Execute(IEnumerable< BadExpression > expressions)
Executes an enumeration of expressions.
static BadExecutionContext Create(BadInteropExtensionProvider provider)
Creates a new Execution Context with an empty scope.
BadExecutionContext(BadScope scope)
Creates a new Execution Context.
BadScope Scope
The Root Scope of the Context.
IEnumerable< BadObject > Execute(BadExpression expression)
Executes an expression.
void Dispose()
Disposes the context.
BadObject? Run(IEnumerable< BadExpression > expressions)
Executes an enumeration of expressions.
BadObject ExecuteScript(BadExpression expression)
Executes an expression and returns the last value.
Implements the Scope for the Script Engine.
bool IsContinue
Is true if the Continue Keyword was set.
bool IsBreak
Is true if the Break Keyword was set.
void Dispose()
Disposes the Scope and calls all finalizers.
BadObject? ReturnValue
The Return value of the scope.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Contains the Expressions for the BadScript2 Language.
Contains the Interop Abstractions and Implementations for the BadScript2 Language.
Contains the Runtime Objects.
Contains the Runtime Implementation.