Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.27 KB

File metadata and controls

33 lines (24 loc) · 1.27 KB

Lang Docs

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.

Reference

Validation

The documented surface is backed by the integration tests in tests/.

cargo test

The 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)