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 open
then applies p
followed by close
.
Parses open
then applies p
followed by close
. Returns result of the p
parser.
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
.
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.
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
.
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.
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.
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.