Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Mar 23, 2024
1 parent 8aabcd5 commit 5b48885
Show file tree
Hide file tree
Showing 6 changed files with 410 additions and 409 deletions.
1 change: 0 additions & 1 deletion tree_sitter/core
Submodule core deleted from fc15f6
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ module bindings
#flag @VMODROOT/tree_sitter_v/bindings/core/lib/src/lib.c
#include "tree_sitter/api.h"

#flag -I @VMODROOT/tree_sitter_v/bindings
#flag -I @VMODROOT/tree_sitter_v/src
#flag @VMODROOT/tree_sitter_v/src/parser.c
#include "bindings.h"

pub enum TSVInputEncoding {
utf8
utf16
Expand All @@ -26,9 +31,13 @@ mut:
encoding int
}

@[typedef]
pub struct C.TSLanguage {}

@[typedef]
pub struct C.TSParser {}

fn C.tree_sitter_v() &C.TSLanguage
fn C.ts_parser_new() &C.TSParser
fn C.ts_parser_set_language(parser &C.TSParser, language &C.TSLanguage) bool
fn C.ts_parser_parse_string(parser &C.TSParser, const_old_tree &C.TSTree, str &char, len u32) &C.TSTree
Expand Down
11 changes: 11 additions & 0 deletions tree_sitter_v/bindings/bindings.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@PREFIX@
libdir=@LIBDIR@
includedir=@INCLUDEDIR@

Name: tree-sitter-v
Description: V grammar for tree-sitter
URL: @URL@
Version: @VERSION@
Requires: @REQUIRES@
Libs: -L${libdir} @ADDITIONAL_LIBS@ -ltree-sitter-v
Cflags: -I${includedir}
Loading

0 comments on commit 5b48885

Please sign in to comment.