Lang is a language that transpiles to Python and executes through the Python runtime.
These docs are the official syntax reference for the tested language surface as of April 25, 2026. If a construct is not described here, do not assume it is public or stable just because it appears somewhere in the codebase.
- Project Manifest
- Expressions
- Control Flow
- Modules
- Objects
- Macros
- Standard Library
- Scenario Tests
- Language Server
The documented surface is backed by the integration tests in tests/.
cargo testThe tests currently cover:
- tokenization for core syntax and object keywords
- parser shape for precedence, member access, member assignment, and range distribution
- manifest discovery, parsing, validation, and CLI precedence
- module loading, sibling bare imports, visibility, re-exports, module display, import-cycle errors, and live imported bindings
- Python transpilation and runtime behavior for functions, loops, signals, arrays, lambdas, raw Python interop, Rust-like objects, and
#derive(debug)