Add parsing support for numerical literals to integer types.
To use num_literal_traits, first add this to your Cargo.toml:
[dependencies]
num_literal_traits = "0.1.3"Next, add this to your crate:
use num_literal_traits::NumLiteralTraitAll major C/C++ literal integer formats are supported: 123456, 0x123ABC, 01234567, 0b0101001, as well as ASCII chars: 'A', '@'.
Additionally the numerical parts can include underscores which are removed when parsing: 0b0010_0011_0000_1001.