开发者

Anybody know any resources for adding your own language to visual studio 2010 that is not managed?

I've seen the MyC pages in code project and MS's Iron Python. Is there a simple sample for unmanaged code? I'd like to add a superset to C++.

Update Eventuall开发者_C百科y the code may not be convertible to C++ and so I would like to find a start to finish example of creating an unmanaged new language for VS including IDE support, brace matching, etc. Think D or the the concepts project at Indiana State.


Visual Studio extensions are usually (at least for nontrivial extensions) implemented as packages by deriving from the Package class from the SDK. Your package class is responsible for defining all of the capabilities that it provides.

You will need to implement a language service for IntelliSense, autocompletion, syntax highlighting, brace matching, and other language-specific source editing capabilities.

If you have custom tools that you want to use at build, you can write your own custom tasks usable by MSBuild.

There are a lot of pieces required to extend Visual Studio to support a whole new language, though the amount of work depends on what features you really want to provide and how much existing functionality you can reuse.

The Visual Studio SDK documentation on MSDN is the best place to go for information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜