1 · Your program
A tiny program. A function doubles a number, and the program prints the result and says "Big" when it is more than 5.
This is a program written in T.O.A.L., a programming language that reads like plain English. A computer cannot run it directly, so a program called a compiler translates it first.
The compiler works in stages. Step through them to see what each one does to the program.
automate double(num: x) -> num {
output x times 2;
}
make total with 3;
make result with double(total);
print result;
if result is greater than 5 {
print "Big";
}