Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Syntax

Statements

End a binding, assignment, function call, or return statement with a semicolon (;). The closing brace ends an if or while statement. Newlines are whitespace, so a statement can span multiple lines, and a line can contain multiple statements.

A file can end with <- expression; to return the expression’s value to the host. A file without a return statement finishes without a value.

Comments

A line comment starts with // and runs to the end of the line or file. It can appear on its own line or after code.