lex

Function lex 

Source
pub fn lex(expr: &str) -> Result<Vec<Token>, LexerError>
Expand description

Lexes the given Javascript expression into a Vec of tokens.