- Operative System: Windows 11 Home Version 23H2
- Programming Language Used: Python 3.11
- Tools Used in the Implementation: No external libraries were used, code was inspired by Geeks For Geeks
Using a python IDE you can open the main.py file and click on the run button, or alternatively, by using the CMD you can type py main.py to start running the program. The program won't give an immediate response but it will wait patiently for user input, the input instructions are as follows:
- An integer for the total number of grammars to be analyzed
- Two integers (separated by a space), the first integer is the number of rules the grammar has, the second one is the number of strings to process
- The rules of the grammar, this step is repeated as many times as the first integer in step 2 dictates.
- A chain to be analyzed, this step is repeated as many times as the second integer in step 2 dictates. The program will automatically reply yes or no to each chain entered
- If the integer in the first step is above 1, repeat step 2 onwards until the program finishes. The program will finish once it has exhausted the number of grammars stipulated in step 1