Hi Santiago,
As I understand, you need a parser for Java such that you can get access to get the AST.
There is no ready made solution that covers this. However, there is a Java grammar and half of a parser implemented using PetitParser. You can find it in PetitJava. In case you have time and interest, it would be very cool to strengthen this parser.
Other than that, perhaps you can find a parser that exports the AST in some format like XML. Afterwards, you could query this information from the image. In case you look into this, let us know if you do anything in this direction.
Cheers, Doru
On Fri, Oct 5, 2012 at 8:10 PM, Santiago Vidal santiago.a.vidal@gmail.com wrote:
Hi,
I looking for a Java parser to use with Moose. While the MSE file gives me most of the relevant information,I need to analyze the internals statements of a method. Anybody is aware of such a parser? Thanks in advance.
Cheers,
-- Santiago Vidal
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev