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 m s. StringLike s => Monad m => ParserT s m Unit

Match end-of-file.

#string Source

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

Match the specified string.

#anyChar Source

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

Match any character.

#satisfy Source

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

Match a character satisfying the specified predicate.

#char Source

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

Match the specified character

#whiteSpace Source

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

Match zero or more whitespace characters.

#skipSpaces Source

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

Skip whitespace characters.

#oneOf Source

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

Match one of the characters in the array.

#noneOf Source

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

Match any character not in the array.