- Santiago Alvarez Diaz
- Juan Carlos Citelly Guzmán
Code of the final project for the subject "Formal Languages and Compilers" at EAFIT university. This project is based on the algorithms to compute the First and Follow sets for nonterminal symbols in a context-free grammar.
- The chosen language was Python.
- The program was executed on Windows OS.
- The IDE we used was Pycharm.
- Tool Python3.
Follow these instructions to run the program:
-
Install Python.
-
Download the main.py.
-
Go to the project directory where you stored main.py.
-
Run the main.py file:
py main.py
-
Enter the number of grammars to process.
-
Enter the number of rules for the grammar.
-
Enter the production rules, for example.
S AB A aA a B bBc bc
-
The program would return the "first" and "follow" result of the grammar.