fix: exiting repl on newline and weird behaviour in discord bot
This commit is contained in:
@@ -362,21 +362,4 @@ impl<R: BufRead> Iterator for Tokenizer<R> {
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
self.tokenize().transpose()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use std::io::Cursor;
|
||||
|
||||
#[test]
|
||||
fn a() {
|
||||
let program = ": f a * 12 a f 12\n\n";
|
||||
|
||||
let tokenizer = Tokenizer::new(Arc::new(Mutex::new(CodeIter::new(Cursor::new(program)))));
|
||||
|
||||
let t: Vec<_> = tokenizer.collect();
|
||||
|
||||
println!("{t:#?}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user