5965
This commit is contained in:
parent
c2bec7a60f
commit
4bb0b7e93f
11
README.md
11
README.md
|
@ -59,16 +59,7 @@ When completed, it will be type- and memory-safe. At the moment it performs no
|
|||
checks and only supports variables of type `int`. Here's the program we
|
||||
translated above:
|
||||
|
||||
```
|
||||
fn main -> result/ebx: int {
|
||||
result <- do-add 3 4
|
||||
}
|
||||
|
||||
fn do-add a: int, b: int -> result/ebx: int {
|
||||
result <- copy a
|
||||
result <- add b
|
||||
}
|
||||
```
|
||||
<img alt='ex2.mu' src='html/ex2.mu.png'>
|
||||
|
||||
There are no expressions, only statements that operate on variables. Most
|
||||
statements in Mu translate to a single machine code instruction. Variables
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue