16 lines
341 B
Go
16 lines
341 B
Go
|
|
package tree_sitter_oat_v1
|
||
|
|
|
||
|
|
// #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_oat_v1())
|
||
|
|
}
|