Library does not support hex number (e.g. 0xABC) or binary number (e.g. 0b1101).
I need to replace hex/binary numbers using regular expression before evaluation.
I've created a pull request to support hexadecimal and binary literals.
I didn't add support for the underscore decoration, so you can write 0b1111, but not 0b11_11.
Library does not support hex number (e.g. 0xABC) or binary number (e.g. 0b1101). I need to replace hex/binary numbers using regular expression before evaluation.
Here example expression: "4 + 0xA1"
The result should be 165.