Decodal/editors/lezer-decodal/README.md

534 B

lezer-decodal

Lezer implementation of the Decodal grammar for CodeMirror 6.

The canonical grammar is documented in:

../../doc/manual/souce/language/grammar.md

Regenerate the CodeMirror parser from the site directory:

cd ../../site/decodal-site
npx lezer-generator ../../editors/lezer-decodal/decodal.grammar -o ../../packages/decodal-codemirror/src/decodal-parser.js

The generated parser is committed with the decodal-codemirror package because both the playground and external Web editors consume it.