Reference
These pages are not written by hand. They are generated from the binary at build time, and the build fails if they disagree with the compiler that produced them.
| page | generated from |
|---|---|
| Types | midad spec --json |
| Builtins | midad spec --json |
| Operators | midad spec --json |
| Layout rules | midad spec --json |
| Diagnostic codes | midad explain --json, one page per code from midad explain CODE |
Two things follow from that. A page here cannot describe a feature the binary does not have, and it cannot keep describing one after it is removed. What it also cannot do is explain: the handbook is where the reasons and the examples are.
The same information from a terminal
$ midad spec # types, builtins, operators, layout, code count
$ midad spec --json # the same, as one object
$ midad explain # every diagnostic code, one line each
$ midad explain E0402 # one code, with the fix
$ midad explain --json # every code, as objects
These are the commands the build runs. If you are writing a tool, a model or an editor plugin, they are the interface meant for you: one object instead of several hundred lines of prose.