From: Baptiste L. <gai...@fr...> - 2003-05-05 08:21:04
|
Fixed a few more bugs: - nested case constant (case X::value :) - enum parsing (parsed as a declaration list failed (no ';') ) - support for class EXPORT_MACRO ClassName - general macro acceptance in declaration list based on case style (matched if ID_ID(...)). Allow wxWindow & MFC macros to be parsed succesfully 74% of the files are now being parsed. I've checked ast/ogre/ogrebspscenemanager.cpp.html at statement level and the parsing is nearly perfect (spotted two minors bugs). For the curious, you can find the zipped resultat (I've fixed the url link bug): http://gaiacrtn.free.fr/temp the ast directory you'll find there only contains a subset of the zip file (audacity, ogre & rfta). On major bug remaining concerns the parsing of constructor declaration in class declaration. Baptiste. ----- Original Message ----- From: "Baptiste Lepilleur" <gai...@fr...> To: "CppTool Mailing List" <Cpp...@li...> Sent: Friday, May 02, 2003 12:02 AM Subject: Re: [Cpptool-develop] astdump runner... > Fixed 4 bugs and removed all crashes: > - readUntilNextOf() caused silent failures as it iterated to the end without > throwing exception. It now throw an exception uppon failure. tryReadNextOf() > as been added to handle case were you need to continue > - class forward declaration support > - destructor declaration support (not clean, will need to be made more > robust) > - multiple access declaration support 'public: protected:' > > 51% of the 49 files are now being parsed ! Things are looking up. > > Baptiste. > > ----- Original Message ----- > From: "Baptiste Lepilleur" <gai...@fr...> > To: "CppTool Mailing List" <Cpp...@li...> > Sent: Thursday, May 01, 2003 12:14 PM > Subject: [Cpptool-develop] astdump runner... > > > > I've added a python script in the bin/ directory. It scan the > > subdirectories of bin/testdata/ and run the parser in all the file found > > there. The directory structure is duplicated in ast/ and the HTML ast dump > > are copied here. An index page is created in ast/index.html with link to > all > > ast, as well as parsing status (ok, failed, and crashed). > > > > The script must be run from the bin/ directory, and expect to find a > > binary named 'astdump' there. > > > > For the curious, you can find the zipped resultat: > > http://gaiacrtn.free.fr/temp > > the ast directory you'll find there only contains a subset of the zip > > file (ogre & rfta). > > > > The source were picked up from some C++ project on sourceforge. > > > > Baptiste. |