nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parser: split `AIntExpr` and `ADecIntExpr`
[nit.git]
/
src
/
literal.nit
diff --git
a/src/literal.nit
b/src/literal.nit
index
9ea79f0
..
92f137b
100644
(file)
--- a/
src/literal.nit
+++ b/
src/literal.nit
@@
-65,6
+65,9
@@
end
redef class AIntExpr
# The value of the literal int once computed.
var value: nullable Int
+end
+
+redef class ADecIntExpr
redef fun accept_literal(v)
do
self.value = self.n_number.text.to_i