[Solved] Parsing Java code with Java


People often try to parse HTML, XML, C or java with regular expressions.

With enough efforts and tricks, lot of amazing things are possible with complex combinations of regex. But you always end up with something very incomplete and not efficient.

Regex can’t handle complex grammars, use a parser, either generic or specific to java.

solved Parsing Java code with Java