feat: enable go & python bindings

This commit is contained in:
ObserverOfTime
2025-05-16 19:20:03 +03:00
parent 28e327cd3f
commit dffd961034
12 changed files with 231 additions and 9 deletions

15
bindings/go/binding.go generated Normal file
View File

@@ -0,0 +1,15 @@
package tree_sitter_hcl
// #cgo CFLAGS: -std=c11 -fPIC
// #include "../../src/parser.c"
// #if __has_include("../../src/scanner.c")
// #include "../../src/scanner.c"
// #endif
import "C"
import "unsafe"
// Get the tree-sitter Language for this grammar.
func Language() unsafe.Pointer {
return unsafe.Pointer(C.tree_sitter_hcl())
}