Very simple setup.

This commit is contained in:
Tom Alexander
2023-08-22 17:20:01 -04:00
parent 6823db5c60
commit 2ec055af5a
3 changed files with 44 additions and 1 deletions

View File

@@ -1,3 +1,13 @@
use nom::bytes::complete::tag;
fn main() {
println!("Hello, world!");
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,
}