Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
New parser model for Code completion
takeshimiya:
--- Quote from: grv575 on December 21, 2005, 01:34:29 am ---So the output of antlr is a c++ parser or...?
--- End quote ---
Yes, and it's better even, because the ANTLR output can be: a C++ parser, a Python parser, a C# parser, or a Java parser.
Im unsure if the output based on the grammars is written inside ANTLR, or it depends on the grammar developer, but for sure the C++ parser output is C++.
From what I've read ANTLR is like JavaCC but a lot better.
Anyways, take a look at CodeStore, that it's the work of another opensource IDE, which are some classes around the ANTLR C++ parser to facilitate the job (dealing with the AST, etc), with the purpose of code completion.
It's very new so you'll have to get it from CVS.
I've tried compiling it (CodeStore with ANTLR C++) in Code::Blocks and compiles almost out-of-the-box, it's all written in portable C++. :)
grv575:
If we're talking about VCFBuilder then I don't think the CVS source is complete. There's includes like:
# include "../src/CodeStore/src/CodeStore.h"
That aren't in the source tree. Uses doxygen which is nice, but I can't seem to get it to compile or see the internals of the codesource source.
takeshimiya:
Mm... There are various branches, I don't remember what I used.
Basically I imported the MSVC6 project to C::B.
Then I changed some classes assignations because a bug that GCC 3.4 haves in the ANTLR code, and it compiled without errors.
And for the CodeStore part, I remember changing some things to make it work, I got it working too.
I don't know what is the level of completeness of CodeStore, but surelly is worth the look, after all it's very new and done in portable C++.
The best would be join the development of the CodeStore branch and help in the development.
Game_Ender:
How does the CodeStore parser compare to Elsa? I have been looking and looking for a good, feature complete, and tested C++ parser library and Elsa is it. It even has the same license as CodeStore, and it looks more complete. It would definitely not be a general solution but the again, from everything I have been reading you can't parse C++ like you can most other languages, so having a separate method of doing the C++ parsing/AST building might not be a bad thing.
anonuser:
Alright so why don't we just take a stab at making the plugin?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version