Expand description
Combinators which take one or more parsers and applies them repeatedly.
Structs§
Functions§
- Parses
p
1 or more times separated byop
. The value returned is the one produced by the left associative application of the function returned by the parserop
. - Parses
p
one or more times separated byop
. The value returned is the one produced by the right associative application of the function returned byop
. - Parses
parser
from zero up tocount
times. - Parses
parser
frommin
tomax
times (includingmin
andmax
). - Parses an escaped string by first applying
parser
which accept the normal characters which do not need escaping. Onceparser
can not consume any more input it checks if the next token isescape
. If it is thenescape_parser
is used to parse the escaped character and then resumes parsing usingparser
. Ifescape
was not found then the parser finishes successfully. - Parses
p
zero or more times returning a collection with the values fromp
. - Parses
p
one or more times returning a collection with the values fromp
. - Skips input until
end
is encountered orend
indicates that it has committed input before failing (attempt
can be used to continue skipping even ifend
has committed input) - Parses
parser
zero or more time separated byseparator
, returning a collection with the values fromp
. - Parses
parser
one or more time separated byseparator
, returning a collection with the values fromp
. - Parses
parser
zero or more times separated and ended byseparator
, returning a collection with the values fromp
. - Parses
parser
one or more times separated and ended byseparator
, returning a collection with the values fromp
. - Parses
parser
from zero up tocount
times skipping the output ofparser
. - Parses
parser
frommin
tomax
times (includingmin
andmax
) skipping the output ofparser
. - Parses
p
zero or more times ignoring the result. - Parses
p
one or more times ignoring the result. - Skips input until
end
is encountered orend
indicates that it has committed input before failing (attempt
can be used to make it look like it has not committed any input) - Takes input until
end
is encountered orend
indicates that it has committed input before failing (attempt
can be used to make it look like it has not committed any input)