1using System.Collections;
2using System.Collections.Generic;
3using System.Threading.Tasks;
15 private readonly
string variableName;
43 LinkedList<IElement> Elements2 =
new LinkedList<IElement>();
45 if (!(S is ICollection<IElement> Elements))
48 Elements = Vector.VectorElements;
53 IEnumerator e = Enumerable.GetEnumerator();
87 LinkedList<IElement> Elements2 =
new LinkedList<IElement>();
89 if (!(S is ICollection<IElement> Elements))
92 Elements = Vector.VectorElements;
97 IEnumerator e = Enumerable.GetEnumerator();
101 Variables[this.variableName] = e.Current;
Base class for all types of elements.
Class managing a script expression.
Base class for all binary operators.
ScriptNode RightOperand
Right operand.
ScriptNode LeftOperand
Left operand.
ScriptNode right
Right operand.
ScriptNode left
Left operand.
bool isAsync
If subtree is asynchroneous.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
abstract IElement Evaluate(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection. This method should be ...
virtual Task< IElement > EvaluateAsync(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection. This method should be ...
string VariableName
Variable Name.
static IElement Encapsulate(Array Elements, bool CanEncapsulateAsMatrix, ScriptNode Node)
Encapsulates the elements of a vector.
Creates a vector using a FOREACH statement.
override IElement Evaluate(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
string VariableName
Variable Name.
override async Task< IElement > EvaluateAsync(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
virtual IElement Encapsulate(LinkedList< IElement > Elements)
Encapsulates the calculated elements.
VectorForEachDefinition(ForEach Elements, int Start, int Length, Expression Expression)
Creates a vector using a FOREACH statement.
Basic interface for all types of elements.
object AssociatedObjectValue
Associated object value.
ICollection< IElement > ChildElements
An enumeration of child elements. If the element is a scalar, this property will return null.
bool IsScalar
If the element represents a scalar value.
Basic interface for vectors.