Tree-sitter grammar for GoogleSQL (BigQuery SQL dialect). Version 0.8.0, released 2024-04, maintained actively. Supports parsing BigQuery SQL using the tree-sitter parsing library, enabling incremental parsing, syntax highlighting, and code navigation. Differentiators: dedicated BigQuery dialect support, bindings for Node.js via tree-sitter, and a web demo. Active development with CI.
npm install tree-sitter-sql-bigqueryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a BigQuery SQL statement using tree-sitter and prints the syntax tree.
Upgrade tree-sitter to ^0.21.0
Use import statement instead of require()
Check GitHub issues; contribute if needed
npm install tree-sitter
Use import Parser from 'tree-sitter' with ESM or use the ESM variant for tree-sitter >=0.21
parser.setLanguage(SQLBigQuery) not parser.setLanguage('tree-sitter-sql-bigquery')