19 lines
534 B
Markdown
19 lines
534 B
Markdown
# lezer-decodal
|
|
|
|
Lezer implementation of the Decodal grammar for CodeMirror 6.
|
|
|
|
The canonical grammar is documented in:
|
|
|
|
```text
|
|
../../doc/manual/souce/language/grammar.md
|
|
```
|
|
|
|
Regenerate the CodeMirror parser from the site directory:
|
|
|
|
```sh
|
|
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.
|