To install the H-hat interpreter, it is recommended to follow the steps:
Install Python 3.10+.
Setting up a virtual environment¶
In case you don’t know how to set up a virtual environment, see the examples below (choose only one):
Create an environment for h-hat and activate it: conda activate <name_of_the_env>
Create a venv: python3.10 -m venv .venv (the venv will be located in the folder .venv inside the hhat_lang root folder)
Deactivate any other environment you might have active, i.e. conda: conda deactivate, until you have no environment
Activate our new venv through: source .venv/bin/activate
After setting up your virtual environment, simply use:
python3 -m pip install hhat-lang
In the root folder, run:
python3 -m pip install -e .
After proceeding on your preferred installation method, it’s time to run some code. Just type hhat in the terminal followed by the file containing your code (.hat extension).