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 / si / harness / examples / mistake_else_if.om

10 lines · 164 bytes Raw Blame History
1note mistake_else_if: there is no else if on one line; nest an if inside the else block
2fn main to int
3x = int 1
4if eq x 0
5ret 1
6else if eq x 1
7ret 2
8end
9ret 0
10end