diff --git a/src/main.rs b/src/main.rs index deaf0c4..f096457 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ // todo: // * [ ] rewrite fn parser to use chumsky::Recursive::declare/define // - [ ] do this to extract/simplify/DRY things like tuple patterns, fn clauses, etc. -// * [ ] Work around chumsky::Stream::from_iter().spanned disappearing in most recent version +// * [x] Work around chumsky::Stream::from_iter().spanned disappearing in most recent version // * [x] investigate using labels (which is behind a compiler flag, somehow) // * [ ] wire up Ariadne parsing errors // * [ ] validation @@ -764,7 +764,7 @@ pub fn main() { println!("{}", token) } let (ast, _) = parser() - .parse(Stream::from_iter(to_parse).spanned(SimpleSpan::new(0, src.len()))) + .parse(Stream::from_iter(to_parse).map((0..src.len()).into(), |(t, s)| (t, s))) .unwrap(); println!("{}", ast); }