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-goal2en.om

22 lines · 421 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-only
2note goal2en driver: stdin one G line, stdout one English review sentence
3note (exit 0) or `G2E_INVALID goal <reason>` (exit 31). Exit 2: usage (any
4note argument) or a stdin read/stdout write error.
5fn main to int
6if ne argcnt 1
7otpfr 10
8otflush
9ret 2
10end
11k = otrdin
12if eq k neg long 2
13ret 2
14end
15n = ulong 1024
16if ge k 0
17n = ulong k
18end
19code = otgoalen n
20otflush
21ret code
22end