Skip to content

CoreyWarren/LR-0-

 
 

Repository files navigation

LR0 Parsing Table

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

To Contribute

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.

About

This contains various codes related to LR(0)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%