added support for long, float and double

This commit is contained in:
wea_ondara
2022-07-13 21:05:14 +02:00
parent a267d7034b
commit 7dafade67a
10 changed files with 257 additions and 194 deletions

View File

@@ -17,8 +17,6 @@ public class TernaryExpression implements Expression {
@Override
public String toString() {
return cond
+ " ? " + (!(whenTrue instanceof ConstantExpression) ? "(" + whenTrue + ")" : whenTrue)
+ " : " + (!(whenFalse instanceof ConstantExpression) ? "(" + whenFalse + ")" : whenFalse);
return "IF(" + cond + ", " + whenTrue + ", " + whenFalse + ")";
}
}