lean4-htt/tests/lean/run/bin_oct_hex.lean
Joe Hendrix 8ceada5555 feat(frontends/lean): support binary, octal and hex literals
Scanner will interpret numeric literals prefixed with '0b', '0o', and
'0x' as binary, octal, and hex decimal values respectively.  The prefix
character ('b', 'o', 'x') may be upper or lower case.
2016-10-19 10:13:24 -07:00

11 lines
108 B
Text

example : 0xf = 15 :=
rfl
example : 3 = 0b11 :=
rfl
example : 5 = 0b101 :=
rfl
example : 8 = 0o10 :=
rfl