This commit is contained in:
2025-11-26 14:27:12 -07:00
parent 1579d9f905
commit b03f32da00
4 changed files with 47 additions and 227 deletions

View File

@@ -76,6 +76,12 @@ impl From<String> for Tokenizer {
}
}
impl From<&str> for Tokenizer {
fn from(value: &str) -> Self {
Self::from(value.to_string())
}
}
impl Tokenizer {
/// Consumes the tokenizer and returns the next token in the stream
/// If there are no more tokens in the stream, this function returns None