fixup! pre remove atomic state
This commit is contained in:
parent
6fdbd09cd1
commit
cd54416902
1 changed files with 0 additions and 14 deletions
14
src/lex.rs
14
src/lex.rs
|
@ -113,20 +113,6 @@ impl<I: Iterator<Item = char> + Clone> Lexer<I> {
|
||||||
&self.chars
|
&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> {
|
fn next_token(&mut self) -> Option<Token> {
|
||||||
let mut current = self.token();
|
let mut current = self.token();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue