1 unstable release
0.0.2 | Jun 5, 2021 |
---|---|
0.0.1 |
|
#495 in Text editors
360KB
12K
SLoC
SQL syntax for tree-sitter
This project initially focuses on PostgreSQL flavor of SQL
Development
File describing grammar is grammar.js
Every time the grammar file changes code generation needs to be run by invoking npm run gen
npm test
command automatically performs code generation
Tests files are located in test/corpus
Here is the documentation on test file syntax
Running tests
npm install --also=dev
npm test
Debbuging
npm run parse <file.sql>
outputs a syntax treenpm run extract-error <file.sql>
shows first offending line
Dependencies
~2.8–4MB
~76K SLoC