Skip to main content

lex

Function lex 

Source
pub fn lex(source: &str) -> LexOutput
Expand description

Lex source into tokens and lexical errors only.

Skips trivia allocation and blank-line processing. Use lex_with_trivia when callers also need comments and trivia for lossless rendering.