Skip to content

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.

CodeSubsystemSeverityMessage
LEX010Lexicalerrorstray carriage return
LEX020Lexicalerrorunknown string-literal prefix
LEX021Lexicalerrorunexpected & in type position
LEX030Lexicalerrorunterminated string literal
LEX031Lexicalerrorchar literals are not supported
LEX040Lexicalerrorunexpected character
PAR040Parsererrorgeneric vs less-than ambiguity
NAM001Nameserrorunknown module
NAM002Nameserrorimport path escapes qube
NAM003Nameserrorwildcard import is forbidden
NAM004Nameserrorselective import combined with alias
NAM005Nameserrorname collision in import scope
NAM006Nameserrorname is private to its qube
NAM007Nameserrorsub-module not re-exported
NAM008Nameserrorre-export cycle
NAM009Nameserrorblock pub form is forbidden
NAM010Nameserrorunknown name in source module
NAM011Nameserrordash in bare module path