(input: String)
| 301 | |
| 302 | impl Lexer { |
| 303 | pub fn new(input: String) -> Self { |
| 304 | Self { |
| 305 | input, |
| 306 | _position: 0, |
| 307 | tokens: Vec::new(), |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | pub fn tokenize(&mut self) -> Result<Vec<Token>, String> { |
| 312 | let mut remaining = self.input.as_str(); |
nothing calls this directly
no outgoing calls
no test coverage detected