This is my python version implementation of crafting interpreter.
I use uv to manage the environment. To set up the dev environment, just run
uv sync
source .venv/bin/activate# Start REPL (no args)
python plox.py
# Run a Lox script (positional path)
python plox.py path/to/script.lox
# Enable verbose logs (DEBUG)
python plox.py --verbose path/to/script.loxpytest -qpyinstaller --onefile plox.py --name plox --cleanThen you can find the plox executable in folder ./dist.
You can also run the binary with the same conventions:
./dist/plox # REPL
./dist/plox script.lox # Run a file
./dist/plox --verbose file.lox