compact-language-engineering
Installation
SKILL.md
Compact Language Engineering
Build Compact language tooling that accepts exactly what the compiler accepts, and prove it with differential tests.
Pinned to (Nov 2026): Compact toolchain 0.36.1, language version 0.28.0. Grammar source:
LFDT-Minokawa/compactat tagcompactc-v0.36.1. At that tag the grammar, keywords, lexer and parser are identical tomain(Nov 24 2026); only the version label in the generated doc differs. Re-check this whenever the toolchain moves.
What this skill produces: grammar files (tree-sitter grammar.js, Grammar-Kit .bnf, JFlex .flex, TextMate JSON), test corpora, and a differential test harness that uses the compiler as the oracle.
Primary references (read these, not memory):
compiler/parser.ss: the real grammar (thedefine-grammar Compactform). The published grammar doc is generated from it.compiler/lexer.ss: the real token rules.doc/compact-grammar.mdxanddoc/compact-keywords.mdx: generated, readable views of the two files above. Both say "DO NOT EDIT".editor-support/vsc/compact/syntaxes/compact.tmLanguage.json: the official VS Code TextMate grammar.github.com/midnightntwrk/compact-tree-sitter: the official tree-sitter grammar. It lags the compiler (section 5).github.com/nite-framework/nite-compact-language-vsc-extension: the Nite LSP. Its diagnostics come from the compiler.- JetBrains Grammar-Kit
HOWTO.md, for IntelliJ plugins.