Adds support for hexadecimal literals.

This commit is contained in:
Gavin Schulz
2015-01-24 22:07:46 -08:00
parent cff08f989b
commit 12102b19ef
2 changed files with 59 additions and 14 deletions
+8
View File
@@ -0,0 +1,8 @@
var x = 0xFF
IO.print(x) // expect: 255
IO.print(x + 1) // expect: 256
IO.print(x == 255) // expect: true
IO.print(0x09 is Num) // expect: true
IO.print(x is Num) // expect: true
IO.print(-0xFF) // expect: -255