-
Notifications
You must be signed in to change notification settings - Fork 174
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
XML tree #218
Comments
I am working on adding the support of a tree-sitter parser to gumtree.
oh nice!
|
Guys, I see System.getProperty("gt.cgum.path", "cgum"); lines to get parsed AST from external sources. Where can I find the assignment values? I want to add python based script that outputs tree in XML. The script is already implemented, but I do not know how to include it to the code base. Python generator has issues with build btw. |
This problem is kinda solved. |
Here is the link to the repo with a tree-sitter parser for java written in python (https://github.com/Krosent/GumtreeJavaLangXmlGenerator). |
Hi @Krosent ! Thanks for the pointer, the code seems straightforward, making tree-sitter a great candidate for producing ASTs. A quick question, when reading your code I had the impression that there nothing java specific about it, am I right? Maybe we could adapt the code to produce XML for all tree-sitter backends ? Cheers. |
Yes, you can adapt it for other languages as well. Tree sitter is not absolutely language agnostic, but you can comparatively fastly add support for any language you want. |
Hi @Krosent just to warn you, I have introduced the GumTree tree-sitter-parser (https://github.com/GumTreeDiff/tree-sitter-parser), which is inspired by your take on tree-sitter integration! Thanks a lot! Cheers. |
Hello guys,
I want to add support for another backend. From what I understood I need to parse the tree and convert it to XML. Could you give information on what XML structure should I provide to Gumtree? I am working on adding the support of a tree-sitter parser to gumtree.
The text was updated successfully, but these errors were encountered: