commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
782f05ef6fa4c55be3feecc5cbabcaa8e28a5b41
Markus Westerlind
2018-11-06T18:32:29
(cargo-release) start next development iteration 3.6.3-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 0ea88d6..9557a17 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.6.2" +version = "3.6.3-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
5865775c3097d9b5821eff8e9527084e0d610ad8
Markus Westerlind
2018-11-06T18:31:57
(cargo-release) version 3.6.2
diff --git a/Cargo.toml b/Cargo.toml index 776b435..0ea88d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.6.2-alpha.0" +version = "3.6.2" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
1943cd890fbbe3a18fbc3aeee0929e72570f9a37
Markus Westerlind
2018-11-05T20:44:57
Try to test no_std buildability´
diff --git a/examples/number.rs b/examples/number.rs index 41aa8ef..aac70ea 100644 --- a/examples/number.rs +++ b/examples/number.rs @@ -1,5 +1,12 @@ +#![cfg_attr(not(feature = "std"), no_std)] + extern crate combine; +#[cfg(not(feature = "std"))] +use core::str; +#[cfg(feature = "std")] +use std::str; + use combin...
1
11
3
1a416ca4d551b53fd0c777003484a08558f2e143
Matthias Benkard
2018-11-02T13:25:55
Restore no-std buildability.
diff --git a/Cargo.toml b/Cargo.toml index 5754d03..776b435 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,9 +22,9 @@ name = "combine" path = "src/lib.rs" [dependencies] -ascii = "0.7.0" -byteorder = "1.1.0" -either = "1" +ascii = { version = "0.9.1", default-features = false } +byteorder = { version = "1.1.0", de...
1
4
4
11cae75a970a65d030e3ed07ec798ffc419af51b
Markus Westerlind
2018-10-13T13:16:22
(cargo-release) start next development iteration 3.6.2-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index aece66f..5754d03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.6.1" +version = "3.6.2-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
d2c68f5ead3107613f4027881417f2f19e166c5b
Markus Westerlind
2018-10-13T13:15:51
(cargo-release) version 3.6.1
diff --git a/Cargo.toml b/Cargo.toml index 2118f98..aece66f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.6.1-alpha.0" +version = "3.6.1" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
6cb00803d0135a3849a7f0b35dcf635764b32c06
Markus Westerlind
2018-10-13T10:01:40
fix: Allow clippy to run on stable rust
diff --git a/src/lib.rs b/src/lib.rs index 438b9b4..8eed800 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -188,9 +188,9 @@ // inline(always) is only used on trivial functions returning parsers #![cfg_attr( feature = "cargo-clippy", - allow(clippy::inline_always, clippy::type_complexity) + allow(inline_always...
3
3
4
d0f93a23b880c3614ec7f2e45abda17164513ec3
Nathan
2018-10-12T16:05:43
Do not show the TODO on docs.rs
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index d8ba20b..71bec4e 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -46,7 +46,7 @@ where [ } } -/** +/* * TODO :: Rename `Try` to `Attempt` * Because this is public, it's name cannot be changed without also making a brea...
1
1
1
59650049b7322caf0b872a95b20559b3d6b7adbc
Markus Westerlind
2018-10-07T12:58:32
(cargo-release) start next development iteration 3.6.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index a5f3598..2118f98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.6.0" +version = "3.6.1-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
af8c28aabe1bbae8b6d9c929167da552999a52b9
Markus Westerlind
2018-10-07T12:58:01
(cargo-release) version 3.6.0
diff --git a/Cargo.toml b/Cargo.toml index e739ae4..a5f3598 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.5.4-alpha.0" +version = "3.6.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
f0372df9d27c8fc974e62e11e90c81545c4e988b
Nathan
2018-10-07T01:23:24
Refactor internal usages of try() to attempt()
diff --git a/src/lib.rs b/src/lib.rs index 31af228..438b9b4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ //! # Overview //! //! `combine` limits itself to creating [LL(1) parsers](https://en.wikipedia.org/wiki/LL_parser) -//! (it is possible to opt-in to LL(k) parsing using the [`try`] combinator) whic...
9
57
51
a9c79321b28ea5332d30429936bfca0c034105ca
Nathan
2018-10-07T01:01:47
feat: Deprecates `try` in favor of `attempt`
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index c664bd2..f399269 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -119,6 +119,10 @@ where /// ``` /// /// Note: if you're on the 2018 edition, you'll need to either use `r#try`, or [`attempt`](fn.attempt.html) +#[deprecated...
1
4
0
18edaec46f67a3803b96bac3762b6f809d0c2724
Nathan
2018-10-07T01:01:36
feat: Adds `attempt`, a 2018-compatible alias for `try` Rust 2018 edition adds `try` as a reserved keyword, which causes errors in code using the 2018 edition. To mitigate this, `attempt` is added, which has the same behavior as `try`, but without the keyword.
diff --git a/src/lib.rs b/src/lib.rs index 5e02d38..31af228 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -202,10 +202,10 @@ pub use stream::{Positioned, RangeStream, RangeStreamOnce, Stream, StreamOnce}; #[doc(inline)] pub use combinator::{ - any, between, chainl1, chainr1, count, count_min_max, env_parser, eof, ...
2
43
4
4e1c3a720fbbe46bb3a6841862081c72d5b915f4
Markus Westerlind
2018-10-06T14:34:31
(cargo-release) start next development iteration 3.5.4-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 1d53f87..e739ae4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.5.3" +version = "3.5.4-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
f074c71900f7f14fcdd573b329089ed92fcddfbb
Markus Westerlind
2018-10-06T14:33:58
(cargo-release) version 3.5.3
diff --git a/Cargo.toml b/Cargo.toml index a69ab5f..1d53f87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.5.3-alpha.0" +version = "3.5.3" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
d13fc057bdf7f8f6fd4bab99975427d3f46919ff
Markus Westerlind
2018-10-06T13:15:25
doc: Point to non-zero copy parser alternatives in the doc
diff --git a/src/parser/range.rs b/src/parser/range.rs index 6351841..67da997 100644 --- a/src/parser/range.rs +++ b/src/parser/range.rs @@ -1,4 +1,9 @@ //! Module containing zero-copy parsers. +//! +//! These parsers require the [`RangeStream`][] bound instead of a plain [`Stream`][]. +//! +//! [`RangeStream`]: ../.....
1
28
1
7fdf37b61977cc9a0a0c4f3544fc038a55ca5fe9
Markus Westerlind
2018-10-06T12:53:30
Run cargo clippy
diff --git a/src/lib.rs b/src/lib.rs index d2156bd..58a8621 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -186,7 +186,11 @@ //! [fn parser]: parser/function/fn.parser.html //! [`parser!`]: macro.parser.html // inline(always) is only used on trivial functions returning parsers -#![cfg_attr(feature = "cargo-clippy", all...
8
89
79
f2018db5cf5487d02488d017c23f6993e6ed6f82
Evgeny Kurnevsky
2018-09-26T07:01:46
fix: use unexpected_any inside `then` examples
diff --git a/src/parser/mod.rs b/src/parser/mod.rs index c505e81..c00850b 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -561,7 +561,7 @@ pub trait Parser { /// value(9).left() /// } /// else { - /// unexpected(d).map(|_| 0).message("Not a nine").righ...
1
2
2
8b2ca55971e01e8a87ec20ec7b9fe8476023117f
Evgeny Kurnevsky
2018-09-26T07:01:10
feat: pub use unexpected_any
diff --git a/src/lib.rs b/src/lib.rs index 83c9d12..d2156bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -201,7 +201,7 @@ pub use combinator::{ any, between, chainl1, chainr1, count, count_min_max, env_parser, eof, look_ahead, many, many1, none_of, not_followed_by, one_of, optional, parser, position, satisfy, ...
1
1
1
4f131489dc4ac47983243a279bad2a0731c32fba
Markus Westerlind
2018-09-12T18:59:08
(cargo-release) start next development iteration 3.5.3-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 6699d19..f1ca662 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.5.2" +version = "3.5.3-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
3b087021ea5988bcf80f0b6463043c5e71bc72e4
Markus Westerlind
2018-09-12T18:58:40
(cargo-release) version 3.5.2
diff --git a/Cargo.toml b/Cargo.toml index a87f8b5..6699d19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.5.2-alpha.0" +version = "3.5.2" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
0048c5ef4577592df94e0c5296bee3a128117211
Markus Westerlind
2018-09-12T18:40:35
fix: Don't report previous errors from expected
diff --git a/src/parser/error.rs b/src/parser/error.rs index bd25f29..34f5be2 100644 --- a/src/parser/error.rs +++ b/src/parser/error.rs @@ -138,14 +138,7 @@ where errors.error.add_message(self.1.clone()); } - fn add_consumed_expected_error( - &mut self, - errors: &mut Tracked<<Self::In...
2
15
16
450af649b369ee773be6e31cbe0c557f7a5749e3
Markus Westerlind
2018-09-03T20:57:19
doc: Explain that many (and siblings) should consume input on success
diff --git a/src/parser/repeat.rs b/src/parser/repeat.rs index 0a62007..7f0857f 100644 --- a/src/parser/repeat.rs +++ b/src/parser/repeat.rs @@ -410,6 +410,9 @@ where /// annotating the resulting type binding `let collection: Vec<_> = ...` or by specializing when /// calling many, `many::<Vec<_>, _>(...)`. /// +/// ...
1
12
0
f003ee2886d5b7a802b0e16e9d7839f6454877a7
Markus Westerlind
2018-08-13T19:21:49
(cargo-release) start next development iteration 3.5.2-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index c639568..a87f8b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.5.1" +version = "3.5.2-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
ec52ae1d5c6bec92b1915bd3350929efc1133581
Markus Westerlind
2018-08-13T19:21:20
(cargo-release) version 3.5.1
diff --git a/Cargo.toml b/Cargo.toml index 06a4041..c639568 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.5.1-alpha.0" +version = "3.5.1" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
f2b8fbbfe300e2b219eb72116856c217fcec8b2b
Markus Westerlind
2018-08-13T18:51:44
fix: Add all errors of nested choice parsers
diff --git a/src/parser/choice.rs b/src/parser/choice.rs index 3ab422b..1058ddc 100644 --- a/src/parser/choice.rs +++ b/src/parser/choice.rs @@ -282,7 +282,11 @@ macro_rules! tuple_choice_parser_inner { ) { if error.offset != ErrorOffset(0) { let ($(ref mut $id,)+) = *...
2
47
4
57a0ec3dd2e6d0d534f6b4628ccbccd531e945d3
Markus Westerlind
2018-08-13T18:17:38
(cargo-release) start next development iteration 3.5.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 4c9b108..06a4041 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.5.0" +version = "3.5.1-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
e8435b81345f393a02760ab2c7fbf82949faa9dd
Markus Westerlind
2018-08-13T18:17:08
(cargo-release) version 3.5.0
diff --git a/Cargo.toml b/Cargo.toml index d10a458..4c9b108 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.4.1-alpha.0" +version = "3.5.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
9855aa1f39b62b09addb1c7a25035616a8cbef42
Markus Westerlind
2018-08-13T18:01:48
feat: Add opaque! as convenience over the opaque parser
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index 41e665d..6c07a4c 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -1151,7 +1151,7 @@ pub type FnOpaque<I, O, S = ()> = /// ``` /// # #[macro_use] /// # extern crate combine; -/// # use combine::combinator::{FnOpaque, opaque...
1
26
5
fdd38d46b5dbdeece7f6f3a99b12e470a08e9a92
Markus Westerlind
2018-08-13T17:59:29
feat: Add the factory parser
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index e877b64..41e665d 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -868,8 +868,14 @@ where } } -/// Constructs the parser lazily and on each `parse_*` call. Can be used to effectively reduce the -/// size of deeply nest...
1
90
2
2b574df94022485c3caa92814aa91346193b6c1f
Markus Westerlind
2018-08-04T19:27:24
(cargo-release) start next development iteration 3.4.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index c9e3614..d10a458 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.4.0" +version = "3.4.1-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
980bf26c0e7e5f8a28835b35ff564b5918ce62c4
Markus Westerlind
2018-08-04T19:26:40
(cargo-release) version 3.4.0
diff --git a/Cargo.toml b/Cargo.toml index 110af27..c9e3614 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.7-alpha.0" +version = "3.4.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
b9bc28d32b80644ba5a7fdc6969e7e8e734ee4de
Markus Westerlind
2018-08-04T16:17:46
feat: Add the silent combinator This can be used to suppress the error message from parsers which don't have an interesting message for users.
diff --git a/src/error.rs b/src/error.rs index 0910443..e460fd1 100644 --- a/src/error.rs +++ b/src/error.rs @@ -13,7 +13,6 @@ use stream::StreamOnce; #[doc(hidden)] macro_rules! ctry { ($result:expr) => { - match $result { $crate::error::FastResult::ConsumedOk(x) => { (x, ...
5
101
5
1a1123f5b6970c88d99643d87d75c8fb63117607
Markus Westerlind
2018-08-04T15:15:02
feat: Add the `opaque` parser
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index 1d37336..e877b64 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -986,3 +986,127 @@ where [ }) } } + +#[derive(Copy, Clone)] +pub struct Opaque<F, I, O, S>(F, PhantomData<fn(&mut I, &mut S) -> O>); +impl<F, I, O, S> Pa...
1
124
0
e2180a3bf72e9b39e1ed324fff49075f9ef2e666
Markus Westerlind
2018-08-04T10:44:15
Forward add_consumed_expected_error
diff --git a/src/lib.rs b/src/lib.rs index 5ae19cb..839a357 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -228,35 +228,7 @@ macro_rules! impl_token_parser { type Output = <$inner_type as Parser>::Output; type PartialState = <$inner_type as Parser>::PartialState; - #[inline] - fn parse_la...
6
151
117
9e26d38e06c8bac9dbaa547893b8f2aea01f047d
Markus Westerlind
2018-08-04T08:39:00
fix: Make (many1(p), end) report more expected messages If `many1` (or `many`) succeds but `end` then fails we want to report "Expected p or end" since `many1` could have potentially parsed another element. By calling the added `add_consumed_expected_error` method which should be delegated to the last parser before `e...
diff --git a/src/lib.rs b/src/lib.rs index 65adfaf..5ae19cb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -676,6 +676,65 @@ pub extern crate either; extern crate memchr; extern crate unreachable; +/// Internal API. May break without a semver bump +macro_rules! forward_parser { + ($($methods: ident)*, $field: tt) =...
5
194
122
f9e404f6840eb4d42016122095416f76bee5abf3
Markus Westerlind
2018-07-05T22:20:56
fix: Report more errors in the middle of sequence parsers
diff --git a/src/parser/sequence.rs b/src/parser/sequence.rs index 0d1e447..29e37b4 100644 --- a/src/parser/sequence.rs +++ b/src/parser/sequence.rs @@ -83,6 +83,7 @@ macro_rules! tuple_parser { $h: &mut $h $(, $id : &mut $id )* ) -> ConsumedResult<($h::Output, $($id::Output),*), Input> ...
2
26
1
9aa1db92dcd17a35d5775bf78b6642c4e8c89d1d
Markus Westerlind
2018-07-05T21:29:11
fix: Report more expected information from nested sequence parsers cc #175
diff --git a/src/parser/byte.rs b/src/parser/byte.rs index bbda743..c3048f0 100644 --- a/src/parser/byte.rs +++ b/src/parser/byte.rs @@ -5,12 +5,12 @@ use lib::marker::PhantomData; use self::ascii::AsciiChar; +use Parser; use combinator::{satisfy, skip_many, token, tokens, Expected, Satisfy, SkipMany, Token}; us...
12
137
37
edf5ff6002d6b6f2f8bd23692dce5084e9fc01dd
Markus Westerlind
2018-08-04T15:50:05
fix: Use the message variant in from_str to work on no_std
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index 8eec51f..00d3928 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -1,6 +1,6 @@ //! Various combinators which do not fit anywhere else. -use lib::error::Error as StdError; +use lib::fmt; use lib::marker::PhantomData; use l...
1
3
3
072a8c13f90c640d2a98910276bc96d5aa27fae9
Markus Westerlind
2018-08-04T08:07:51
feat: Add tokens2 as a simpler version of tokens
diff --git a/src/lib.rs b/src/lib.rs index e084824..65adfaf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -202,6 +202,8 @@ pub use combinator::{ pub use parser::choice::choice; #[doc(inline)] pub use parser::combinator::from_str; +#[doc(inline)] +pub use parser::item::tokens2; macro_rules! static_fn { (($($arg...
2
103
0
16601046f3c2aa8b4ad75ba2390486f7b5306219
Markus Westerlind
2018-08-04T07:54:25
fix: Remove redundant Any bound on easy::Errors Fixes #177
diff --git a/src/stream/easy.rs b/src/stream/easy.rs index 1115e2a..31a59a3 100644 --- a/src/stream/easy.rs +++ b/src/stream/easy.rs @@ -79,7 +79,6 @@ //! ``` //! //! [`Parser::easy_parse`]: ../parser/trait.Parser.html#method.easy_parse -use std::any::Any; use std::error::Error as StdError; use std::fmt; @@ -691...
1
3
4
908f9ebdc3593eda67e8eba8f5b467962076964e
Markus Westerlind
2018-08-03T09:23:48
feat: Add the from_str combinator
diff --git a/src/lib.rs b/src/lib.rs index 957c9e7..e084824 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -200,6 +200,8 @@ pub use combinator::{ }; #[doc(inline)] pub use parser::choice::choice; +#[doc(inline)] +pub use parser::combinator::from_str; macro_rules! static_fn { (($($arg: pat, $arg_ty: ty),*) -> $r...
5
181
38
27f5500aa195704f93726004eb687b9a66996942
Markus Westerlind
2018-07-02T21:33:52
(cargo-release) start next development iteration 3.3.7-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index e4b2f98..110af27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.6" +version = "3.3.7-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
e9e7f4bdd1e2f538e0e46744d9746b46f2ceaf3a
Markus Westerlind
2018-07-02T21:33:26
(cargo-release) version 3.3.6
diff --git a/Cargo.toml b/Cargo.toml index d4a7315..e4b2f98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.6-alpha.0" +version = "3.3.6" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
4e2eb928e6059a4182b2717bf2bfb7cccdc60127
Markus Westerlind
2018-07-02T07:06:40
fix: Don't forget the state in any_send_partial_state
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index 5b07ece..e97048c 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -644,7 +644,8 @@ where input: &mut Self::Input, state: &mut Self::PartialState, ) -> ConsumedResult<Self::Output, Self::Input> - where...
2
67
10
679403d4d27782284cc2ab7bf6f53dff8c0da7a7
Markus Westerlind
2018-06-30T18:15:10
(cargo-release) start next development iteration 3.3.6-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 0cfe099..d4a7315 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.5" +version = "3.3.6-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
557ae5fde7b6ee744820f704c721319d9e29a031
Markus Westerlind
2018-06-30T18:14:40
(cargo-release) version 3.3.5
diff --git a/Cargo.toml b/Cargo.toml index 06d07c7..0cfe099 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.5-alpha.0" +version = "3.3.5" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
c330a73746f6adfa22c6b13b15d796d48f589614
Markus Westerlind
2018-06-30T16:47:41
fix: Propagate the ParseMode in range::recognize I checked all other definitions of `parse_partial` as well and all other seem fine (does not need to be parse_mode instead) as they do not invoke another parser recursively
diff --git a/src/lib.rs b/src/lib.rs index 254e941..957c9e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -230,6 +230,16 @@ macro_rules! impl_token_parser { self.0.parse_lazy(input) } + #[inline] + fn parse_first( + &mut self, + input: &mut Self::Input, + ...
4
44
12
d1fd72f70903a855385872c8d1ae1ca5d154be91
Markus Westerlind
2018-06-30T08:49:11
(cargo-release) start next development iteration 3.3.5-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 975d8b0..06d07c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.4" +version = "3.3.5-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
9d85a935890f2025e3bfddad47e1b3e5177320c6
Markus Westerlind
2018-06-30T08:48:40
(cargo-release) version 3.3.4
diff --git a/Cargo.toml b/Cargo.toml index 361137f..975d8b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.4-alpha.0" +version = "3.3.4" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
5257988c6419bd3e9c495400637c86e8e39e3133
Markus Westerlind
2018-06-30T08:30:43
fix: Forward the partial mode through the parser! macro correctly Fixes #168
diff --git a/src/lib.rs b/src/lib.rs index 51ed6d6..254e941 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -549,14 +549,13 @@ macro_rules! parser { #[doc(hidden)] #[macro_export] macro_rules! combine_parse_partial { - ((()) $input:ident $state:ident $parser:block) => {{ + ((()) $mode:ident $input:ident $state:ide...
3
22
12
ed126029c52ab52978ec5d5de6e0d64805f76b12
Markus Westerlind
2018-06-29T23:23:35
(cargo-release) start next development iteration 3.3.4-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 868e92b..361137f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.3" +version = "3.3.4-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
39ee98cc828c123c00bc88bf831159a8d300c28a
Markus Westerlind
2018-06-29T23:23:10
(cargo-release) version 3.3.3
diff --git a/Cargo.toml b/Cargo.toml index 426d2ec..868e92b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.3-alpha.0" +version = "3.3.3" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
d3d0609c5e9daee2de13f35fb2c4ecbea260b8d9
Markus Westerlind
2018-06-29T21:56:00
docs: Explain try in the or parser's docs
diff --git a/src/parser/choice.rs b/src/parser/choice.rs index 0b9cab0..807d53b 100644 --- a/src/parser/choice.rs +++ b/src/parser/choice.rs @@ -585,6 +585,31 @@ where /// If you are looking to chain 3 or more parsers using `or` you may consider using the /// [`choice!`] macro instead, which can be clearer and may re...
1
25
0
14f38cc6d1abe009a93c71743633edbe864c86b8
Markus Westerlind
2018-06-29T13:00:35
chore: Fix deprecation warnings in the async example
diff --git a/Cargo.toml b/Cargo.toml index 041ac13..426d2ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,6 +35,7 @@ lazy_static = "1.0" futures = "0.1" tokio-io = "0.1" +tokio-codec = "0.1" partial-io = { version = "0.3", features = ["tokio", "quickcheck"] } bytes = "0.4" quickcheck = "0.6" diff --git a/examp...
3
16
18
efdd241d3f4f859c332e81a19fbd9d99925d0b31
Markus Westerlind
2018-06-29T12:52:51
fix: Parse from the start in sequence parsers in first mode (All non-partial parsers are always in "first mode"). Since this wasn't checked before, a sequence parser that returned an error after consuming input would start from the middle of the sequence if it parsing was attempted with it again as the partial state ...
diff --git a/src/parser/repeat.rs b/src/parser/repeat.rs index c39f190..233eba7 100644 --- a/src/parser/repeat.rs +++ b/src/parser/repeat.rs @@ -1205,7 +1205,7 @@ parser!{ /// ``` pub fn skip_until[P](end: P)(P::Input) -> () where [ - P: Parser + P: Parser, ] { take_until...
3
19
8
5b221f5a61a9effde1e66964880c46354536ddea
Markus Westerlind
2018-06-07T22:07:11
(cargo-release) start next development iteration 3.3.3-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 130a32f..041ac13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.2" +version = "3.3.3-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
3253e6c3975fdae0baca8e5d6f6fce802867b41d
Markus Westerlind
2018-06-07T22:06:47
(cargo-release) version 3.3.2
diff --git a/Cargo.toml b/Cargo.toml index 13be3e8..130a32f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.2-alpha.0" +version = "3.3.2" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
c413647874f472f9b7ba3c8e9d56ba244676d866
Markus Westerlind
2018-06-07T22:04:17
doc: Fix documentation links
diff --git a/src/parser/byte.rs b/src/parser/byte.rs index 6a3896d..bbda743 100644 --- a/src/parser/byte.rs +++ b/src/parser/byte.rs @@ -326,7 +326,7 @@ where /// # } /// ``` /// -/// [`RangeStream`]: ../error/trait.RangeStream.html +/// [`RangeStream`]: ../stream/trait.RangeStream.html /// [`range`]: ../range/fn.r...
5
11
11
740e9c8287fbb4580ef8f1a6c0ef858d8081000a
Markus Westerlind
2018-06-01T17:11:17
(cargo-release) start next development iteration 3.3.2-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index aa5b5df..13be3e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.3.1" +version = "3.3.2-alpha.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero...
1
1
1
b54ff0619663aaf7d3c33185b1a4b7ec73cc1f61
Stephan Wolski
2018-06-01T02:24:10
fix: support resuming streams in TakeUntilRange * When TakeUntilRange errors, reset to the position of the first error * Replace to_consume incrementing with less frequent distance calculations
diff --git a/src/parser/range.rs b/src/parser/range.rs index cb691bb..8187105 100644 --- a/src/parser/range.rs +++ b/src/parser/range.rs @@ -396,6 +396,7 @@ where let len = self.0.len(); let before = input.checkpoint(); + let mut first_stream_error = None; // Skip until the end of ...
1
24
16
f89ba8b25791c9e2a262168bfb4d782e47a428bf
Markus Westerlind
2018-05-31T18:24:55
doc: Use the choice parser in the expr example
diff --git a/src/lib.rs b/src/lib.rs index bc45d18..51ed6d6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,7 +93,7 @@ //! #[macro_use] //! extern crate combine; //! use combine::parser::char::{char, letter, spaces}; -//! use combine::{between, many1, parser, sep_by, Parser}; +//! use combine::{between, choice, many...
2
9
7
bdf5b20c970925f9caef49b6927356acde016102
Markus Westerlind
2018-05-31T06:57:39
doc: Explain impl Trait usage
diff --git a/src/lib.rs b/src/lib.rs index cfa3b0f..bc45d18 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,6 +105,7 @@ //! Pair(Box<Expr>, Box<Expr>) //! } //! +//! // `impl Parser` can be used to create reusable parsers with zero overhead //! fn expr_<I>() -> impl Parser<Input = I, Output = Expr> //! wh...
2
3
2
b1e5a8fbc8f023fc94f2959ba55c42695dca167c
Markus Westerlind
2018-05-30T20:37:14
doc: Use impl Parser in the src/lib.rs example
diff --git a/src/lib.rs b/src/lib.rs index b92d0c1..cfa3b0f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,7 +94,7 @@ //! extern crate combine; //! use combine::parser::char::{char, letter, spaces}; //! use combine::{between, many1, parser, sep_by, Parser}; -//! use combine::error::ParseResult; +//! use combine::er...
2
21
9
6c181905c53edf68d8ed9e12cfa87280f179a411
Stephan Wolski
2018-05-24T15:48:08
test: add failing test for take_until_range partial parses
diff --git a/tests/async.rs b/tests/async.rs index 43caa4b..228dae2 100644 --- a/tests/async.rs +++ b/tests/async.rs @@ -28,7 +28,7 @@ use combine::combinator::{ }; use combine::parser::char::{char, digit, letter}; use combine::parser::item::item; -use combine::parser::range::{range, recognize_with_value, take_while...
1
14
1
27449f2131ecb3d6ef956e2e67b588cae58a9810
Stephan Wolski
2018-05-24T15:44:50
fix: reset stream on error in take_until_range reset the stream back to `before` when an unrecoverable error is encountered in `parse_partial` for `take_until_range`
diff --git a/src/parser/range.rs b/src/parser/range.rs index 39bf61a..cb691bb 100644 --- a/src/parser/range.rs +++ b/src/parser/range.rs @@ -437,7 +437,10 @@ where input.reset(look_ahead_input.clone()); // See if we can advance anyway - ...
1
4
1
c07aeaec600b25401b0323745cb828bc8c19efb3
muskox
2018-05-24T04:58:43
Add specific characters to docs in combine::parser::char The specific characters that the parsers parse are included in the documentation for `crlf`, `newline`, and `tab`.
diff --git a/src/parser/char.rs b/src/parser/char.rs index 6d40b27..2462f48 100644 --- a/src/parser/char.rs +++ b/src/parser/char.rs @@ -94,7 +94,7 @@ where impl_token_parser! { Newline(), char, Expected<Satisfy<I, fn (char) -> bool>> } -/// Parses a newline character. +/// Parses a newline character (`'\n'`). //...
1
3
3
4a690d65160ea6e1866fd6dbe8865acae4070c3a
Stephan Wolski
2018-05-24T01:53:07
fix: support multi-byte `Item`s in take_until_range * add support for multibyte `Item`s in `take_until_range` * add ASCII tests for `take_until_range` * add Unicode tests for `take_until_range`
diff --git a/src/parser/range.rs b/src/parser/range.rs index 391d33e..39bf61a 100644 --- a/src/parser/range.rs +++ b/src/parser/range.rs @@ -420,16 +420,32 @@ where // because we've already done it on look_ahead_input. unreachable!(); } else { - ...
1
42
8
fe02014e8326e6c51b623617a3dba20917033989
Stephan Wolski
2018-05-24T00:39:30
test: add test for take_until on Unicode input
diff --git a/src/parser/range.rs b/src/parser/range.rs index 749ad21..391d33e 100644 --- a/src/parser/range.rs +++ b/src/parser/range.rs @@ -488,4 +488,10 @@ mod tests { let result = parser.parse("hell\u{00EE} world"); assert!(result.is_err()); } + + #[test] + fn take_until_range_unicode() ...
1
6
0
0db58a20f227d923ffcd3451fbb07ace87dba07c
Markus Westerlind
2018-05-19T19:14:10
feat: Add the escaped parser
diff --git a/src/parser/repeat.rs b/src/parser/repeat.rs index 21dddd3..c39f190 100644 --- a/src/parser/repeat.rs +++ b/src/parser/repeat.rs @@ -4,13 +4,13 @@ use lib::borrow::BorrowMut; use lib::marker::PhantomData; use lib::mem; -use Parser; use combinator::{ignore, optional, parser, value, FnParser, Ignore, Opt...
2
132
13
496ac83628ba33ee9a886f989f8749388f918652
Markus Westerlind
2018-05-19T18:54:10
feat: Add the lazy parser combinator
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index 86cdd7d..7d18058 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -799,3 +799,61 @@ where { AnySendPartialStateParser(p) } + +#[derive(Copy, Clone)] +pub struct Lazy<P>(P); +impl<I, O, P, R> Parser for Lazy<P> +where + ...
1
58
0
26a1956b718aeef2a40791daf6e984dbe919b138
Markus Westerlind
2018-05-19T00:38:46
refactor: Shorten the unrolled <&str>::uncons_while
diff --git a/src/stream/mod.rs b/src/stream/mod.rs index d6753a7..fd242cd 100644 --- a/src/stream/mod.rs +++ b/src/stream/mod.rs @@ -360,16 +360,16 @@ fn str_uncons_while<'a, F>(slice: &mut &'a str, mut chars: Chars<'a>, mut f: F) where F: FnMut(char) -> bool, { + let mut last_char_size = 0; + macro_rule...
1
8
6
15fa913da1d02b2e4aa3f23477215a721be1f427
Markus Westerlind
2018-05-19T00:20:21
doc: Add doc comment on Range
diff --git a/src/stream/mod.rs b/src/stream/mod.rs index 128c75a..d6753a7 100644 --- a/src/stream/mod.rs +++ b/src/stream/mod.rs @@ -343,6 +343,7 @@ where } } +/// Trait representing a range of elements. pub trait Range { /// Returns the remaining length of `self`. /// The returned length need not be...
1
1
0
c250d02873254a11eea39ed2ef48dfa4501da161
Markus Westerlind
2018-05-19T00:18:10
doc: Document uncons_while1
diff --git a/src/stream/mod.rs b/src/stream/mod.rs index d8ac8a2..128c75a 100644 --- a/src/stream/mod.rs +++ b/src/stream/mod.rs @@ -166,6 +166,12 @@ pub trait RangeStreamOnce: StreamOnce + Resetable { F: FnMut(Self::Item) -> bool; #[inline] + /// Takes items from stream, testing each one with `predi...
1
12
0
c995ad6125996b594b8bf45da078fdebeb41b86a
Markus Westerlind
2018-05-19T00:15:51
perf: Specialize uncons_while1 on all streams
diff --git a/src/stream/easy.rs b/src/stream/easy.rs index 06518ba..7991e51 100644 --- a/src/stream/easy.rs +++ b/src/stream/easy.rs @@ -83,7 +83,7 @@ use std::any::Any; use std::error::Error as StdError; use std::fmt; -use error::{Info as PrimitiveInfo, StreamError, Tracked}; +use error::{FastResult, Info as Primi...
3
149
43
9921318d7932413c9864c82119fd2b241e4a5769
Markus Westerlind
2018-05-18T23:43:54
Fix uncons_while1 with partial inputs
diff --git a/src/parser/range.rs b/src/parser/range.rs index 9f32c1a..749ad21 100644 --- a/src/parser/range.rs +++ b/src/parser/range.rs @@ -3,7 +3,7 @@ use lib::marker::PhantomData; use Parser; -use stream::{uncons_range, uncons_while, wrap_stream_error, RangeStream, RangeStreamOnce, +use stream::{uncons_range, un...
2
44
14
f593e85d4d0ecb9c7c91b769685864fda3291646
Markus Westerlind
2018-05-18T23:15:49
perf: Unroll the loop for <[T]>::uncons_while
diff --git a/examples/ini.rs b/examples/ini.rs index aefcf27..5b2f8e7 100644 --- a/examples/ini.rs +++ b/examples/ini.rs @@ -1,5 +1,4 @@ //! Parser example for INI files. -#[macro_use] extern crate combine; use std::collections::HashMap; diff --git a/src/stream/mod.rs b/src/stream/mod.rs index 6018041..46a3afb 100...
2
47
44
30c41e0fa60fdec76cf527a3b09dce678c4ff67c
Markus Westerlind
2018-05-18T23:03:01
Add some missing inlines and relax bounds on some range parsers
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index 6f2ef6b..86cdd7d 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -564,6 +564,7 @@ where } } +#[inline(always)] pub fn no_partial<P>(p: P) -> NoPartial<P> where P: Parser, diff --git a/src/parser/function.rs b/s...
5
20
15
fff248e494361e04cedbf849df959193560416ff
Markus Westerlind
2018-05-18T07:21:40
perf: Inline from/into for results Does not seem to give any improvement but these should be inlined
diff --git a/src/error.rs b/src/error.rs index 8ecb689..0910443 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,18 +12,21 @@ use stream::StreamOnce; #[macro_export] #[doc(hidden)] macro_rules! ctry { - ($result: expr) => { + ($result:expr) => { + match $result { - $crate::error::FastRes...
2
17
12
279a4526494e1cd7e90252c3bc1cfc8f8c35ebcb
Markus Westerlind
2018-05-18T07:21:26
perf: Unroll take_while1
diff --git a/src/stream/mod.rs b/src/stream/mod.rs index c9332ce..2246d16 100644 --- a/src/stream/mod.rs +++ b/src/stream/mod.rs @@ -449,16 +449,45 @@ where where F: FnMut(Self::Item) -> bool, { - let len = self.iter() - .position(|c| !f(c.clone())) - .unwrap_or(self.len(...
1
38
9
2d5548a513864b938ac720556a9f7a8ea1e18a03
Markus Westerlind
2018-05-17T19:34:18
refactor(http): Split out message_header to a function
diff --git a/benches/http.rs b/benches/http.rs index 82649d4..4fe16c6 100644 --- a/benches/http.rs +++ b/benches/http.rs @@ -63,40 +63,51 @@ fn is_http_version(c: u8) -> bool { c >= b'0' && c <= b'9' || c == b'.' } -fn parse_http_request<'a, I>(input: I) -> Result<((Request<'a>, Vec<Header<'a>>), I), I::Error> ...
1
27
16
9d434c3ff89480aeb9c5552e439b465adc28e31d
Markus Westerlind
2018-05-16T21:19:24
perf: Remove redundant state comparison in Iter This is technically a breaking change since it means the iterator is no longer fused, however that is a guarantee that was never promised by the type (it does not implement `FusedIterator`)
diff --git a/src/parser/repeat.rs b/src/parser/repeat.rs index 5fcf93a..21dddd3 100644 --- a/src/parser/repeat.rs +++ b/src/parser/repeat.rs @@ -1,16 +1,16 @@ //! Combinators which take one or more parsers and applies them repeatedly. -use lib::marker::PhantomData; use lib::borrow::BorrowMut; +use lib::marker::Phan...
1
27
31
35032ad09228f359fb2bee55c275b8788261dedd
Markus Westerlind
2018-05-16T21:13:31
refactor: Use struct_parser more in the http benchmark
diff --git a/benches/http.rs b/benches/http.rs index e1c9c09..82649d4 100644 --- a/benches/http.rs +++ b/benches/http.rs @@ -7,9 +7,9 @@ use bencher::{black_box, Bencher}; use std::fmt; -use combine::{many, token, ParseError, Parser, RangeStream, many1}; use combine::range::{range, take_while1}; use combine::str...
2
5
9
5d154f15a13091c26246627486b309cbdef06d14
Markus Westerlind
2018-05-15T19:37:09
perf: Add uncons_while1 as a default method on RangeStream It is possible to specialize this method for streams to gain a slight bit of speedup.
diff --git a/src/parser/range.rs b/src/parser/range.rs index 6d2624a..e17d72f 100644 --- a/src/parser/range.rs +++ b/src/parser/range.rs @@ -333,17 +333,7 @@ where { let start = input.position(); parse_partial_range(mode, input, state, |input| { - let result = uncons_while(input, &mut ...
2
82
13
b6fdbc81663a99087468da5e2142fa8c310ef78d
Markus Westerlind
2018-05-15T06:45:04
Don't do any partial recovery for range parsers who don't need it (~2% improvement)
diff --git a/src/parser/range.rs b/src/parser/range.rs index 6996a83..6d2624a 100644 --- a/src/parser/range.rs +++ b/src/parser/range.rs @@ -84,7 +84,9 @@ where { let before = input.checkpoint(); - if mode.is_first() || *distance_state == 0 { + if !input.is_partial() { + f(input) + } else if mod...
1
3
1
59f7c25e6c2338802da9e6defde8de6584334b96
Markus Westerlind
2018-05-10T18:39:56
Remove feature conservative_impl_trait from the json parser
diff --git a/benches/json.rs b/benches/json.rs index 18e0de7..50fc9a2 100644 --- a/benches/json.rs +++ b/benches/json.rs @@ -1,6 +1,5 @@ // `impl Trait` is not required for this parser but we use to to show that it can be used to // significantly simplify things -#![feature(conservative_impl_trait)] #[macro_use] ...
1
0
1
c22447556923428f93af104ea5687f174ab8b5f8
Markus Westerlind
2018-05-10T18:36:42
Rewrite all examples to use `impl Parser` instead of `parser!` :tada:
diff --git a/examples/async.rs b/examples/async.rs index dc9775a..f610d89 100644 --- a/examples/async.rs +++ b/examples/async.rs @@ -1,7 +1,6 @@ #![cfg(feature = "std")] extern crate bytes; -#[macro_use] extern crate combine; extern crate futures; @@ -17,11 +16,11 @@ use bytes::BytesMut; use tokio_io::codec:...
3
159
182
d4153d31b074e950f4752f29c8ed188102534e91
Markus Westerlind
2018-04-23T16:07:03
feat: Add any_send_partial_state
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index 620febc..6f2ef6b 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -705,3 +705,96 @@ where { AnyPartialStateParser(p) } + +#[cfg(feature = "std")] +#[derive(Default)] +pub struct AnySendPartialState(Option<Box<::std::any...
1
93
0
b1cb0668cc13df3a2f1b6cc35f221089d0279579
Markus Westerlind
2018-03-26T19:59:14
feat: Allow the the `num` parsers to be used without RangeStream
diff --git a/src/parser/byte.rs b/src/parser/byte.rs index 7e2c2f2..30a3b3d 100644 --- a/src/parser/byte.rs +++ b/src/parser/byte.rs @@ -541,8 +541,7 @@ take_until!{ /// Parsers for decoding numbers in big-endian or little-endian order. pub mod num { use super::*; - use stream::RangeStream; - use parser::r...
2
58
14
7b03b596a58e4cdbe84d6008e277f0cc57394fae
Markus Westerlind
2018-03-26T19:16:17
feat: Add the take_until parser
diff --git a/src/parser/repeat.rs b/src/parser/repeat.rs index d135d88..5fcf93a 100644 --- a/src/parser/repeat.rs +++ b/src/parser/repeat.rs @@ -5,7 +5,7 @@ use lib::borrow::BorrowMut; use lib::mem; use Parser; -use stream::{Positioned, Resetable, Stream, StreamOnce}; +use stream::{uncons, Positioned, Resetable, St...
2
147
8
cb2da7ad74758bc89b17bedd90f2f53ea9f83e7d
Markus Westerlind
2018-03-26T19:16:03
feat: Allow try parsers to be used with partial parsing
diff --git a/src/parser/combinator.rs b/src/parser/combinator.rs index 12189d3..620febc 100644 --- a/src/parser/combinator.rs +++ b/src/parser/combinator.rs @@ -4,7 +4,7 @@ use lib::marker::PhantomData; use lib::mem; use Parser; -use error::{Consumed, ConsumedResult, Info, ParseError, Tracked}; +use error::{Consume...
2
86
9
22ba4e1936402e9205ae182e8fd6d8095ade3627
Bastien Orivel
2018-03-21T00:06:45
Bump lazy_static to 1.0
diff --git a/Cargo.toml b/Cargo.toml index b518db4..fa33861 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ memchr = { version = "2", default-features = false } [dev-dependencies] bencher = "0.1.3" -lazy_static = "0.2.8" +lazy_static = "1.0" futures = "0.1" tokio-io = "0.1"
1
1
1
49dd5ff28ba60a0f445d6a940b7d771903056fd7
Devon Hollowood
2018-03-20T22:29:13
Fix a few typos in the docs
diff --git a/src/error.rs b/src/error.rs index 865ff3a..8ecb689 100644 --- a/src/error.rs +++ b/src/error.rs @@ -195,7 +195,7 @@ impl<T> Consumed<T> { } } -/// A type alias over the specific `Result` type used by parsers to indicate wether they were +/// A type alias over the specific `Result` type used by pars...
7
13
13
e19e2f59863ad56b81588ed0a60d35c52ac03767
Markus Westerlind
2018-03-18T17:57:07
Version 3.0
diff --git a/Cargo.toml b/Cargo.toml index 7cd5dc2..b518db4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "combine" -version = "3.0.0-beta.1" +version = "3.0.0" authors = ["Markus Westerlind <marwes91@gmail.com>"] description = "Fast parser combinators on arbitrary streams with zero-...
1
1
1
8e9010aa03e46737bf425053d087dc10f062efdc
Markus Westerlind
2018-03-18T18:11:11
Explain impl Trait in the json parser
diff --git a/benches/json.rs b/benches/json.rs index f31ee63..18e0de7 100644 --- a/benches/json.rs +++ b/benches/json.rs @@ -1,4 +1,7 @@ +// `impl Trait` is not required for this parser but we use to to show that it can be used to +// significantly simplify things #![feature(conservative_impl_trait)] + #[macro_use] ...
2
117
93
a397a5e2b7d01acbceb20587a2dc9dde8534f3de
Markus Westerlind
2018-03-15T20:06:23
docs: Show how to use impl Trait in the json parser
diff --git a/benches/json.rs b/benches/json.rs index 056f3cc..f31ee63 100644 --- a/benches/json.rs +++ b/benches/json.rs @@ -1,6 +1,8 @@ +#![feature(conservative_impl_trait)] #[macro_use] extern crate bencher; +#[macro_use] extern crate combine; use std::collections::HashMap; @@ -12,15 +14,14 @@ use bencher::{b...
1
54
72
f157478f0e0b3dde73bab406c9c6171ee345c949
Markus Westerlind
2018-03-15T18:26:51
refactor: Simplify the json parser a bit
diff --git a/benches/json.rs b/benches/json.rs index 45e02cc..056f3cc 100644 --- a/benches/json.rs +++ b/benches/json.rs @@ -16,12 +16,11 @@ use combine::error::{Consumed, ParseError, ParseResult}; use combine::parser::char::{char, digit, spaces, string, Spaces}; use combine::parser::error::Expected; -use combine::...
1
5
6
bafbe9d0aa37178c319a64c7666eaf1126c0d0f2
Markus Westerlind
2018-03-15T16:16:33
Fix pulldown warning
diff --git a/src/error.rs b/src/error.rs index 865ff3a..a5f45f6 100644 --- a/src/error.rs +++ b/src/error.rs @@ -610,8 +610,7 @@ where pub struct Tracked<E> { /// The error returned pub error: E, - #[doc(hidden)] - pub offset: ErrorOffset, + #[doc(hidden)] pub offset: ErrorOffset, } impl<E> From...
5
30
31
eaa33a9ee52d1af44f78a852085daf9c3e4d3ca2
Markus Westerlind
2018-03-15T16:10:00
doc: Add better documentation around Parser::easy_parse
diff --git a/src/parser/choice.rs b/src/parser/choice.rs index 2e667ae..a98080b 100644 --- a/src/parser/choice.rs +++ b/src/parser/choice.rs @@ -662,6 +662,6 @@ mod tests { #[test] fn choice_single_parser() { - assert!(choice((any(),)).easy_parse("a").is_ok()); + assert!(choice((any(),),).easy...
6
93
50
17405cbdca7ddc26d807e69c3c9c4c2b6cb201d6
Markus Westerlind
2018-03-06T16:46:11
Update doc links
diff --git a/src/lib.rs b/src/lib.rs index c98ab77..ac44c6d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -147,18 +147,19 @@ //! ``` //! //! [`combinator`]: combinator/index.html +//! [`parser`]: parser/index.html //! [`error`]: error/index.html -//! [`char`]: char/index.html -//! [`byte`]: byte/index.html -//! [`ran...
1
12
11