frontend: validate unknown effect names before body lowering
This commit is contained in:
1 parent
4c9c5626c9
commit
762c5abe7b
40 files changed
+335
-9
No files matched your search
@@ -168,3 +168,5 @@ Q-047 non-value operands (cl100k): Quick Reference stays 8,948; other source doc
|
||||
Q-048 source access modes (cl100k): Quick Reference stays 8,948; other source docs 67,258 → 67,343 (+85), full source 76,206 → 76,291 (+0.11%). o200k groups are 8,984 / 67,546 / 76,530; Qwen2.5 9,226 / 69,001 / 78,227. AIR remains 184,628 bytes / 47,445 cl100k tokens; library/std.md is unchanged. Shared places reject at source stores and explicit mut bindings/arguments before array shape conversion; valid canonical AIR is preserved. No new concept, syntax, code/reason, feature or verifier/runtime state is added. No empirical MCC benefit is claimed.
|
||||
|
||||
DD-022 grammar surface (cl100k): Quick Reference stays 8,948; other source docs 67,343 → 68,219 (+876), full source 76,291 → 77,167 (+1.15%). o200k groups are 8,984 / 68,422 / 77,406; Qwen2.5 9,226 / 69,887 / 79,113. AIR remains 184,628 bytes / 47,445 cl100k tokens; library/std.md is unchanged. Existing syntax and ordered parsing choices replace incomplete grammar descriptions. Empty qualified enum payload lists now reject E7001; accepted public-source canonical AIR is preserved. No new programming concept, feature, diagnostic code or verifier/runtime state is added. The grammar stays a reference read on demand; no empirical MCC benefit is claimed.
|
||||
|
||||
Q-051 source effect names (DD-023, cl100k): Quick Reference 8,948 → 8,955 (+7); other source docs 68,219 → 68,323 (+104), full source 77,167 → 77,278 (+0.14%). o200k groups are 8,991 / 68,526 / 77,517; Qwen2.5 9,233 / 69,994 / 79,227. AIR grows 47,445 → 47,458 (+13), 184,628 → 184,678 bytes, through the shared E7002 registry description; library/std.md is unchanged. Unknown effects use existing E7002 with structured `name`/`effect`, replacing erroneous source E7900 or E0006. Accepted canonical AIR and authority/effect semantics are preserved. No new concept, syntax, code/reason, feature or verifier/runtime state is added; no empirical MCC benefit is claimed.
|
||||
@@ -309,7 +309,7 @@ scope s { // every task spawned in s must
|
||||
| Code | Meaning | Usual repair |
|
||||
|---|---|---|
|
||||
| E7001 | syntax | check `;`, braces, `=>` in `match` |
|
||||
| E7002 | unknown name | spelling; declare the variable or function |
|
||||
| E7002 | unknown name | spelling; declare missing bindings; for `effect`, use a registered atom |
|
||||
| E7003 | linear value consumed without `move` | write `move x` (or borrow it with `ref`/`mut` if it must stay) |
|
||||
| E7004 | `match` not exhaustive | add the arms listed in `missing` (integers: add `_`) |
|
||||
| E7005, E1001 | type mismatch | convert with `as`, `as!`, `as%`; check borrow vs value |
|
||||
|
||||
Reference in new issue
Block a user