pub fn lex(input: &str) -> Result<Vec<Token<'_>>, LexError>
Lex an input string into a vector of tokens.
Returns the first lexing error encountered.