Basics#
Start here to understand a source file and the values inside a function. Read source structure and bindings first. The grammar is an exact reference; you can return to it when you need to check a particular syntax rule.
| Concept | What you will learn |
|---|---|
| Source files | Read a source file, indentation, comments, and multiline expressions. |
| Variables and scope | Choose let or var, infer local types, and understand shadowing. |
| Numbers and booleans | Use numeric literals, explicit conversions, checked arithmetic, and durations. |
| Strings and bytes | Interpolate text, encode UTF-8, and distinguish character boundaries. |
| Expressions and operators | Apply precedence, operand types, and evaluation order. |
| Source grammar | Check the exact accepted tokens, declarations, suites, and patterns. |
Read the grammar as a reference after the practical pages.