Expand description
Combinators which take one or more parsers and applies them repeatedly.
Structs§
- Chainl1
- Chainr1
- Count
- Count
MinMax - Escaped
- Escaped
State - Iter
- Iterate
- Many
- Many1
- Repeat
Until - SepBy
- SepBy1
- SepEnd
By - SepEnd
By1 - Skip
Count - Skip
Count MinMax - Skip
Many - Skip
Many1 - Skip
Repeat Until - Skip
Until - Take
Until
Functions§
- chainl1
- Parses
p1 or more times separated byop. The value returned is the one produced by the left associative application of the function returned by the parserop. - chainr1
- Parses
pone or more times separated byop. The value returned is the one produced by the right associative application of the function returned byop. - count
- Parses
parserfrom zero up tocounttimes. - count_
min_ max - Parses
parserfrommintomaxtimes (includingminandmax). - escaped
- Parses an escaped string by first applying
parserwhich accept the normal characters which do not need escaping. Onceparsercan not consume any more input it checks if the next token isescape. If it is thenescape_parseris used to parse the escaped character and then resumes parsing usingparser. Ifescapewas not found then the parser finishes successfully. - iterate
- many
- Parses
pzero or more times returning a collection with the values fromp. - many1
- Parses
pone or more times returning a collection with the values fromp. - repeat_
skip_ until - Skips input until
endis encountered orendindicates that it has committed input before failing (attemptcan be used to continue skipping even ifendhas committed input) - repeat_
until - sep_by
- Parses
parserzero or more time separated byseparator, returning a collection with the values fromp. - sep_by1
- Parses
parserone or more time separated byseparator, returning a collection with the values fromp. - sep_
end_ by - Parses
parserzero or more times separated and ended byseparator, returning a collection with the values fromp. - sep_
end_ by1 - Parses
parserone or more times separated and ended byseparator, returning a collection with the values fromp. - skip_
count - Parses
parserfrom zero up tocounttimes skipping the output ofparser. - skip_
count_ min_ max - Parses
parserfrommintomaxtimes (includingminandmax) skipping the output ofparser. - skip_
many - Parses
pzero or more times ignoring the result. - skip_
many1 - Parses
pone or more times ignoring the result. - skip_
until - Skips input until
endis encountered orendindicates that it has committed input before failing (attemptcan be used to make it look like it has not committed any input) - take_
until - Takes input until
endis encountered orendindicates that it has committed input before failing (attemptcan be used to make it look like it has not committed any input)