parser: split `AIntExpr` and `ADecIntExpr`
[nit.git] / src / literal.nit
index 9ea79f0..92f137b 100644 (file)
@@ -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