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:
1 parent
0e25a17e9d
commit
65b10e3fb5
9 files changed
+471
-56
No files matched your search
@@ -64,6 +64,13 @@ pub const registry = [_]Code{
|
||||
// E6xxx — Unsafe/ABI
|
||||
.{ .id = "E6001", .kind = "unsafe.required", .meaning = "Operation requires explicit unsafe boundary; field `reason`: `outside_boundary`, `trusted_declares_unsafe`" },
|
||||
.{ .id = "E6101", .kind = "abi.unaligned_reference", .meaning = "Normal reference requested from insufficiently aligned storage" },
|
||||
.{ .id = "E7001", .kind = "source.syntax", .meaning = "Malformed `.aji` source" },
|
||||
.{ .id = "E7002", .kind = "source.unknown_name", .meaning = "Undefined variable, function, type, field or variant" },
|
||||
.{ .id = "E7003", .kind = "source.missing_move", .meaning = "Named linear value consumed without `move`" },
|
||||
.{ .id = "E7004", .kind = "source.not_exhaustive", .meaning = "`match` misses an outcome, variant or default" },
|
||||
.{ .id = "E7005", .kind = "source.type_mismatch", .meaning = "Expression has the wrong type in a source position" },
|
||||
.{ .id = "E7006", .kind = "source.invalid_construct", .meaning = "Construct not allowed here" },
|
||||
.{ .id = "E7007", .kind = "source.ambiguous", .meaning = "Source meaning cannot be determined" },
|
||||
// T0xxx — Runtime traps (reported in trap records, not by the verifier)
|
||||
.{ .id = "T0001", .kind = "trap.explicit", .meaning = "`trap` instruction executed" },
|
||||
.{ .id = "T0002", .kind = "trap.assert", .meaning = "Assertion failed" },
|
||||
|
||||
Reference in new issue
Block a user