Skip to main content

tokenize

Function tokenize 

Source
pub fn tokenize(source: &str) -> LexResult
Expand description

Tokenize source.

Always succeeds. Malformed input produces SyntaxKind::Unknown tokens and entries in LexResult::errors, never a hard failure.