Skip to content
Jennifer Programming Language

File map

Where each piece of the codebase lives, grouped by area. The pipeline (lexer -> preproc -> parser -> resolver -> interpreter, which calls the libraries) is described in index.md; this page is the file-level index.

CLI (cmd/jennifer/)

FileDescription
main.goCLI + source-context error formatting; argv forwarding to the user program.
repl.goInteractive REPL loop (TTY + bufio fallback).
lineedit.goRaw-mode line editor (cursor keys, word ops).
history.goIn-memory REPL history ring buffer.
dump.gotokens and ast subcommands.
astjson.goHand-rolled AST -> JSON emitter.
fmt.goToken-level source formatter; comment + blank-line preservation.
lint.golint subcommand: pipeline + config + suppression + JSON / human / GitHub rendering.
profile.goprofile subcommand: table / pprof / trace output.
profile_signal_unix.go / profile_signal_other.goSignals under profile (Unix): SIGINT / SIGTERM stop the program at its next loop checkpoint and write the report (as it stands after a grace period if no checkpoint comes); SIGUSR1 prints the diagnostics dump and, with --out, writes a snapshot to FILE.<n>. No-op elsewhere.
test.gotest subcommand: test* discovery, setUp / tearDown, --isolated subprocess mode, text / TAP / JUnit reports.
coverage.gotest --coverage: the executable-statement walk (coverage denominator) and the text / JSON coverage report.
serve.goserve subcommand: run a program, --watch re-runs it in a child process on any change to the entry file.
highlight.goANSI token colouring of the REPL input line (categories mirror the editors/ definitions).
diag_unix.go / diag_other.gokill -USR1 interpreter diagnostics dump (Unix); no-op elsewhere.
termrestore_unix.go / termrestore_other.goRestore a raw-mode terminal on a terminating signal (Unix); no-op elsewhere.
memlimit_std.go / memlimit_tinygo.goAt startup, the Go soft memory limit: 90% of the machine or cgroup limit (internal/memlimit), unless GOMEMLIMIT is set; nothing on TinyGo.
devtools_tinygo.go, serve_tinygo.go, spawn_std.go, spawn_tinygo.goTinyGo build: run-only stubs for tokens / ast / fmt / lint / profile / test (tinygo && !tinygo_devtools; the tinygo_devtools tag compiles the real ones into jennifer-tiny-dev), the serve stub (tinygo, no network stack), and canSpawnSelf (test --isolated needs os/exec).

CLI tests

FileDescription
examples_test.goGolden-file integration test over top-level examples/*.j (skips files without an expected/).
module_overlay_test.goRuns every modules/*_test.j overlay under jennifer test.
repl_test.goREPL inputComplete unit tests.
lineedit_test.goLine-editor state-machine tests.
dump_test.goAST-JSON validity and token-name tests.
fmt_test.goFormatter idempotence + behaviour + comment-preservation tests.
cross_file_error_test.goCross-file error reporting tests.
highlight_test.goREPL input-line colouring tests (text preserved byte for byte, categories, lex-error fallback).
smtp_send_test.go / pop_recv_test.go / imap_recv_test.go / mail_xoauth2_test.goMail-module integration tests: smtp / pop / imap / XOAUTH2 against in-process fake servers.
redis_test.go / resque_test.goredis / resque integration tests against an in-process RESP server.
memcache_test.go / session_test.go / ratelimit_test.gomemcache and its reference modules against an in-process memcached fake.
http_test.go / rest_test.go / oauth_test.gohttp client + rest / oauth against an in-process net/http server.
other *_test.goFurther per-module integration tests (web_test.go, mqtt_test.go, ldap_test.go, ...) and CLI / interpreter-boundary tests (lint_test.go, coverage_test.go, vendor_test.go, concurrent_dispatch_test.go, reentry_depth_test.go, funcvalue_home_test.go, ...).

Lexer, preprocessor, module resolution (internal/)

FileDescription
lexer/token.goToken type definitions (incl. trivia tokens).
lexer/lexer.goScanner with optional file tagging; nested block comments.
lexer/lexer_test.goLexer tests.
preproc/preproc.goFile-import preprocessor; trivia stripping.
preproc/preproc_test.goPreprocessor tests.
module/resolve.goModule path classification + resolution.
module/sysmoddir.goSystem module dir: CLI / env / build (<PREFIX>/share/jennifer/modules) precedence + validation.
module/resolve_test.go / module/sysmoddir_test.goResolver + sysmoddir tests.
reqcheck/reqcheck.goRequirement-header (# pragma-jennifer-*:) validation, shared by every first read of a source file.
capabilities/capabilities.go, capabilities/capabilities_std.go, capabilities/capabilities_tiny.goThe build's host-capability set (exec / net / sql standard, empty tiny), behind the capability header check and meta.CAPABILITIES.

Parser (internal/parser/)

FileDescription
ast.goAST node types + Sprint (incl. namespaced struct types).
parser.goRecursive-descent parser; namespaced struct literals.
resolver.goParse-time scope / slot resolution; undefined-variable + shadowing errors; enum match patterns + exhaustiveness; borrowable-parameter / local and move-on-last-use marking.
fold.goParse-time constant folding of literal-only subtrees.
ownership.goOwnership analysis run from Resolve: which functions return solely owned values (ReturnsOwned) and which $v = f($v, ...) calls move their argument (MoveArg).
parser_test.go / fold_test.go / ownership_test.go / borrow_test.goParser, constant-folding (incl. "runtime error stays runtime"), ownership, and borrow-analysis tests.

Interpreter (internal/interpreter/)

FileDescription
value.goRuntime Value tagged union (incl. struct + namespaced-struct + KindObject tags; an object's payload is an ObjectBox: a wrapped Value tree or a library-native NativeObject).
value_layout.goThe 48-byte Value layout (M29.11): the payload accessors and setters, the interned Identity, mapDesc.
environment.goScoped symbol table (name map + slot slice).
interpreter.goTree-walking evaluator; namespaced-struct + object registration and resolution.
module.goModule loading: the run-scoped module registry, sub-interpreters, export checks, module struct identity.
globalsafe.goGlobalSafe escape analysis that widens read-only-parameter borrow to functions proven to mutate no global.
spawncapture.goSpawn-capture analysis: the globals each spawn body reads, so the snapshot copies only those.
argsnap.goArgument snapshots: marks call arguments that alias a global a later argument may mutate, so they are copied (never borrowed).
intfast.goIn-place int / bool fast path for operands, conditions and assignments; falls back to the general evaluator on anything it does not handle exactly.
structlit_check.gocheckStructLits: load-time field-set check of every struct / enum-variant literal.
waitset.goRegister-then-poll wait set behind task.waitAny / waitAnyTimeout / channel.select (no reflect.Select).
nesting.goValue-nesting cap (M28.37): list / map / struct / enum literals and index / field / append writes check that the value they build stays within limits.MaxNestingDepth levels (nestHeight, cached in Value.nest) and raise a catchable "limit" error.
stackguard_std.go / stackguard_tiny.gostackTooDeep: on jennifer-tiny, a call chain past 3 MB of the fixed 4 MB stack raises the call-depth "limit" error (M28.72); no-op on the default binary, which relies on MaxCallDepth.
profiling.goThe optional Profiler interface and eagerCopy hook.
diag_runtime_std.go / diag_runtime_tiny.goRuntime snapshot (goroutines, memory) for the kill -USR1 diagnostics dump.
runecursor.goThe rune cursor (M29.13): a 16-slot table keyed by a string's data pointer and length, so rune-position slices and indexOf resume their walk.
allocbudget.goThe opt-in per-task allocation budget (M29.3): the counter on the goroutine's CallChain, the full size of an eager copy and the bounded estimate of a builtin result, the charge and the "limit" throw.
interpreter_test.goEnd-to-end interpreter tests.
ownership_test.goValue semantics on every path of the owned-result and moved-argument copy elisions, across a module boundary too.
interactive_test.goREPL EvalInteractive tests.
namespace_test.goNamespaced builtins + constants tests.
namespaced_struct_test.goNamespaced struct tests (synthetic widgets lib).
structs_test.goUser-defined struct tests.
trycatch_test.gotry / catch / throw tests.
spawn_test.gospawn / task of T runtime + registry tests.
control_flow_test.gobreak / continue / repeat / exit tests.
collections_test.goLists, maps, iteration tests.
compound_test.goNested list-of-list / map-of-list / chained-index tests.
bytes_test.goBytes type + non-decimal literals + bit-op tests.
callbyname_test.goCallByName / CallByNameWith dispatch + RaiseError classification tests.
value_alias_test.goValue-semantics alias-stress tests (eager deep copies; no two live bindings share a compound backing).
collection_typing_test.goGeneric collection validated entry-by-entry against the declared element type at def-init + assign.
other *_test.goFurther tests by area: enums, defer, function values, modules (module_*_test.go), borrow / move / copy elision, call depth and value nesting (call_depth_test.go, nesting_test.go), concurrency and race checks, profiler hooks.

Standard libraries (internal/lib/)

FileDescription
io/iolib.go, io/format.go, io/input.goio: entrypoint; printf / eprintf / sprintf + verb-modifier mini-language; readLine / readLines / readBytes / readChars / eof.
convert/convert.goconvert: toInt / toFloat / toString / toBool / typeOf / objectType + codepoint bridges (toCodepoint / fromCodepoint).
math/mathlib.go, math/elementary.go, math/special.go, math/loader.gomath: abs / min / max / sqrt / pow / floor / ceil / round / rand*; PI / E; elementary and special functions; Loader's Stirlerr / Bd0 terms for the large-parameter densities in stats.
stats/statslib.go, stats/distributions.go, stats/inference.gostats: descriptive statistics over list of int / list of float, distributions, inference.
linalg/linalglib.golinalg: vectors (list of float) and matrices (list of list of float).
ml/mllib.go (+ classify.go, cluster.go, decomp.go, introspect.go, metrics.go, preprocess.go, regression.go, tree.go)ml: machine-learning primitives.
binary/binarylib.go, binary/numbers.gobinary: bulk bytes operations (make / concat / indexOf / split / join / ...) and bitAnd / bitOr / bitXor / bitNot; fixed-width integer and IEEE 754 float readers at an offset in either byte order (readInt / readUint / readFloat, strided readInts / readFloats).
path/pathlib.gopath: OS-aware path manipulation over path/filepath (no disk I/O).
strings/stringslib.gostrings: case and folding, predicates, search, trimming, replace / replicate, split / chars / join.
lists/listslib.golists: push / first / last / reverse / sort / sortWith / contains / indexOf / mismatch / concat / replicate / shuffle / range, plus the higher-order map / filter / reduce / find / any / all / sortBy.
maps/mapslib.gomaps: keys / values / has / delete / merge / without.
os/oslib.go, os/exec.go, os/signal_unix.go, os/signal_other.go, os/isterminal_std.go, os/isterminal_tinygo.goos: PLATFORM / ARCH / EOL / DIRSEP / PATHSEP / ARGS + argsBytes / getEnv / getEnvBytes / isTerminal; external-program execution (run / runBytes / spawn / wait / waitBytes / poll / kill / release); catchSignal / gotSignal (Unix); isTerminal per build.
meta/metalib.gometa: VERSION / BUILD / SYSMODDIR / CAPABILITIES (interpreter self-identity) + hasCapability / call / defined / callMain / definedMain.
time/timelib.go, time/zone.go, time/format.gotime: Time / Duration, Unix + calendar + arithmetic; fixed-offset Zone, UTC / local / inZone; strftime format / parse + ISO round-trip.
hash/hashlib.gohash: MD5 / SHA-1 / SHA-2 / SHA-3 / BLAKE2 one-shot compute, hmac, constant-time equal, + streaming via a codec table.
crc/crclib.gocrc: CRC-32 / CRC-64 (big-endian) one-shot + streaming.
decimal/decimallib.go, decimal/arith.godecimal: exact base-10 arithmetic over an opaque decimal.Decimal (a math/big coefficient and a scale) - parse / display, exact add / sub / mul / pow, exact-or-scaled division, seven rounding modes, a 1,000,000-digit result cap (100,000 on tiny, decimal/maxdigits_*.go).
compress/compresslib.gocompress: pack / unpack (gzip / zlib / deflate) + streaming (compress.Stream); optional level.
images/imageslib.go, images/convert.go, images/resample.goimages: an opaque images.Image over a Go *image.NRGBA - PNG / JPEG / GIF codecs (header-checked pixel cap), crop / resize (separable premultiplied resampler, nearest / bilinear / Catmull-Rom) / fit / rotate / flip, grayscale / threshold / Floyd-Steinberg dither, alpha compositing.
asn1/asn1lib.go, asn1/asn1codec.goasn1: BER decode / DER encode over an opaque asn1.Value, typed constructors + accessors.
archive/archivelib.goarchive: tar / zip / tar.gz pack / unpack over bytes (archive.Entry); no fs dependency.
encoding/encodinglib.go, encoding/form.go, encoding/codecs.go, encoding/utfcodecs.go, encoding/codecs_gen.go, encoding/gen_codecs.goencoding: introspection + toText / fromText + encode / decode; form.go the bounded request parsers parseForm / parseCookies / parseMultipart; strict UTF-8 / UTF-16 / UTF-32 codecs (both byte orders, BOM handling per RFC 2781) in utfcodecs.go; hand-written ascii / ebcdic + generated ISO-8859-N / Windows-125N tables (codecs_gen.go is generated, do not edit; gen_codecs.go is the go:build ignore codegen).
doctree/node.go, doctree/edit.go, doctree/build.go, doctree/lib.go, doctree/format.goThe compact document tree shared by json / toml / yaml: a 40-byte Node per value (map members in document order, a sorted key index above 8 members), about 8x smaller than the same document as Values; JSON Pointer addressing and the copy-the-spine write verbs (edit.go); a Builder that grows containers in place for TOML's reopened tables, then seals them (build.go); and Lib, which registers the opaque NAME.Value type (a NativeObject payload) and the shared accessor + write builtins, with per-library options for isNull and date-times (lib.go); FormatFloat, the float spelling the toml / yaml encoders share (format.go).
json/jsonlib.go, json/jsondecode.go, json/jsonnode.go, json/jsonmerge.gojson: RFC 8259 encode / encodePretty + Value emitter; recursive-descent decoder into a doctree tree (unescaped strings sliced from the input), positioned errors; RFC 7386 mergePatch.
task/tasklib.gotask: wait / poll / discard / waitAll / waitAny, cancel / cancelled, waitTimeout / waitAnyTimeout / waitAllTimeout over task of T handles.
channel/channellib.gochannel: make / send / recv / recvTimeout / close / select / selectTimeout / len / capacity over channel of T.
kv/kvlib.gokv: in-process key/value store with per-key TTL; a run-scoped registry on the host interpreter.
fs/fslib.go, fs/handles.go, fs/temp.go, fs/watch.go, fs/mkfifo*.go, fs/readsecret*.gofs: one-shot read / write / append + metadata + dir ops; mkfifo (unix split); buffered fs.File handles; makeTempFile / makeTempDir; the polling fs.Watcher; readSecretBytes / readSecretString (size-capped, refuse a file others could read or replace unless on a read-only mount; refused outright on non-Unix).
net/netlib.go, net/netlib_std.go, net/netlib_tinygo.go (+ netlib_broadcast_*.go, netlib_binddevice_*.go, netlib_errno_*.go)net: shared install / dispatch; !tinygo full TCP / TLS / UDP / DNS; tinygo friendly-error stubs; per-OS setBroadcast / bindToDevice; socket errno (Winsock codes on Windows) -> NetError.reason.
regex/regexlib.goregex: matches / find / findAll / replace / split / escape + regex.Match + 128-entry LRU pattern cache.
testing/testinglib.go, testing/assertions.gotesting: run / runArgs / results / reset / report (text / TAP / JUnit) + exit interception; the seven assert* builtins.
uuid/uuidlib.gouuid: v4 / v7 + parse / isValid / version + NIL (RFC 9562).
crypto/cryptolib.gocrypto: registration, crypto-grade random (randBytes / randInt), the HKDF / PBKDF2 cores behind deriveKey.
crypto/cryptolib_kdf.gocrypto.deriveKey(algo, secret, salt, length, crypto.KdfParams): one entry for every key derivation (hkdf-*, pbkdf2-*, Argon2id, scrypt), no defaults; each algorithm's required / optional KdfParams fields are checked, unused ones must stay zero.
crypto/cryptolib_ops.gocrypto operations, the algorithm first: encrypt / decrypt (AES-GCM), blockEncrypt / blockDecrypt (AES block modes), sign / verify, keypair / publicKey, agree, encapsulate / decapsulate, wrap / unwrap; AES, Ed25519 and X25519 here, the rest dispatched to the build-split files below.
crypto/cryptolib_asym_std.go, crypto/cryptolib_asym_tiny.gocrypto RSA / ECDSA signatures and RSA-OAEP over PEM keys, PEM key parsing, public-key PEM: !tinygo real over crypto/rsa + crypto/ecdsa + crypto/x509; tinygo stubs naming the algorithm (build-tag split like net).
crypto/cryptolib_acme_std.go, crypto/cryptolib_acme_tiny.gocrypto RSA / EC key generation, CSR and canonical JWK (jwkPublic / jwkToPem / csr, for the acme module): same !tinygo real / tinygo stub split.
crypto/cryptolib_pqc_std.go, crypto/cryptolib_pqc_tiny.gocrypto ML-KEM-768 ("mlkem768" for keypair / publicKey / encapsulate / decapsulate): same !tinygo real / tinygo stub split.
crypto/cryptolib_xcrypto.gocrypto parts on golang.org/x/crypto (both builds): ChaCha20-Poly1305 / XChaCha20-Poly1305 AEADs, the libsodium sealed box (wrap / unwrap "nacl-sealedbox"), hashPassword / verifyPassword (Argon2id, bcrypt, scrypt), the raw Argon2id / scrypt KDFs.
crypto/cryptolib_kdfcap_std.go, crypto/cryptolib_kdfcap_tiny.gocrypto Argon2id / scrypt memory caps per build (1 GiB / 128 MiB).
crypto/mtwei.gocrypto EC-SRP over Curve25519 (mtweiKeygen / mtweiId / mtweiClientKey) for the @deckyard/mactelnet deck, over math/big.
intl/intllib.gointl: locale catalogs - load(lang, catalog), setLocale / locale, tr(key[, params]) with %name% interpolation; formatNumber (number.go).
term/termlib.go, term/termlib_std.go, term/termlib_tinygo.goterm: raw mode (makeRaw / restore -> term.State), size, raw byte reads; !tinygo real termios (+ RestoreAll for the CLI signal path), tinygo stubs.
httpd/httpdlib.go, httpd/httpdlib_std.go, httpd/httpdlib_tinygo.go, httpd/httpdlib_memlimit.gohttpd: HTTP/1.1 server engine over net/http (TLS, graceful shutdown) - pull loop listen / accept / respond + request accessors; the buffer budget sized from internal/memlimit (httpdlib_memlimit.go); tinygo stubs.
xml/xmllib.go, xml/xmldecode.go, xml/xmlaccess.go, xml/xmlnode.goxml: decode / encode / encodePretty over an opaque xml.Value element tree (ordered attributes, children, mixed text); xmlnode.go is the compact native tree (a NativeObject payload, names and plain text sliced from the input).
yaml/yamllib.go, yaml/yamldecode.go, yaml/yamlencode.go, yaml/yamlguard.goyaml: YAML 1.2 decode / decodeAll / encode / encodePretty over an opaque yaml.Value (on gopkg.in/yaml.v3, converted into a doctree tree with bytes and timestamp nodes); the read / walk / write surface is doctree's; yamlguard.go bounds collection nesting before yaml.v3 parses (a scan that follows its scanner token by token, so the bound holds for hostile input).
toml/tomllib.go, toml/tomldecode.gotoml: TOML 1.0 encode / encodePretty / decode into a doctree tree (tables grown with a doctree.Builder, date-times as datetime nodes tagged with their form); the read / walk / write surface, plus asDatetime, is doctree's.
devio/devio.goShared plumbing for the handle-based libraries (serial / spi / i2c / gpio, also sql): integer-handle structs + typed positional-argument extraction. Not a Jennifer library itself (no namespace, no Install).
serial/seriallib.go, serial/seriallib_linux.go, serial/seriallib_other.goserial: termios serial-port I/O - open / openWith -> serial.Port, read / write / flush / setReadDeadline / setWriteDeadline / close. Linux-only; stubs elsewhere.
spi/spilib.go, spi/spilib_linux.go, spi/spilib_other.gospi: SPI devices - open -> spi.Device, configure(mode, speedHz), full-duplex transfer, close. Linux-only; stubs elsewhere.
i2c/i2clib.go, i2c/i2clib_linux.go, i2c/i2clib_other.goi2c: the I2C bus - open(path, addr) -> i2c.Bus, read / write / writeRead / readReg / writeReg, close. Linux-only; stubs elsewhere.
gpio/gpiolib.go, gpio/gpiolib_linux.go, gpio/gpiolib_other.gogpio: /dev/gpiochipN GPIO v2 lines - chip, pin-keyed setup / read / write / release + IN / OUT. Linux-only; stubs elsewhere.
sql/sqllib.go, sql/sqllib_std.go, sql/sqllib_tiny.gosql: MySQL / MariaDB + PostgreSQL client over database/sql (placeholder-only binding, pull cursor + typed accessors, transactions, prepared statements); !tinygo imports the drivers, tinygo stubs so the driver trees never compile there.
*/…_test.goEach library has a co-located _test.go with its unit tests (canonical vectors, round-trips, boundary errors).

Tooling internals

FileDescription
internal/stdlib/stdlib.goInstallAll: the single registration point for every system library; run / repl / profile / test all call it (the seam for build-time selection).
internal/stdinbuf/stdinbuf.go, internal/stdinbuf/pump_std.go, internal/stdinbuf/pump_tinygo.goThe one buffered reader over stdin shared by io and term, so their reads mix in input order and a timed-out term read loses no byte; !tinygo fills from an on-demand pump goroutine, tinygo fills inline (no read timeout).
internal/lint/lint.golint checks: Diagnostic + grouped-ID registry (L0nn source / L1nn correctness / L2nn style / L3nn lifecycle) + KnownIDs / selectable / Catalog.
internal/lint/run.goCheck driver + threshold Config + source-error diagnostic builder.
internal/lint/checks.goThe individual check implementations.
internal/lint/scope.goScope-aware traversal for binding-visibility checks (L101 unused-local, L104 throw-non-error, and the typed hooks L110 / L111 use).
internal/lint/types.goThe static typer behind L110 / L111: the type an expression certainly has, struct identity normalised to the linted file's terms, and the runtime-faithful mismatch test.
internal/lint/typecheck.goL110 argument-type and L111 binding-type checks over the typer.
internal/lint/members.goL114 unknown-member: a ns.name checked against its library's signature table and registered constants / types, or its module's exported surface, with a "did you mean" hint. L115 unknown-library: each use NAME; checked against the installed library names.
internal/libsig/Static signature table of every library builtin (arity, argument types, return type), one file per library; read by lint (L109 / L110 / L111). internal/stdlib/libsig_test.go keeps it in lock-step with InstallAll.
internal/lint/walk.goFlat AST walker for node-shape checks (L102 / L103 / L105 / L106 / L107 / L108 / L109 / L112 / L113 / L114 / L116 / L201 / L204).
internal/lint/config.go--checks / .jennifer-lint selection parsing (selectable IDs only).
internal/lint/suppress.go# lint-disable directive parsing + application (a line directive also covers a multi-line string / block comment ending on its line, or a docblock right below a lone directive; a line comment may end in one); a malformed / unknown-ID directive becomes an L004 finding.
internal/profile/profile.goprofile collector: per-position hit counts + wall-clock (+ optional alloc counting).
internal/profile/table.goTable: the human-readable report (statement or function rows, max call depth, allocs) with --top / --focus and a run header.
internal/profile/view.goThe report views: position -> enclosing-function index, per-function row aggregation, path display, --focus filter, source-line excerpts.
internal/profile/render.goChrome-trace renderer + shared size / duration formatting.
internal/profile/pprof.goGzipped-pprof output (hand-encoded, zero-dependency).

Shared limits

FileDescription
internal/limits/nesting_std.goMaxNestingDepth = 1000 + MaxCallDepth = 10000 (!tinygo): the recursive-descent nesting cap (language parser + json / toml / xml / yaml / asn1 decoders), also the cap on how deep a value the interpreter builds may nest, and the evalCall function-call-depth cap on the default binary; also MaxCopyChainBytes, MaxDecodedNodes, MaxRangeElements, MaxChannelCapacity, MaxMatrixElements, MaxTokens, MaxSourceBytes and MaxAllocBytes / MaxStringBytes.
internal/limits/nesting_tiny.goMaxNestingDepth = 64 + MaxCallDepth = 400 (tinygo): the same caps lowered to stay below jennifer-tiny's fixed 4 MB stack; the other caps are lowered too. See tinygo.md.
internal/limits/caperror.goCapError / Capf: a reached cap as a Go error of kind "limit", kept through %w wrapping.
internal/limits/size.goMaxSplitParts (a quarter of MaxRangeElements: split / chars / readLines parts), overflow-checked AddInt / MulInt / AddInt64 / MulInt64, saturating LimitPlusOne, and capped readers ReadAll / ReadN / ReadDelim that grow with the data (TooLargeError, ErrTooLarge).
internal/dnsconf/dnsconf.go, dnsconf_std.go, dnsconf_tiny.go, files.go, wire.goResolver configuration (M29.5): picks resolv.conf / hosts (JENNIFER_RESOLV_CONF / JENNIFER_HOSTS, <PREFIX>/etc, /etc), the hint a failed lookup carries without one; !tinygo routes net.DefaultResolver through an in-process stub (hosts answers, forwarding to the chosen nameservers) and Query for net.lookupWith's dnsServers.
internal/memlimit/memlimit.goDetect: the machine memory limit, the smaller of /proc/meminfo MemTotal and the tightest cgroup v1 / v2 limit on the way to the root (!tinygo). Used for the startup memory limit and httpd.setMaxBufferBudgetFromRAM.
internal/limits/duration.goMaxDurationUnits / DurationFitsUnits / DurationFromUnits: user counts of ms / s / ... turned into a time.Duration without int64 wrap.
internal/limits/utf8.goInvalidUTF8At / CheckUTF8: the UTF-8 check on text read in as a string (an error naming the byte offset).

Version & build

FileDescription
internal/version/version.goDefault Version = "dev"; AtLeast / Below / Compare / CheckConstraint for the # pragma-jennifer-version header (a dev build meets every floor).
internal/version/paths.goPrefix (the install prefix, default /usr) and the paths derived from it: SysmoddirDefault, DocDir, SysconfDir (M29.4).
internal/version/version_gen.goGENERATED by scripts/gen-version.sh (gitignored): sets Version and Prefix (make PREFIX=).
scripts/version.shComputes the version string from git state.
scripts/gen-version.shWrites version_gen.go before each build.
scripts/gen-module-docs.jJennifer program that renders the per-module API reference (docs/api/) + the docs/SUMMARY.md "Module API Reference" region from each module's doc comments, via the docblock module. Run at publish time by docs.yml before grimoire build --pdf (not committed); test.yml runs it as a smoke-check.
docs/api/GENERATED by scripts/gen-module-docs.j at docs-build time (gitignored, not committed). One API page per shipped module plus index.md; the committed SUMMARY.md keeps an empty api:start/api:end region the generator fills.
scripts/gen-coverage-docs.shShell generator for the test-coverage report: go test -cover (system libraries) + jennifer test --coverage (modules) into a Markdown page. Run at docs-build time by docs.yml after building the interpreter; excluded from the PDF.
docs/technical/coverage.mdGENERATED by scripts/gen-coverage-docs.sh at docs-build time (gitignored, not committed). Library + module statement-coverage tables; the committed SUMMARY.md keeps an empty coverage:start/coverage:end region the generator fills.
Makefilebuild (both binaries) / build-tinygo / build-tinygo-dev / build-go / test / clean / gen-version / version / docker.

Jennifer-coded modules (modules/)

Distributable .j modules brought in with import. Each X.j ships a co-located X_test.j white-box overlay (run under jennifer test) and a examples/modules/X_demo.j demo; a reference doc lives under docs/modules/, which (with modules/README.md) is the full catalog; the table below is a representative selection.

ModuleDescription
ansi.jTerminal styling as string wrappers (color / style / rgb / strip); TTY-aware.
csv.jRFC 4180 CSV parse / format (+ any delimiter) + header-keyed records.
semver.jStrict SemVer 2.0.0 parse / compare / sort / increment.
html.jBuild an HTML element tree and render escaped HTML5.
doctree.jThe document tree shared by markdown and rst, and its HTML / XHTML / ANSI / PDF renderers.
markdown.j (+ markdown_blocks / markdown_inline .inc.j)CommonMark (+ GFM extensions) -> a doctree document, plus Markdown authoring helpers.
myst.j (+ myst_directives.inc.j)MyST -> a doctree document, on markdown (and rst for eval-rst).
rst.j (+ rst_inline / rst_refs / rst_tables / rst_directives .inc.j)reStructuredText -> a doctree document.
mime.jBuild + parse MIME messages (RFC 5322 / 2045, RFC 2047 encoded-words).
smtp.j / pop.j / imap.jMail clients over net: send (SMTP), receive (POP3 / IMAP4rev1).
sasl.jSASL auth encoders (plain / login / bearer XOAUTH2), pure base64.
idna.jInternationalized domain names (Punycode toAscii / toUnicode).
redis.jRedis RESP2 client over net.
resque.jResque-wire-compatible background jobs (on redis).
memcache.jmemcached text-protocol client over net.
session.jServer-side sessions (on memcache + uuid + json).
ratelimit.jFixed-window rate limiter (on memcache).
http.jHTTP/1.1 client over net (https via TLS).
rest.jErgonomic REST layer (on http + json).
oauth.jOAuth2 client - get-a-token grants (on http + json; feeds sasl).

Examples

PathDescription
examples/*.jExample programs.
examples/benchmark/tree.jThe module the --suite v4 module handle call row of examples/benchmark.j imports (not a runnable example).
examples/expected/*.txtExpected stdout per example (no entry == not in the golden suite).
examples/with_import/Subdirectory demonstrating include file splices.
examples/showcase/Helpers spliced by showcase.j.
examples/modules/*_demo.jRunnable demo per shipped module (smoke-run in CI; not golden-checked).