Skip to content

Commit

Permalink
Remove tree-sitter-xxx.
Browse files Browse the repository at this point in the history
  • Loading branch information
NzSN committed Feb 22, 2024
1 parent 4788c18 commit 32c2447
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 29 deletions.
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[submodule "third_party/grammars-v4"]
path = third_party/grammars-v4
url = https://github.com/antlr/grammars-v4.git
[submodule "parsers/tree-sitter-wgsl"]
path = parsers/tree-sitter-wgsl
url = https://github.com/mehmetoguzderin/tree-sitter-wgsl.git
[submodule "parsers/tree-sitter-json"]
path = parsers/tree-sitter-json
url = https://github.com/tree-sitter/tree-sitter-json.git
1 change: 0 additions & 1 deletion parsers/tree-sitter-json
Submodule tree-sitter-json deleted from 3fef30
1 change: 0 additions & 1 deletion parsers/tree-sitter-wgsl
Submodule tree-sitter-wgsl deleted from 27ae4d
18 changes: 0 additions & 18 deletions src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,3 @@ cc_test(
],
visibility = ["//:__pkg__"]
)

cc_test(
name = "tree_sitter_test",
srcs = [
"tree_sitter_unittests.cc",
"//parsers:wgsl_treesitter_parser_srcs",
"//parsers:json_treesitter_parser_srcs",
],
copts = [
"-Iexternal/tree_sitter/tree_sitter/include",
"-Iparsers/tree-sitter-json/src",
"-Iparsers/tree-sitter-wgsl/src",
],
deps = [
"@com_google_googletest//:gtest_main",
"@tree_sitter//:tree_sitter",
]
)
6 changes: 3 additions & 3 deletions src/Base/generic_parsetree_antlr4.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ struct FAILED_TO_CLONE_ANTLR_NODE: public std::exception {
V(WGSL, WGSL)

#define ANTLR_COPY_LANG_SPECIFIC(NAMESPACE, LANG_ENUM) \
case ParseTree<Antlr4Node>::LANG_ENUM: { \
case ParseTree<Antlr4Node>::LANG_ENUM: { \
antlr4::tree::ParseTree* copy = \
NAMESPACE::clone(const_cast<Antlr4Node*>(this)->tree()); \
return std::make_unique<Antlr4Node>( \
ParseTree<Antlr4Node>::LANG_ENUM, \
return std::make_unique<Antlr4Node>( \
ParseTree<Antlr4Node>::LANG_ENUM, \
copy); \
}

Expand Down

0 comments on commit 32c2447

Please sign in to comment.