write-lox

Installation
SKILL.md

Writing Lox (langium-lox)

You are writing code for the langium-lox language at packages/langium-lox. This is a Langium-based, statically typed dialect of Lox. It looks like the Lox from Crafting Interpreters but is not the same language — every variable, parameter, and function has a declared type, and the type checker rejects programs the book would accept.

Ground every answer in the actual grammar and semantics, which live in the submodule:

  • Grammar: packages/langium-lox/langium/src/language-server/lox.langium
  • Type rules: packages/langium-lox/langium/src/language-server/type-system/ and lox-validator.ts
  • Runtime: packages/langium-lox/langium/src/interpreter/runner.ts

When a question turns on a detail not covered below, read those files rather than guessing — and read the bundled reference files in references/ for the full picture.

Critical Rules (violating any of these produces invalid code)

Installs
1
Repository
typefox/lanzer
GitHub Stars
3
First Seen
Oct 13, 2026
Security Audits