Module

Text.Parsing.Parser.String

Package
purescript-parsing
Repository
purescript-contrib/purescript-parsing

Primitive parsers for working with an input stream of type String.

#StringLike Source

class StringLike s  where

This class exists to abstract over streams which support the string-like operations which this modules needs.

Members

Instances

#eof Source

eof :: forall s m. StringLike s => Monad m => ParserT s m Unit

Match end-of-file.

#string Source

string :: forall s m. StringLike s => Monad m => String -> ParserT s m String

Match the specified string.

#anyChar Source

anyChar :: forall s m. StringLike s => Monad m => ParserT s m Char

Match any character.

#satisfy Source

satisfy :: forall s m. StringLike s => Monad m => (Char -> Boolean) -> ParserT s m Char

Match a character satisfying the specified predicate.

#char Source

char :: forall s m. StringLike s => Monad m => Char -> ParserT s m Char

Match the specified character

#whiteSpace Source

whiteSpace :: forall s m. StringLike s => Monad m => ParserT s m String

Match a whitespace character.

#skipSpaces Source

skipSpaces :: forall s m. StringLike s => Monad m => ParserT s m Unit

Skip whitespace characters.

#oneOf Source

oneOf :: forall s m. StringLike s => Monad m => Array Char -> ParserT s m Char

Match one of the characters in the array.

#noneOf Source

noneOf :: forall s m. StringLike s => Monad m => Array Char -> ParserT s m Char

Match any character not in the array.