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 / packages / examples / hello.om
| 1 | note hello: sum 1..10 and print "omega 55" through write |
| 2 | global out uchar 16 |
| 3 | fn main to int |
| 4 | s = ulong 0 |
| 5 | for i ulong 11 |
| 6 | s = add s i |
| 7 | end |
| 8 | put out 0 111 |
| 9 | put out 1 109 |
| 10 | put out 2 101 |
| 11 | put out 3 103 |
| 12 | put out 4 97 |
| 13 | put out 5 32 |
| 14 | put out 6 uchar add div s 10 48 |
| 15 | put out 7 uchar add rem s 10 48 |
| 16 | put out 8 10 |
| 17 | w = write 1 out 0 9 |
| 18 | ret 0 |
| 19 | end |