omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / tests / fixtures / order_trap.om
| 1 | global out uchar 1 |
| 2 | fn mark x ulong to ulong |
| 3 | put out 0 uchar x |
| 4 | w = write 1 out 0 1 |
| 5 | ret x |
| 6 | end |
| 7 | fn pick a ulong b ulong to ulong |
| 8 | ret sub b a |
| 9 | end |
| 10 | fn boom to ulong |
| 11 | x = ulong 0 |
| 12 | ret div x x |
| 13 | end |
| 14 | fn main to int |
| 15 | x = add boom mark 65 |
| 16 | ret int x |
| 17 | end |