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 the alt! combinator, but tries the next branch if the current one returned Incomplete, 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 of chain!
    • parsers can now be implemented as a method for a struct thanks to the method!, call_m! and apply_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)