|
|
Browsing this Thread:
1 Anonymous Users
|
|
|
nbache [image]
|
Re: CodeBench alpha |
|
Not too shy to talk

From: Copenhagen, Denmark
|
|
Posts:
357
|
|
Posted on: 2008/8/4 22:46:19
|
|
@Rigo
Quote: Rigo wrote: @nbache
ome of the things VS has in it's favour is that it is designed to be used for one purpose, CodeBench is designed to be as general as possible to accommodate any language. While certain language specific stuff can be implemented by the plugins, the complxity is limited by the fact that it is just a plugin, and cannot replace all IDE functionality.
Things like variable definition tracking etc are beyond the scope of this application, and are the job of the preprocessor. In order to implement what you mention would mean practically writing my own preprocessor. Sadly, that is not going to happen.
Right. Well, I guess you could say that VS also uses a plugin system of sorts; it has support for multiple languages (BASIC, C#, C++, J# and I believe more). And I would expect the plugin to be the place for language-aware stuff, whether you'd call it a preprocessor or a parser, anything that can go far enough to keep track of the syntax tree of a whole project, which is more or less what would be needed for such features.
And I do understand that this is not just something you add with a swift movement of your left hand . But maybe you can give a few thoughts to a way to add it later? A plan for how the interface would work for a language plugin to be able to deliver such services to the general IDE?
Best regards,
Niels
|
|
|
Transfer
|
|
|
|
|
nbache [image]
|
Re: CodeBench alpha |
|
Not too shy to talk

From: Copenhagen, Denmark
|
|
Posts:
357
|
|
Posted on: 2008/8/5 10:43:01
|
|
@Rigo
Quote: Rigo wrote: @nbache
Do you know if VS uses a separate compiler/preprocessor to create the finished executable, or is it all handled by VS itself?
Well, I'm not exactly sure how it all works internally, but from the user's standpoint, it's all handled within VS.
When you install VS, you select which languages you want to install support for, and I believe the support "chunk" for each language is pretty extensive (like so much in that world), so it probably contains lots of stuff that performs some of the magic seen in the IDE. But there is also a command-line version of the compiler, at least for C# (which is the language I use). I would guess that much of the language-specific code resides in DLLs which can be used from both the command line compiler and the IDE. There's also such things as language-aware (user-definable) code formatting, but again, this could be a service in a language-specific DLL called generically from the IDE application.
Best regards,
Niels
|
|
|
Transfer
|
|
|
|
|
Rigo [image]
|
Re: CodeBench alpha |
|
Supreme Council

|
Posts:
871
|
|
Posted on: 2008/8/5 11:40:56
|
|
@nbache
Again, if that is the case, which it most likely is, then that's how it implements the resource tracking. The preprocessor (and probably the compiler too) is already part of VS. This is not the case with CodeBench (for the C/C++ plugin, cc1 is separate), and as such, is a duplication of work, which I'm not prepared to spend time on.
This is why CodeBench is promoted as a Project Management System, rather than a full blown code generator.
In any case, I have to leave something to the programmer, otherwise there'd be nothing to think about :)
Simon
|
|
|
Transfer
|
|
|
|
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
Home |