Diagnostics
Every diagnostic the q64 toolchain emits has a stable code. The compiler points
each error at docs.q64.dev/diagnostics/<CODE>, and q64 explain <code>
prints the same information in your terminal — all from one registry.
| Code | Subsystem | Severity | Message |
|---|---|---|---|
LEX010 | Lexical | error | stray carriage return |
LEX020 | Lexical | error | unknown string-literal prefix |
LEX021 | Lexical | error | unexpected & in type position |
LEX030 | Lexical | error | unterminated string literal |
LEX031 | Lexical | error | char literals are not supported |
LEX040 | Lexical | error | unexpected character |
PAR040 | Parser | error | generic vs less-than ambiguity |
NAM001 | Names | error | unknown module |
NAM002 | Names | error | import path escapes qube |
NAM003 | Names | error | wildcard import is forbidden |
NAM004 | Names | error | selective import combined with alias |
NAM005 | Names | error | name collision in import scope |
NAM006 | Names | error | name is private to its qube |
NAM007 | Names | error | sub-module not re-exported |
NAM008 | Names | error | re-export cycle |
NAM009 | Names | error | block pub form is forbidden |
NAM010 | Names | error | unknown name in source module |
NAM011 | Names | error | dash in bare module path |