Function blarse::str_to_tokens

source ·
pub fn str_to_tokens<'a>(body: &'a str) -> Vec<Token<'a>, Global>
Expand description

Chops up a string slice into a vector of owned tokens. Also appends an empty token to the tail of the vector to enable certain lexing functions like scanning for words.