source-tracking

command
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

source-tracking demonstrates the WithSource API for embedding Wile with per-operation source location tracking.

When Scheme code is evaluated with EvalWithSource, EvalMultipleWithSource, or CompileWithSource, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL