AtlatestRenderedmarkdown
sigil-repl / treeREADME.md
Readme
sigil-repl
Interactive REPL infrastructure for Sigil. Provides prompt rendering, multi-line input handling, debug-mode stack inspection, and a shared command registry so applications can embed a Sigil REPL with their own commands.
The sigil repl CLI command itself lives in sigil-cli at (sigil cli repl); this package exposes only the embeddable library surface. sigil-nrepl reuses these primitives for the network REPL.
Modules
| Module | Purpose |
|---|---|
(sigil repl) | REPL entry point, prompt rendering, debug-mode formatting, command parsing |
(sigil repl commands) | Shared command registry plus the built-in REPL commands (,help, ,q, etc.) |
Embedding a REPL
(import (sigil repl))
(run-repl) ; starts the interactive loop on stdin/stdoutTo register custom commands:
(import (sigil repl commands))
(register-repl-command!
name: ",time"
description: "Print elapsed time for an expression."
handler: (lambda (args) ...))Build and test
sigil deps install sigil build sigil test --report
Local development against an unreleased sigil monorepo:
sigil deps install --redirects ./dev-redirects.sgl sigil build --redirects ./dev-redirects.sgl
License
BSD-3-Clause. See LICENSE in the sigil monorepo for the canonical copy.