Syntax

Meta: this page is the boring foundation. Focus on what would surprise someone coming from JS/Go/Python (semicolons-optional, newline-as-separator, # not //, no trailing commas in formatted output). Move grammar rules to reference/grammar.md.

File layout

Comments

Meta: /// doc comments don't exist — docstrings are real triple-quoted strings attached to declarations (covered in Fields: pub and let and Functions).

Identifiers

Reserved words

Separators and trailing commas

Backticks and string-template lexer mode