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) -> EvaluatedType

    Parameters

    expression

    The input

    context

    The local context if there is something expression specific needs to be provided

    Return Value

    The evaluated value