Simplified function registration to not require explicit coercion step. Simplified eval to take &str instead of String
This commit is contained in:
@@ -322,7 +322,7 @@ impl<'a> Iterator for TokenIterator<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn lex<'a>(input: &'a String) -> TokenIterator<'a> {
|
||||
pub fn lex<'a>(input: &'a str) -> TokenIterator<'a> {
|
||||
TokenIterator { char_stream: input.chars().peekable() }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user