如何创建.NET编程语言?编程语言、NET

2023-09-02 01:53:12 作者:爱你不如爱自己

我创建使用一些可用的各种分析工具,几个不同的完整的编程语言。但是,怎么会有人创建一个在.NET Framework编程语言?我本来要输出的.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?

推荐答案

您会想看一看的微软研究院共同编译器基础设施(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.

有一个姊妹项目,可能是有用的,要看多长时间了。你知道的。

There's a sister project that might be useful as well, depends how far along you got.