kangaroo: Binary parsing with random access.

[ bsd3, library, parsing ] [ Propose Tags ]

Binary parsing with random access. The target file to be parsed is loaded into memory at the start (represented as an IOUArray Int Word8). Parsing proceeds by moving a cursor around, the array is left intact. This allows _jumping_ inside the file and contrasts with other parser combinators that progress via consuming input.

* Caveat * - the above of course means that the target file is obliged to be small enough to fit into memory.

** MAJOR CAVEAT ** - kangaroo is somewhat half-baked at the moment - the parsing machinery seems good but the combinators and primitive parsers need more work. I've only released it on Hackage because I'm now using it with Hurdle which was already on Hackage.

Currently kangaroo is twinned with its own library of formatting combinators, at some point this is likely to be put into its own package


  1. 3.0 Documented the primitive parsers. char renamed anyChar to match Parsec's convention. Rationalized exports from ParseMonad module.

  2. 2.0 Changes to ParseMonad - parsing within a region simplified, temporarily added JoinPrint.

  3. 1.0 First version.

Versions 0.1.0, 0.2.0, 0.3.0, 0.4.0
Dependencies array (>= && <0.4), base (<5) [details]
License BSD-3-Clause
Copyright Stephen Tetley <stephen.tetley@gmail.com>
Maintainer Stephen Tetley <stephen.tetley@gmail.com>
Category Parsing
Home page http://code.google.com/p/copperbox/
Uploaded by StephenTetley at Sun Feb 7 21:22:46 UTC 2010
Distributions NixOS:0.4.0
Downloads 1541 total (8 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees