aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/ack.cff
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/ack.cff')
-rw-r--r--bootstrap/ack.cff15
1 files changed, 0 insertions, 15 deletions
diff --git a/bootstrap/ack.cff b/bootstrap/ack.cff
deleted file mode 100644
index 233abc2..0000000
--- a/bootstrap/ack.cff
+++ /dev/null
@@ -1,15 +0,0 @@
-import "libc.hff";
-
-fn ack(m uint, n uint) uint {
- if m == 0 { return n + 1; }
- if n == 0 { return ack(m - 1, 1); }
- return ack(m - 1, ack(m, n - 1));
-}
-
-extern fn main() void {
- for let m = 0; m <= 4; ++m {
- for let n = 0; n < 6 - m; ++n {
- printf("A(%u,%u) = %u\n", m, n, ack(m, n));
- }
- }
-}