Skip to content

t0yv0/haskell-earley

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hasekll-earley

The code implements Earley parsing algorithm in Haskell 1. Context-free grammars and processing rules are specified directly in Haskell, without templates or other forms of pre-processing, using the monadic syntax with the DoRec extension. Programming in this style feels like using parser combinators but does not prevent global grammar analysis.

Warning: This code is alpha quality, as I have not yet convinced myself that the implementation is correct, especially with handling epsilon rules. Nor did I do any complexity analysis yet, so it may be performing worse advertised (Earley is supposed to be cubic).

About

Earley parsing algorithm implementation in Haskell including a CFG definition API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published