Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tree_sitter_v] update and clean #6

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.