qmake parser

Roberto Raggi roberto at kdevelop.org
Tue Feb 22 10:37:06 UTC 2005


Hi Alexander,

The parser looks pretty good :) I like the idea of using AST, Drivers and modern parser techs in a Project Manager. 

What do you think to write a QMakeProjectImporter for my ProjectManager? It should be pretty easy and we can test your parser without breaking `qmakeproject' ;)

Please, don't look at the CustomProjectImporter it is way to simple, at the AutomakeProjectImporter instead in importers/automake. 

The only thing you have to do is to write a *Model* for QMake(more or less like writing a new *Model* for a language support) and that's all!! of course you have to add in the <general> section of .kdevelop file something like

    <projectmanagement>KDevProjectManager</projectmanagement>
    <importer>KDevQMakeProjectImporter</importer>
    <builder>KDevMakeBuilder</builder>

let me know if you need help.

ciao robe

PS: if you'll do it, I wil promise to finish the KDevProjectEditor interface :) So we will have read/write projects


On Monday 21 February 2005 23:16, Alexander Dymo wrote:
> Hi!
> I have preliminary version of a qmake parser.
> Parser is usual bison-generated LALR parser with AST.
> Also included two test programs:
> 1) runner:
> command-line version of a parser which returns !=0 on failure
> 2) viewer:
> graphical version which displays the ast
> note: you can fill file tests/viewer/qtlist with the list of qmake
> files available on your system and the viewer will load them into the
> filelist automatically.
>
> Please test but not blame me much ;) Parser was written in a limited time
> (I spent only few hours on it) but it can be improved when I have more
> time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20050222/8afac74d/attachment.html>


More information about the KDevelop-devel mailing list