DQ Language Reference
This reference defines the DQ language implemented by the compiler on the
repository's main branch. DQ is currently Pre-V1, so incompatible changes may
still be made. A rule belongs here only when it is implemented and covered by
the compiler or its autotests.
If you are learning DQ, begin with the Language Basics guide. The guide shows common usage; this reference records exact behavior, restrictions, and edge cases.
Reference Map
| Area | Pages |
|---|---|
| Source language | Lexical Structure, Declarations and Scope |
| Types | Types and Conversions, Enums, Arrays and Slices, Strings and Characters, anyvalue, Structures, Pointers, and Function References |
| Execution | Expressions and Operators, Statements and Control Flow, Functions |
| Larger units | Objects and Properties, Modules and Packages |
| Platform access | Attributes, Directives, and Interoperability, Assembly Functions |
Runtime APIs such as string methods and formatting live under Runtime Library. Compiler command-line and build behavior live under Compiler and Tools.
Status Words
- Reference means implemented behavior and is normative for the documented development revision.
- Guide means a shorter explanation of normal use. It must not contradict the reference.
- Contributor documentation describes implementation rather than the language contract.
- Historical and design material is non-normative and may describe discarded or incomplete behavior.
See the documentation policy for the authority and maintenance rules.