From 9a524793ee01ce47f3963768559a0d6c348631c5 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 5 Jul 2020 15:28:37 -0700 Subject: 6618 - new docs --- html/apps/ex2.2.mu.html | 81 ------------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 html/apps/ex2.2.mu.html (limited to 'html/apps/ex2.2.mu.html') diff --git a/html/apps/ex2.2.mu.html b/html/apps/ex2.2.mu.html deleted file mode 100644 index 455305a6..00000000 --- a/html/apps/ex2.2.mu.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - -Mu - apps/ex2.2.mu - - - - - - - - - - -https://github.com/akkartik/mu/blob/master/apps/ex2.2.mu -
- 1 # Increment a number, and return the result in the exit code.
- 2 #
- 3 # To run:
- 4 #   $ ./translate_mu apps/ex2.2.mu
- 5 #   $ ./a.elf
- 6 # Expected result:
- 7 #   $ echo $?
- 8 #   7
- 9 
-10 fn main -> result/ebx: int {
-11   result <- foo
-12 }
-13 
-14 fn foo -> result/ebx: int {
-15   var n: int
-16   copy-to n, 3
-17   increment n
-18   result <- copy n
-19 }
-
- - - -- cgit 1.4.1-2-gfad0