Mercurial > lbo > hg > rcombinators
changeset 26:6b717ea3438b
Minor additions to documentation and auto-derives
author | Lewin Bormann <lewin@lewin-bormann.info> |
---|---|
date | Wed, 05 Jun 2019 22:33:27 +0200 |
parents | 3a4fbcfc9245 |
children | 385f1b74b9e5 |
files | src/combinators.rs src/lib.rs src/primitives.rs |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/combinators.rs Wed Jun 05 22:32:39 2019 +0200 +++ b/src/combinators.rs Wed Jun 05 22:33:27 2019 +0200 @@ -354,7 +354,8 @@ } /// Applies one parser, discards the result, and returns the second parser's results if the first -/// one succeeded. +/// one succeeded. To skip the input consumed by several parsers, use a `Sequence` combinators as +/// `A`. pub struct Then<A: Parser, B: Parser> { a: A, b: B,
--- a/src/lib.rs Wed Jun 05 22:32:39 2019 +0200 +++ b/src/lib.rs Wed Jun 05 22:33:27 2019 +0200 @@ -56,6 +56,6 @@ mod state; pub use combinators::{Alternative, Maybe, PartialSequence, Repeat, Sequence, Then, Transform}; -pub use parser::{execerr, Parser}; +pub use parser::{execerr, Parser, ParseResult}; pub use primitives::{float, string_none_of, string_of, whitespace, Int, StringParser}; pub use state::ParseState;