Spec M2 — locals, parameters, if/else, loop/break N/continue, calls, extern, local arrays, memory

Prerequisite: M1 closed and reviewed. Read docs/plan.md, docs/specs/M1.md and the current code. Scope: everything a function needs to compute and call other functions. Out (M3): globals, string literals, #include, #define, arena, __cstring/__data/__bss.

Parser #

Codegen #

Tests (all with // expect-exit and/or // expect-stdout) #

Acceptance #

make stage0 && make stage0-san && make budget && make test green; --dump-asm deterministic. Report lines per file and the total.

Edit this page