Parsing.String.Basic
- Package
- purescript-parsing
- Repository
- purescript-contrib/purescript-parsing
Basic String
parsers derived from primitive String
parsers.
unicode dependency
Some of the parsers in this module depend on the unicode package. The unicode package is large; about half a megabyte unminified. If code which depends on parsing is “tree-shaken” “dead-code-eliminated,” then all of the unicode package will be eliminated.
The unicode-dependent parsers in this module will call functions which use large lookup tables from the unicode package. Using any of these unicode-dependent parsers may result in a minified, dead-code-eliminated bundle size increase of over 100 kilobytes.
#intDecimal Source
intDecimal :: forall m. ParserT String m Int
Parser based on the Data.Int.fromString function.
This should be the inverse of show :: Int -> String
.
Examples of strings which can be parsed by this parser:
"3"
"-3"
"+300"
#whiteSpace Source
whiteSpace :: forall m. ParserT String m String
Match zero or more whitespace characters satisfying
Data.CodePoint.Unicode.isSpace
. Always succeeds.
#skipSpaces Source
skipSpaces :: forall m. ParserT String m Unit
Skip whitespace characters and throw them away. Always succeeds.