From 3350c34a74844e21ea69077e01efff3bae64bdcd Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 23 Mar 2021 17:31:08 -0700 Subject: . --- html/apps/ex2.mu.html | 81 --------------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 html/apps/ex2.mu.html (limited to 'html/apps/ex2.mu.html') diff --git a/html/apps/ex2.mu.html b/html/apps/ex2.mu.html deleted file mode 100644 index 9c408104..00000000 --- a/html/apps/ex2.mu.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - -Mu - apps/ex2.mu - - - - - - - - - - -https://github.com/akkartik/mu/blob/main/apps/ex2.mu -
- 1 # Add 3 and 4, and return the result in the exit code.
- 2 #
- 3 # To run:
- 4 #   $ ./translate_mu apps/ex2.mu
- 5 #   $ ./a.elf
- 6 # Expected result:
- 7 #   $ echo $?
- 8 #   7
- 9 
-10 fn main -> _/ebx: int {
-11   var result/eax: int <- do-add 3 4
-12   return result
-13 }
-14 
-15 fn do-add a: int, b: int -> _/eax: int {
-16   var result/ecx: int <- copy a
-17   result <- add b
-18   return result
-19 }
-
- - - -- cgit 1.4.1-2-gfad0