• Home
Name Date Size #Lines LOC

..--

async.rsD03-May-20246.2 KiB190135

date.rsD03-May-20245.4 KiB236199

ini.rsD03-May-20244.7 KiB180153

number.rsD03-May-2024802 3428

readme.rsD03-May-2024369 1915

readme.rs

1 use combine::{
2     many1,
3     parser::char::{letter, space},
4     sep_by, Parser,
5 };
6 
7 #[test]
readme()8 fn readme() {
9     main();
10 }
11 
main()12 fn main() {
13     let word = many1(letter());
14 
15     let mut parser = sep_by(word, space()).map(|mut words: Vec<String>| words.pop());
16     let result = parser.parse("Pick up that word!");
17     assert_eq!(result, Ok((Some("word".to_string()), "!")));
18 }
19