|C/C++ header file parser email@example.com (Pankaj Garg) (2006-09-30)|
|Re: C/C++ header file parser firstname.lastname@example.org (2006-10-03)|
|Re: C/C++ header file parser email@example.com (Pascal Bourguignon) (2006-10-03)|
|Re: C/C++ header file parser firstname.lastname@example.org (Alex McDonald) (2006-10-03)|
|Re: C/C++ header file parser email@example.com (Paul Pluzhnikov) (2006-10-03)|
|Re: C/C++ header file parser firstname.lastname@example.org (Michael Tiomkin) (2006-10-03)|
|Re: C/C++ header file parser email@example.com (Ira Baxter) (2006-10-10)|
|From:||firstname.lastname@example.org (David Wagner)|
|Date:||3 Oct 2006 18:12:22 -0400|
|Organization:||University of California, Berkeley|
|Keywords:||C, C++, parse|
|Posted-Date:||03 Oct 2006 18:12:22 EDT|
Pankaj Garg wrote:
>I need to parse C/C++ header files and extract information about data
>types, functions and function arguments. Which tools/libraries would
>be suitable for me? Are there any examples/sample programs for such.
>I don't want to build a full fledged yacc based parser so i am looking
>for a ready made parser, preferably open source.
First, please fix the email address listed in the From: line.
I tried replying by email, but the email bounced.
Regarding your question, search the archives, and you will find
several options listed. One option is that you could try Elsa/Oink:
Elsa is a C and C++ parser. Oink is a layer on top of Elsa that
simplifies ("lowers") the C++ and puts it into a canonical form so it
is a little easier to deal with. It's open source. It's not perfect,
but it seems fairly solid. We've been using it in our research to
parse and analyze all Debian C/C++ packages, and it works pretty well:
Elsa can parse most, but not all, of those packages.
Return to the
Search the comp.compilers archives again.