ISibboI / evalexpr

A powerful expression evaluation crate 🦀.
GNU Affero General Public License v3.0
320 stars 52 forks source link

add hex integer literal parsing support #131

Closed kaspar030 closed 1 year ago

kaspar030 commented 1 year ago

This PR implements parsing integer literals as both decimal and hex (1234 and 0x1234). It adds num_traits as dependency, but that's a very light one.

ISibboI commented 1 year ago

Could you fix the two lints? Then we can merge this.

kaspar030 commented 1 year ago

Could you fix the two lints? Then we can merge this.

Done, and learned how to use strip_prefix(). :)

ISibboI commented 1 year ago

Great, thanks!