Third iteration of QMake parser, looking for a parser generator
Adam Treat
treat at kde.org
Thu Jul 5 13:28:55 UTC 2007
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.
Adam
More information about the KDevelop-devel
mailing list