hops-0.7.2: Handy Operations on Power Series

CopyrightAnders Claesson 2015
MaintainerAnders Claesson <anders.claesson@gmail.com>
Safe HaskellSafe
LanguageHaskell98

HOPS.Utils.Parse

Description

License : BSD-3

Synopsis

Documentation

parens :: Parser a -> Parser a Source #

Parse p enclosed in parenthesis.

oneOf :: ByteString -> Parser ByteString Source #

Parse one of the words in the given ByteString.

chainl1 :: (Monad f, Alternative f) => f a -> f (a -> a -> a) -> f a Source #

Parse one or more occurrences of p, separated by an operator. Returns a value obtained by a left associative application.

parse_ :: Parser t -> ByteString -> Maybe t Source #

Run a parser.