chomp v0.2.0 Release Notes
Release Date: 2015-12-16 // over 8 years ago-
โ Added
- ๐
parse_only
: Runs a given parser on a finite input. - ๐
combinators::bounded::many
: combinator applying a parser within a range bound, storing the data in aT: FromIterator
. - ๐
combinators::bounded::skip_many
: combinator applying a parser within a range bound, throwing away all produced data. - ๐
combinators::bounded::many_till
: combinator applying a parser within a range bound until a second parser succeeds. If the second parser does not succeed within the given range the parsing will fail. The matches from the first parser will be stored in aT: FromIterator
.
๐ Changes
count
,many1
,sep_by1
now properly usesIterator::size_hint
- Backwards-incompatible:
many
,many1
,sep_by
,sep_by1
,skip_many
,skip_many1
are no longer considered incomplete if they end with a partial match as long as they have managed to satisfy the minimum count of matches. - Backwards-incompatible:
buffer::ParseError
has been renamed tobuffer::StreamError
to not conflict with the simpleParseError
. - Slightly improved performance for
count
,many
,many1
,sep_by
,sep_by1
.
๐ Deprecated
Input::new
Use
parse_only
orbuffer::SliceStream
to parse a slice instead. For any advanced usage create anInput
usingprimitives::input::new
.- ๐
ParseResult::unwrap
,ParseResult::unwrap_err
,ParseResult::expect
Use
parse_only
or thebuffer::Stream
implementations to obtain aResult
instead of acting on theParseResult
directly. - ๐