parsec1: Portable monadic parser combinators
Parsec is designed from scratch as an industrial-strength parser library. It is simple, safe, well documented (on the package homepage), has extensive libraries and good error messages, and is also fast.
This package is the core haskell98 part of the parsec2 package, intended to preserve its simplicity and portability.
Note, that the module names overlap with those of parsec from the Haskell Platform, therefore I do not recommend to unconditionally use parsec1 (or parsec2 and parsec3) as dependency in cabal files of packages for hackage. But you may want to develop your code using these limited and portable parsec1 functions and finally change the dependency from parsec1 to parsec in order to avoid module ambiguities for users just installing your package. Your own module ambiguities are best avoided by hiding packages.
This version only differs from the pervious one by improved error messages for try (positions are not reset), tokens and thus string (longer unexpected strings are now reported to match the error position). The notFollowedBy-parser was generalized (as in parsec-3) so characters in messages are now shown in single instead of double quotes. Also (as since parsec-3.1.2) lookAhead no longer consumes tokens on success (so that the many-parser can detect this).
Modules
[Index]
Downloads
- parsec1-1.0.0.6.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 1.0.0.0, 1.0.0.1, 1.0.0.2, 1.0.0.3, 1.0.0.4, 1.0.0.5, 1.0.0.6, 1.0.0.7, 1.0.0.8 |
---|---|
Dependencies | base (<5) [details] |
License | BSD-3-Clause |
Author | Daan Leijen <daan@cs.uu.nl> |
Maintainer | chr.maeder@web.de |
Revised | Revision 1 made by ChristianMaeder at 2020-02-10T12:12:19Z |
Category | Parsing |
Home page | http://www.cs.uu.nl/~daan/parsec.html |
Uploaded | by ChristianMaeder at 2015-02-16T14:06:36Z |
Distributions | NixOS:1.0.0.8 |
Reverse Dependencies | 3 direct, 12 indirect [details] |
Downloads | 6017 total (30 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2015-02-16 [all 1 reports] |