56 value = value.Dereference();
Describes a specific position inside a source file.
Implements a simple constant folding optimization.
static BadExpression Optimize(BadExpression expr)
Optimizes the given expression.
Base Implementation for all Expressions used inside the Script.
IEnumerable< BadExpression > GetDescendantsAndSelf()
Returns all Descendants of the Expression and the Expression itself.
IEnumerable< BadObject > Execute(BadExecutionContext context)
Evaluates the Expression within the current Execution Context.
Implements the Throw Expression that is used to raise errors inside the Script.
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
override IEnumerable< BadExpression > GetDescendants()
BadThrowExpression(BadExpression right, BadSourcePosition position)
Constructor of the Throw Expression.
BadExpression Right
The Error Object that is thrown.
override void Optimize()
Uses the Constant Folding Optimizer to optimize the expression.
The Execution Context. Every execution of a script needs a context the script is running in....
Gets thrown if the runtime encounters an error.
Implements the Error Object Type.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Contains Shared Data Structures and Functionality.
Contains the BadScript2 Constant Folding Optimizations.
Contains the Controlflow Expressions for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.
Contains the Runtime Objects.
Contains the Runtime Implementation.