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.
$ git clone https://codeberg.org/sigil/sigil-repl
v0.17.0 — latest by version, released 10 Jul 2026
All releases — 9 tags in this repository.
One page per file, and every line has a permalink.
ff37acb3
23764a9c
5f722f90
6cb026b3
67a85c22
8757253c
9c0af05a
a66fef57
The last 20 commits keep a page here. Everything older lives in the clone.