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.)

+3
java intellij-idea parsing code-analysis abstract-syntax-tree


source to share


No one has answered this question yet

Check out similar questions:

2248
Is a finally block always executable in Java?
1818
How to get enum value from string value in Java?
1338
How can I permanently include line numbers in IntelliJ?
581
IntelliJ shows JavaDocs tooltip on mouseover
539
IntelliJ: never use wildcard imports
442
Correct way to add external jars (lib / *. Jar) to IntelliJ IDEA project
five
What standalone Java parsers are available?
1
Using Eclipse DLTK parser in a separate python application
1
Use case for creating and using AST using Eclipse CDT in a stand-alone application
0
AST (Abstract Syntax Tree) in Netbeans



All Articles
Loading...
X
Show
Funny
Dev
Pics