oni_comb_parser/
prelude.rs1pub use crate::byte_input::ByteInput;
2pub use crate::parser::Parser;
3pub use crate::parser_ext::ParserExt;
4pub use crate::str_input::StrInput;
5
6pub use crate::primitive::eof::eof;
8pub use crate::primitive::none_of::none_of;
9pub use crate::primitive::one_of::one_of;
10pub use crate::primitive::satisfy::satisfy;
11pub use crate::primitive::take::take;
12pub use crate::primitive::take_till0::take_till0;
13pub use crate::primitive::take_till1::take_till1;
14pub use crate::primitive::take_while0::take_while0;
15pub use crate::primitive::take_while1::take_while1;
16pub use crate::primitive::take_while_n_m::take_while_n_m;
17
18pub use crate::text::char::char;
20pub use crate::text::escaped::escaped;
21pub use crate::text::identifier::identifier;
22pub use crate::text::integer::integer;
23pub use crate::text::lexeme::lexeme;
24pub use crate::text::quoted_string::quoted_string;
25pub use crate::text::quoted_string_cow::quoted_string_cow;
26pub use crate::text::tag::tag;
27pub use crate::text::whitespace::{whitespace0, whitespace1};
28
29pub use crate::combinator::fn_parser::fn_parser;
30pub use crate::combinator::recursive::recursive;
31
32#[cfg(feature = "regex")]
33pub use crate::text::regex::{regex, RegexBuildError};
34
35pub fn between<I, L, P, R>(
37 left: L,
38 parser: P,
39 right: R,
40) -> crate::combinator::zip_right::ZipRight<L, crate::combinator::zip_left::ZipLeft<P, R>>
41where
42 I: crate::input::Input,
43 L: crate::parser::Parser<I>,
44 P: crate::parser::Parser<I, Error = L::Error>,
45 R: crate::parser::Parser<I, Error = L::Error>, {
46 left.zip_right(parser.zip_left(right))
47}