Use the IntelliJ community to get AST
I am creating a small Java code analysis tool and wondering if I can use the awesome IntelliJ compiler to get AST projects for Java?
IntelliJ has an open sourced community publishing house a few years ago under the Apache 2 license. Can the project be used as a library in a standalone Java project (instead of a plugin for a full IDE) to parse Java projects? The Git repository is quite large and I appreciate any hints or links to start with.
(I already read about Eclipse JDT , but making my own mini ANTLR Java parser was much easier than getting the Eclipse JDT to work for me. But it would be great if I could use a more complex, always up to date version of Java AST for my project. So my hopes are in the IntelliJ compiler.)
source to share
No one has answered this question yet
Check out similar questions: