Skip to main content

oni_comb_parser/text/
mod.rs

1pub mod char;
2pub mod escaped;
3pub mod identifier;
4pub mod integer;
5pub mod lexeme;
6pub mod quoted_string;
7#[cfg(feature = "regex")]
8pub mod regex;
9pub mod tag;
10pub mod take_while;
11pub mod whitespace;
12
13// primitive/ から re-export(後方互換性)
14pub mod eof {
15  pub use crate::primitive::eof::{eof, Eof};
16
17  use crate::str_input::StrInput;
18
19  pub fn str_eof<'a>() -> Eof<StrInput<'a>> {
20    eof()
21  }
22}
23
24pub mod satisfy {
25  pub use crate::primitive::satisfy::{satisfy, Satisfy};
26
27  use crate::str_input::StrInput;
28
29  pub fn str_satisfy<'a, F: FnMut(char) -> bool>(f: F) -> Satisfy<F, StrInput<'a>> {
30    satisfy(f)
31  }
32}