如何创建.Net 编程语言?

How to create a .Net programming language?(如何创建.Net 编程语言?)
本文介绍了如何创建.Net 编程语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一些可用的各种解析工具创建了几种不同的完整编程语言.但是,有人将如何创建运行 .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 编程语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
quot;Overflowquot; compiler error with -9223372036854775808L(编译器错误-9223372036854775808L(Q;溢出Q))
Visual Studio 2010 ReportViewer Assembly References(Visual Studio 2010 ReportViewer程序集引用)
Weird behaviour when I open a reportviewer in WPF(在WPF中打开报表查看器时出现奇怪的行为)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)