[KDevelop-PG-Qt] [Patch] Full CC-Example

Jonathan Schmidt-Dominé - Developer devel at the-user.org
Sun Oct 18 18:03:47 UTC 2009


Hi!

> Nice! The patch looks good.
> 
> What is
> 
> #line 2 "cclexer.cpp"
> 
> #line 4 "cclexer.cpp"
> 
> supposed to do in cclexer.cpp ?

All stuff matching cc[^\.]*\.(cpp|h) is generated. Look at the CMakeLists.txt: 
It's generated by flex and kdevelop-pg-qt, but I've read somewhere those 
generated files should be included. cclexer.cpp is the implementation of the 
Tokenizer, FlexLexer.h is copied from Java (and the Java-parser developer has 
copied it from somewhere else, it seems to be a "0815-flex-header"), lexer.h 
is a slightly modified version of the javalexer.h, it's also some kind 0815. 
cclexer.cpp implements these header-files.

> If you are up to it, please contribute :D I once started with Css but
>  failed horribly, because I could not find much documentation on the *.g
>  syntax, did you find any? If not, I would also appreciate it greatly if
>  you could write some documentation!
So you have written some of the php-duchain and completion-stuff but not the 
parser?
But back to topic: I was told that there's no documentation. I have looked at 
java.g and the generated content (to understand the structure). I don't know 
all the syntactic elements, but kdev-pg-parser.yy was a good hint.

Jonathan

------------------------
Operating System: GNU/Linux
Kernel: Linux 2.6.31-ARCH
Distribution: Arch Linux
Qt: 4.5.3
KDE: 4.3.71 (KDE 4.3.71 (KDE 4.4 >= 20091007))
KMail: 1.12.90




More information about the KDevelop-devel mailing list