Third iteration of QMake parser, looking for a parser generator

Roberto Raggi roberto.raggi at gmail.com
Thu Jul 5 14:52:29 UTC 2007


Il giorno 05/lug/07, alle ore 15:28, Adam Treat ha scritto:

> On Thursday 05 July 2007, Andreas Pakulat wrote:
>>> Let me know if you decide to
>>> write a hand-written lexer. I can send you an example of how I like
>>> to write scanners, you can look at it and decide if you want to  
>>> use a
>>> similar approach.
>>
>> That would be cool, I've already got an idea how to write it, but  
>> that
>> would be using regexps (possibly QRegExp).
>
> Not that speed is an issue for you, but Roberto's lexers are *much*  
> *much*
> faster than QRegExp.  They are really nifty pieces of code if you  
> ask me.
> The way he does keywords is genuinely beautiful.

Thank you Adam :-) I hope you had time to look at kwgen.cpp the  
little tool I posted 2-3 days ago.

ciao robe







More information about the KDevelop-devel mailing list