interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / tests / fixtures / order_trap.om

17 lines · 236 bytes Raw Blame History
1global out uchar 1
2fn mark x ulong to ulong
3put out 0 uchar x
4w = write 1 out 0 1
5ret x
6end
7fn pick a ulong b ulong to ulong
8ret sub b a
9end
10fn boom to ulong
11x = ulong 0
12ret div x x
13end
14fn main to int
15x = add boom mark 65
16ret int x
17end