jinko-core / jinko

Jinko is a small and safe interpreted language with fast Rust and C FFI
GNU General Public License v2.0
32 stars 6 forks source link

Add other integer format parsing #307

Open CohenArthur opened 2 years ago

CohenArthur commented 2 years ago
CohenArthur commented 2 years ago

We should also add methods to get the string representation of said formats from integers, such as 15.bin() -> "0xF"

CohenArthur commented 2 years ago

We also have to add an error when declaring an identifier with the correct start chars, so 0x, 0b, 0o... which could be an error in the identifier function