IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

Mojo language reference

Welcome to the Mojo language reference. This documentation provides a concise reference for Mojo's syntax—identifiers, keywords, literals, expressions, operators, statements, function declarations, and more. It's organized by grammar construct and is designed for quick lookup when you need the exact rules, precedence, or form of a specific language element.