This repository contains:
- A Coem grammar (
coem.grammar
) for the Lezer parser system - Coem language support (
index.ts
) for the CodeMirror code editor
Build:
npm run build
Test:
Edit cases in cases.txt
, then:
npm test
-
coem() → LanguageSupport
Coem language support.
-
coemLanguage: LRLanguage
A language provider based on the Lezer Coem parser, extended with highlighting and indentation information.
The grammar was largely based on the Python grammar and developed with the help of the Lezer System Guide.
Testing for the grammar was informed by the tests for Python and tests for @lezer/generator.
The language support began with the CodeMirror lang-example repository and was largely based on the Python language support.