Documentation
¶
Overview ¶
Package mvmhost provides a narrow adapter around the MVM interpreter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorKind ¶
type ErrorKind string
ErrorKind classifies an evaluation failure.
const ( ErrorKindCompile ErrorKind = "compile" ErrorKindRuntime ErrorKind = "runtime" ErrorKindPanic ErrorKind = "panic" ErrorKindExit ErrorKind = "exit" ErrorKindCanceled ErrorKind = "canceled" ErrorKindSourceLimit ErrorKind = "source_limit" ErrorKindOutputLimit ErrorKind = "output_limit" )
Evaluation error kinds exposed by the host boundary.
type Evaluator ¶
type Evaluator struct{}
Evaluator executes source using a fresh interpreter for every call.
func (*Evaluator) Compile ¶
Compile validates that request source compiles against the request bindings without executing any of it. The interpreter lockdown and source limit match Eval so compile acceptance predicts evaluation acceptance.
Click to show internal directories.
Click to hide internal directories.