µRust # 1 + 1 - : isize = 2 µRust # 1 + 2 - 3 * 4 / 5 - : isize = 1 µRust # let un = 1 un : isize = 1 µRust # un - : isize = 1 µRust # un + 1 - : isize = 2 µRust # 1 / (1 - 1) Evaluation Error: Division by zero, `(1 - 1)` evaluates to 0 µRust # let repete = 0 repete : isize = 0 µRust # let repete = 0 Evaluation Error: Identifier `repete` already defined. µRust # let pasdefini = 1 / 0 Evaluation Error: Division by zero, `0` evaluates to 0 µRust # let pasdefini = toujourspasdefini Evaluation Error: Undefined identifier: `toujourspasdefini` µRust # pasdefini Evaluation Error: Undefined identifier: `pasdefini` µRust # let x = 0 x : isize = 0 µRust # {let x = 1; x+1} - : isize = 2 µRust # x+1 - : isize = 1 µRust # {let tmp = 0} - : isize = 0 µRust # tmp Evaluation Error: Undefined identifier: `tmp` µRust # {let zero = 0; {let deux = un + un; zero + deux}} - : isize = 2 µRust # 0 == 0 - : bool = true µRust # 1 - 1 != 1 + 1 - : bool = true µRust # true == false - : bool = false µRust # true == 1 Evaluation Error: Type mismatch in expression `1`. Expected: bool, Found: isize µRust # true != 1 Evaluation Error: Type mismatch in expression `1`. Expected: bool, Found: isize µRust # true == (1 == 1) - : bool = true µRust # 0 < 0 - : bool = false µRust # 1 - 1 >= un + 1 - : bool = false µRust # true > false Evaluation Error: Type mismatch in expression `true`. Expected: isize, Found: bool µRust # true || false && un == 1 - : bool = true µRust # x == 0 || 1 / x == 1 - : bool = true µRust # 1 / x == 1 || x == 0 Evaluation Error: Division by zero, `x` evaluates to 0 µRust # (un == 1) ? 1 : 2 - : isize = 1 µRust # (un != 1) ? 1 : 2 - : isize = 2 µRust # let mut acc = 0 acc : isize = 0 µRust # acc = acc + 1 - : isize = 1 µRust # acc - : isize = 1 µRust # {let mut flag = false; flag = flag || x == 0; flag} - : bool = true µRust # {let mut mayfreeze = 0; {let mayfreeze = 1; mayfreeze = 2}} Evaluation Error: Variable `mayfreeze` is not mutable. µRust # {let maymelt = 0; {let mut maymelt = 0; maymelt = 1}} - : isize = 1 µRust # if (acc == 0) { acc = acc + 1} else { acc = acc - 1} - : isize = 0 µRust # acc - : isize = 0 µRust # let mut k = 0 k : isize = 0 µRust # while (k < 4) {k = k + 3} - : unit = () µRust # k - : isize = 6