From 319c9df63e720177235ce77ef93726fa72f87a18a7470ebe869b63654d4e3cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Bj=C3=B6rnstam?= Date: Tue, 6 Oct 2026 18:08:04 +0200 Subject: [PATCH] The prelude's reference, beside the other modules' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit modules/std/prelude.sz is the prelude's page, made from the docs the prelude was compiled with, builtins included. Part III starts with the prelude and links to it, instead of pointing at Docs/prelude.org. 🤖 Generated with [ECA](https://eca.dev) Co-Authored-By: eca-agent --- _03.Standard-library.sz | 7 ++++++- modules/std/prelude.sz | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 modules/std/prelude.sz diff --git a/_03.Standard-library.sz b/_03.Standard-library.sz index 19d4b94..d655cdd 100644 --- a/_03.Standard-library.sz +++ b/_03.Standard-library.sz @@ -1,6 +1,11 @@ @section{Part III — The standard library} -A short tour of the standard library. Each module's full reference is its own page under @link["modules/index.html"]{Modules}; the prelude's is still @code{Docs/prelude.org}. +A short tour of the standard library. Each module's full reference is its own page under @link["modules/index.html"]{Modules}. + +@subsection{std/prelude} + +The prelude is what every module has without importing anything: the collections and their functions, strings and characters, files and ports, Concurrent ML and scopes, and the macros the language is written with, such as @code{cond}, @code{if-let} and @code{type/derive}. Its reference also covers the builtins, the functions compiled into the runtime rather than written in Bjolang, since every program gets them with the prelude. At the REPL, @code{:show name} prints the same documentation. +For more details, see @link["modules/std/prelude.html"]{@code{(std prelude)}}. @subsection{std/fmt} diff --git a/modules/std/prelude.sz b/modules/std/prelude.sz new file mode 100644 index 0000000..0add101 --- /dev/null +++ b/modules/std/prelude.sz @@ -0,0 +1,3 @@ +(meta (title "(std prelude)")) + +@generate-docs[#:module "std prelude"]