Skip to main content

Module lexer

Module lexer 

Source
Expand description

Lexical analyzer that transforms Rust source code into a stream of tokens.

Handles all Rust literal forms: strings (with escape sequences), characters, integers (decimal, hex, binary, octal with _ separators), floats, and keyword/identifier discrimination.

Structsยง

LexError
A lexical error with source location.
Lexer
Lexer that tokenizes Rust source code character by character.