reid-llvm/easy.reid

11 lines
227 B
Plaintext
Raw Normal View History

2023-07-27 16:40:12 +02:00
// Arithmetic, function calls and imports!
import std::print;
2023-07-27 20:47:50 +02:00
let test = 5;
2023-07-27 21:25:13 +02:00
let simpleAdd = 2 + 2;
2023-07-27 16:40:12 +02:00
let arithmetic = 3 + 2 * 5 + 1 * 2;
let multiplier = 5 * 2;
2023-07-27 21:25:13 +02:00
let result = arithmetic + multiplier * arithmetic;
2023-07-27 16:40:12 +02:00
print(result);