Skip to content

dgendill/purescript-parsing-extras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

purescript-parsing-extras

Extra parsing functions to be used with purescript-parsing. Pull requests welcome.

Module Text.Parsing.Extras

fromCharList

fromCharList :: forall f. Foldable f => f Char -> String

alphaNumString

alphaNumString :: forall m. Monad m => ParserT String m String

Parse a single alphanumeric string

betweenQuotes

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

Parse all characters between single or double quotes

betweenDoubleQuotes

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

Parse all characters between double quotes

betweenSingleQuotes

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

Parse all characters between single quotes

parseArray

parseArray :: forall s m a. StringLike s => Monad m => ParserT s m a -> ParserT s m (Array a)

Parse an array of items embed within braces and seperated by commas. Whitespace is allowed between braces, items, and commas, e.g. [ whitespace (item) whitespace , whitespace (item) whitespace ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published