1 unstable release
0.0.2 | Jun 5, 2021 |
---|---|
0.0.1 |
|
#350 in Text editors
42 downloads per month
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.9–4MB
~75K SLoC