final case class CompiledExpr(callback: Any => Either[Throwable, Any], retType: Type, evalType: Type, promoteToType: Option[Type]) extends Expr
Compile Expression to reuse functionality implemented in JVM
The callback has a signature: Any => Either[Throwable, Any], inside of the callback there should be a pattern match and depending on the interpreter, Any is interpreted in a
particular way, e.g. for InterpretVisitor
: it is (InterpretState) => Either[Throwable, InterpretState]
- Companion:
- object
trait Serializable
trait Product
trait Equals
class Expr
trait HasStaticTypeSafety
trait HasPromoteToType
trait HasEvalType
class Stat
class AST
class Object
trait Matchable
class Any