frisby

Linear time composable parser for PEG grammars

http://repetae.net/computer/frisby/

Version on this page:0.2.4
LTS Haskell 22.36:0.2.5
Stackage Nightly 2024-10-03:0.2.5
Latest on Hackage:0.2.5

See all snapshots frisby appears in

BSD-3-Clause licensed by John Meacham
Maintained by Ben Gamari
This version can be pinned in stack with:frisby-0.2.4@sha256:3c35d3374c7a347d12953b7450638e765e72b27a6b96d321b01c21d3832b8f06,1850

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.

Changes

Changelog for frisby package

0.2.4

  • Compability with GHC 8.10

0.2.3

  • Compatibility with MonadFail proposal

0.2.2

  • Compatibility with Semigroup/Monoid proposal

Prehistory

There is only darkness.