Skip to content

SheathedSharp/lr0-parser-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LR(0) Parser Implementation

This is a Python implementation of an LR(0) parser with a simple GUI interface.

  1. You do not need to install any external libraries.
  2. You can run the project by typing python main.py
  3. after running the project, you should select grammar1.txt in the src folder.
  4. You can also write your own grammar and use this project to perform LR(0) analysis on it.

Wish you a happy use~

Screenshots

Grammar1(Augmented Grammar) screenshot

Main program page screenshot

View State Sets screenshot

View State Table screenshot

Analyze string

About

A lightweight LR(0) parser implementation in Python with state set visualization and parsing table generation. Supports custom grammar input and string analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages