A keyword is an identifier like sequence of characters that is reserved for use by the language and
can't be used as an identifier except by escaping it. Note that the lexical set of keywords includes
things that are not standard keywords from a syntactic perspective. For example, it includes the
boolean operators and
and or
, types like int
, and literal values such as true
and false
.
keyword
: "abstract"
| "and"
| "Any"
| "as"
| "base"
| "bool"
| "break"
| "byte"
| "class"
| "const"
| "copy"
| "delete"
| "else"
| "ensures"
| "enum"
| "explicit"
| "external"
| "false"
| "float32"
| "float64"
| "fn"
| "foreach"
| "freeze"
| "get"
| "if"
| "implicit"
| "import"
| "in"
| "init"
| "int"
| "int8"
| "int16"
| "int32"
| "int64"
| "invariant"
| "iso"
| "let"
| "loop"
| "match"
| "may"
| "Metatype"
| "move"
| "mut"
| "namespace"
| "never"
| "next"
| "nint"
| "no"
| "none"
| "not"
| "nuint"
| "offset"
| "operator"
| "or"
| "override"
| "params"
| "protected"
| "public"
| "published"
| "return"
| "requires"
| "safe"
| "self"
| "Self"
| "set"
| "size"
| "struct"
| "throw"
| "trait"
| "true"
| "Tuple"
| "Type"
| "uint"
| "uint16"
| "uint32"
| "uint64"
| "uninitialized"
| "unsafe"
| "var"
| "void"
| "where"
| "while"
;