|
|
@@ -1,12 +1,13 @@
|
|
|
# Session summary — SET CONST + builtin CONST folding 2026-10-18
|
|
|
|
|
|
-Branch **`resolve-check`**. Suite **237/237**; fixpoint **OK
|
|
|
-(3,823,257 bytes)**; corpus **402/612 compile-OK, 0 crashes**.
|
|
|
+Branch **`resolve-check`**. Suite **238/238**; fixpoint **OK
|
|
|
+(3,812,771 bytes)**; corpus **405/612 compile-OK, 0 crashes**.
|
|
|
|
|
|
Tags: `v3-set-constants`, `v3-const-builtin-fold`, `v3-const-conv-fold`,
|
|
|
`v3-proc-addr`, `v3-proc-val`, `v3-real64`, `v3-shift-import`,
|
|
|
`v3-foreign-module`, `v3-m2-conformance`, `v3-strict-decl-order`,
|
|
|
-`v3-convert`, `v3-set-word`, `v3-enum-import`, `v3-gap-examples`.
|
|
|
+`v3-convert`, `v3-set-word`, `v3-enum-import`, `v3-ordl`,
|
|
|
+`v3-gap-examples`.
|
|
|
|
|
|
## Conformance note
|
|
|
|
|
|
@@ -155,6 +156,17 @@ legal exception. Corpus **398 → 388**: the 10 files dropped
|
|
|
leniency. Forward references to module-level **variables**/**procedures**
|
|
|
from a body (the two-phase parse) remain — a separate, larger item.
|
|
|
|
|
|
+## Track B: `ORDL` de-reserved
|
|
|
+
|
|
|
+`ORDL` is a gm2/FileIO helper, not a Modula-2 built-in; V3 reserved it,
|
|
|
+so `PROCEDURE ORDL` (`fileio.def/mod`) was rejected. It is now an
|
|
|
+ordinary identifier: the scanner frame takes `FROM FileIO IMPORT ORDL`
|
|
|
+(Coco/R's generated CONTEXT handling calls `ORDL`), `runtime/syslib/
|
|
|
+FileIO` exports it, and `t_compat` drops its ORDL probe. (`ORD`, `CHR`,
|
|
|
+`VAL`, … remain keyword-style — de-reserving the *standard* built-ins is
|
|
|
+a larger parser refactor.) Corpus **402 → 405**; suite test
|
|
|
+`t_builtinname`; `docs/gaps/gap13` retired.
|
|
|
+
|
|
|
## Track B: enum literals travel with their type
|
|
|
|
|
|
Modula-2 exports/imports a type's **enumeration literals** with the type.
|
|
|
@@ -237,7 +249,7 @@ modules),
|
|
|
```sh
|
|
|
cd .../m2compiler-V3
|
|
|
git checkout resolve-check
|
|
|
-cd compiler && ./build.sh && ./run_tests.sh # 237/237
|
|
|
+cd compiler && ./build.sh && ./run_tests.sh # 238/238
|
|
|
cd .. && TMP="$PWD/.scratch/fixpoint" ./bootstrap/fixpoint.sh
|
|
|
-M2FLAGS="" ./.scratch/corpusx.sh # 402 OK, 0 crash
|
|
|
+M2FLAGS="" ./.scratch/corpusx.sh # 405 OK, 0 crash
|
|
|
```
|