Skip to content

The-H4CKER/earley-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Earley Parser in Python

A concise implementation of the Earley parsing algorithm in Python, capable of parsing any context-free grammar (CFG), including ambiguous and left-recursive grammars.

Features

  • Parses any CFG using the Earley algorithm
  • Handles ambiguous and left-recursive grammars
  • Outputs a detailed parsing chart with edge histories
  • Includes example grammars and test sentences

Requirements

Install requirements with:

pip install tabulate

Usage

Run the parser with:

python earley-parser.py

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Implementation of Earley Parser in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages