Files
hakorune/tools/hako-check

Hakorune Script Checker (MVP)

Purpose

  • Quickly validate Hakorune source files by parsing → MIR build → MIR verify without executing.
  • Useful while Python/llvmlite migration is in-flight to keep scripts healthy.

Usage

  • Build nyash:
    • cargo build --release
  • Run checker:
    • tools/hako-check/hako-check.sh path/to/file.hako

Behavior

  • Runs: nyash --backend mir --verify
  • Exit codes:
    • 0: OK
    • 2+: Parse/MIR verify failure (nyash returns nonzero; checker forwards)

Notes

  • This MVP only checks a single file and depends on the Rust parser.
  • Extend with flags (parser selection, JSON emit) as migration progresses.