kowainik / tomland

🏝 Bidirectional TOML serialization
https://kowainik.github.io/posts/2019-01-14-tomland
Mozilla Public License 2.0
120 stars 39 forks source link

[#331] Hexidecimal value with underscore #332

Closed dariodsa closed 4 years ago

dariodsa commented 4 years ago

Issue #331 Instead of classic functions like hexadecimal, octal and binary from megaparsec which doesn't support underscore, new functions were implemented ( hexadecimalP, octalP and binaryP).

In order for those functions to work, I needed to implement a function which will convert a string representation of number in base N into base 10.

New tests were added to test this bug fix.