25 BadLogger.
Log($
"Optimizing Expression: '{expr}' with Constant Folding",
"Optimize");
41 public static IEnumerable<BadExpression>
Optimize(IEnumerable<BadExpression> exprs)
Public facing interface for a logger.
static void Log(string message)
Writes a Log to the Message Handler.
Implements a simple constant folding optimization.
static BadExpression Optimize(BadExpression expr)
Optimizes the given expression.
static IEnumerable< BadExpression > Optimize(IEnumerable< BadExpression > exprs)
Optimizes a list of expressions.
Base Implementation for all Expressions used inside the Script.
virtual void Optimize()
Uses the Constant Folding Optimizer to optimize the expression.
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.
Base Class of all Constant Expressions.
The Base Class for all BadScript Objects.
Gets implemented by all Constant/Native Expressions to provide fast access to the value without unwra...
Contains Logging system for the BadScript Runtime.
Contains the BadScript2 Constant Folding Optimizations.
Contains the Constant Expressions for the BadScript2 Language.
Contains the Expressions for the BadScript2 Language.
Contains the Runtime Objects.