From 65aa79b5756f6fe13f22c9434c6e5f78d57e25c2 Mon Sep 17 00:00:00 2001 From: nyash-codex Date: Sun, 2 Nov 2025 18:56:07 +0900 Subject: [PATCH] =?UTF-8?q?BuildBox=20opts=20(structured=20arrays)=20+=20R?= =?UTF-8?q?EADME=20note=20for=20Program=E2=86=92MIR=20CLI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BuildBox: accept bundles/bundle_names/bundle_srcs/require_mods/alias_table via opts Map (ArrayBox/String) - Fallback to env when opts missing; normalize empties; Fail‑Fast on resolver failure - README: document --program-json-to-mir usage --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index ba39f14a..082b88f9 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,10 @@ Quick pointers - Emit object with harness: set `NYASH_LLVM_USE_HARNESS=1` and `NYASH_LLVM_OBJ_OUT=` (defaults in tools use `tmp/`). - Run PyVM: `NYASH_VM_USE_PY=1 $NYASH_BIN --backend vm apps/APP/main.nyash`. +Program(JSON v0) → MIR(JSON) +- Convert a Stage‑B Program(JSON v0) file to MIR(JSON): + - `$NYASH_BIN --json-file /path/program.json --program-json-to-mir /tmp/mir.json` + Dev shortcuts (Operator Boxes & JSON smokes) - One‑shot JSON verification (dev, Operator Boxes ON): `./tools/opbox-json.sh` - Run quick profile with Operator Boxes: `./tools/opbox-quick.sh`