Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cljgo
command
Diagnostics CLI surface (ADR 0015): `cljgo check` and `cljgo explain` expose the structured pkg/diag data model so editors, CI, and LLM agents consume compiler output as data instead of parsing prose.
|
Diagnostics CLI surface (ADR 0015): `cljgo check` and `cljgo explain` expose the structured pkg/diag data model so editors, CI, and LLM agents consume compiler output as data instead of parsing prose. |
|
Package core embeds the bootstrap clojure.core source (design/00 §6, M1).
|
Package core embeds the bootstrap clojure.core source (design/00 §6, M1). |
|
docs
|
|
|
diagnostics
Package diagnostics embeds the diagnostic explain pages and the append-only registry lock snapshot so pkg/diag can serve Explain(code) from the binary (ADR 0015; design.md D2).
|
Package diagnostics embeds the diagnostic explain pages and the append-only registry lock snapshot so pkg/diag can serve Explain(code) from the binary (ADR 0015; design.md D2). |
|
pkg
|
|
|
analyzer
Package analyzer turns read forms into pkg/ast nodes (design/03 §2–§5).
|
Package analyzer turns read forms into pkg/ast nodes (design/03 §2–§5). |
|
ast
Package ast defines the AST produced by the analyzer (design/03 §1, design/00 §4.1): one uniform *Node with an integer Op tag and a typed per-op payload struct in Sub.
|
Package ast defines the AST produced by the analyzer (design/03 §1, design/00 §4.1): one uniform *Node with an integer Op tag and a typed per-op payload struct in Sub. |
|
build
Package build is the Zig-style build system (ADR 0021, design/08 §1).
|
Package build is the Zig-style build system (ADR 0021, design/08 §1). |
|
diag
Package diag implements the structured-diagnostics data model of ADR 0015 (docs/adr/0015-structured-diagnostics-introspection.md) as settled in openspec/changes/structured-diagnostics/design.md D1/D2: the Diagnostic value, the append-only banded error-code registry, Explain pages, and a best-effort adapter from today's error values.
|
Package diag implements the structured-diagnostics data model of ADR 0015 (docs/adr/0015-structured-diagnostics-introspection.md) as settled in openspec/changes/structured-diagnostics/design.md D1/D2: the Diagnostic value, the append-only banded error-code registry, Explain pages, and a best-effort adapter from today's error values. |
|
emit
Package emit is the Go source emitter (design/04, design/00 §4, ADR 0001): it consumes the analyzer's AST — never re-analyzing, never holding private special-form knowledge (ADR 0002) — and writes plain Go statements into one generated main package, gated through go/format.Source.
|
Package emit is the Go source emitter (design/04, design/00 §4, ADR 0001): it consumes the analyzer's AST — never re-analyzing, never holding private special-form knowledge (ADR 0002) — and writes plain Go statements into one generated main package, gated through go/format.Source. |
|
emit/rt
Package rt is the runtime bootstrap for cljgo-emitted binaries.
|
Package rt is the runtime bootstrap for cljgo-emitted binaries. |
|
eval
Package eval is the tree-walk evaluator (design/03 §6, design/00 §4.2).
|
Package eval is the tree-walk evaluator (design/03 §6, design/00 §4.2). |
|
lang/internal/goid
Package goid returns the current goroutine's ID.
|
Package goid returns the current goroutine's ID. |
|
lang/internal/identity/pkga
Package pkga simulates one separately-compiled emitted package that hoists keyword literals to package-level vars, exactly as the cljgo emitter will (design doc 00 §4.4).
|
Package pkga simulates one separately-compiled emitted package that hoists keyword literals to package-level vars, exactly as the cljgo emitter will (design doc 00 §4.4). |
|
lang/internal/identity/pkgb
Package pkgb simulates a second, independently-compiled emitted package interning the same keyword literals as pkga.
|
Package pkgb simulates a second, independently-compiled emitted package interning the same keyword literals as pkga. |
|
lang/internal/persistent/vector
Package vector implements persistent vector.
|
Package vector implements persistent vector. |
|
lang/internal/seq
Package seq provides a definition of an internal Seq interface for use across packages.
|
Package seq provides a definition of an internal Seq interface for use across packages. |
|
nrepl
Bencode codec for nREPL's wire format (ADR 0031: own the codec — everything nREPL puts on the wire in ~150 lines, zero external deps).
|
Bencode codec for nREPL's wire format (ADR 0031: own the codec — everything nREPL puts on the wire in ~150 lines, zero external deps). |
|
reader
Package reader implements the Clojure reader: UTF-8 text in, pkg/lang persistent data structures out, with :file/:line/:column/ :end-line/:end-column metadata on every IObj form.
|
Package reader implements the Clojure reader: UTF-8 text in, pkg/lang persistent data structures out, with :file/:line/:column/ :end-line/:end-column metadata on every IObj form. |
|
repl
Package repl is the REPL driver of design/03-analyzer-eval.md §7b: a loop of Read (pkg/reader) → Analyze+Eval (pkg/eval) → bind *1 *2 *3 (and *e on error) → print via pr-str, over an injected reader/writer pair.
|
Package repl is the REPL driver of design/03-analyzer-eval.md §7b: a loop of Read (pkg/reader) → Analyze+Eval (pkg/eval) → bind *1 *2 *3 (and *e on error) → print via pr-str, over an injected reader/writer pair. |
|
version
Package version is the single source of truth for cljgo's version, the Go toolchain hosting it, and the Clojure language level it targets.
|
Package version is the single source of truth for cljgo's version, the Go toolchain hosting it, and the Clojure language level it targets. |
Click to show internal directories.
Click to hide internal directories.