Appendix A. Keywords, directives, types and current status

<!-- Generated from coax/release.coax; do not edit this snapshot. --> Current compiler: coax0 0.52.0. Status inventory schema: 1.

works means the bounded feature is implemented; partial records its limits. reserved is recognized and refused; designed is planned syntax. A status claim is reviewed metadata, not a proof, permission or complete target-support claim.

Introduced is the historical implementation version when recorded; — means unrecorded or unimplemented. It is independent of this release and inventory schema. Keep signed protocol/schema identities in their own version domains.

Keywords

NameMeaningStatusIntroduced
if elseConditionalworks—
whileLoopworks—
for break continuefor i: lo..<hi, for x, i: collection; leave or skip an iterationworks—
returnReturn from a procedureworks—
true falsebool literalsworks—
ifx thenConditional expression: ifx c then a else bworks—
deferRun at scope exit, in reverse order, on every exitworks—
struct enumType declarations: Name :: struct { ... }, Name :: enum u8 { ... }works—
castcast(T) x (checked), cast,trunc(T) x (keeps the low bits)works—
size_ofsize_of(T): the C size in bytes, as an untyped integerworks—
unionNominal tagged unions with 1 to 64 payload or unit alternatives; initial native LP64 profile, no generic unionspartial0.48.0
enum_flagsFlag setsreserved—
switch caseExhaustive statement selection over unions, Result, optionals and enums; immutable payload bindings, no fallthrough/default/guardspartial0.48.0
usingBring an embedded field's members into scopereserved—
try or_elseSame-error-type Result or optional propagation with lexical cleanup; lazy fallback, source-order operands and assignment placespartial0.48.0
nullContextual none of a tagged optional; symmetric tag comparison, no pointer sentinel or truthinessworks0.48.0
push_contextChange the implicit context for a blockreserved—
removeRemove the current element during iterationreserved—
it it_indexImplicit element and index names inside for (Coax names them instead: for x, i: ...)reserved—
xxInteger-width autocastreserved—
constraintDeclare a generic constraintreserved—
inline no_inlineInlining control at a definition or callreserved—
type_infoCPU type layout metadata, schema 1works0.12.0
type_ofFirst-class type reflectionreserved—
Type CodeMeta typesreserved—
job pureJobs and effect markersreserved—
strict deterministicFloating-point and determinism markersreserved—
shaderGPU procedurereserved—

Directives

NameMeaningStatusIntroduced
#import "Basic";Import a module; Basic is the only one, and it is imported by defaultworks—
#run exprEvaluate with bounded configurable shared work and aggregate storageworks0.18.0
#assert expr;A compile-time bool check at the top level; an always-on check as a statementworks—
#test "name" { }A check run by coax test, never compiled into the programworks0.5.0
#forall a: T, b: lo..<hi { } (optionally #forall "name" ...)A check over every combination of its bindingsworks0.5.0
#steps NBefore a check's block: the check's own step budget, replacing the file's (#test "name" #steps 150000000 { })works0.45.0
#authority;Every procedure in the file needs a check; checks run on every buildworks0.5.0
#export_cAfter a procedure's signature: give it its own C name and the C calling convention (coax lib, coax header)works—
#foreignAfter a procedure's signature, with no body: import a C function that passes integers, floats, bool and borrowed views of them (read/written during the call only, never retained), returning a scalar or nothingworks—
#import_proto "file.pb" as Prefix;Generate types and bounded codecs from a protobuf descriptor set (CPU code only)works—
#load "part.coax";Add a once-only source unit with relative paths, cycle/budget checks and physical-file authorityworks0.11.0
#module "a.b";Claim a logical owner for a source unit; its #load members share it; declarations get nominal IDs and a module scope for qualified lookupworks0.26.0
#ifBUILD_DEBUG field/statement blocks; general conditions and top-level declarations remain plannedpartial0.17.0
#insert #expand #text #locationTyped code and macrosreserved—
#derive(...)Generate operations from fieldsreserved—
#bake_argumentsExplicit partial specializationreserved—
#distinctA new type with the same representationreserved—
#asDeclared conversion to an embedded fieldreserved—
#import_c #c_call #no_contextC header import and calling conventionsreserved—
#scope_file #scope_module #scope_exportVisibilityreserved—
#counter on a struct fieldPlain + - * and their compound assignments on the field are refused (E0840); it changes through the named integer operations (#12927)works0.50.0

Intrinsics

NameMeaningStatusIntroduced
print(format, ...)Print with % slots checked at compile time; from Basic, which is imported by defaultworks—
type_name(expr)The expression's type name as a string; the operand isn't evaluatedworks—
size_of(T)The type's size in bytes (bootstrap LP64 CPU layout)works—
type_info(T)Type name, kind, layout and counts as CoaxTypeInfoworks0.12.0
field_info(T, i)Struct field name, type and layout as CoaxFieldInfoworks0.12.0
enum_info(T, i)Enum member name and underlying bits as CoaxEnumInfoworks0.12.0
len(x)The length of a string, array or view (the same as .count)works—
byte_at(s, i)The byte at index i of a stringworks—
sin cos tan exp log sqrt floor absOne float argument, same type backworks—
pow(a, b)Two floats of one typeworks—
f32_bits(x) f64_bits(x)A float's bit pattern as u32 or u64works—
f32_from_bits(b) f64_from_bits(b)The reverseworks—

Conversions

Literals

Types

Capabilities

NameMeaningStatusIntroduced
Checked recoverable error handlingPending/consumed direct Results checked on branches, normal exits and implicit try exits; conservative loop/defer restrictions, active-payload borrows; canonical asynchronous ownership is a separate library protocol, not deep ownershippartial0.48.0
Tagged native C valuesExplicit native LP64 tag/payload layout, active-payload execution, versioned composed headers and invalid-tag traps; numeric-view/scalar foreign boundary remainspartial0.48.0
#load / coax depsBounded source composition and input inventoryworks0.11.0
coax deps --declarationsSchema coax.declarations.v1: unit owners, nominal declaration IDs and resolved references from the checked graphworks0.26.0
coax deps --modulesSchema coax.modules.v1: conservative module-scoped content and dependency revisions, separate from nominal IDs, source hashes and the profile; no per-declaration revisions or cache keypartial0.27.0
Declaration spans and the native-lp64 target recordcoax deps reports each declaration's exact authored byte range, lines and content hash, or its generated directive origin, and the typed native-lp64 layout record; coax layout and coax deps refuse any other --target (E0612)partial0.29.0
#load "FILE.coax" as NAME; qualified lookupPath imports bind an alias to a logical module; NAME.Type, NAME.proc() and NAME.CONST resolve in the checked graph with per-module scopes, ambiguity at the use and qualified C spellings; no reexports, module parameters or package searchpartial0.28.0
#load "FILE-checks.coax" #test; check loadsA unit loads its checks without shipping them: a unit reached only through check loads is checked and counted for #authority coverage with the program, and no compile emits its procedures or a procedure that calls them; main or an export that reaches one is E0616works0.52.0
#inline proceduresA procedure note: native C copies the body into each caller (static inline, always_inline under GCC and Clang); wasm32, GPU output and --split units keep the call; refused with #export_c or #foreign and on main and recursive procedures (E0210)works0.52.0
#export NAME, ...; module visibilityA logical module with an #export list keeps its other declarations private: qualified and unqualified uses from other modules are E0389, member units share the owner, unlisted modules stay fully visible; exports name the module's own declarations (E0390, E0391), reexports fail (E0614); coax deps --modules reports each module's exportspartial0.30.0
Effect-ordered native loweringCK_effects classifies each checked expression (call, trap, checked-overflow trap); native C sequences two trapping operands and a trapping place and value, so the first trap in source order is reported at -O0 and -O2 as in the evaluator; coax deps --lowering (0.32.0) prints the coax.lowering.v1 record of those decisions for the eligible subsetpartial0.31.0
coax test/mutate --evidence FILESchema coax.evidence.v1: each check, authority-coverage and mutation claim bound to sources, compiler, evaluator target, profile, selection and budgets, ending passed, counterexample, inconclusive, infrastructure-error or not-checked; the verdict is the worst, so missing execution is never a passworks0.33.0
coax checks-c FILEVerification-only C11 from admitted checked zero-argument #test bodies and their callee closure, with original physical identities; no source rewriting or product main. Default ABI1 refuses selected #forall; opt-in --verification-abi 2 emits bounded finite-property metadata and original parameterized bodies. Unsupported effects/borrow forms refuse; emission alone is not execution evidenceworks0.39.0
Original-source native execution companionOptional native_check_execution.py host tooling runs one checked-AST C artifact at checked O0/O2 with a complete original evaluator baseline, Coax-owned EP1 protocol/verdict policy and bounded isolated native processes. execution.v1 records exact selected identities, source/artifact/compiler/SDK observations. Default ABI1 covers ordinary checks; opt-in ABI2 adds finite properties in execution.v2. Broader trap semantics and real-consumer qualification remain separateworks0.41.0
Finite authored native propertiesOpt-in checks-c verification ABI2 and execution.v2 use shared Coax finite-domain admission/traversal for bool, small integers, sparse enums and int ranges, preserving original identities and last-binding-fastest order. Bounded per-property processes publish Coax-validated case progress and named witnesses; original unfiltered baselines remain mandatory. Native arity is limited to 64; ABI1 and execution.v1 remain unchangedworks0.42.0
Native semantic experimentsOptional semantics.v1 tooling qualifies independent value/write/cleanup assertions, recognizes a checked subset of runtime traps through verification-only structured hooks, and detects a retained C-only multiplication seed with bounded signature-preserving tuple replay. Matching an expected failed-original trap is artifact-only and never a passed baseline. Arbitrary source minimization and real-consumer qualification remain separateworks0.44.0
$T type parametersA $T binds from procedure parameters or an explicit generic-struct parameter list; unbound/result-only uses and unsupported nesting are refused (E0392-E0395); recursive or C-exported generic procedures are refused (E0396, E0398)partial0.34.0
Generic instantiationEach call deduces its bindings, typed arguments first and then literals for a bare $T (E0348, E0349, E0397); one checked instance per procedure and binding, at most 256, or one per 8 syntax nodes past 2056 (E0339), evaluated, emitted as name__bindings and mutated like any procedure; built-in constraints restrict admitted types and operationspartial0.35.0
$N value parameters[$N] T binds a fixed array argument's length (E0348 two lengths, E0349 not a fixed array or wrong length, E0368 a name used as type and length); [4] $T and [$N] $T are acceptedpartial0.36.0
Generic structsPair :: struct($T) and Box :: struct($T, $N) instantiate per binding from Pair(int) types, with a length given as a literal or a named integer constant (Box(f64, CAP)), deducing literals and Pair($T) parameters; fixed-storage bindings only (no views or aggregates containing views); each instance is laid out and emitted (E0800-E0804, E0223)partial0.37.0
Borrowed views across #foreignA #foreign parameter may be a [] view of integers, floats or bool, passed as the {data, count} struct; the host reads and writes it during the call only (no retention, transfer or asynchronous use), views may overlap; other views, arrays and view results are E0376; compile-time and check execution refuse host calls (E0404)partial0.38.0
Generic constraints$T: equatable, ordered, numeric or copyable; bodies check against the constraint and calls outside it are refused with an instantiation trace (E0805-E0808)partial0.40.0
#import_protoSelected proto3 descriptor generation in Coax; domain admission remains separateworks0.10.0
#import_proto JSON mapperOpt-in bounded JSON writer and reader per message: json_name keys in field-number order, contract constants, presence-driven null and zero, optional 64-bit numbers; refuses float, double and enumworks0.52.0
Native source debuggingOriginal-file line maps and optional LLDB names; optimized values and generated-code limits remainpartial0.13.0
E0383 local-borrow diagnosticsRejects direct local fixed-array view/string returns and simple aliases, slices and casts. Helper returns and retained stores have separate bounded profiles; general ownership remains uncheckedworks0.13.0
Bounded returned-borrow diagnosticsResolved helper and aggregate return projections retain known caller, static and local origins; a concrete local witness reports E0383 even beside an incomplete arm. Recursion and unmodeled helper writes remain explicit manual status, not a safe empty result. Resource exhaustion is E0381; retained caller-state and general region lifetimes remain separatepartial0.46.0
Bounded retained-store diagnosticsChecks concrete bodies including void and uncalled procedures, rejecting known callee-local descriptor backing stored into caller or static storage with E0383. Sparse parameter outlives obligations are projected at actual callers. Unknown, recursive, foreign and same-frame region relations remain explicit manual scope; bounded raw local-carrier write-to-return composition is supported; canonical request ownership is a separate library protocolpartial0.46.0
Release/status generationCanonical Coax catalogue, CLI status and build/publication drift gateworks0.14.0
Compiler build identityChecked source and artifact consistency record for site releases; not authenticationworks0.22.0
Explicit semantic profile selectionIndependent arithmetic, native optimization, build selector and debug information; optional schema-1 profile report; legacy presets retained, no general cross-object or device qualificationpartial0.25.0
coax cuda compute subsetCUDA C for NVRTC: item, warp and bounded group kernels with numeric views and fixed scalar arrays; group kernels admit owned shared-memory writes and barriers; general atomics remain unsupportedpartial0.23.0
CUDA warp kernelsfor lane: 0..<32 loops, per-lane register arrays and the BF16 tensor-core primitive cu_mma_bf16_16x8x16; cooperative shared memory and barriers use the separate group-kernel rulespartial0.24.0
Versioned checked shader emissionWGSL/SPIR-V use checked tree2 for the legacy registry and tree3 for explicit fine derivatives/helper conversion; rich reflection2 reports actual entry layouts and capability requirements. Scalar CPU derivative bodies remain zero; quad execution and device qualification are separatepartial0.47.0
Linux x86-64 C11 hostBuilds, checks and runs on the tested NixOS x86-64 host with GCC; not a release-qualified targetpartial0.23.0
Nominal integer IDsExplicit one-integer @id wrappers with equality and opt-in ordering; generic keys, read-only views, evaluator and C/Wasm; device output refuses; liveness remains in librariespartial0.51.0
Bounded aggregate traversalIndependent finite work accounting for evaluated aggregate traversalworks0.21.0
Bounded interpreted string snapshotsCast strings borrow; frozen results own snapshots with finite live bytes and materialization workworks0.20.0
Conservative mutation schedulingRuns all mutants with isolated check scheduling and full-run fallbackworks0.19.0
Differential conformance toolingOptional bounded evaluator/native tests with independent oracle and reduced witnessespartial0.14.0
General ownershipTransfer, destruction and complete region/lifetime rules remain planneddesigned—
Apple C11 hostTested Apple LP64 host; target support requires runtime/ABI/debugging evidencepartial—
Coax Native Web browser pathCurrent Wasm consumers, drawn with WebGPU or, for text surfaces, the browser's DOM; general target layout/runtime/debugging remain incompletepartial—
Typed lifetime handlesHandle(T) and caller-backed Store(T), optional stale lookup and generation retirement; Aethyr and Everglade adoption; store provenance and regions remain caller obligationspartial0.52.0
Enforced procedure effectsTransitive capability subset checks with shortest paths; declarations required on authority, C exports and foreign procedures; native summaries remain trusted and callback values remain plannedpartial0.52.0
In-memory transactionsScoped reachable-state before-images; undo escaping Result errors or optional absence, including try and nested cleanup; no external effects, fatal traps do not roll backpartial0.52.0
Owned persisted records#persisted recursively admits owned values and stable IDs, refusing borrowed descriptors and process-local handles; generic instances are checkedworks0.52.0
Realm-script profile (#script)A #script unit may only read, write and trap through its whole call graph, reaches native code only through a #script_api unit, has no recursion, one fixed-size #persisted state record and a fixed set of typed handlers; coax script prints its manifest or its module's C face; the compiler is still not a sandbox: a server checks the module it is handedworks0.52.0
Published surface compatibilitycoax compat compares concrete native LP64 signatures, C ABI, effects, saved fields and defaults; production baselines suppress only pre-existing failures; serializers and generic facades have separate contractspartial0.52.0

Annotations such as @range and @unit are lexed but not accepted yet. The accepted grammar and focused implementation tests remain separate evidence for these reviewed status claims.