Download legionhjyu
These are standalone executables built with PyInstaller. They include the Python runtime and all legionhjyu source files, so you don't need Python installed on your machine.
Latest release: v1.0.0
legion-linux-x64
~12 MB · No dependencies
~13 MB · No dependencies
~14 MB · No dependencies
Installation after download
Linux and macOS
## Make it executable
chmod +x legion-linux-x64
## Move to PATH
mv legion-linux-x64 ~/.local/bin/legion
## Verify
legion versionWindows
- Download
legion-windows.exe - Rename it to
legion.exe - Move it to a folder that's on your system PATH (for example
C:\Users\YourName\bin\) - Open Command Prompt or PowerShell and run
legion version
Verify the download
After installing, run:
legion versionExpected output:
legionhjyu 1.0.0Then try:
echo 'echo "hello from legionhjyu!"' > test.lhj
legion run test.lhjhello from legionhjyu!Build from source
If you prefer to build from source or need a different platform:
pip install pyinstaller
git clone https://github.com/legionhjyu/legionhjyu.git
cd legionhjyu
pyinstaller legion.specThe output goes to dist/legion (Linux/macOS) or dist/legion.exe (Windows).
See Installation for the full source-based install flow.
What's included
The binary bundles:
- The legionhjyu interpreter (lexer, parser, tree-walking evaluator)
- All standard library
.lhjfiles (io,collections,random,json_mod) - The built-in
math,strings, andosmodules - The
legion pkgpackage manager - The interactive REPL
Packages you install with legion pkg install are stored separately in ~/.legion/packages/ and work the same way regardless of whether you installed from source or a binary.
Platform notes
The Linux binary was built on Ubuntu 22.04. It should run on any x86_64 Linux with glibc 2.17 or later. If you're on an older distro or a different architecture, build from source instead.
The macOS binary requires macOS 11 or later.
The Windows binary requires Windows 10 or later.