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 / train / aien-train / native / omegese45 / translate / main-rep2en.om

26 lines · 519 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-only
2note rep2en driver: rep2en FACTS_TSV, stdin = the G line then the P line.
3note stdout: one English sentence (exit 0), `G2E_CONTRADICT <what>` (exit
4note 30) or `G2E_INVALID <what>` (exit 31). Exit 2: usage (not exactly one
5note argument) or a stdin read/stdout write error.
6fn main to int
7if ne argcnt 2
8otpfr 19
9otflush
10ret 2
11end
12k = otrdin
13if eq k neg long 2
14ret 2
15end
16if lt k 0
17put otol 0 0
18otpfr 18
19otpfr 31
20otflush
21ret 31
22end
23code = otrepen ulong k
24otflush
25ret code
26end