File tree Expand file tree Collapse file tree 3 files changed +50
-0
lines changed
bindings/swift/TreeSitterJava Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ test.java
1515* .o
1616bindings /c /* .h
1717bindings /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+ " package.json " ,
21+ " README.md " ,
22+ ] ,
23+ sources: [
24+ " src/parser.c " ,
25+ " src/scanner.cc " ,
26+ ] ,
27+ resources: [
28+ . copy( " queries " )
29+ ] ,
30+ publicHeadersPath: " bindings/swift " ,
31+ cSettings: [ . headerSearchPath( " src " ) ] )
32+ ]
33+ )
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