Skip to content

Commit

Permalink
[tree_sitter_v] update and clean (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lycs-D authored Jan 9, 2024
1 parent e425a52 commit b8423f6
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 209 deletions.
6 changes: 6 additions & 0 deletions tree_sitter_v/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ bin/
target/
Cargo.lock
yarn.lock

Cargo.toml

bindings/node/
bindings/rust/
binding.gyp
26 changes: 0 additions & 26 deletions tree_sitter_v/Cargo.toml

This file was deleted.

19 changes: 0 additions & 19 deletions tree_sitter_v/binding.gyp

This file was deleted.

5 changes: 3 additions & 2 deletions tree_sitter_v/bindings.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import x.json2
import os
import v_tree_sitter.tree_sitter

#flag -I @VMODROOT/bindings/v
#flag -I @VMODROOT/src
#flag @VMODROOT/src/parser.o
#flag @VMODROOT/src/parser.c

#include "@VMODROOT/bindings/v/bindings.h"
#include "bindings.h"

fn C.tree_sitter_v() &tree_sitter.TSLanguage

Expand Down
28 changes: 0 additions & 28 deletions tree_sitter_v/bindings/node/binding.cc

This file was deleted.

19 changes: 0 additions & 19 deletions tree_sitter_v/bindings/node/index.js

This file was deleted.

40 changes: 0 additions & 40 deletions tree_sitter_v/bindings/rust/build.rs

This file was deleted.

52 changes: 0 additions & 52 deletions tree_sitter_v/bindings/rust/lib.rs

This file was deleted.

17 changes: 15 additions & 2 deletions tree_sitter_v/bindings/v/bindings.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
#include "tree_sitter/parser.h"
#ifndef TREE_SITTER_V_H_
#define TREE_SITTER_V_H_

TSLanguage * tree_sitter_v();
#include <tree_sitter/parser.h>

#ifdef __cplusplus
extern "C" {
#endif

extern TSLanguage *tree_sitter_v();

#ifdef __cplusplus
}
#endif

#endif // TREE_SITTER_V_H_
21 changes: 0 additions & 21 deletions tree_sitter_v/bindings/v/bindings.v

This file was deleted.

0 comments on commit b8423f6

Please sign in to comment.