问题描述
我使用一些可用的各种解析工具创建了几种不同的完整编程语言.但是,有人将如何创建运行 .Net 框架的编程语言?我是否必须输出 .Net IL 并对其进行编译,还是有更高级别的抽象?
I have created a few different full programming languages using some of the various parsing tools available. However, how would someone create a programming language that runs the .Net framework? Would I have to output the .Net IL and compile that or is there a higher level of abstraction?
另外,有没有一种简单的方法可以让该语言在 Visual Studio 中工作?
Also, is there an easy way to get the language working in Visual Studio?
推荐答案
你会想看看 Microsoft Research Common Compiler Infrastructure (CCI) 项目.它提供了为程序集生成元数据和 MSIL 所需的一切.还有调试 .pdb 文件,对于让您的语言继续运行非常重要.
You'll want to take a look at the Microsoft Research Common Compiler Infrastructure (CCI) project. It provides everything you need to generate the metadata and the MSIL for an assembly. And the debugging .pdb file, rather important to get your language going.
有一个姊妹项目,CCI 代码模型和 AST,也可能很有用,这取决于你走了多远.
There's a sister project, CCI Code Model and AST, that might be useful as well, depends how far along you got.
这篇关于如何创建.Net 编程语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)