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.
11 lines
108 B
Text
11 lines
108 B
Text
example : 0xf = 15 :=
|
|
rfl
|
|
|
|
example : 3 = 0b11 :=
|
|
rfl
|
|
|
|
example : 5 = 0b101 :=
|
|
rfl
|
|
|
|
example : 8 = 0o10 :=
|
|
rfl
|