commit
09e316dba3
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -11,4 +11,4 @@ target
|
|||
*.o
|
||||
/bindings/c/*.h
|
||||
/bindings/c/tree-sitter-*.pc
|
||||
/.build
|
||||
/.build
|
||||
|
|
38
Package.swift
Normal file
38
Package.swift
Normal file
|
@ -0,0 +1,38 @@
|
|||
// swift-tools-version:5.3
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "TreeSitterDockerfile",
|
||||
platforms: [.macOS(.v10_13), .iOS(.v11)],
|
||||
products: [
|
||||
.library(name: "TreeSitterDockerfile", targets: ["TreeSitterDockerfile"]),
|
||||
],
|
||||
dependencies: [],
|
||||
targets: [
|
||||
.target(name: "TreeSitterDockerfile",
|
||||
path: ".",
|
||||
exclude: [
|
||||
"binding.gyp",
|
||||
"bindings",
|
||||
"Cargo.toml",
|
||||
"corpus",
|
||||
"examples",
|
||||
"grammar.js",
|
||||
"LICENSE",
|
||||
"Makefile",
|
||||
"package.json",
|
||||
"README.md",
|
||||
"src/grammar.json",
|
||||
"src/node-types.json",
|
||||
],
|
||||
sources: [
|
||||
"src/parser.c",
|
||||
],
|
||||
resources: [
|
||||
.copy("queries")
|
||||
],
|
||||
publicHeadersPath: "bindings/swift",
|
||||
cSettings: [.headerSearchPath("src")])
|
||||
]
|
||||
)
|
16
bindings/swift/TreeSitterDockerfile/dockerfile.h
Normal file
16
bindings/swift/TreeSitterDockerfile/dockerfile.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#ifndef TREE_SITTER_DOCKERFILE_H_
|
||||
#define TREE_SITTER_DOCKERFILE_H_
|
||||
|
||||
typedef struct TSLanguage TSLanguage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern TSLanguage *tree_sitter_dockerfile();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TREE_SITTER_DOCKERFILE_H_
|
Loading…
Reference in a new issue