aboutsummaryrefslogtreecommitdiff
path: root/bindings/go/binding.go
blob: 353f400eb228efc7f02d6bcbb5ed126a9315a575 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package tree_sitter_gsp

// #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_gsp())
}