48 yield
return expression;
53 yield
return expression;
67 return $
"({Left} = {Right})";
92 right = right.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.
BadSourcePosition Position
The source Position of the Expression.
IEnumerable< BadObject > Execute(BadExecutionContext context)
Evaluates the Expression within the current Execution Context.
Implements the Assign Expression LEFT = RIGHT.
override string ToString()
override void Optimize()
Uses the Constant Folding Optimizer to optimize the expression.
override IEnumerable< BadExpression > GetDescendants()
BadExpression Left
Left side that the right side will be assigned to.
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
BadExpression Right
Right side of the Expression.
BadAssignExpression(BadExpression left, BadExpression right, BadSourcePosition position)
Constructor of the Assign Expression.
The Execution Context. Every execution of a script needs a context the script is running in....
Gets thrown by the runtime.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements the base functionality for a BadScript Reference.
Contains Shared Data Structures and Functionality.
Contains the BadScript2 Constant Folding Optimizations.
Contains the Binary Expressions for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.
Contains the Runtime Objects.
Contains the Runtime Implementation.