air: feature negotiation for AIR format 0 (DD-014)

- reference/air-features.md: normative feature registry (arrays,
  atomics, capabilities, channels, effects, islands, ownership, regions,
  sync, tasks; all reserved), dependency closures, reasons for E0006
- spec 07 §8.1/§8.5/§8.7: features are mandatory, validated before the
  body, full dependency closure declared, sorted canonically; every
  extension belongs to a feature; published feature semantics immutable
- spec 05 §8: features vs effects vs capabilities
- src/air/features.zig: registry, validation, sync test with the docs
- parser validates features first; E0006 carries `reason`
- `aji features` prints supported AIR format, language and features
- conformance: unknown, reserved and duplicate feature tests
- plan: feature publication tasks in phases 1-5
This commit is contained in:
dev committed 2026-10-04 12:49:29 +03:00
1 parent 03dda1245a
commit 19dff5dd52
24 files changed
+366 -17

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ pub const registry = [_]Code{
.{ .id = "E0003", .kind = "parse.duplicate_name", .meaning = "Function, type, block, field or variant name defined twice" },
.{ .id = "E0004", .kind = "parse.unknown_name", .meaning = "Unknown opcode, type, function, field or variant" },
.{ .id = "E0005", .kind = "module.unsupported_version", .meaning = "AIR format or language version not implemented" },
.{ .id = "E0006", .kind = "module.unsupported_feature", .meaning = "Required feature or reserved type not implemented" },
.{ .id = "E0006", .kind = "module.unsupported_feature", .meaning = "Feature unknown, unsupported, undeclared or dependency-incomplete, or reserved type used" },
// E1xxx — Types and values
.{ .id = "E1001", .kind = "type.mismatch", .meaning = "Operand/result type mismatch" },
.{ .id = "E1002", .kind = "type.invalid_cast", .meaning = "Cast not permitted by safe semantics" },