NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2937 most downloaded on crates.io
PEG parser combinators using operator overloading without macros.
Latest stable
3.4.0
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 2.8 years
Most releases are documented
notes for 16 of 24 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
26 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Remove extra type parameter of utf8::end(), skip() and list()
Nothing published for this version
Nothing published for this version
Expose the method field in Parser to allow custom combinators
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Expose the method field in Parser to allow custom combinators
Input symbol's trait bounds change Copy to Clone .
Input symbol's trait bounds change Copy to Clone.
Nothing published for this version
Nothing published for this version
3.0 is based on 1.0 and changed:
pub struct Parser<'a, I, O> {
method: Box<Fn(&mut Input<I>) -> Result<O> + 'a>,
}to
pub struct Parser<'a, I, O> {
method: Box<Fn(&'a [I], usize) -> Result<(O, usize)> + 'a>,
}This is like 2.0 version, but avoids potential issue such as #23.
pub struct Parser<'a, I, O> {
method: Box<Fn(&mut Input<I>) -> Result<O> + 'a>,
}
to
pub struct Parser<'a, I, O> {
method: Box<Fn(&'a [I], usize) -> Result<(O, usize)> + 'a>,
}
This is like 2.0 version, but avoids potential issue such as #23.
Nothing published for this version
Add p.expect(_), mark parser as expected, abort early when failed in ordered choice.
Add p.many(range) , like p.repeat(range) but return slice instead of vector.
p.many(range), like p.repeat(range) but return slice instead of vector.p.cache(), can be used to remember parser output result in case of potential backtracking.Parser as trait, Combinator as wrapper struct.
Add p.expect(_), mark parser as expected, abort early when failed in ordered choice.
Nothing published for this version
Remove range() function, one_of() and none_of() can accept range literal as well.
Can build on Rust stable 1.15.0.
p.repeat(n) repeat p exactly n times.Thanks for Jeremy Fitzhardinge's contribution.
Nothing published for this version
Add p.name(_), give parser a name to identify parsing errors.
p.name(_), give parser a name to identify parsing errors.p.convert(f), convert parser result to desired value, fail in case of conversion error.list(p,s) backtrack to the last successfully matched element.Add p.pos() to get input position after matching p.
p.pos() to get input position after matching p.pom::Parser<I, O> as alias of pom::parser::Parser<'static, I, O>.Nothing published for this version
- Rename eof() to end(). - Rename term() to sym(). - Add Benchmark and document.
Add p >> q operation, where _q_ depends on the result of _p_.
Add p >> q operation, where q depends on the result of p.
Input has two impls: DataInput and TextInput.
Input is a trait.Input has two impls: DataInput and TextInput.seq(), one_of() and none_of() can accept either string literals or byte string literals.
Add list(p,s) to parse separated list.
Add list(p,s) to parse separated list.
Ingenious design and implementation of parser combinators.
Ingenious design and implementation of parser combinators.
One column per quarter.