nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests.sh: force LC_ALL that cause issues with MacOSX
[nit.git]
/
src
/
literal.nit
diff --git
a/src/literal.nit
b/src/literal.nit
index
92f137b
..
0395299
100644
(file)
--- a/
src/literal.nit
+++ b/
src/literal.nit
@@
-74,6
+74,13
@@
redef class ADecIntExpr
end
end
end
end
+redef class AHexIntExpr
+ redef fun accept_literal(v)
+ do
+ self.value = self.n_hex_number.text.substring_from(2).to_hex
+ end
+end
+
redef class AFloatExpr
# The value of the literal float once computed.
var value: nullable Float
redef class AFloatExpr
# The value of the literal float once computed.
var value: nullable Float