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

feature: Python Bindings #250

Closed
1 task done
Rot127 opened this issue Mar 21, 2024 · 1 comment · Fixed by #254
Closed
1 task done

feature: Python Bindings #250

Rot127 opened this issue Mar 21, 2024 · 1 comment · Fixed by #254

Comments

@Rot127
Copy link

Rot127 commented Mar 21, 2024

Did you check the tree-sitter docs?

Is your feature request related to a problem? Please describe.

py-tree-sitter marked their method to build tree-sitter libraries and seems to allow only languages with Python bindings in v0.22.0.

Describe the solution you'd like

Implement Python bindings to py-tree-sitter

Describe alternatives you've considered

Stick to version <0.22.0 for the Python API or use another one. Though I am not aware of any which allows building tree-sitter-cpp on my own.

Additional context

No response

Rot127 added a commit to Rot127/capstone that referenced this issue Mar 21, 2024
Building the tree-sitter-cpp library on our own will be removed in py-tree-sitter v0.22.0.
As long as the tree-sitter-cpp doesn;t have Python bindings
(see: tree-sitter/tree-sitter-cpp#250)
we have to stick to <0.22.0
Rot127 added a commit to Rot127/capstone that referenced this issue Mar 21, 2024
Building the tree-sitter-cpp library on our own will be removed in py-tree-sitter v0.22.0.
As long as the tree-sitter-cpp doesn;t have Python bindings
(see: tree-sitter/tree-sitter-cpp#250)
we have to stick to <0.22.0
Rot127 added a commit to Rot127/capstone that referenced this issue Mar 25, 2024
Building the tree-sitter-cpp library on our own will be removed in py-tree-sitter v0.22.0.
As long as the tree-sitter-cpp doesn;t have Python bindings
(see: tree-sitter/tree-sitter-cpp#250)
we have to stick to <0.22.0
@amaanq
Copy link
Member

amaanq commented Apr 4, 2024

They're available now at https://pypi.org/project/tree-sitter-cpp

kabeor pushed a commit to capstone-engine/capstone that referenced this issue Apr 22, 2024
Refactor auto-sync updater

This refactors the auto-sync updater scripts, adds multiple tests and some other smaller things:

- Converts the updater in a proper Python package.
- Renaming was done to fit this new package structure.
- Format code with usort and black and enforce it with the CI.
- Add license information to auto-sync scripts.
- Update tree-sitter-cpp to v20.0.5
- Fix py-tree-sitter version to `< 0.22.0` due to tree-sitter/tree-sitter-cpp#250
- Allow file/dir creation of non existing paths.
- Add CI tests for Patch, inc gen, translation and diff persistence testing.
- Implement editing of diffs with an editor.
- Fix: Add Namespace id also to anonymous enumeration members.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants