Linear time composable parser for PEG grammars
|LTS Haskell 20.15:||0.2.4|
|Stackage Nightly 2023-03-26:||0.2.4|
|Latest on Hackage:||0.2.4|
Maintained by Ben Gamari
This version can be pinned in stack with:
Module documentation for 0.2.4
frisby is a parser library that can parse arbitrary PEG grammars in linear time. Unlike other parsers of PEG grammars, frisby need not be supplied with all possible rules up front, allowing composition of smaller parsers.
PEG parsers are never ambiguous and allow infinite lookahead with no backtracking penalty. Since PEG parsers can look ahead arbitrarily, they can easily express rules such as the maximal munch rule used in lexers, meaning no separate lexer is needed.
In addition to many standard combinators, frisby provides routines to translate standard regex syntax into frisby parsers.
- Compability with GHC 8.10
- Compatibility with MonadFail proposal
- Compatibility with Semigroup/Monoid proposal
There is only darkness.