guess i'm stupid, var works now :3

This commit is contained in:
LunarAkai 2025-08-07 21:44:41 +02:00
commit 3478da43a3
3 changed files with 11 additions and 4 deletions

View file

@ -32,6 +32,11 @@ fn main() {
Err(()) => (Token::Error, span.into()),
});
println!("Token Stream:");
for (token, span) in token_iter.clone() {
println!("{:?} at {:?}", token, span);
}
// Turn the token iterator into a stream that chumsky can use for things like backtracking
let token_stream = Stream::from_iter(token_iter)
// Tell chumsky to split the (Token, SimpleSpan) stream into its parts so that it can handle the spans for us