reid-llvm/examples/reid/easy.reid

12 lines
240 B
Plaintext
Raw Normal View History

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