All of these indications are for Unix systems. If you are on Windows, I can't help you.
To install, input the following command in terminal.
Clone the repository:
git clone https://www.github.com/Imp.git
-
Remove the virtual environment venv with
rm -r venv
-
Make sure you have virtualenv python library installed with
pip install virtualenv
-
Create a virtual environment to run python on
virtualenv venv
-
Activate the environment.
source venv/bin/activate
-
Upgrade pip and install all required libraries to this virtual environment
pip install --upgrade pip pip install -r requirements.txt
Testing the parser:
- Navigate into the repository in terminal.
- Execute the command
venv/bin/python parser.py -f tests/test.imp
- The output will be on the file
impvm.html
. Note: You can send any test file to the parser.