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)
returnsx
terminated!(X, closing)
returnsx
delimited(opening, X, closing)
returnsx
separated_list(sep, X)
returns aVec<X>
separated_nonempty_list(sep, X)
returns aVec<X>
of at list one element
๐ Changed
- ๐
many0!
andmany1!
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