81 yield
return Equal(left, right);
98 left = left.Dereference();
108 right = right.Dereference();
Describes a specific position inside a source file.
Contains Static Data for the BadScript Language.
const string EQUAL_OPERATOR_NAME
Base Implementation for all Expressions used inside the Script.
static IEnumerable< BadObject > ExecuteOperatorOverride(BadObject left, BadObject right, BadExecutionContext context, string name, BadSourcePosition position)
Helper function that executes an operator override function if implemented.
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 Equality Expression LEFT == RIGHT.
override string GetSymbol()
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
static BadObject Equal(BadObject left, BadObject right)
Returns true if the left side is equal to the right side.
static IEnumerable< BadObject > EqualWithOverride(BadExecutionContext? caller, BadObject left, BadObject right, BadSourcePosition position)
Executes the operator override for the given operator name.
BadEqualityExpression(BadExpression left, BadExpression right, BadSourcePosition position)
Constructor of the Equality Expression.
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
The Base Class for all BadScript Objects.
static readonly BadObject False
The False Value for the BadScript Language.
virtual bool HasProperty(string propName, BadScope? caller=null)
Returns true if the object contains a given property or there exists an extension for the current Ins...
static readonly BadObject Null
The Null Value for the BadScript Language.
Contains Shared Data Structures and Functionality.
Contains the Comparison Expressions for the BadScript2 Language.
Contains the Runtime Objects.
Contains the Runtime Implementation.