File: binding.go

package info (click to toggle)
tree-sitter-cpp 0.23.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,304 kB
  • sloc: ansic: 530,934; javascript: 2,483; cpp: 414; lisp: 137; makefile: 101; python: 88; sh: 9
file content (13 lines) | stat: -rw-r--r-- 281 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package tree_sitter_cpp

// #cgo CFLAGS: -std=c11 -fPIC
// #include "../../src/parser.c"
// #include "../../src/scanner.c"
import "C"

import "unsafe"

// Get the tree-sitter Language for this grammar.
func Language() unsafe.Pointer {
	return unsafe.Pointer(C.tree_sitter_cpp())
}