Tiger is a simple, statically typed programming language. See the 4-page specification here
First be sure you've created the virtual environment:
virtualenv --python=python3 venv
source venv/bin/activate
pip install -r requirements.txt
pip install -e .
Thus far the project only builds an intermediate representation of the abstract syntax tree in Python. TODO:
- Type checking
- Embedded Python interpreter
Given a file named hello_world.ti
:
/* Hello-world with function */
let
function hello() = print("Hello, World!\n")
in
hello()
end
from tiger_pl import Tiger
prog = Tiger('hello_world.ti')
print(prog.execute())
python -m tiger_pl hello_world.ti
source venv/bin/activate
pytest tests/