Attoparsec is a parsing combinator library that is "aimed particularly at dealing efficiently with network protocols and complicated text/binary file formats".
Attoparsec offers not only speed and efficiency, but backtracking and incremental input.
Its API closely mirrors that of another parser combinator library, Parsec.
There are submodules for compatibility with ByteString
, Text
and Char8
. Use of the OverloadedStrings
language extension is recommended.
Type | Detail |
---|---|
Parser i a | The core type for representing a parser. i is the string type, e.g. ByteString . |
IResult i r | The result of a parse, with Fail i [String] String , Partial (i -> IResult i r) and Done i r as constructors. |