A simple character‑based lexer that turns source text into a stream of Tokens, handling identifiers, numbers, operators, and whitespace.
Token