bfbcompiler/doc/examples/correct/use-case-01.b

13 lines
219 B
Brainfuck

fun h = 3*x;
function g = { x - 2: x < 3,
x^3: x >= 5,
x: x > 7
};
fun h = x/(x-2);
print(evaluate h in (3));
print(g(5));
print(evaluate g in (4));
print(g(2));
print(h(2));