|
From: Baptiste L. <gai...@fr...> - 2003-08-12 07:11:41
|
----- Original Message -----=20 From: "Andre Baresel" <and...@gm...> To: "CppTool Mailing List" <Cpp...@li...> Sent: Sunday, August 03, 2003 1:13 PM Subject: Re: [Cpptool-develop] Back on CPP-Refactoring ... > > [...] > >The interesting part is that you can still write 'hand written' parser= to > >handle real weird case if needed. There is still much to work out, but it's > >really promising. > > > Sounds interesting - well it's good to have you, just so open minded to > even throw away ugly looking > code ;-) ... Sometimes I'm not so relaxed - since so much time has been > spend on the written code ... > But I like your idea. It's looking much more simple than the complex > stuff in the declaration parser. I like to think that I managed to keep the feature that worked well (leve= l of detail parsing, recursive LL descendent parser), and discarded the feature that got in the way (lazy parsing (it's an optimisation. Can be reintroduced anyway), explicit node type/properties declaration (ASTNodes stuff) ). There is still some features to add: - balanced brace matching with subparsing of brace content and creation o= f an 'error' node if subparsing failed. - probably extend the parse stuff so that the parser can match 'node tree= ' as well as token. This would allow us to roughly parse an expression whic= h failed to be parsed as an expression and extract the 'qualified identifier...' I started debugging some of the expression parsing. As I expected there i= s a need to introduce a 'match longuest alternative' parser (on the way). > At the moment I would like to work a little bit on the refactoring > features, just to show that Could you clarify, I'm not sure I understand what you'll be working on exactly. > the things are going on there, too. btw) I've checked again the eclipse > pages for CDT (that the C/C++ > Developer Plugin). At the moment their implementation is planned to wor= k > with an XML representation > of the parsed C/C++ code. > this weekend is so hot here in berlin - 35 degrees. Well, here in Paris we have been cooking under 35-40 degress for the last two weeks... Well, it's time for me to take some vacantion. I'll be away for the next = two weeks. Baptiste. > until later, > Andr=E9 |