As the title says, I want to parse some Java source code in Java. I'm pretty sure there are other java libraries that already perform this, but I couldn't find any.
Why a downvote?
fish
2010-05-26 08:20:49
Awesome! I really didn't want to use generic parser-generators for this, because the tokens are probably more fine-grained then what I want.
Jeeyoung Kim
2010-05-04 07:04:20
@Jeeyoung Kim, be sure to read the `Limitations` section: most Java 5 (and up) features are not supported.
Bart Kiers
2010-05-04 18:08:59
A:
JavaCC has a Java 1.5 grammar including generics.
the tokens are probably more fine-grained then what I want
Your first requirement is to get an accurate parse, and you will realistically only get that from an existing parser. What you do with the result is up to you.
EJP
2010-05-04 08:46:44