build(bindings): move header to tree_sitter subdirectory

This patch allows users to include the parser by the same path from
local build as well as installed location. Previously it was not
possible to include the header prior to installing the built parser.
This commit is contained in:
Scorg 2025-01-11 13:05:31 +05:00 committed by Amaan Qureshi
parent a633a06bb4
commit 40eb26e580
5 changed files with 72 additions and 22 deletions

View file

@ -126,7 +126,7 @@ to be used from different language. Here is a list of these bindings files that
- `Makefile` — This file tells [`make`][make] how to compile your language.
- `CMakeLists.txt` — This file tells [`cmake`][cmake] how to compile your language.
- `bindings/c/tree-sitter-language.h` — This file provides the C interface of your language.
- `bindings/c/tree_sitter/tree-sitter-language.h` — This file provides the C interface of your language.
- `bindings/c/tree-sitter-language.pc` — This file provides [pkg-config][pkg-config] metadata about your language's C library.
- `src/tree_sitter/parser.h` — This file provides some basic C definitions that are used in your generated `parser.c` file.
- `src/tree_sitter/alloc.h` — This file provides some memory allocation macros that are to be used in your external scanner,