raz / commit 78d11873

commit
78d1187368876368064ba89bc161872a6e20ba75
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
043eac0a
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.

patch · log

4 files changed, +16 -8

CLAUDE.md modified +12 -6

@@ -60,12 +60,14 @@
6060 ravite (vim's). What they needed of the system went into `Sys` (report
6161 2026-10.2, approved): the terminal, files, directories and the
6262 environment. `tools/Scan.raz` is theirs to use, as a tool, not part of
63-the library. Stage 4, diagnostics (steps 19-27), is done. Planned and
64-not started: stage 6, the language of report 2026-10.3,
65-and stage 7, `Sys` for rlX11 and rat (report 2026-10.4, approved):
66-steps 49a (`connect`, `readyOf`) and 49c (`send`, report 2026-10.7)
67-are done, 49b (the pseudo-terminal and programs) waits.
68-New work starts only on the owner's word. Keep
63+the library. Stage 4, diagnostics (steps 19-27), is done; so are
64+stage 6, the language of report 2026-10.3 (steps 42-47), and stage 8,
65+one module to a name (report 2026-10.5, step 51). Stage 7, `Sys`
66+for rlX11 and rat (report 2026-10.4, approved): steps 49a
67+(`connect`, `readyOf`) and 49c (`send`, report 2026-10.7) are done,
68+49b (the pseudo-terminal and programs) waits. The compiler says it
69+follows report 2026-10.3, the last version all done. New work starts
70+only on the owner's word. Keep
6971 `doc/compiler.md`'s table of lines and its routine names true when the
7072 compiler changes. Left for later at the owner's word: a rewrite of
7173 var parameters.
@@ -106,6 +108,10 @@
106108 and sliced.
107109 - A deferred statement's frame slots stay reserved for the rest of its
108110 procedure.
111+- A generic instance first used in a procedure, or in the module's
112+ body, is made before that code begins: `InstancesFor` reads ahead
113+ for the import's name, since code can't be compiled inside other
114+ code. Its arguments are read then, in the scope there.
109115 - A program uses C if a module it uses (not one read only for an
110116 interface check) has an `extern` or a `link` of a library. `static`
111117 in `link static;` is not a reserved word.

README.md (history) modified +2 -0

@@ -111,6 +111,8 @@
111111 enumerations and sets, procedure types.
112112 - `^VOLATILE T`: every access through it is one instruction of its
113113 size, in the order written. `CAS`, `XCHG`, `XADD`, `FENCE`.
114+- `and`, `or` and `not` for `BOOL`s; `&`, `|`, `xor` and `~` for bits;
115+ `=` on arrays and strings.
114116 - Several results, `ERROR` values compared by identity, `defer`.
115117 - Modules with bodies; generic modules with type and procedure
116118 arguments, `Map(K, V; hash, eq)`.

doc/raz.md (history) modified +1 -1

@@ -9,7 +9,7 @@
99 This report defines the language. It is short on purpose. Whatever it
1010 doesn't allow, raz doesn't have.
1111
12-This is version 2026-10.0 of the report; section 12 says what each
12+This is version 2026-10.3 of the report; section 12 says what each
1313 version changed.
1414
1515 ## 1. A first look

src/raz.pas modified +1 -1

@@ -31,7 +31,7 @@
3131 { what git describe says, made by make: 0.3.0 at the tag v0.3.0,
3232 0.3.0-5-g38d29a8 five commits past it }
3333 Version = {$I version.inc};
34- Report = '2026-10.0'; { the version of doc/raz.md it follows }
34+ Report = '2026-10.3'; { the version of doc/raz.md it follows }
3535 MemfdCreate = 319; { the system call; FPC 3.2.2 has no name for it }
3636 MfdCloexec = 1; { an ELF still executes: the kernel opens it first }
3737