source-tracking

command
v1.20.0 Latest Latest
Warning

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

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

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

Jump to

Keyboard shortcuts

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