I need a standalone Java parser (program which "reads" .java source files and generates AST [ie objects representing the contents of source]).
- There's https://code.google.com/p/javaparser/ but it supports only Java 1.5
- I know how to run Eclipse Java parser in "standalone" mode, but this parser uses too many Eclipse JARs, is too complex, and uses EPL license, which is GPL-incompatible
- other IDEs (IntelliJ, NetBeans, JDeveloper) and javac compiler also must have some Java parsers, but I can't find any documentation how to use them in "standalone" applications
Any help? Maybe somebody of You also tried to do some standalone Java parsing?