Expand description
The syntax trees for data-type declarations and data values.
Structs§
- Argument
- An argument of a tuple constructor, which is either positional or given by the name of a parameter.
- Const
Decl const name<Params>: Type = value;, in which the parameters and the type may be left out together.- Enum
Decl enum Name<Params> = Variants;- Field
- A field of a record type.
- Member
- A member of a record value,
name: value. - Parameter
- A parameter of a tuple constructor. Unnamed parameters come first and can only be bound by position.
- Type
Param - A type parameter of an enum or a const, such as the
Tofenum List<T>. - Types
File - The declarations of a types file.
- Value
- A data value.
- Variant
- A variant of an enum, which is a constructor and what it takes.
Enums§
- Tagged
Body - What follows the name of a constructor in a value.
- Type
- A type, as it is written in a declaration.
- Value
Kind - The kinds of a data value.
- Variant
Body - What the constructor of a variant takes.