From 8f8b29d4dda4568e5e28a54929efce469b38763f Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Fri, 16 Oct 2026 12:31:22 +0100 Subject: [PATCH] Docs for v0.17.1: README's versions, CLAUDE.md, the tour's Str The tour's Words finds from a place and tells a digit. --- diff --git a/CLAUDE.md b/CLAUDE.md index 2620756..abcfe8a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -80,10 +80,13 @@ ## Where things stand -v0.17.0, report 2026-10.31 (a thaw: `INT` at least 16 bits, and -`U8`, `I8` and `I16` widening to it; an enumeration's name written with -its type, and shared; `continue`; `[]` as the empty slice; `Width`, the -columns of a terminal), is the latest release. `src/` is the +v0.17.1, report 2026-10.31, is the latest release: v0.17.0's thaw +(`INT` at least 16 bits, and `U8`, `I8` and `I16` widening to it; an +enumeration's name written with its type, and shared; `continue`; `[]` +as the empty slice; `Width`, the columns of a terminal), and library +growth that breaks no program (`Str`'s character tests and `findFrom`, +`Vec.tryPush` and `tryAdd`, `Fmt.eprint`, `Sys.errorText` and +`setEnv`), with errors that show a comment that ended early. `src/` is the compiler in raz, built by itself (Self, done); the seed in `seed/` is frozen, and v0.9.1 was the last release it built. The compiler takes 1.4 times the Pascal one's time; `make kernels` measures `test/bench` diff --git a/README.md b/README.md index 33bf072..11d9ca7 100644 --- a/README.md +++ b/README.md @@ -201,16 +201,16 @@ The compiler says its own version and that of the report it follows: $ ./raz --version - raz 0.17.0, report 2026-10.31 + raz 0.17.1, report 2026-10.31 The compiler's version is git's name for the commit it was built from: -`0.17.0` at the tag `v0.17.0`, `0.17.0-5-g38d29a8` five commits past it. +`0.17.1` at the tag `v0.17.1`, `0.17.1-5-g38d29a8` five commits past it. To release, check `main` and tag it; the tag's message is what `raz --version` will print: $ make check - $ git tag -a v0.17.0 -m 'raz 0.17.0, report 2026-10.31' - $ git push origin v0.17.0 + $ git tag -a v0.17.1 -m 'raz 0.17.1, report 2026-10.31' + $ git push origin v0.17.1 GitHub then builds and checks the tag, and makes a release of it with a tarball of `raz`, its `lib/` and its manual pages, made by `make diff --git a/site/content/tour/06-slices.txt b/site/content/tour/06-slices.txt index f61ab07..56c81c3 100644 --- a/site/content/tour/06-slices.txt +++ b/site/content/tour/06-slices.txt @@ -92,7 +92,7 @@ ## Strings -A string is a slice of bytes, `[]U8`, in UTF-8, and a string constant's bytes are constant. A `[8]U8` made from one is a copy you can change. Arrays and slices of integers compare with `=` and `#`, so strings do too. `Str` has the rest: ordering, finding, hashing, prefixes and suffixes, trimming, taking apart, ASCII case, UTF-8, and numbers to and from text. +A string is a slice of bytes, `[]U8`, in UTF-8, and a string constant's bytes are constant. A `[8]U8` made from one is a copy you can change. Arrays and slices of integers compare with `=` and `#`, so strings do too. `Str` has the rest: ordering, finding, hashing, prefixes and suffixes, trimming, taking apart, ASCII case and kinds of character, UTF-8, and numbers to and from text. ```raz Words run module Words; @@ -107,6 +107,8 @@ Out.int(Str.find(s, "world")); Out.ln; (* 7 *) Out.int(Str.find(s, "xyz")); Out.ln; (* -1 *) Out.int(Str.findLast("abcabc", "bc")); Out.ln; (* 4 *) + Out.int(Str.findFrom(s, "o", 5)); Out.ln; (* 8: the first o from 5 on *) + if Str.isDigit('7') and not Str.isLetter('7') then Out.str("a digit\n"); end; if Str.hasPrefix(s, "hell") then Out.str("prefix\n"); end; if Str.hasSuffix(s, "world") then Out.str("suffix\n"); end; Out.int(Str.cmp("apple", "banana")); Out.ln; (* -1 *)