41 throw new BadRuntimeException($
"Can not apply operator '&&' to {left}. expected boolean", pos);
69 left = left.Dereference();
92 right = right.Dereference();
Describes a specific position inside a source file.
Base Implementation for all Expressions used inside the Script.
BadSourcePosition Position
The source Position of the Expression.
IEnumerable< BadObject > Execute(BadExecutionContext context)
Evaluates the Expression within the current Execution Context.
Base Implementation of all Binary Expressions.
BadExpression Right
Right side of the Expression.
BadExpression Left
Left side of the Expression.
Implements the Logic And Expression.
static BadObject And(BadObject left, BadObject right, BadSourcePosition pos)
Returns true if left and right are true.
BadLogicAndExpression(BadExpression left, BadExpression right, BadSourcePosition position)
Constructor of the Logic And Expression.
override string GetSymbol()
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
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 True
The True Value for the BadScript Language.
static readonly BadObject False
The False Value for the BadScript Language.
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 Logic 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.