spec: Phase 0 spec gate (P0-1, P0-2, P0-3)

- text AIR format 0: grammar (reference/air-text.ebnf) and module,
  block, SSA, type and canonical-form rules (spec 07 §8)
- instruction contracts for format 0 (new spec 07a)
- traps: stable T0xxx codes and trap records (spec 01 §6)
- integer edge cases and explicit casts (spec 02 §2.1)
- fixed verifier resource limits (spec 08 §7)
- target description with pointer_bits (spec 09 §9)
- new codes E0001-E0006, E1003, T0001-T0007
- resolves Q-001, Q-003..Q-008, Q-018; Q-002 resolved for format 0
This commit is contained in:
dev committed 2026-10-04 12:14:25 +03:00
1 parent 11ce6cb38c
commit 41b764ccfd
13 files changed
+425 -18

No files matched your search

+2
View File
@@ -88,6 +88,8 @@ Common trap sources:
Safe programs SHOULD prefer `Result` for expected failures.
Every trap has a stable code in the `T0xxx` range of [`../reference/error-codes.md`](../reference/error-codes.md). A trap terminates the program; in format version 0 there is no way to observe a trap from inside the program. The implementation reports a trap record containing the code, kind, function, block and the zero-based index of the trapping instruction within its block. Trap records are deterministic: the same module and inputs produce the same record.
## 7. Generics
Aji supports monomorphized generics.