#!/usr/bin/env python3
"""Standalone launcher -- runs the compiler with no pip install required.

The microbasic_compiler package has zero third-party dependencies (stdlib
only), so the only thing missing when running it straight from a source
checkout is this file's location on sys.path. This script adds src/ and
hands off to the normal CLI entry point.

Usage:
    python mbc build script.mbs -o script.hex
    ./mbc build script.mbs -o script.hex        (after chmod +x mbc, on Linux/Mac)
"""

import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "src"))

from microbasic_compiler.cli import main  # noqa: E402

if __name__ == "__main__":
    raise SystemExit(main())
