feat(languages): add Go, Java, PHP, Ruby, C/C++ tree-sitter support (closes #198)#203
Open
Wolfvin wants to merge 1 commit into
Open
feat(languages): add Go, Java, PHP, Ruby, C/C++ tree-sitter support (closes #198)#203Wolfvin wants to merge 1 commit into
Wolfvin wants to merge 1 commit into
Conversation
…loses #198) Add 6 new language entries to node_types.yaml: - Go: function_declaration, method_declaration, struct_type, interface_type, import_declaration, call_expression, etc. - Java: method_declaration, constructor_declaration, class_declaration, interface_declaration, enum_declaration, method_invocation, etc. - PHP: function_definition, method_declaration, class_declaration, include_expression, use_declaration, function_call_expression, etc. - Ruby: method, singleton_method, class, module, require, call, etc. - C: function_definition, struct_specifier, union_specifier, enum_specifier, preproc_include, call_expression, type_definition, etc. - C++: function_definition, class_specifier, struct_specifier, preproc_include, using_declaration, call_expression, namespace_definition, template_declaration, type_alias_declaration, etc. Each language has minimum 4 required categories: function_def, class_def, import, call. Additional categories added where the language has unique constructs (e.g. Java annotations, PHP namespaces, C++ templates). Grammar packages added to pyproject.toml [project.optional-dependencies] grammars: tree-sitter-go, tree-sitter-java, tree-sitter-php, tree-sitter-ruby, tree-sitter-c, tree-sitter-cpp. Verified: codelens scan on test fixture with all 6 languages — 6 files detected (go:1, java:1, php:1, ruby:1, c_cpp:2), 12 backend nodes, 0 crashes. get_supported_languages() returns 13 languages (7 existing + 6 new). Definition of Done (issue #198): - [x] node_types.yaml has entries for Go, Java, PHP, Ruby, C, C++ - [x] Each entry has minimal 4 categories: function, class, import, call - [x] Grammar packages added to pyproject.toml - [x] codelens scan does not crash on new languages - [x] Files in new languages are detected and scanned (not skipped)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
4 tasks
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What
Added 6 new tree-sitter language entries to
node_types.yamland grammar packages topyproject.toml.Languages added
gojavaphprubyccppEach language has minimum 4 required categories (function_def, class_def, import, call). Additional categories added where the language has unique constructs.
Files touched (2 files, +142 lines)
scripts/languages/node_types.yaml— 6 new language entries (135 lines added)pyproject.toml— 6 new grammar packages in [project.optional-dependencies] grammars (7 lines)Verification
Definition of Done (issue #198)
Worker Checklist
Issue link
Closes #198