Back to Prql

prql-lezer

grammars/prql-lezer/README.md

0.13.13861 B
Original Source

prql-lezer

A Lezer / CodeMirror grammar for PRQL. It's largely fully-functioning, with a few small TODOs in the grammar file.

CodeMirror grammars are required by some downstream tools, including Jupyter syntax highlighting.

We don't yet have the JS machinery around it, and it's not published to any package managers. We can add that shortly. Possibly it'll go into its own repo.

Developing

Tests are in the test/ directory. The Lezer playground can also be useful for interactive development:

Instructions

Install dependencies:

npm install

Build:

npm run build

Test:

npm run test