Files
aji/src/root.zig
T
dev ba3e9b3719 Phase 6A: .aji frontend, layer 1 (scalars, expressions, functions, control flow)
src/frontend: lexer, AST, parser for the full 6A grammar (first error
only: one E7001 with span, expected and found), lowering to canonical
text AIR with a line map. Variables become SSA with block parameters
carried across if/while/for/loop joins; short-circuit and/or; checked,
wrapping and cast forms; calls; untyped let literals typed from later
uses, never guessed (E7007). The frontend repairs nothing.

check.checkFile: .aji → frontend → existing AIR parser and verifier;
every diagnostic at its source location, AIR location kept as
air_line/air_col; trap records gain source_location. CLI: check/run on
.aji, aji lower [--annotate].

Runner: .aji tests with the same headers; every accepted module must
lower deterministically, be canonical (lower → parse → print
unchanged) and match <file>.expected if present. Layer-1 tests: 6 run,
6 E7xxx rejects, 2 verifier-caught (E1002, E3101).
2026-10-05 11:23:18 +03:00

25 lines
853 B
Zig

//! Aji reference implementation.
//!
//! Trusted computing base (AGENTS.md): verifier, AIR interpreter semantics,
//! backend, unsafe runtime modules, ABI/platform descriptions. Keep modules
//! small and keep the verifier free of heuristics.
pub const version = "0.0.0-dev";
/// Highest plan phase (docs/plan/README.md) whose features are implemented.
/// Conformance tests for later phases are reported as PENDING.
pub const implemented_phase: u8 = 3;
pub const diag = @import("diag.zig");
pub const air = @import("air.zig");
pub const verifier = @import("verifier.zig");
pub const interp = @import("interp.zig");
pub const check = @import("check.zig");
pub const frontend = @import("frontend.zig");
pub const report = @import("report.zig");
pub const manifest = @import("manifest.zig");
test {
@import("std").testing.refAllDecls(@This());
}