reid-llvm/examples/reid/easy.reid

10 lines
220 B
Plaintext
Raw Normal View History

2023-07-27 16:40:12 +02:00
// Arithmetic, function calls and imports!
2023-08-02 23:53:39 +02:00
fn main() {
2024-07-17 17:39:31 +02:00
let test = 9;
2023-08-02 23:53:39 +02:00
let simpleAdd = 2 + 2;
2024-07-17 17:39:31 +02:00
let simpleMult = 7 * 2;
2023-08-02 23:53:39 +02:00
let arithmetic = 3 + 2 * 5 + 1 * 2;
2023-07-27 16:40:12 +02:00
2024-07-17 17:39:31 +02:00
return arithmetic + simpleMult * arithmetic;
2023-08-02 23:53:39 +02:00
}