aien-train
AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.
Brought by drakestapleton
aien-train / native / omegese45 / translate / main-goal2en.om
| 1 | note SPDX-License-Identifier: AGPL-3.0-only |
| 2 | note goal2en driver: stdin one G line, stdout one English review sentence |
| 3 | note (exit 0) or `G2E_INVALID goal <reason>` (exit 31). Exit 2: usage (any |
| 4 | note argument) or a stdin read/stdout write error. |
| 5 | fn main to int |
| 6 | if ne argcnt 1 |
| 7 | otpfr 10 |
| 8 | otflush |
| 9 | ret 2 |
| 10 | end |
| 11 | k = otrdin |
| 12 | if eq k neg long 2 |
| 13 | ret 2 |
| 14 | end |
| 15 | n = ulong 1024 |
| 16 | if ge k 0 |
| 17 | n = ulong k |
| 18 | end |
| 19 | code = otgoalen n |
| 20 | otflush |
| 21 | ret code |
| 22 | end |