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

Examples

The examples gallery is generated from the repository’s executable cases. Each case is one language rule, compiled to TypeScript, Python, and Go, with the generated code, a calling program for each target, and the stdout that program produced.

The gallery is built by scripts/playground.sh, which also runs the three conformance suites. A case is listed only after all three targets pass.

Open the examples gallery

What is in a case

Each case has a source file, metadata, and tests. The generated page shows:

  • the .lt source and why the rule exists;
  • the emitted module for each target;
  • a runnable usage program that calls the emitted library;
  • the stdout that program produced on that machine.

The gallery is static: it works from file:// and from the documentation site.