frisby

Linear time composable parser for PEG grammars

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

Version on this page:0.2
LTS Haskell 22.40:0.2.5
Stackage Nightly 2024-11-05:0.2.5
Latest on Hackage:0.2.5

See all snapshots frisby appears in

BSD-3-Clause licensed by John Meacham
Maintained by John Meacham, Chris Done
This version can be pinned in stack with:frisby-0.2@sha256:fd4609d36c8150929840a25f198d5501b4f178bcc8250e267b3dea43ecb0b652,1748

Module documentation for 0.2

Depends on 4 packages(full list with versions):

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.