53 yield
return expression;
58 yield
return expression;
63 yield
return expression;
83 left = left.Dereference();
108 return $
"({Left} ? {TrueRet} : {FalseRet})";
Describes a specific position inside a source file.
Implements a simple constant folding optimization.
static BadExpression Optimize(BadExpression expr)
Optimizes the given expression.
Implements the Ternary Expression LEFT ? TRUE_RET : FALSE_RET.
BadExpression Left
Left side that will be evaluated.
override void Optimize()
Uses the Constant Folding Optimizer to optimize the expression.
BadTernaryExpression(BadExpression left, BadExpression trueRet, BadExpression falseRet, BadSourcePosition position)
Constructor for the Ternary Expression.
override IEnumerable< BadExpression > GetDescendants()
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
override string ToString()
BadExpression FalseRet
Expression that is executed if left evaluates to false.
BadExpression TrueRet
Expression that is executed if left evaluates to true.
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.
bool IsConstant
Indicates if the expression stays constant at all times.
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 Interface for Native Boolean.
Contains Shared Data Structures and Functionality.
Contains the BadScript2 Constant Folding Optimizations.
Contains the Access Expressions for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.
Contains the Native Runtime Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.