Packages

class Interpreter[F[_]] extends AnyRef

An interpreter is used in the context of the engine to evaluate the various expressions from the Matcher s and Transformation s.

Expressions are pure, and cannot perform any side effects. Applicable functions transform a string value into another one without access to any context.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Interpreter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Interpreter(functions: Map[String, DocumentedFunction[F]])(implicit F: MonadError[F, Throwable])

Value Members

  1. def eval(ctx: Ctx, row: CsvRow[String], e: Expr[F]): F[Option[String]]
  2. def eval(ctx: Ctx, row: CsvRow[String], value: Value): Option[String]

    Evalutes the value within the row context.

    Evalutes the value within the row context. If it cannot be resolved (e.g. field does not exist or value doesn't exist in context), None is returned.

  3. val functions: Map[String, DocumentedFunction[F]]