A toy version of Python. For now I'm doing the absolute minimum to make examples/fibonacci.py
work and then I'll expand to a slightly bigger subset of Python and see where I get to. I'm somewhat following along with the Crafting Interpreters tree-walk interpreter design.
uv sync --all-extras --dev
uv run tinypy -v
uv run tinypy examples/statements.py
uv run pytest
and also REPL tests
chmod +x test.sh
./test.sh
- Error handling
- Syntax errors
- Runtime errors
- Variables
- Functions
- Convert print statements to functions
- Type checking??
- I've messed up newlines, dedents, and all that. Scripts are currently not robust to whitespace...