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 / protein-translation / protein-translation.om
| 1 | note Exercism-style exercise "protein-translation": https://exercism.org/tracks/python/exercises/protein-translation |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note proteins translates the RNA strand codon by codon into o, protein names joined by commas: |
| 4 | note AUG Methionine; UUU UUC Phenylalanine; UUA UUG Leucine; UCU UCC UCA UCG Serine; UAU UAC |
| 5 | note Tyrosine; UGU UGC Cysteine; UGG Tryptophan; UAA UAG UGA stop translation. Returns the number |
| 6 | note of bytes written, or -1 when a codon before the first stop is invalid or incomplete. |
| 7 | note Check it with: sh exercise.sh exercises/protein-translation |
| 8 | om2 |
| 9 | fn proteins strand view uchar * o edit uchar * to long |
| 10 | note replace this line with your solution |
| 11 | trap 13 |
| 12 | end |