organic/src/main.rs

14 lines
274 B
Rust
Raw Normal View History

2023-08-22 17:20:01 -04:00
use nom::bytes::complete::tag;
2023-08-22 17:11:45 -04:00
fn main() {
2023-08-22 17:20:01 -04:00
let input = "this is my test input".to_owned();
let output = tag::<_, _, (_, nom::error::ErrorKind)>("this")(input.as_str()).unwrap();
println!("{:#?}", output);
}
struct WrappedInput<'s> {
contents: &'s str,
2023-08-22 17:11:45 -04:00
}