Documentation
¶
Overview ¶
Package flatstack provides the runner embedding API with an opt-in flat bytecode backend. Unsupported programs are rejected before execution and run by the full interpreter, preserving runner behavior while the bytecode subset grows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
Context is runner.Context.
func FromRequest ¶
FromRequest returns the request context of r, decoded as a script reads it.
func NewContext ¶
func NewContext() Context
NewContext returns a request context a host fills itself.
type ExprCache ¶
ExprCache is runner.ExprCache.
func NewExprCache ¶
func NewExprCache() *ExprCache
NewExprCache returns a compiled-expression cache to share between runtimes.
type HostPanicError ¶
type HostPanicError = runner.HostPanicError
HostPanicError is runner.HostPanicError.
type IncludeCache ¶
type IncludeCache = runner.IncludeCache
IncludeCache is runner.IncludeCache.
func NewIncludeCache ¶
func NewIncludeCache() *IncludeCache
NewIncludeCache returns a parsed-program cache to share between runtimes.