Releases: J-F-Liu/pom
Releases · J-F-Liu/pom
3.4.0
3.1.0
3.0.3
3.0.0
- 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.
- Toolchain switched to Rust 2018 stable channel.
1.1.0
2.0.0
2.0.0-beta
- Add
p.many(range)
, like p.repeat(range) but return slice instead of vector. - Add
p.cache()
, can be used to remember parser output result in case of potential backtracking.
1.0.0
2.0.0-alpha
- Greatly improved performance.
- Parser as trait, Combinator as wrapper struct.
- Apply zero-copy strategy.