Re: C/C++ header file parser

Paul Pluzhnikov <ppluzhnikov-nsp@charter.net>
3 Oct 2006 18:16:13 -0400

          From comp.compilers

Related articles
C/C++ header file parser lost_stranger@verizon.net (Pankaj Garg) (2006-09-30)
Re: C/C++ header file parser daw@taverner.cs.berkeley.edu (2006-10-03)
Re: C/C++ header file parser pjb@informatimago.com (Pascal Bourguignon) (2006-10-03)
Re: C/C++ header file parser alex_mcd@btopenworld.com (Alex McDonald) (2006-10-03)
Re: C/C++ header file parser ppluzhnikov-nsp@charter.net (Paul Pluzhnikov) (2006-10-03)
Re: C/C++ header file parser tmk@netvision.net.il (Michael Tiomkin) (2006-10-03)
Re: C/C++ header file parser idbaxter@semdesigns.com (Ira Baxter) (2006-10-10)
| List of all articles for this month |

From: Paul Pluzhnikov <ppluzhnikov-nsp@charter.net>
Newsgroups: comp.compilers
Date: 3 Oct 2006 18:16:13 -0400
Organization: Compilers Central
References: 06-09-169
Keywords: C++, parse
Posted-Date: 03 Oct 2006 18:16:13 EDT

"Pankaj Garg" <lost_stranger@verizon.net> writes:


> I need to parse C/C++ header files and extract information about
> data types, functions and function arguments. ...


Since C++ headers can contain inline functions, you need a
full-fledged C++ parser.


> I don't want to build a full fledged yacc based parser


It is very difficult to build a correct yacc parser for C/C++ See:
http://www.nobugs.org/developer/parsingcpp/


> i am looking for a ready made parser, preferably open source.


http://www.cs.berkeley.edu/~smcpeak/elkhound/


Cheers,
--
In order to understand recursion you must first understand recursion.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.