Bug in C++ parser

Daniel Berlin+mail.misc dan at cgsoftware.com
Thu Mar 23 17:44:31 GMT 2000


Ralf Nolden <Ralf.Nolden at post.rwth-aachen.de> writes:

> Thanks for the info ;-)
> 
> fixed.

Err, you fixed it wrong.
You can't just add it to the tokenizer, for they are blocks, you need
to add it to the parser as well.
you want to add extern to the tokenizer, and to the parser, add a
"parseextern" routine that skips a string literal, and if the next
token is "{", skips the "{" and recursively calls the top level parse
routine, then skips the "}", and returns.
Then you need to add a call to parseExtern to the top level parse
routine when you  see an EXTERN token.
I can make a patch if you like, it'll take me about 5 minutes.
--Dan
> 
> Ralf




More information about the KDevelop mailing list