Documentation
¶
Overview ¶
Package engine compiles model AST programs into flat bytecode and executes them against a host-provided PHP semantics bridge.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host interface {
Construct(string, []any) (any, error)
CallMethod(any, string, []any) (any, error)
Call(string, string, []any) (any, error)
GetProperty(any, string) any
Lookup(string) any
Array([]model.ArrayItemValue) any
Index(any, any) any
SetIndex(any, any, any, bool, string) error
Binary(string, any, any) (any, error)
Unary(string, any) (any, error)
Truthy(any) bool
Entries(any) []Entry
Echo(any) error
}
Host owns PHP value semantics and the Go API bridge. The engine itself owns only compilation, operand/local storage, jumps, and iteration state.
Click to show internal directories.
Click to hide internal directories.