wala / WALA

T.J. Watson Libraries for Analysis, with frontends for Java, Android, and JavaScript, and may common static program analyses
http://github.com/wala/WALA
Eclipse Public License 2.0
762 stars 221 forks source link

AST generation in WALA #297

Open chenzhegodspeed opened 6 years ago

chenzhegodspeed commented 6 years ago

The User Guide says Eclipse ASTs needs only in the context of a running Eclipse. As I known, Eclipse-JDT can work in a standalone application. So it is possible to support source front end?

juliandolby commented 6 years ago

If I understand the question correctly, then I think what you want is the ECJ front end; take a look at com.ibm.wala.cast.java.ecj

chenzhegodspeed commented 6 years ago

Actually, my question is simple . I want to get AST information from java source code.

juliandolby commented 6 years ago

You just want Eclipse ASTs? If so, there is no need of WALA at all; however, you could look at our Eclipse front end code to see how to get ASTs.

rifatshahriyar commented 5 years ago

You can use JavaParser (https://javaparser.org/).

chenzhegodspeed commented 5 years ago

Thanks for your link.