lexer: New functions for parsing real numbers in specified ranges.