Description
Flexible numeric parsers for real-world programming languages.
Description
This package provides parsers for integer, natural, and arbitrary-precision decimal numbers that are compatible with the syntaxes of a wide variety of programming languages.
README.md
flexible-numeric-parsers
Flexible numeric parsers for real-world programming languages. These parsers accept values such as 100_000_000
, 0B1_1
, and 0xa_bcd_ef0
.
This code was extracted from the Semantic project.
Currently missing support for complex numbers, suffixes indicating signedness/size (U
and L
and friends), and hexadecimal floats. If you need the former, file an issue; if you need the latter, then I sure want to know what your use case is.