Code for language called "NAAV"
YouTube video link : https://www.youtube.com/watch?v=bbO3-azC7eQ
Windows OS was used to build the compiler and interpreter for our language "NAAV". The interpreter was also ran on the Mac OS successfully.
Tools used to program our language:
- SWI-Prolog version 9.2.1 for x64-win64
- Python 3.11.4
- Pyswip 0.2.11
- Ply 3.11
The "NAAV" language requires the interpreter which is replicated in the runtime.
Instructions to build the interpreter:
-
Install Python3 and SWI-Prolog
-
Clone the repository
git clone https://github.com/atharva-date/SER502-NAAV-Team17.git
-
Open the terminal from the source directory of the project
-
Change directory from the root directory to runtime directory of the project using the following commands:
cd srccd runtime -
Install pip packages for the interpreter to run successfully
pip install git+https://github.com/yuce/pyswip@master#egg=pyswip
pip install ply
Instructions to run the interpreter:
-
Follow up on the above steps and copy entire path of the '.naav' file from data folder which needs to be executed
-
Execute the following command to get the desired output for the NAAV code
python executor.py <file_path>
For example: python executor.py C:\MS_documents\ASU_Atharva_Date\Spring_2024\SER502-NAAV-Team17\data\boolean.naav