tree-sitter-yaml/bindings/go/binding.go

14 lines
283 B
Go
Raw Normal View History

2024-03-27 05:31:32 -04:00
package tree_sitter_yaml
// #cgo CFLAGS: -std=c11 -fPIC
// #include "../../src/parser.c"
2024-03-31 09:45:34 -04:00
// #include "../../src/scanner.c"
2024-03-27 05:31:32 -04:00
import "C"
import "unsafe"
// Get the tree-sitter Language for this grammar.
func Language() unsafe.Pointer {
return unsafe.Pointer(C.tree_sitter_yaml())
}