SARS is a simple programming language developed to compute arithmetic operations, conditions, and loops.
- Sumeet Suryawanshi
- Akash Rana
- Rohan Mathur
- Sadhanand Srinivasan
- SWI-Prolog
- Python3
- VS Code
- Clone the git repository into your local machine
- Install python 3.12.3 and SWI-Prolog 9.2.4-1 on your local machine
- SWI-Prolog Download (click here)
- Python3 Download (click here)
- Sample test programs are saved in the 'data' folder with .sars extension
- Open the terminal and execute the below command
bash swipl
- Enter the path to the .pl file
?- ['/Users/user/Desktop/SER502-SARS-Team1/src/SARS.pl'].
- Run the sample program by parsing tokens through a lexer
?- sars('/Users/user/Desktop/SER502-SARS-Team1/src/Lexer.py','/Users/user/Desktop/SER502-SARS-Team1/data/findFactorial.sars').