omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / omc / tests / paren / basic.om
| 1 | note parentheses are separate words even when written next to a value; they only group. |
| 2 | fn main to int |
| 3 | a = (int 2) |
| 4 | b = ((int 3)) |
| 5 | if ne add a b 5 |
| 6 | ret 1 |
| 7 | end |
| 8 | if ne add (mul (int 2) (int 3)) (int 4) 10 |
| 9 | ret 2 |
| 10 | end |
| 11 | if ne (int 7) 7 |
| 12 | ret 3 |
| 13 | end |
| 14 | ret 0 |
| 15 | end |