P6A-8: Source Reference Bundle and harness profile aji_source
- source bundle: a /docs directory with QUICK.md (Quick Reference plus a where-to-read table), language/*.md, diagnostics/errors.md and the AIR bundle only under air/; built from docs/agent/source-bundle.txt (> output files, @manifest includes) by zig build agent-reference - Quick Reference examples are checked: every aji block must be an excerpt of a conformance program in tests/conformance/source/quickref (zig build test fails otherwise); QR fixes found by the check (mut d = data, region not auto-borrowed, statement/borrow blocks that could not verify, io_error match) - frontend: task.*/channel.*/mutex.* are not-yet-implemented, not E7006 - aji lower --stats: mechanical_air_eliminated_raw and _normalized (each byte-string materialization counted as one constant; spec 15 §11) - harness: profile aji_source (doc_groups), per-file and per-group docs metrics on distinctive lines, profile columns (tool calls, lowered AIR raw/normalized, docs files read, IR-form and type-mismatch counts), dev-echo aji_source variant, scripted run and test, source token report - plan: P6A-8 done, P6A-9 criteria; Q-021/Q-022 resolved; unsafe block deferred
This commit is contained in:
1 parent
61be766634
commit
3e2d9b63a7
35 files changed
+1170
-106
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# Source Reference Bundle notes
|
||||
|
||||
Text that exists only for the Source Reference Bundle (`source-bundle.txt`). Non-normative: it points at the normative files and states which source layers are implemented.
|
||||
|
||||
## 9. Where to read more
|
||||
|
||||
The other files in `/docs` hold the full rules. Open one only when this page is not enough.
|
||||
|
||||
| Need | Read |
|
||||
|---|---|
|
||||
| exact syntax, every construct, `match` and outcomes | `/docs/language/syntax.md` |
|
||||
| integer semantics, conversions, Copy/Send/Share, traps | `/docs/language/types.md` |
|
||||
| borrows, scopes, frame storage, slices, initialization | `/docs/language/ownership.md` |
|
||||
| `own`, regions, allocation budgets | `/docs/language/memory.md` |
|
||||
| effects, capabilities, grants, narrowing | `/docs/language/effects-capabilities.md` |
|
||||
| files, streams, stdin/stdout, intrinsic operand tables, `io_error` | `/docs/language/io-resources.md` |
|
||||
| tasks, channels, select, mutex, cancellation | `/docs/language/concurrency.md` |
|
||||
| `aji` commands, run records, fuel, profiles | `/docs/language/tooling.md` |
|
||||
| a diagnostic code (`E2101`, `T0008`, …) | `/docs/diagnostics/errors.md` |
|
||||
| the AIR printed by `aji lower`, `air_line`/`air_col` in a diagnostic | `/docs/air/reference.md` |
|
||||
|
||||
You write `.aji`; you never need to write AIR. Diagnostics point at your source (`file`, `line`, `col`).
|
||||
|
||||
## Concurrency status
|
||||
|
||||
The source frontend implements layers 1–6 of spec 15. Layers 7 (tasks, channels) and 8 (`lock`, `select`, cancellation, shields) are not implemented yet: a program that uses `scope`, `task.*`, `channel.*`, `mutex.*`, `lock`, `select` or `shield` is reported as not implemented (exit code 3). The rules below describe the language as specified.
|
||||
|
||||
## The AIR reference
|
||||
|
||||
This file is the reference for text AIR format 0, the language `.aji` lowers to. You do not need it to write `.aji`. It explains what `aji lower` prints and the `air_line`/`air_col` fields of diagnostics.
|
||||
Reference in new issue
Block a user