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 / omc / error-codes.reg

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