parsix

Parser combinators with slicing, error recovery, and syntax highlighting https://github.com/ollef/parsix

Latest on Hackage:0.1.0.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Olle Fredriksson

parsix Build Status Hackage

Adventures in parser combinators.

This is basically a Trifecta clone, i.e. an implementation of the parsers interface, with the following differences:

  • Add error recovery (see withRecovery) based on Megaparsec’s.
  • Use the text library instead of bytestring for input strings. This means that the library interfaces better with the rest of the Haskell library ecosystem and that slicing (see sliced) returns Text.
  • Use the prettyprinter library for pretty-printing.
  • Actually implement the highlighting interface from parsers. This means that error messages that show input code are syntax highlighted.

Changes

0.1.0.2

  • Remove unused bytestring dependency
  • Add lower bounds for all dependencies

0.1.0.1

  • Change module re-export method to get Haddock to generate docs for Text.Parsix

0.1.0.0

  • Initial release
comments powered byDisqus