omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / tests / fixtures / order_calls.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 main to int |
| 11 | x = pick mark 65 mark 66 |
| 12 | y = add mark 67 mark 68 |
| 13 | ret int x |
| 14 | end |