Skip to main content

Module number_literal

Module number_literal 

Source
Expand description

Integer and float literal scanner.

Consumes a run of digits, checks for a . to decide between TokenType::NumberLiteral and TokenType::FloatLiteral, and handles byte literals (0b prefix -> TokenType::ByteLiteral).