Lines Matching full:parsers
1 //! Combinators which take one or more parsers and attempts to parse successfully with at least one
14 /// Takes a number of parsers and tries to apply them each in order.
15 /// Fails if all the parsers fails or if an applied parser fails after it has committed to its
150 // If offset != 1 then the nested parser is a sequence of parsers where 1 or
151 // more parsers returned `PeekOk` before the parser finally failed with
152 // `PeekErr`. Since we lose the offsets of the nested parsers when we merge
182 // cannot commit to so leave the state as `Peek` to retry all the parsers
292 // the offset to the detriment for all the other parsers.
423 // First add the errors of all the preceding parsers which did not in slice_parse_mode()
424 // have a sequence of parsers returning `PeekOk` before failing in slice_parse_mode()
521 /// Takes a tuple, a slice or an array of parsers and tries to apply them each in order.
522 /// Fails if all the parsers fails or if an applied parser consumes input before failing.
529 /// // `choice` is overloaded on tuples so that different types of parsers can be used
541 /// // If arrays or slices are used then all parsers must have the same type
547 /// // Use 'attempt' to make failing parsers always act as if they have not committed any input
595 /// If you are looking to chain 3 or more parsers using `or` you may consider using the
616 /// // Use 'attempt' to make failing parsers always act as if they have not committed any input