-
Notifications
You must be signed in to change notification settings - Fork 175
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
Including PLSQL #359
Comments
Hi! Can you find the parser you want here : https://github.com/bonede/tree-sitter-ng ? Cheers. |
No, unfortunatly there isn't any supported parser for this programming language. |
Is there any tree-sitter parser you know that might do the trick ? |
I dont see any. Is there another trick i can use to integrate it? |
so maybe you try the antlr-4 integration but I have never really used it seriously |
Where can i find it? |
We have a helper here -> https://github.com/GumTreeDiff/gumtree/blob/main/gen.antlr4/src/main/java/com/github/gumtreediff/gen/antlr4/AbstractAntlr4TreeGenerator.java But I have no sample project to showcase how to use it 😢 |
Thank you for the response :) Hoping for the best 😄 |
Maybe look at how we do for antlr 3 projects like this -> https://github.com/GumTreeDiff/gumtree/tree/main/gen.antlr3-r |
Hey there again! I just tried a bunch of stuff and came to the conclusion that the best/easiest way for me to implement PLSQL into Gumtree is the following:
Is there some kind of Method or API call that does the trick? |
Hi! Normally if you have a antlr4 grammar you should be able to skip the XML part and use directly the antlr generated objects to convert them to a GumTree AST it would be much more efficient? |
Hello again, Can you give me a detailed explaination how to use the convert the generated objects to GumTree ASTs and then have a detailed Diff for them? |
Hi! Once you have converted your parser specific format to GumTree's agnostic format (a |
Hey man, almost everything done! Thank you a lot for your help |
Hi! Very good news! It's strange that you have offsetting problems I think it might come from the parser or the helper. It requires some debugging to understand why the position is wrong (fairly easy to do with a breakpoint if you know the grammar well). Cheers! |
Hey there,
i was just set on a new Project to find a difftool for PLSQL and i recently found gumtree. I already have the antlr4 grammar and parser for PLSQL and have a python script to generate an AST. I already seen the tree-sitter but can't really figure out how to do it.
Thank you in advance :)
The text was updated successfully, but these errors were encountered: