Name | NIM | Class |
---|---|---|
I Gede Arya Raditya Parameswara | 13520036 | K01 |
Muhammad Garebaldhie Er Rahman | 13520029 | K01 |
Adiyansa Prasetya Wicaksana | 13520044 | K01 |
Name | Link |
---|---|
Specification | Specification Link |
Groups | Group Spreadsheet |
This Programs allows you to validate your python file and give verdict, whether it accepted or not the program will print the result into your terminal.
- Make sure you have python installed in your computer
git clone https://github.com/gedearyarp/TUBES-TBFO.git
- Create file that you want to validate and put it into
test
folder cd src
- Run main.py with the argument
python main.py test/<filename.py>
and you will get the verdict of your file!
- The program will read the file through the end of the file
- After read all the lines the program will transform all of the word into token
- After the token are created, we use CNF in the grammar to validate it
- If the token follows the rule of the CNF. So whether the program is valid or not it will print the verdict!