Simple, efficient combinator parsing that can consume lazy
ByteString strings, loosely based on the Parsec library.
This is essentially the same code as in the
module, only with a
parse function that can consume a lazy
ByteString incrementally, and a
Result type that does not allow
more input to be fed in. Think of this as suitable for use with a
lazily read file, e.g. via
Note: The various parser functions and combinators such as
string still expect strict
ByteString parameters, and
ByteString results. Behind the scenes, strict
ByteString values are still used internally to store parser
input and manipulate it efficiently.
The result of a parse.
|Fail ByteString [String] String|
The parse failed. The
|Done ByteString r|
The parse succeeded. The
Run a parser and print its result to standard output.