View Full Version : [SOLVED] Java/C library for code analysis
fyplinux
March 25th, 2008, 04:46 PM
I am seeking for a library either in C or Java that could scan over a source code file, output all the global variables and the function prototypes.
Although it is not hard to do it personally, using the library is more easier.
meatpan
March 25th, 2008, 05:04 PM
The doxygen system provides a nice summary of functions and globals (among other things). Be aware that the doxygen library requires a bit learning, and might be a more sophisticated solution than necessary for your situation.
http://www.stack.nl/~dimitri/doxygen/
themusicwave
March 25th, 2008, 06:24 PM
If the Code is written in Java, then have a look at the Java Reflections.
They can read compiled Java byte code and output all kinds of information about the code.
http://java.sun.com/javase/6/docs/api/java/lang/reflect/package-frame.html
drubin
March 25th, 2008, 07:20 PM
If the code is java, you could just generate "JavaDocs" ?
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.