Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
New parser model for Code completion
Game_Ender:
--- Quote from: anonuser on December 21, 2005, 04:37:11 am ---Alright so why don't we just take a stab at making the plugin?
--- End quote ---
The Code Completion plugin is already made, the issue is that it does not support every part of the C++ langauge because it is so very hard to fully parse C++. I have been looking through the CodeCompletion Plugin code for a little while and I am still working out the best way to drop in another system in place of Mandrav's tokenizer/parser combination.
I forgot to mention that Elsa supports XML serialization of its AST, so with a little work you can turn this into a quickly loadable file for code completion.
anonuser:
Why work with the old one, why not tear it out ?
takeshimiya:
As I've said, Elsa and ANTLR C++ are the most complete C++ parsers I could find.
The ANTLR C++ is being made from 1997 and was completely rewritten 3 times, so now is very mature.
I attach two text files describing the current situation of both parsers and what things are missing.
Additionaly, I couldn't compile Elsa on mingw32 (it's not ported yet), but ANTRL compiles succesfully.
What I liked about ANTLR C++ is that the code of the parser is very small, it takes seconds to compile, despite it being very powerful.
[attachment deleted by admin]
rickg22:
--- Quote from: anonuser on December 21, 2005, 04:45:24 am ---Why work with the old one, why not tear it out ?
--- End quote ---
Actually we're searching for a brave warrior who will start the quest of implementing the new parser. But so far everybody seems busy... I want to redo Yiannis' parser with Finite State machines, but I don't know if I'll be able to do it.
If you seem so enthusiastic, you're totally welcome to dive in and start coding with ANTLR or whatever you like :)
anonuser:
I'm going to see what this would take, I doubt I'll use any of what mandrav did. Other's should try too. See who gets it done better and faster ;D
But Yeah I'll try it.
Can anyone show me what I need to tear out?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version