nom v0.2.2 Release Notes

Release Date: 2015-04-12 // about 9 years ago
  • Thanks

    • @filipegoncalves and @thehydroimpulse for debugging an infinite loop in many0 and many1
    • ๐Ÿ“œ @thehydroimpulse for suggesting public named parsers
    • @skade for removing the dependency on the collections gate

    โž• Added

    • named! can now declare public functions like this: named!(pub tst, tag!("abcd"));
    • pair!(X,Y) returns a tuple (x, y)
    • separated_pair!(X, sep, Y) returns a tuple (x, y)
    • preceded!(opening, X) returns x
    • terminated!(X, closing) returns x
    • delimited(opening, X, closing) returns x
    • separated_list(sep, X) returns a Vec<X>
    • separated_nonempty_list(sep, X) returns a Vec<X> of at list one element

    ๐Ÿ”„ Changed

    • ๐Ÿ“œ many0! and many1! forbid parsers that do not consume input
    • is_a!, is_not!, alpha, digit, space, multispace will now return an error if they do not consume at least one byte