Skip to content

ErwonB/tree-sitter-teradata

 
 

Repository files navigation

tree-sitter-teradata

Fork of tree-sitter-sql

Development

Step 1: generate and test

Using tree-sitter-cli

tree-sitter generate
tree-sitter test

Step 2: Compile the Parser

Tree-sitter parsers need to be compiled as a shared-object / dynamic-library, you can enable this by passing the -shared & -fPIC flags to your compiler.

cc -shared -fPIC -I./src src/parser.c src/scanner.c -o sql.so

Step 3: Deploy so and queries

cp sql.so .../parser/sql.so
cp queries/*.scm .../queries/sql/*.scm

BTEQ

Minimal support for BTEQ commands: If, Logon, Logoff, Exit, Quit, Goto, Label, Set, Run

About

Teradata SQL grammar for tree-sitter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.0%
  • Tree-sitter Query 6.9%
  • C 3.7%
  • Shell 0.4%