Files
Construction-of-Compilers/Project-02-03-04-05/triplaprograms/homework.tripla
Jan-Niclas Loosen 8a40cb2636 New project structure
2026-03-03 16:45:00 +01:00

17 lines
279 B
Plaintext

let f(x, y) {
if (x == 0) then
let g(x, z) {
x * y + z
} in g(2 * y, x)
else
x + 1
}
g (a, i) {
while (i > 0) do {
a = a * f(a, i);
i = i - 1
};
a + 42
}
in f (1, 2); g(3, 3)