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 / secret-handshake / secret-handshake.om
| 1 | note Exercism-style exercise "secret-handshake": https://exercism.org/tracks/python/exercises/secret-handshake |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note commands writes the handshake of the low five bits of n into o, joined by commas: 1 wink, |
| 4 | note 2 double blink, 4 close your eyes, 8 jump, in that order, reversed when bit 16 is set; returns |
| 5 | note the number of bytes written. |
| 6 | note Check it with: sh exercise.sh exercises/secret-handshake |
| 7 | om2 |
| 8 | fn commands n ulong o edit uchar * to ulong |
| 9 | note replace this line with your solution |
| 10 | trap 13 |
| 11 | end |