65 List<BadObject> objs =
new List<BadObject>();
79 objs.Add(obj.Dereference());
82 yield
return string.Format(
Value, objs.Cast<
object?>().ToArray());
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< BadExpression > GetDescendants()
Returns all Descendants of the Expression.
IEnumerable< BadObject > Execute(BadExecutionContext context)
Evaluates the Expression within the current Execution Context.
BadObject Value
The Constant Value of the Expression.
Implements the String Expression.
The Execution Context. Every execution of a script needs a context the script is running in....
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 Constant Expressions for the BadScript2 Language.
Contains the Variable Expressions for the BadScript2 Language.
Contains the Runtime Objects.
Contains the Runtime Implementation.