Documentation
¶
Overview ¶
source-tracking demonstrates the ParseWithSource/MustParseWithSource API for embedding Wile with per-operation source location tracking.
When Scheme code is parsed with ParseWithSource or MustParseWithSource, the source name (typically a filename) is attached to every parsed expression. If a runtime error occurs, the RuntimeError includes the source location and a VM stack trace.
Run with: go run ./examples/embedding/source-tracking/main.go
Click to show internal directories.
Click to hide internal directories.