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] Add PyO3 integration for ast-grep #389
Comments
Implementation note: First, we need to have a PyRoot struct PyRoot {
root: Root,
} Secondly, we need to add definition of Node. The node struct PyNode {
node: Node<'static>,
root_ref: Py<PyRoot>,
} The crux here is that Finally we need GIL to get a reference of PyNode, this will involve some lifetime cast. |
Closed! |
We only have napi integration for nodeJS. Supporting Python community is a good idea!
https://github.com/PyO3/pyo3 looks like a good library for this.
__hash__
__eq__
__str__
__repr__
__get_item__
for access single meta-variable without None assertionThe text was updated successfully, but these errors were encountered: