12345678910111213141516171819202122 |
- fun main
- {
- (* 5 2 7 6 - * 3 / + *)
- Int32 a = 5 + 2 * (7 - 6) / 3;
- (* 3 4 2 * 1 5 - / + *)
- Int32 b = 3 + 4 * 2 / (1 - 5);
- (* 3 4 2 * 1 5 - 2 3 ** ** / + *)
- Int32 c = 3 + 4 * 2 / (1 - 5) ** 2 ** 3;
- (* should fail *)
- Int32 d = 5 5 5;
- Int32 e = 5 + + 5 + 3;
- (* unary *)
- Int32 f = 5 + -6;
- (* shorthand if in expression *)
- Int32 g = 12 unless d < 5 else 50;
- }
|