This is a project containing various codes related to LR(0) parsing along with the code for firstset and followset. The folder grammar contains some sample grammars for testing. You can also input your own grammar rules.
- finalclosures.py - Find the closures for the various itemsets along with their transitions.
- gen_table.py - Generate LR(0) table. [Work under progress. Would be happy if someone would like to contribute]
- parse_input.py- Check for acceptance of a string depending on the grammar rule
Please create an issue if you find some error and the code. Also if you would like to provide solution to the issue, feel free to send a pull request.