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 / seed / explain / README.md

32 lines · 2029 bytes Raw Blame History Source

seed/explain: refusals in words

explain is a small Omega program (explain.om, OM-2 profile) that runs the seeded compiler on one source file and, when the compiler refuses it, says why in a sentence and shows the line:

$ seed/out/omc < seed/explain/explain.om > explain && chmod +x explain
$ ./explain seed/out/omc bad.om bad
bad.om:2: error 7: type mismatch
    2 | x = add int 1 uint 2

sh seed/explain/gate.sh (run by seed/host/check.sh after gate15) checks: the table against the registry with a changed-meaning negative control; every gate15 refusal case, read from gate15.sh, for exit code, sentence and source line; a valid program giving the same bytes as the compiler alone; the om2 diag pass-through; stand-in compilers for an odd message, a code mismatch, a signal, a missing compiler and 100 KB of stderr; a missing source; usage; and two identical runs. Four planted bugs (no code-mismatch check, meaning off by one, wrong source line, exit code lost) each fail it.

This covers the human-message part of ROADMAP-1.0 RM8 without touching the compiler's output. A message inside omc itself, and diagnostics in every profile, remain open there.