28 if (Operation.
Name !=
"op_Addition")
29 return Grade.NotAtAll;
34 if (Left is
string && !(Right is
string))
37 return Grade.NotAtAll;
Base class for all nodes in a parsed script tree.
override string ToString()
Adds a string from the left.
Grade Supports(IBinaryOperation Operation)
How well the operator supports the given types of operands.
StringLeftAddition()
Adds a string from the left.
IElement Evaluate(IBinaryOperation Operation, ScriptNode Node)
Evaluates the custom binary operator.
Interface for binary operations.
string Name
Name of operator.
IElement Right
Right operand.
IElement Left
Left operand.
Interface for custom binary operators.
Basic interface for all types of elements.
object AssociatedObjectValue
Associated object value.