Grav v1.14.0

Language reference

The precise rules of the language, for looking things up. To learn Grav step by step, read the guide instead.

PageContents
Syntax and keywordssource files, comments, line breaks, names, every keyword, literals, escapes, format specs
Typesbuilt-in and composite types, value vs reference types, zero values, assignability, conversions, nullable types, inference
Operatorsprecedence and the meaning of every operator
Declarations and statementsevery declaration and statement form, and the rules they follow
Built-in functionsprint, str, input, argv, assert, panic, typename, free and the rest
The grav commandevery command and option, grav.toml, environment variables, exit codes
Run-time behaviourrun-time checks, uncaught exceptions, panics, threads, memory

See also the standard library reference.

Edit this page on GitHub