Related articles |
---|
Can anyone recommend a Java parser in C or C++? stefan@lvps87-230-32-149.dedicated.hosteurope.de (Stefan Arentz) (2007-11-27) |
Re: Can anyone recommend a Java parser in C or C++? toby@telegraphics.com.au (toby) (2007-11-27) |
Re: Can anyone recommend a Java parser in C or C++? liekweg@ipd.info.uni-karlsruhe.de (Florian Liekweg) (2007-11-28) |
Re: Can anyone recommend a Java parser in C or C++? kenshin_40@htomail.com (Mark Holland) (2007-11-28) |
Re: Can anyone recommend a Java parser in C or C++? Meyer-Eltz@t-online.de (Detlef Meyer-Eltz) (2007-11-29) |
From: | "Mark Holland" <kenshin_40@htomail.com> |
Newsgroups: | comp.compilers |
Date: | Wed, 28 Nov 2007 21:49:55 -0000 |
Organization: | Compilers Central |
References: | 07-11-075 |
Keywords: | C, Java, parse |
Posted-Date: | 29 Nov 2007 03:06:49 EST |
> 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
Return to the
comp.compilers page.
Search the
comp.compilers archives again.