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
/
astbuilder.nit
diff --git
a/src/astbuilder.nit
b/src/astbuilder.nit
index
96948ea
..
fa1d188
100644
(file)
--- a/
src/astbuilder.nit
+++ b/
src/astbuilder.nit
@@
-32,7
+32,7
@@
class ASTBuilder
# Make a new Int literal
fun make_int(value: Int): AIntExpr
do
# Make a new Int literal
fun make_int(value: Int): AIntExpr
do
- return new AIntExpr.make(value, mmodule.get_primitive_class("Int").mclass_type)
+ return new ADecIntExpr.make(value, mmodule.get_primitive_class("Int").mclass_type)
end
# Make a new instatiation
end
# Make a new instatiation
@@
-220,7
+220,7
@@
redef class AType
end
end
end
end
-redef class AIntExpr
+redef class ADecIntExpr
private init make(value: Int, t: MType)
do
self.value = value
private init make(value: Int, t: MType)
do
self.value = value