nom v1.2.0 Release Notes
Release Date: 2016-02-08 // about 8 years ago-
Thanks
- ๐ @zentner-kyle for type inference fixes
- ๐ @joelself for his work on
&str
parsing and method parsers - @GuillaumeGomez for implementing methods on
IResult
- @dirk for the
alt_complete!
combinator - ๐จ @tstorch for a lot of refactoring work and unit tests additions
- ๐ @jansegre for the hex digit parsers
- ๐ @belgum for some documentation fixes
- ๐ @lwandrebeck for some documentation fixes and code fixes in
hex_digit
โ Added
take_until_and_consume_s!
for consumption of string data until a tag- more function patterns in
named!
. The error type can now be specified alt_complete!
works like thealt!
combinator, but tries the next branch if the current one returnedIncomplete
, instead of returning directly- โ more unit tests for a lot of combinators
- ๐ hexadecimal digit parsers
- ๐ the
tuple!
combinator takes a list of parsers as argument, and applies them serially on the input. If all of them are successful, it willr eturn a tuple accumulating all the values. This combinator will (hopefully) replace most uses ofchain!
- parsers can now be implemented as a method for a struct thanks to the
method!
,call_m!
andapply_rf!
combinators
๐ Fixed
- there were type inference issues in a few combinators. They will now be easier to compile
peek!
compilation with bare functions- ๐
&str
parsers were splitting data at the byte level, not at the char level, which can result in inconsistencies in parsing UTF-8 characters. They now use character indexes - some method implementations were missing on
IResult<I,O,E>
(with specified error type instead of implicit)