1using System.Threading.Tasks;
33 public override string[]
Aliases =>
new string[] {
"eval" };
Script runtime exception.
IElement ReturnValue
Return value.
Class managing a script expression.
ScriptNode Root
Root script node.
string Source
Source of script, or null if not defined.
override async Task< IElement > EvaluateScalarAsync(string Argument, Variables Variables)
Evaluates the function on a scalar argument.
override string[] Aliases
Optional aliases. If there are no aliases for the function, null is returned.
override string FunctionName
Name of the function
Evaluate(ScriptNode Argument, int Start, int Length, Expression Expression)
Evaluate(x)
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override IElement EvaluateScalar(string Argument, Variables Variables)
Evaluates the function on a scalar argument.
Base class for funcions of one scalar string variable.
ScriptNode Argument
Function argument.
Base class for all nodes in a parsed script tree.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
virtual Task< IElement > EvaluateAsync(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection. This method should be ...
Basic interface for all types of elements.