bug in the class browser

Jonas Nordin jonas.nordin at cenacle.se
Wed Jun 16 21:29:42 BST 1999


> Hello Jonas,
> Is it not possible to get a complete c++-grammar somewhere ?  I mean, it looks
> like the parser is a very important part of kdevelop and I think it is worth
> the effort if this part is made as robust as possible. It´s happened often to
> me that I tried to include some already written code and kdevelop crashed (I
> think while parsing).
> Error (Typos) handling can be made strict, so that if there is a typo, a
> corresponding warning can be issued without letting the parser "make a guess".
> Or is that a bad idea?

The problem is that C++ is ambigous and thus there is no complete grammar for
C++. I've only been working with the parser for perhaps a month or so,
considering that I think it works pretty good. It currently handles
Qt/KDE/GNOME and the linux kernel headers.  Another issue is that it is not
necessary to parse any function bodys making a parser a bit overkill. I also
fear that it would bring down performance.

The biggest improvment can probably be made in robustness since that hasn't
been an issue up until now. Please rember that KDevelop is still at Alpa stage!

The parser has been much improved in the last weeks and I suggest you give it
another go! :-)

When it comes to typos even Developer Studio make a poor job of guessing. :-)

/J



More information about the KDevelop mailing list