fixup! pre remove atomic state

This commit is contained in:
Noah Hellman 2022-12-17 12:30:52 +01:00
parent 6fdbd09cd1
commit cd54416902

View file

@ -113,20 +113,6 @@ impl<I: Iterator<Item = char> + Clone> Lexer<I> {
&self.chars
}
/*
pub fn pos(&self) -> usize {
self.src.len()
- self.chars.as_str().len()
- self.next.as_ref().map(|t| t.len).unwrap_or_default()
}
*/
/*
pub fn peek_ahead(&mut self) -> &'s str {
&self.src[self.pos()..]
}
*/
fn next_token(&mut self) -> Option<Token> {
let mut current = self.token();