Skip to main content

Module tokenizer

Module tokenizer 

Source
Expand description

Tokenizer struct and the main character-by-character scan loop.

Holds the source text, the current byte cursor, and the accumulated token list. The scan loop in here dispatches each character to the appropriate sub-scanner in types/ or handles single/double-character operators inline.

Structsยง

Tokenizer
Converts raw source text into a flat list of Tokens.