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 / rosetta / exercises / hello-world / .meta / example.om
| 1 | note Exercism-style exercise "hello-world": https://exercism.org/tracks/python/exercises/hello-world |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note hello writes the greeting "Hello, World!" into o and returns its length in bytes. |
| 4 | note Check it with: sh exercise.sh exercises/hello-world |
| 5 | om2 |
| 6 | text hw "Hello, World!" |
| 7 | fn hello o edit uchar * to ulong |
| 8 | for i ulong len hw |
| 9 | put o i get hw i |
| 10 | end |
| 11 | ret len hw |
| 12 | end |