* C/C++ File Parser @ 2007-07-05 12:57 mudassir 2007-07-05 15:09 ` Uday K Verma 2007-07-05 15:20 ` Eugene Rosenzweig 0 siblings, 2 replies; 4+ messages in thread From: mudassir @ 2007-07-05 12:57 UTC (permalink / raw) To: linux-c-programming 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. -- View this message in context: http://www.nabble.com/C-C%2B%2B-File-Parser-tf4029536.html#a11445958 Sent from the linux-c-programming mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: C/C++ File Parser 2007-07-05 12:57 C/C++ File Parser mudassir @ 2007-07-05 15:09 ` Uday K Verma 2007-07-05 15:20 ` Eugene Rosenzweig 1 sibling, 0 replies; 4+ messages in thread From: Uday K Verma @ 2007-07-05 15:09 UTC (permalink / raw) To: mudassir; +Cc: linux-c-programming Look into doxygen. -uday On Jul 5, 2007, at 7:57 AM, mudassir <mudi@inbox.com> 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. > -- > View this message in context: http://www.nabble.com/C-C%2B%2B-File-Parser-tf4029536.html#a11445958 > Sent from the linux-c-programming mailing list archive at Nabble.com. > > - > To unsubscribe from this list: send the line "unsubscribe linux-c- > programming" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: C/C++ File Parser 2007-07-05 12:57 C/C++ File Parser mudassir 2007-07-05 15:09 ` Uday K Verma @ 2007-07-05 15:20 ` Eugene Rosenzweig 1 sibling, 0 replies; 4+ messages in thread From: Eugene Rosenzweig @ 2007-07-05 15:20 UTC (permalink / raw) To: linux-c-programming 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: C/C++ File Parser
@ 2007-07-05 13:29 Leslie P. Polzer
0 siblings, 0 replies; 4+ messages in thread
From: Leslie P. Polzer @ 2007-07-05 13:29 UTC (permalink / raw)
To: mudassir; +Cc: linux-c-programming
> 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?
No, but the source code of some tags generator (ctags, etags, gtags) might.
Leslie
^ permalink raw reply [flat|nested] 4+ messages in threadend of thread, other threads:[~2007-07-05 15:20 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-07-05 12:57 C/C++ File Parser mudassir 2007-07-05 15:09 ` Uday K Verma 2007-07-05 15:20 ` Eugene Rosenzweig -- strict thread matches above, loose matches on Subject: below -- 2007-07-05 13:29 Leslie P. Polzer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).