Repository navigation
Language card: the syntax in brief and every builtin signature - #149
Merged
Merged
Conversation
rendro
added this pull request to stack #150
October 24, 2026 02:47
docs/language-card.md is silt on one page (~4,200 words): a program, the lexical rules, the literals of every kind of value, bindings and functions, types, match and loop, errors, traits, concurrency, tests, the operators by precedence and the tools; then the standard library, every prelude and module function and constant one line each in the form of the reference pages' signature blocks, with each module's types, traits and opaque types as declarations, and the cargo feature a module or a function needs. Its four silt programs run and their `-- output` comments are what they print (the doc-block tests read every page). The standard library part is generated: render_card (beside render_page in src/builtins/registry/docs.rs) keeps the prose up to the marker line and writes the rest from the registry, the same in every build whatever its features. tests/meta/stdlib_reference_tests.rs compares it with the file; SILT_BLESS=1 rewrites it, as for the reference pages. The Language Guide and the README link it. Front matter: section "Guide", order 6.
The card's prelude and module blocks are now made by module_lines and prelude_lines, which the REPL's :doc shares since its fix round, so the two cannot write a declaration differently. The card is unchanged.
rendro
force-pushed
the
w2/language-card
branch
from
October 24, 2026 06:27
7d407e7 to
9415aee
Compare
rendro
marked this pull request as ready for review
October 24, 2026 12:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lane D, PR 2 of 4 (wave 2). Stacked on #147.
render_cardin src/builtins/registry/docs.rs. The generator keeps the prose up to a marker line and writes the rest. The sync teststdlib_reference_tests::the_language_card_is_what_the_registry_rendersfails on the base;SILT_BLESS=1rewrites the card.Checks: whole suite, clippy both ways, fmt, rustdoc, no-default-features check.