machines-attoparsec-0: Parse machines streams with attoparsec parsers.
Data.Machine.Attoparsec.ByteString
parse :: forall m a. Monad m => Parser a -> MachineT m (Stack ByteString) (Either String a) Source #
Parse one a out of a ByteString stream, or an error when a parser fails. - The stack allows one to have a sequence of parsers that pick up where the last left off.
a
many :: forall m a. Monad m => Parser a -> MachineT m (Stack ByteString) (Either String a) Source #
Parse a continuous stream of as out of a ByteStrings stream.