guess i'm stupid, var works now :3
This commit is contained in:
parent
783955d671
commit
3478da43a3
3 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue