File tree Expand file tree Collapse file tree 3 files changed +56
-0
lines changed
bindings/swift/TreeSitterRust Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ package-lock.json
66examples
77! examples /ast.rs
88/target /
9+ .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: " TreeSitterRust " ,
6+ platforms: [ . macOS( . v10_13) , . iOS( . v11) ] ,
7+ products: [
8+ . library( name: " TreeSitterRust " , targets: [ " TreeSitterRust " ] ) ,
9+ ] ,
10+ dependencies: [ ] ,
11+ targets: [
12+ . target( name: " TreeSitterRust " ,
13+ path: " . " ,
14+ exclude: [
15+ " binding.gyp " ,
16+ " bindings " ,
17+ " Cargo.toml " ,
18+ " corpus " ,
19+ " examples " ,
20+ " grammar.js " ,
21+ " LICENSE " ,
22+ " Makefile " ,
23+ " package.json " ,
24+ " README.md " ,
25+ " script " ,
26+ " src/grammar.json " ,
27+ " src/node-types.json " ,
28+ ] ,
29+ sources: [
30+ " src/parser.c " ,
31+ " src/scanner.c " ,
32+ ] ,
33+ resources: [
34+ . copy( " queries " )
35+ ] ,
36+ publicHeadersPath: " bindings/swift " ,
37+ cSettings: [ . headerSearchPath( " src " ) ] )
38+ ]
39+ )
Original file line number Diff line number Diff line change 1+ #ifndef TREE_SITTER_RUST_H_
2+ #define TREE_SITTER_RUST_H_
3+
4+ typedef struct TSLanguage TSLanguage ;
5+
6+ #ifdef __cplusplus
7+ extern "C" {
8+ #endif
9+
10+ extern TSLanguage * tree_sitter_rust ();
11+
12+ #ifdef __cplusplus
13+ }
14+ #endif
15+
16+ #endif // TREE_SITTER_RUST_H_
You can’t perform that action at this time.
0 commit comments