#!/bin/sh
# miao — the temple of versions. CLI launcher (macOS / Linux / LingOS-hosted shells).
DIR="$(cd "$(dirname "$0")" && pwd)"
LING="${LING:-ling}"
if ! command -v "$LING" >/dev/null 2>&1; then
  LING="$DIR/../ling/target/release/ling"
fi
exec "$LING" run --interp "$DIR/ling/main.ling" "$@"
