Re: Can anyone recommend a Java parser in C or C++?



I'm looking for a simple Java parser in C or C++. I would like to
extract class and method names from Java sources.

Are there any open source parser generators for C or C++ that come
with a Java parser example that I could use maybe?

Have you looked at the javap utility that comes with the JDK? It can
print the class names, fields and methods of a compiled .class file.
Perhaps you could write a simple program to parse the output of this
utility and save yourself some work?

Mark

.



Relevant Pages