Tuesday, July 28, 2009

C++ Source Code Parser Application or Library?

I need to parse C/C++ source files and I don't want to do it neither by hand nor by using a parser creator (e.g. bison). Call me lazy but I have other things to work on.


Does anyone knows of a library to link my application to or a command line tool that I can use for this purpose?

C++ Source Code Parser Application or Library?
Obviously, the g++ front end is available, but that


doesn't strike me as being particularly easy to integrate


into another application.





At reference #1 (below), there's an extension called


GCC-XML which parses C++ and produces parse trees in XML


format (which would be *much* easier for your application


to process). Maybe that's a closer fit.
Reply:BOOST has a complete C++ parser implemented in C++ template programming. Follow http://www.boost.org/ Report It

Reply:download it

flower girl

No comments:

Post a Comment