seed Grammar
The normative operational grammar is maintained in
seed/compiler/llvm/LANGUAGE_GRAMMAR.md. This book page intentionally avoids a
second grammar copy that can drift.
The root normative language specification is seed Language Specification.
Current lexical contract:
.sdfiles are UTF-8;- comments and strings may contain Unicode;
- identifiers are ASCII lower snake case, including type and variant names;
- constants are ASCII upper snake case;
- comments use
//and nestable/* ... */; - early return uses
ret; - ADTs use
type; there is no cleanenumkeyword; - phase-1/2 f-string interpolation is implemented for text, bool, integers, floats, format specifications, and static display/debug traits;
- built-in channel/send/recv syntax is not implemented; those facilities are
provided by the ordinary
tasklibrary.
See Language Reference for the user syntax and CLI summary.