Playing around with Tree-sitter using C
clang -c -o tree-sitter.o tree-sitter/lib/src/lib.c -I tree-sitter/lib/include -I tree-sitter/lib/src
clang -Wall -o sql-autocomplete.exe sql-autocomplete.c tree-sitter-sql/src/parser.c tree-sitter-sql/src/scanner.c tree-sitter.o -I tree-sitter/lib/include -I tree-sitter/lib/src -I tree-sitter-sql/src/tree_sitter -I tree-sitter-sql/bindings/c
sql-autocomplete.exe
My directory structure looks as follows:
project-root
├───tree-sitter
│ ├───lib
│ │ ├───include
│ │ │ └───tree_sitter
│ │ └───src
│ │
└───tree-sitter-sql
├───bindings
│ ├───c
├───src
│ └───tree_sitter