Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/si/rosetta/exercises/protein-translation/protein-translation.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / si / rosetta / exercises / protein-translation / protein-translation.om` 12 lines ยท 732 bytes Raw Blame History 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