mudassir wrote: > Hi All, > > I am in search of a snippet that could parse a C/C++ source file and > give out as output different information on it. For example > > 1. Signature of function defined in a file. > 2. Name of Global Variables declared. > 3. Files dependencies..(#include). > > Can you help? > > thanks, > mudassir. Some parser engines out there would have ANSI/K&R C grammar already available for you to integrate into your program. Have a look at some in this list: http://en.wikipedia.org/wiki/List_of_Parsers - To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html