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

14 lines
312 B
Go
Raw Permalink Normal View History

2024-07-12 20:36:24 +03:00
package tree_sitter_d2
// #cgo CFLAGS: -std=c11 -fPIC
// #include "../../src/parser.c"
// // NOTE: if your language has an external scanner, add it here.
import "C"
import "unsafe"
// Get the tree-sitter Language for this grammar.
func Language() unsafe.Pointer {
return unsafe.Pointer(C.tree_sitter_d2())
}