From 9b7bda28db0200b628e5f6eb7021a5a717db2e73 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 14 Dec 2025 19:59:18 +0100 Subject: Initial grammar --- bindings/go/binding.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bindings/go/binding.go (limited to 'bindings/go/binding.go') diff --git a/bindings/go/binding.go b/bindings/go/binding.go new file mode 100644 index 0000000..80fe78d --- /dev/null +++ b/bindings/go/binding.go @@ -0,0 +1,15 @@ +package tree_sitter_wmap + +// #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_wmap()) +} -- cgit