Module

Bookhound.Parser

Package
purescript-bookhound
Repository
albertprz/purescript-bookhound

#ParseResult Source

#Input Source

type Input = String

#parse Source

parse :: forall a. Parser a -> Input -> ParseResult a

#mkParser Source

mkParser :: forall a. (Input -> ParseResult a) -> Parser a

#runParser Source

runParser :: forall a. Parser a -> Input -> Either (Array ParseError) a

#andThen Source

andThen :: forall a. Parser String -> Parser a -> Parser a

#exactly Source

exactly :: forall a. Parser a -> Parser a

#lookAhead Source

lookAhead :: forall a. Parser a -> Parser a

#notFollowedBy Source

notFollowedBy :: forall a. Parser a -> Parser Unit

#both Source

both :: forall a. Parser a -> Parser a -> Parser a

#choice Source

choice :: forall f a. Foldable f => f (Parser a) -> Parser a

#anyOf Source

anyOf :: forall f a. Foldable f => f (Parser a) -> Parser a

#allOf Source

allOf :: forall f a. Foldable f => f (Parser a) -> Parser a

#except Source

except :: forall a. Parser a -> Parser a -> Parser a

#satisfy Source

satisfy :: forall a. (a -> Boolean) -> Parser a -> Parser a

#withTransform Source

withTransform :: forall a. (forall b. Parser b -> Parser b) -> Parser a -> Parser a

#withError Source

withError :: forall a. String -> Parser a -> Parser a

#withErrorN Source

withErrorN :: forall a. Int -> String -> Parser a -> Parser a