Per-element reference docs. Each file covers one language component;
read the index below or follow see also links to navigate.
This directory is the authoritative reference for the locked Mach dialect. Each file is a focused doc with grammar, examples, and neighboring links; start from the index below.
- files.md — extensions,
lib.mach/main.machconventions - modules.md — module tree, path separator, shadow-module pattern
- use.md — imports
- fwd.md — re-exports
- visibility.md —
pubandextmodifiers - decorators.md — codegen decorators,
#[name](symbol,library,inline,align,section) - def.md — type alias
- rec.md — record
- uni.md — raw union and the discriminated-value convention
- fun.md — function
- ext-fun.md — external function
- val-var.md — immutable and mutable bindings
- test.md —
testdeclaration and themach testworkflow - variadics.md — variadic packs (
va: ...,$each,va.len,va...)
- literals.md — numeric, char, string
- types.md — primitive grammar, compound types
- secrecy.md — the
^secret qualifier, flow typing, gates,:^ - operators.md — arithmetic, bitwise, comparison, logical, pointer, cast
- expressions.md — construction, access, calls, generic instantiation
- statements.md —
if/or,for,ret,brk,cnt,fin, blocks
- comptime.md — channel overview
- comptime-mach.md —
$mach.*compiler-owned namespace - decorators.md — codegen decorators,
#[name](replaces the removed$sym.attrsetters) - comptime-intrinsics.md —
$size_of,$align_of,$offset_of,$type_of,$fields,$each,$error,$assert - comptime-control.md —
$if/$or
- grammar.md — full EBNF grammar of the implemented dialect, derived from the lexer and parser
- documentation.md — docstring style for functions, types, modules, and values
- ../manifest.md — the
mach.tomlmanifest reference - ../cli.md — the
machcommand-line reference