EvaluatorWithLocalContext
public protocol EvaluatorWithLocalContext : Evaluator
A special kind of evaluator which uses an InterpreterContext instance to evaluate expressions
The context contains variables which can be used during the evaluation
-
Evaluates the provided string expression with the help of the context parameter, and returns a strongly typed object
Declaration
Swift
func evaluate(_ expression: String, context: Context) -> EvaluatedTypeParameters
expressionThe input
contextThe local context if there is something expression specific needs to be provided
Return Value
The evaluated value
View on GitHub
Install in Dash
EvaluatorWithLocalContext Protocol Reference