Language reference
The precise rules of the language, for looking things up. To learn Grav step by step, read the guide instead.
| Page | Contents |
|---|---|
| Syntax and keywords | source files, comments, line breaks, names, every keyword, literals, escapes, format specs |
| Types | built-in and composite types, value vs reference types, zero values, assignability, conversions, nullable types, inference |
| Operators | precedence and the meaning of every operator |
| Declarations and statements | every declaration and statement form, and the rules they follow |
| Built-in functions | print, str, input, argv, assert, panic, typename, free and the rest |
| The grav command | every command and option, grav.toml, environment variables, exit codes |
| Run-time behaviour | run-time checks, uncaught exceptions, panics, threads, memory |
See also the standard library reference.