Get AST Style Locations During Text Parsing With nom_locate
Code
#!/usr/bin/env cargo +nightly -Zscript
//! ```cargo
//! [package]
//! edition = "2021"
//! [dependencies]
//! nom = { version = "7.1.3"}
//! nom_locate = { version = "4.2"}
//! ```
use is_not;
use tag;
use none_of;
use one_of;
use many1;
use separated_list1;
use IResult;
use ;
type Span<'a> = ;
Notes
not all those includes are required. I haven't gone thru the sample to clean them up yet