Documentation
¶
Overview ¶
Example: embedding the mvm interpreter in a host Go program.
It shows how to:
- construct an interpreter for the Go language spec
- expose custom host functions and values to interpreted code
- import the bundled stdlib bindings so packages like "fmt" work
- evaluate a snippet and read its result back into Go
Run from the repo root:
go run ./examples/embed
Click to show internal directories.
Click to hide internal directories.