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
omega-mv / si / harness / examples / decl_order.om
| 1 | note decl_order: text, const and global come before the function that names them; only functions may be named before their line |
| 2 | const K int 7 |
| 3 | global g uchar 4 |
| 4 | fn main to int |
| 5 | put g 0 uchar K |
| 6 | ret add f int get g 0 |
| 7 | end |
| 8 | fn f to int |
| 9 | ret 1 |
| 10 | end |