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
omega-mv / seed / omc / error-codes.reg
| 1 | note Error-code registry for the seeded toolchain (issue #797). Checked by seed/omc/codereg.om in gate15. |
| 2 | note Row: NS|CODE|STATUS|CASE|MEANING. NS keeps namespaces apart: omc compiler exit codes, irwasm exit codes. |
| 3 | note STATUS emitted: a refusal site exists; io: compiler I/O, not a language input; unused: no site exists. |
| 4 | note CASE names the gate15 case that must refuse with exactly that code at its expected line (- for none). |
| 5 | note MEANING is copied verbatim into docs/one_layer/OMEGESE.md as | NS CODE | MEANING |; the gate fails on drift. |
| 6 | omc|1|io|e1_input_unreadable|the compiler's standard input could not be read |
| 7 | omc|2|io|e2_output_unwritable|the compiler's standard output could not be written |
| 8 | omc|3|emitted|e3_unknown_name|unknown name or field, or a word this mode does not provide |
| 9 | omc|4|emitted|e4_line_ends|the line ends where a word or value is needed |
| 10 | omc|5|emitted|e5_extra_words|extra words after a complete statement |
| 11 | omc|6|emitted|e6_bad_number|malformed number or token |
| 12 | omc|7|emitted|e7_type_mismatch|type mismatch |
| 13 | omc|8|emitted|e8_out_of_range|number out of range for its type or place |
| 14 | omc|9|emitted|e9_break_outside|word or declaration in a place that does not allow it |
| 15 | omc|10|emitted|e10_duplicate_param|duplicate name |
| 16 | omc|11|emitted|e11_ambiguous|bare number without a type from its context |
| 17 | omc|12|emitted|e12_register_pool|register pool exhausted |
| 18 | omc|13|emitted|e13_long_variable|name too long (63 bytes; 8 for an abstract, a layout, a layout field, or any name in IR mode) |
| 19 | omc|14|emitted|e14_capacity|capacity exceeded (the host refused to grow the compiler's arena or its memory ceiling OMC_MEMORY_MAX was reached, value nesting past omc's own stack, the program image, or an OM-2 expansion bound) |
| 20 | omc|15|emitted|e15_missing_end|missing end |
| 21 | omc|16|emitted|e16_syntax|syntax: unknown or misplaced word |
| 22 | omc|17|emitted|e17_after_path|line after ret, break, continue, trap or exit in the same block |
| 23 | omc|18|emitted|e18_missing_ret|a function with a result can reach its end |
| 24 | omc|19|emitted|e19_global_passed|global passed as an argument, or one array twice in a call |
| 25 | omc|20|emitted|e20_readonly|write to a view or a text |
| 26 | omc|21|emitted|e21_const_index|constant index outside the array |
| 27 | omc|22|emitted|e22_text_literal|malformed text literal |
| 28 | omc|23|emitted|e23_size_capacity|size capacity |
| 29 | omc|24|emitted|e24_branch_range|AArch64 branch displacement out of range |
| 30 | omc|25|emitted|e25_target|unknown target, an AArch64-only path on another target, or an x86efi refusal (bare unit, Linux host word, efi OP literal outside 0..14) |
| 31 | omc|26|io|e26_memory_max|the compiler's environment entry OMC_MEMORY_MAX is not empty, 0 or 1 to 19 decimal digits below 2^63, or an entry is too long to read whole |
| 32 | omc|27|emitted|e27_fresh_get|fresh element read before it is definitely written, or fresh array passed on |
| 33 | omc|28|emitted|e28_seal_outside|abstract type: seal outside its constructor, or an unsupported holds |
| 34 | omc|29|emitted|e29_layout_past|external layout out of bounds or misplaced |
| 35 | omc|30|emitted|e30_ir_requires|contract syntax misplaced or not supported here (IR mode included) |
| 36 | irwasm|20|emitted|-|MAGIC |
| 37 | irwasm|21|emitted|-|VERSION (anything except v1 and v7; v7 with no v7 feature) |
| 38 | irwasm|22|emitted|-|TRUNCATED |
| 39 | irwasm|23|emitted|-|CAPACITY |
| 40 | irwasm|24|emitted|-|UNSUPPORTED_OP |
| 41 | irwasm|25|emitted|-|UNSUPPORTED_TAG |
| 42 | irwasm|26|emitted|-|INVALID (typing, register, block, text, or definite assignment) |
| 43 | irwasm|27|emitted|-|TRAILING |
| 44 | irwasm|28|emitted|-|IO |