spec: accept RFC 0013 and add spec 15, the .aji source language 0.1

Owner decisions D1-D7 and the boundary rule (source may hide
representation mechanics, never authority, allocation, ownership
transfer, synchronization, external effects or recoverable failure).
spec 15 normative: items, types, statements, expressions, places and
borrows, explicit move (named values), outcome matches and 'or trap',
scope/shield/lock blocks (lock lowering defined exactly), select,
channels, allocation, frame storage, lexical borrow scopes, inferred
features, one canonical spelling per construct. grammar.ebnf replaced;
E7001-E7007; E3101 gains suggested_effects; spec 01 examples updated.
This commit is contained in:
dev committed 2026-10-05 10:35:55 +03:00
1 parent 0e25a17e9d
commit 65b10e3fb5
9 files changed
+471 -56

No files matched your search

+14
View File
@@ -78,6 +78,20 @@ Draft registry. Codes are stable once released in a tagged compiler version.
| E6001 | unsafe.required | Operation requires explicit unsafe boundary; field `reason`: `outside_boundary`, `trusted_declares_unsafe` |
| E6101 | abi.unaligned_reference | Normal reference requested from insufficiently aligned storage |
## E7xxx — Source language `.aji` (spec 15 §10)
Only problems that exist because of the frontend. Everything the verifier decides keeps its AIR code, reported at the source location.
| Code | Kind | Meaning |
|---|---|---|
| E7001 | source.syntax | Malformed `.aji` source |
| E7002 | source.unknown_name | Undefined variable, function, type, field or variant |
| E7003 | source.missing_move | Named linear value consumed without `move` |
| E7004 | source.not_exhaustive | `match` misses an outcome, variant or default |
| E7005 | source.type_mismatch | Expression has the wrong type in a source position |
| E7006 | source.invalid_construct | Construct not allowed here |
| E7007 | source.ambiguous | Source meaning cannot be determined |
## T0xxx — Runtime traps
Reported in trap records (spec 01 §6), not by the verifier.