Print out tokens as they come
This commit is contained in:
parent
b1051f5f74
commit
e6ca40122e
1 changed files with 3 additions and 1 deletions
|
@ -8,5 +8,7 @@ fn main() {
|
|||
lexer::hello(&s);
|
||||
|
||||
let lexer = lexer::Lexer::new(String::from("((abc))"));
|
||||
for t in lexer { }
|
||||
for t in lexer {
|
||||
println!("token = {}", t);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue