Add Tree-sitter grammar for Decodal

This commit is contained in:
2026-06-16 12:01:29 +09:00
parent f1a5836247
commit 58d2c9b423
39 changed files with 8453 additions and 1 deletions
+47
View File
@@ -0,0 +1,47 @@
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "TreeSitterDecodal",
products: [
.library(name: "TreeSitterDecodal", targets: ["TreeSitterDecodal"]),
],
dependencies: [],
targets: [
.target(name: "TreeSitterDecodal",
path: ".",
exclude: [
"Cargo.toml",
"Makefile",
"binding.gyp",
"bindings/c",
"bindings/go",
"bindings/node",
"bindings/python",
"bindings/rust",
"prebuilds",
"grammar.js",
"package.json",
"package-lock.json",
"pyproject.toml",
"setup.py",
"test",
"examples",
".editorconfig",
".github",
".gitignore",
".gitattributes",
".gitmodules",
],
sources: [
"src/parser.c",
// NOTE: if your language has an external scanner, add it here.
],
resources: [
.copy("queries")
],
publicHeadersPath: "bindings/swift",
cSettings: [.headerSearchPath("src")])
],
cLanguageStandard: .c11
)