Visual Studio可以支持我们自己的DSL吗?
假设我有一种语言并且我想为其构建一个 IDE。有没有办法“转换” Visual Studio IDE 以支持我的语言?
我的意思是,我们能否利用 Visual Studio IDE 为我们自己的语言构建一个 IDE,为我们提供智能感知支持以及在成熟的 IDE 中键入代码与在记事本中键入代码相比的所有好处。
我想构建一个具有智能感知支持的文本编辑器(一个 IDE,尽管不是一个成熟的 IDE),可以使用哪些工具来实现这一目标(无需从头开始编码)
assuming I have a language and I want to build an IDE for it. Is there a way to "transform" the visual studio IDE to support my language?
What i mean is that can we make use of visual studio IDE to build an IDE for our own language, providing us with intellisense support and all the benefits of typing code in a full-blown IDE vs typing code in notepad.
I would like to build a text-editor with intellisense support (an IDE albeit not a full-blown one) what would be the tools available to achieve that (without having to code from scratch)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Visual Studio SDK (FKA VSIP) 提供了针对这些类型的集成的服务。您可能会遇到一些关键字:
您还需要集成我想象的某种编译器。为此,您可能想了解一些有关 MSBuild 的知识。您可以通过实现项目包来实现自己的项目系统,该系统可以与解决方案文件中的 C# 和 C++ 项目并存。
这是来自 msdn 的播客,展示了托管 babel 系统。
http://www. microsoft.com/events/podcasts/default.aspx?topic=Topic-6c8c64f3-9a31-48eb-b73a-e398713027&seriesID=Series-20ced2f1-8223-431e-8c94-b6202158813f.xml&pageId=x7852&source=Microsoft- Podcasts-about-Microsoft-Visual-Studio-2010:-Turn-Ideas-into-Solutions&WT.rss_ev=a
这是 CodeProject 上的一篇文章,介绍了语言服务的创建过程。
http://www.codeproject.com/KB/recipes/VSLanguageService.aspx
The Visual Studio SDK (FKA VSIP) has services for these types of integrations. Some keywords you may come across:
You'll also need to integrate a compiler of some sort I would imagine. For that you probably want to learn a bit about MSBuild. You can implement your own project system that can live side-by-side with C# and C++ projects in a solution file by implementing a Project Package.
Here is an podcast from msdn that shows the managed babel system.
http://www.microsoft.com/events/podcasts/default.aspx?topic=Topic-6c8c64f3-9a31-48eb-b73a-e398713027&seriesID=Series-20ced2f1-8223-431e-8c94-b6202158813f.xml&pageId=x7852&source=Microsoft-Podcasts-about-Microsoft-Visual-Studio-2010:-Turn-Ideas-into-Solutions&WT.rss_ev=a
Here is an article on CodeProject that walks through the creation of a language service.
http://www.codeproject.com/KB/recipes/VSLanguageService.aspx
如果您浏览Visual Studio Gallery,您可以了解一些可能性。有一些与外部语言(例如 Lua)相关的插件。
-尼尔
If you browse the Visual Studio Gallery , you can get some idea of what is possible. There are some add-ins related to external languages such as Lua.
-Neil