interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / omc / tests / paren / basic.om

15 lines · 244 bytes Raw Blame History
1note parentheses are separate words even when written next to a value; they only group.
2fn main to int
3a = (int 2)
4b = ((int 3))
5if ne add a b 5
6ret 1
7end
8if ne add (mul (int 2) (int 3)) (int 4) 10
9ret 2
10end
11if ne (int 7) 7
12ret 3
13end
14ret 0
15end