tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.02k stars 48 forks source link

Reading integers: Negative Hexadecimal not readable #151

Closed porky11 closed 7 years ago

porky11 commented 7 years ago

examples: -0x1, 0x-1 both are invalid integer

tomhrr commented 7 years ago

Thanks, this has been fixed. (Only the first case, with the sign at the beginning of the number, is supported, though.)

porky11 commented 7 years ago

The second case isn't needed anyway, I only tried it, because it's the way it's done in lisp (#x-1)