This program provides compiler utility tools.
- Check if the grammar contains left recursion for any production.
- Eliminate the left recursions if any.
- Find the First of each Non Terminal in the given grammar.
- Find the Follow of each Non Terminal in the given grammar.
python3 compilerUtils.py
The program is evident. However there is a format to enter the productions. Refer to the example here:
A -> A B d | A a
A -> c
B -> b | EPSILON
NOTE
- There must be a space after each symbol or separator in the productions.
- Use 'EPSILON' to represent empty string in the production.
- The program doesnt check for validity of grammar.