From 78d1187368876368064ba89bc161872a6e20ba75 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Sun, 11 Oct 2026 11:48:27 +0100 Subject: [PATCH] The compiler follows report 2026-10.3 Stage 6's language is all in: the report's version line and Report in src/raz.pas say 2026-10.3, the last version done whole (10.4's 49b is still to come). README names the operators and = on arrays; CLAUDE.md says where things stand, and takes the reading that an instance first used in code is made before that code begins. --- diff --git a/CLAUDE.md b/CLAUDE.md index e30b835..636b13a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -60,12 +60,14 @@ ravite (vim's). What they needed of the system went into `Sys` (report 2026-10.2, approved): the terminal, files, directories and the environment. `tools/Scan.raz` is theirs to use, as a tool, not part of -the library. Stage 4, diagnostics (steps 19-27), is done. Planned and -not started: stage 6, the language of report 2026-10.3, -and stage 7, `Sys` for rlX11 and rat (report 2026-10.4, approved): -steps 49a (`connect`, `readyOf`) and 49c (`send`, report 2026-10.7) -are done, 49b (the pseudo-terminal and programs) waits. -New work starts only on the owner's word. Keep +the library. Stage 4, diagnostics (steps 19-27), is done; so are +stage 6, the language of report 2026-10.3 (steps 42-47), and stage 8, +one module to a name (report 2026-10.5, step 51). Stage 7, `Sys` +for rlX11 and rat (report 2026-10.4, approved): steps 49a +(`connect`, `readyOf`) and 49c (`send`, report 2026-10.7) are done, +49b (the pseudo-terminal and programs) waits. The compiler says it +follows report 2026-10.3, the last version all done. New work starts +only on the owner's word. Keep `doc/compiler.md`'s table of lines and its routine names true when the compiler changes. Left for later at the owner's word: a rewrite of var parameters. @@ -106,6 +108,10 @@ and sliced. - A deferred statement's frame slots stay reserved for the rest of its procedure. +- A generic instance first used in a procedure, or in the module's + body, is made before that code begins: `InstancesFor` reads ahead + for the import's name, since code can't be compiled inside other + code. Its arguments are read then, in the scope there. - A program uses C if a module it uses (not one read only for an interface check) has an `extern` or a `link` of a library. `static` in `link static;` is not a reserved word. diff --git a/README.md b/README.md index 21d3f60..5e63b2a 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,8 @@ enumerations and sets, procedure types. - `^VOLATILE T`: every access through it is one instruction of its size, in the order written. `CAS`, `XCHG`, `XADD`, `FENCE`. +- `and`, `or` and `not` for `BOOL`s; `&`, `|`, `xor` and `~` for bits; + `=` on arrays and strings. - Several results, `ERROR` values compared by identity, `defer`. - Modules with bodies; generic modules with type and procedure arguments, `Map(K, V; hash, eq)`. diff --git a/doc/raz.md b/doc/raz.md index 66cc312..41e9752 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -9,7 +9,7 @@ This report defines the language. It is short on purpose. Whatever it doesn't allow, raz doesn't have. -This is version 2026-10.0 of the report; section 12 says what each +This is version 2026-10.3 of the report; section 12 says what each version changed. ## 1. A first look diff --git a/src/raz.pas b/src/raz.pas index 3fdee9d..5ea6af5 100644 --- a/src/raz.pas +++ b/src/raz.pas @@ -31,7 +31,7 @@ { what git describe says, made by make: 0.3.0 at the tag v0.3.0, 0.3.0-5-g38d29a8 five commits past it } Version = {$I version.inc}; - Report = '2026-10.0'; { the version of doc/raz.md it follows } + Report = '2026-10.3'; { the version of doc/raz.md it follows } MemfdCreate = 319; { the system call; FPC 3.2.2 has no name for it } MfdCloexec = 1; { an ELF still executes: the kernel opens it first }