// builder.hako — Self‑host MIR(JSON v0) Builder (Scaffold)
// Phase‑20.12b: emit‑only placeholder. Returns input path unchanged.

static box SelfhostMirBuilder {
  // Build MIR(JSON v0) from AST/source (scaffold)
  // Returns: json_path (for now, identity)
  build(input_path) {
    // TODO(20.12b): parse/load, lower minimal ops (const/binop/compare/branch/ret/phi)
    return input_path
  }

  // Future convenience: emit a minimal JSON header for parity checks
  emit_min_header(json_path) {
    // TODO(20.12b): write {"version":"0","kind":"Program"} header sidecar
    return json_path
  }
}

