Crates.io | tree-sitter-sql |
lib.rs | tree-sitter-sql |
version | 0.0.2 |
source | src |
created_at | 2021-06-05 13:39:24.890953 |
updated_at | 2021-06-05 13:54:33.861927 |
description | SQL grammar for the tree-sitter parsing library |
homepage | |
repository | https://github.com/m-novikov/tree-sitter-sql |
max_upload_size | |
id | 406480 |
size | 463,819 |
This project initially focuses on PostgreSQL flavor of SQL
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
npm install --also=dev
npm test
npm run parse <file.sql>
outputs a syntax treenpm run extract-error <file.sql>
shows first offending line