Open leque opened 2 years ago
In SATySFi, /, *, mod, and + are right associative, i.e. 4 / 2 / 2 = 4 / (2 / 2), not (4 / 2) / 2, thus evaluated to 4. In addition, + has lower precedence than -, so 1 + 2 - 3 = 1 + (2 - 3).
/
*
mod
+
4 / 2 / 2
4 / (2 / 2)
(4 / 2) / 2
4
-
1 + 2 - 3
1 + (2 - 3)
Is this a bug or intended behavior?
This is not intended, and it is desirable in my opinion that this be fixed when releasing v0.1.0.
In SATySFi,
/
,*
,mod
, and+
are right associative, i.e.4 / 2 / 2
=4 / (2 / 2)
, not(4 / 2) / 2
, thus evaluated to4
. In addition,+
has lower precedence than-
, so1 + 2 - 3
=1 + (2 - 3)
.Is this a bug or intended behavior?