macroctx: pass ctx JSON (caps) to user macros; add demo macro; docs: MacroCtx section and sandbox Box API; golden for for/foreach normalized AST

This commit is contained in:
Selfhosting Dev
2025-09-20 09:11:52 +09:00
parent daa5309ea9
commit 497da75f90
14 changed files with 188 additions and 506 deletions

View File

@ -33,3 +33,11 @@ See also
## Testing
- Rust unit tests: `cargo test`
- Targeted: e.g., tokenizer/sugar config `cargo test --lib sugar_basic_test -- --nocapture`
## Acceptance Checklist (Phase Freeze)
- cargo check (workspace) passes
- Representative smokes are green:
- PyVM smokes: `tools/pyvm_stage2_smoke.sh`
- LLVM harness smokes: `tools/llvm_smoke.sh release`
- Macro goldens: `tools/ci_check_golden.sh`
- No spec changes (compat maintained); changes are minimal and local