Parses and returns a letter or digit ('0' - '9').
Parses and returns a letter or digit ('0' - '9').
A parser which returns a tuple of results produced by parsers p1
and p2
.
A parser which returns a tuple of results produced by parsers p1
and p2
.
Parses and returns any character.
Parses and returns any character.
Parses open
then applies p
followed by close
.
Parses open
then applies p
followed by close
. Returns result of the p
parser.
Parses and returns the specified character.
Parses and returns the specified character.
Applies the parsers in the given list in order until one of them succeeds.
Applies the parsers in the given list in order until one of them succeeds. Returns the result of a parser which succeeded.
Applies the given parsers in order until one of them succeeds.
Applies the given parsers in order until one of them succeeds. Returns the result of a parser which succeeded.
Applies parser p
exactly n
times.
Applies parser p
exactly n
times. Returns empty list if the n
is less than or equals to zero,
otherwise returns a list of n
values produced by parser p
.
Parses a '\r' character followed by a newline character.
Parses a '\r' character followed by a newline character. Returns a newline character.
Skip zero or more spaces, tabs and end of lines in any combination.
Skip zero or more spaces, tabs and end of lines in any combination.
Parses and returns a digit ('0' - '9').
Parses and returns a digit ('0' - '9').
The parser which succeeds if the end of line occurs.
The parser which succeeds if the end of line occurs. Returns a newline character.
Applies parser then
and returns its result only if the parser if
succeeds, otherwise the result
of the parser if
is returned.
Applies parser then
and returns its result only if the parser if
succeeds, otherwise the result
of the parser if
is returned.
Applies parser then
and returns its result only if the parser if
succeeds, otherwise the result
of the parser else
is returned.
Applies parser then
and returns its result only if the parser if
succeeds, otherwise the result
of the parser else
is returned.
Parses and returns a letter.
Parses and returns a letter.
Parses and returns a lower case letter.
Parses and returns a lower case letter.
Applies the given parser zero or more times.
Applies the given parser zero or more times.
Applies the given parser one or more times.
Applies the given parser one or more times.
Applies parser p
zero or more times until parser end
succeeds.
Applies parser p
zero or more times until parser end
succeeds. Returns the list of values
produced by p
.
Parses and returns a newline character.
Parses and returns a newline character.
Parses and returns any character that is NOT present in the given list.
Parses and returns any character that is NOT present in the given list.
Parses and returns any character that is NOT present in the given string.
Parses and returns any character that is NOT present in the given string.
Parses and returns any character that is present in the given list.
Parses and returns any character that is present in the given list.
Parses and returns any character that is present in the given string.
Parses and returns any character that is present in the given string.
Tries to apply parser p
and returns the value a
if the operation was unsuccessful.
Tries to apply parser p
and returns the value a
if the operation was unsuccessful.
Tries to apply parser p
.
Tries to apply parser p
. Returns Some containing a result or None if the parsing failed.
Applies the given parser once and ignores its result regardless of whether it was a success or not.
Applies the given parser once and ignores its result regardless of whether it was a success or not.
Returns the result produced by the parser p1
if it succeeds, otherwise returns
the result of the parser p2
instead.
Returns the result produced by the parser p1
if it succeeds, otherwise returns
the result of the parser p2
instead.
The parser which succeeds for a string that matches the given regular expression.
The parser which succeeds for a string that matches the given regular expression. Returns a string that matched the regular expression.
The parser which succeeds for any character that satisfies the given predicate.
The parser which succeeds for any character that satisfies the given predicate. Returns the parsed character.
Parses zero or more occurrences of parser p
separated by sep
.
Parses zero or more occurrences of parser p
separated by sep
.
Returns a list of values produced by parser p
.
Parses one or more occurrences of parser p
separated by sep
.
Parses one or more occurrences of parser p
separated by sep
.
Returns a list of values produced by parser p
.
Applies the given parser zero or more times ignoring its result.
Applies the given parser zero or more times ignoring its result.
Applies the given parser one or more times ignoring its result.
Applies the given parser one or more times ignoring its result.
Parses and returns a whitespace character.
Parses and returns a whitespace character.
Skips zero or more whitespace characters.
Skips zero or more whitespace characters.
The parser which succeeds for a string that equals to the given string.
The parser which succeeds for a string that equals to the given string. Returns the parsed string.
Transforms the given parser which produces a list of characters into the parser which returns a string instance instead.
Transforms the given parser which produces a list of characters into the parser which returns a string instance instead.
Parses and returns a tab character.
Parses and returns a tab character.
Applies the given parser and returns its result while preserving the initial position, input and context.
Applies the given parser and returns its result while preserving the initial position, input and context.
Parses and returns an upper case letter.
Parses and returns an upper case letter.