interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / si / rosetta / exercises / protein-translation / protein-translation.om

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