File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed
bindings/swift/TreeSitterJava Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ test.java
15
15
* .o
16
16
bindings /c /* .h
17
17
bindings /c /tree-sitter- * .pc
18
+ .build /
Original file line number Diff line number Diff line change
1
+ // swift-tools-version:5.3
2
+ import PackageDescription
3
+
4
+ let package = Package (
5
+ name: " TreeSitterJava " ,
6
+ products: [
7
+ . library( name: " TreeSitterJava " , targets: [ " TreeSitterJava " ] ) ,
8
+ ] ,
9
+ dependencies: [ ] ,
10
+ targets: [
11
+ . target( name: " TreeSitterJava " ,
12
+ path: " . " ,
13
+ exclude: [
14
+ " binding.gyp " ,
15
+ " bindings " ,
16
+ " Cargo.toml " ,
17
+ " corpus " ,
18
+ " grammar.js " ,
19
+ " LICENSE " ,
20
+ " Makefile " ,
21
+ " package.json " ,
22
+ " README.md " ,
23
+ " script " ,
24
+ " src/grammar.json " ,
25
+ " src/node-types.json " ,
26
+ ] ,
27
+ sources: [
28
+ " src/parser.c " ,
29
+ ] ,
30
+ resources: [
31
+ . copy( " queries " )
32
+ ] ,
33
+ publicHeadersPath: " bindings/swift " ,
34
+ cSettings: [ . headerSearchPath( " src " ) ] )
35
+ ]
36
+ )
Original file line number Diff line number Diff line change
1
+ #ifndef TREE_SITTER_JAVA_H_
2
+ #define TREE_SITTER_JAVA_H_
3
+
4
+ typedef struct TSLanguage TSLanguage ;
5
+
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ extern TSLanguage * tree_sitter_java ();
11
+
12
+ #ifdef __cplusplus
13
+ }
14
+ #endif
15
+
16
+ #endif // TREE_SITTER_JAVA_H_
You can’t perform that action at this time.
0 commit comments